_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

(La)TeXusage, tips and resources.

texi2pdf -c --max-iterations=MAX_ITERATIONS FILENAME

back to top

\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}

back to top

To use extra packages for various formatting options: \usepackage{PACKAGENAME} Parameters can be set when using the package: \usepackage[PARAMETERS]{PACKAGE_NAME}

This package is needed for margins and paper type and layout. Eg.:

\usepackage{geometry}
\geometry{margin=0.5in}
\geometry{letterpaper}
Or in a single line:
\geometry{legalpaper, landscape, margin=0.5in}
The options can also be set when using the package:
\usepackage[paperwidth=.5aperwidth,paperheight=.25aperheight]{geometry}

This is needed for paragraph management, eg.: spacing: \usepackage[parfill]{parskip}

Needed for urls:

display url : \url{URL}
display link : \href{URL}{DISPLAY_TEXT}

If Last page is used, the file needs to be processed twice to insert the last page number.

Needed to set headers and footers.

\pagestyle{fancy}
\fancyfoot[R]{\thepage\ - \pageref{LastPage}}
position : L,C,R
Current page : \thepage
Last Page : \pageref{LastPage}

Needed to use images:

\includegraphics{FILENAME}
If the file is not in the current path, before including the file:
\graphicspath{ {GRAPHICS_PATH/} }

back to top

> : \textgreater
< : \textless
ñ : \~n
í : \'i

back to top

{\color{COLOR}TEXT}

back to top

back to top

postscript , pdf , documentation

- Archlinux manpages: texi2pdf(1)

- TeX Users Group
- CTAN - Comprehensive TeX Archive Network
- TUG - Resources and packages
- LaTeX Project - Documentation
- Overleaf - LaTeX documentation
- MiKTeX - Windows TeX implementation

back to top

ohazot | about | ohazot.com <admin@ohazot.com>

This document applies to: linux , OpenBSD 7.8 | Created:2026-03-30|Updated:2026-03-30|