_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
(La)TeX —
usage, tips and resources.
CONVERSION
texi2pdf -c
--max-iterations=MAX_ITERATIONS FILENAMEBASIC DOCUMENT
\documentclass{CLASS}
%comments
%common classes: book, article
\title{TITLE}
\author{AUTHOR}
\begin{document}
\tableofcontents
\section{SECTION_NAME}
\subsection{SUBSECTION_NAME}
\begin{itemize}
\item First item
\item Second item
\item Third item
\end{itemize}
\begin{itemize}
\item First item
\item Second item
\begin{itemize}
\item First sub-item
\item Second sub-item
\begin{itemize}
\item First sub-sub-item
\item Second sub-sub-item
\end{itemize}
\end{itemize}
\item Third item
\end{itemize}
\enddocument{document}
PACKAGES
To use extra packages for various formatting options:
\usepackage{PACKAGENAME} Parameters can be set when
using the package:
\usepackage[PARAMETERS]{PACKAGE_NAME}
geometry
This package is needed for margins and paper type and layout. Eg.:
\usepackage{geometry}
\geometry{margin=0.5in}
\geometry{letterpaper}
\geometry{legalpaper, landscape,
margin=0.5in}\usepackage[paperwidth=.5aperwidth,paperheight=.25aperheight]{geometry}
parskip
This is needed for paragraph management, eg.: spacing:
\usepackage[parfill]{parskip}
hyperref
Needed for urls:
| display url | : \url{URL} |
| display link | : \href{URL}{DISPLAY_TEXT} |
lastpage
If Last page is used, the file needs to be processed twice to insert the last page number.
fancyhdr
Needed to set headers and footers.
\pagestyle{fancy}
\fancyfoot[R]{\thepage\ - \pageref{LastPage}}
| position | : L,C,R |
| Current page | : \thepage |
| Last Page | : \pageref{LastPage} |
graphicx
Needed to use images:
\includegraphics{FILENAME}\graphicspath{ {GRAPHICS_PATH/}
}CHARACTERS
| > | : \textgreater |
| < | : \textless |
| ñ | : \~n |
| í | : \'i |
COLOURS
{\color{COLOR}TEXT}TODO
- Add sample file.
- Check whether title and author can be displayed on PDF viewers. (This can be done on PS)
SEE ALSO
postscript , pdf , documentation
- Archlinux manpages: texi2pdf(1)
links
| - TeX Users Group |
| - CTAN - Comprehensive TeX Archive Network |
| - TUG - Resources and packages |
| - LaTeX Project - Documentation |
| - Overleaf - LaTeX documentation |
| - MiKTeX - Windows TeX implementation |