LaTeX Tips Tricks

From MukeWiki

LaTeX in the Cloud

\documentclass{article}
\usepackage{fontspec}

\begin{document}
\setmainfont{Exo2-Regular.otf}
Example Skúška Проба
\setmainfont{Exo2-Bold.otf}
Example Skúška Проба
\end{document}
lualatex test.tex   # only LuaLaTeX or XeLaTeX (not LaTeX)

\makeatletter
\renewcommand{\@biblabel}[1]{[\Roman{enumiv}]\indent\indent}
\renewcommand{\@biblabel}[1]{[\roman{enumiv}]\indent}
\makeatother
\usepackage{cite}

\makeatletter
\newcommand{\citer}[0]{\renewcommand\citeform[1]   % cite roman
  {\romannumeral ##1}}
\newcommand{\citeR}[0]{\renewcommand\citeform[1]   % cite Roman
  {\expandafter\@slowromancap\romannumeral ##1@}}
\newcommand{\cited}[0]{\renewcommand\citeform[1]   % cite default (arabic)
  {##1}}
\newcommand{\citea}[0]{\renewcommand\citeform[1]   % cite arabic (manual)
  {\@arabic ##1}}
\makeatother

% ak nechcem pozuivat "nove prikazy", mozem menit pocitadlo aj
% manulane, stale pred zmenenim cislovania pred prikazom '\cite'
% napisem jeden z tychto prikazov (Roman, roman, default):
% \renewcommand\citeform[1]{\expandafter\@slowromancap\romannumeral #1@}
% \renewcommand\citeform[1]{\romannumeral #1}
% \renewcommand\citeform[1]{##1}

\citeR \cite{lit1} \cite{lit12} ...
\cited \cite{lit10, lit5} ...

convert hsumanim.gif frame.png
\usepackage{animate}
\usepackage{pdfpages}
...
\animategraphics[width=1.00\textwidth,controls,loop]{5}{frame-}{0}{19}



\includepdf[pages=1-1]{pages_from_another_pdf.pdf}


example Template:LinkPDF (open in Adobe Acrobat)