_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | > en < |
| mdoc file |
| search |
(La)TeX —
usage, tips and resources
CONVERSION
texi2pdf -c
--max-iterations=MAX_ITERATIONS FILENAMEUse postscript fonts and convert from dvi:
Enables the use of Times, Helvetica and Courier from
Postscript.
pslatex FILENAME dvipdf FILENAME
BASIC DOCUMENT
documentclass[PARAMETERS]{CLASS}
%comments
%common classes: book, article
%paramters: font size, sides:
%\documentclass[12pt,oneside]{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}
\end{document}
PACKAGES
To use extra packages for various formatting options:
\usepackage{PACKAGENAME}\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} |
\hypersetup{
colorlinks,
linkcolor={black!50!black},
citecolor={blue!50!black},
urlcolor={blue!90!black}
}
\hypersetup{
pdftitle={TITLE},
pdfauthor={AUTHOR},
pdfsubject={SUBJECT}
}
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}INCLUDES
\input{FILENAME}TODO
| - Add sample file. |
SEE ALSO
HISTORY
| 2026-07-15 | : Translated to Spanish. |
| 2026-05-10 | : added pslatex and dvipdf to use postscript fonts. |
| 2026-03-30 | : Created. |