Files
latex/docs/parts/usage.tex
Janis Hutz baebaa99d0
Some checks failed
Update docs / build_docs (push) Has been cancelled
Update helpers / build_helpers (push) Successful in 25s
Update docs (mostly), fixes, etc
2026-02-21 16:24:21 +01:00

55 lines
1.5 KiB
TeX

\newsection
\section{Usage}
You can type \texttt{latex-prepare} and press tab, if you have installed the VSCode snippets, or copy over this code snippet:
\begin{minted}{latex}
\documentclass{article}
\input{~/path/to/helpers/janishutz-helpers.tex} % TODO: Change your path here
\setup{Type your title here}
\begin{document}
\startDocument
Type your \LaTeX here
\end{document}
\end{minted}
\subsection{Configuration}
You can set a global config in the config files in the helper files directory. They are located at
\texttt{/<path to helpers>/config/}.
All config options are documented there.
After changing them, run \texttt{build.sh} in the main directory.
Each of the options can also be overridden directly on a per-document
(see \ref{sec:perFileConf}) basis using
\mint{latex}|\renewcommand{\<command>}{<value>}|
\subsection{Letters}
Letters require a different setup compared to a normal \LaTeX document:
\begin{minted}{latex}
\documentclass[12pt,a4paper]{scrlttr2}
\input{~/path/to/helper/letter.tex} % TODO: Change your path here
\setkomavar{subject}{} % type your subject here
\begin{document}\raggedright
% below, type the address, being careful not to remove the backslashes
\begin{letter}{Company \\ Name \\ Address \\ CH-Place}
\opening{Intro}
Your text
\closing{Kind regards} % Your closing sentence
\end{letter}
\end{document}
\end{minted}
If you are using the snippets, you can type \texttt{latex-letter} and press tab.