.Dd Created:2026-03-30|Updated:2026-03-30| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .nr r 0 .ie ( \nr == 1 ) \{\ .de dm .opsy OpenBSD manpages: \\$* .. .\} .ie ( \nr == 0 ) \{\ .de dm .opsy Archlinux manpages: \\$* .. .\} .Dt LATEX oh .Os linux , OpenBSD 7.8 | .Nm (La)TeX .Nd usage, tips and resources. .Sh CONVERSION .Dl texi2pdf -c --max-iterations=MAX_ITERATIONS FILENAME .Sh BASIC DOCUMENT .obdl \edocumentclass{CLASS} %comments %common classes: book, article \etitle{TITLE} \eauthor{AUTHOR} \ebegin{document} \etableofcontents \esection{SECTION_NAME} \esubsection{SUBSECTION_NAME} \ebegin{itemize} \eitem First item \eitem Second item \eitem Third item \eend{itemize} \ebegin{itemize} \eitem First item \eitem Second item \ebegin{itemize} \eitem First sub-item \eitem Second sub-item \ebegin{itemize} \eitem First sub-sub-item \eitem Second sub-sub-item \eend{itemize} \eend{itemize} \eitem Third item \eend{itemize} \eenddocument{document} .Ed .Sh PACKAGES To use extra packages for various formatting options: .Li \eusepackage{PACKAGENAME} Parameters can be set when using the package: .Li \eusepackage[PARAMETERS]{PACKAGE_NAME} .Ss geometry This package is needed for margins and paper type and layout. Eg.: .obdl \eusepackage{geometry} \egeometry{margin=0.5in} \egeometry{letterpaper} .Ed Or in a single line: .Dl \egeometry{legalpaper, landscape, margin=0.5in} The options can also be set when using the package: .Dl \eusepackage[paperwidth=.5\paperwidth,paperheight=.25\paperheight]{geometry} .Ss parskip This is needed for paragraph management, eg.: spacing: .Li \eusepackage[parfill]{parskip} .Ss hyperref Needed for urls: .obc display_link .It display url Ta : Li \eurl{URL} .It display link Ta : Li \ehref{URL}{DISPLAY_TEXT} .El .Ss lastpage If Last page is used, the file needs to be processed twice to insert the last page number. .Ss fancyhdr Needed to set headers and footers. .obdl \epagestyle{fancy} \efancyfoot[R]{\ethepage\e - \epageref{LastPage}} .Ed .obc current_page .It position Ta : L,C,R .It Current page Ta : \ethepage .It Last Page Ta : \epageref{LastPage} .El .Ss graphicx Needed to use images: .Dl \eincludegraphics{FILENAME} If the file is not in the current path, before including the file: .Dl \egraphicspath{ {GRAPHICS_PATH/} } .Sh CHARACTERS .obc2 .It > Ta : \etextgreater .It < Ta : \etextless .It \(~n Ta : \e~n .It \('i Ta : \e'i .El .Sh COLOURS .Dl {\ecolor{COLOR}TEXT} .Sh TODO .obdi Add sample file. .oit Check whether title and author can be displayed on PDF viewers. (This can be done on PS) .El .Sh SEE ALSO .oxr postscript oh .oxr pdf oh .Xr documentation oh .dm .Xr texi2pdf 1 .Ss links .obc2 .It - Lk https://tug.org/ TeX Users Group .It - Lk https://ctan.org/ CTAN - Comprehensive TeX Archive Network .It - Lk https://www.tug.org/interest.html#free TUG - Resources and packages .It - Lk https://www.latex-project.org/help/documentation/ LaTeX Project - Documentation .It - Lk https://www.overleaf.com/learn Overleaf - LaTeX documentation .It - Lk https://miktex.org/ MiKTeX - Windows TeX implementation .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com