Fix letters + improvements for them. More fixes to come

This commit is contained in:
Admin 2025-02-20 13:34:22 +01:00
parent b8276dcf2f
commit ffe81249b0
5 changed files with 25 additions and 5 deletions

View File

@ -15,8 +15,8 @@
% Configure your address here
\newcommand{\name}{Janis Hutz}
\newcommand{\street}{}
\newcommand{\city}{}
\newcommand{\street}{Street}
\newcommand{\city}{City}
\newcommand{\countrycode}{CH}

BIN
examples/letter/letter.pdf Normal file

Binary file not shown.

View File

@ -0,0 +1,17 @@
\documentclass[12pt,a4paper]{scrlttr2}
\newcommand{\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!
\input{\dir/include.tex}
\load{letter}
% Subject
\setkomavar{subject}{Test}
\begin{document}\raggedright
\begin{letter}{Company \\ Name \\ Address \\ CH-Place}
\opening{Intro}
Test
\closing{Kind regards}
\end{letter}
\end{document}

View File

@ -5,7 +5,7 @@
\edef\minimal{minimal}
\edef\most{most}
\edef\full{full}
\edef\letter{letter}
\edef\letters{letter}
\edef\temp{#1}
\ifx \temp\recommended
\typeout{[CustomLaTeXHelperLoader]: Loading config recommended}
@ -27,8 +27,11 @@
\input{\dir/dist/full.tex}
\loadFull
\else
\ifx \temp\letter
\ifx \temp\letters
\typeout{[CustomLaTeXHelperLoader]: Loading config letter}
\input{\dir/dist/minimal.tex}
\loadMinimal
% \input{\dir/config/config.tex}
\input{\dir/dist/letter.tex}
\else
\typeout{[CustomLaTeXHelperLoader]: INVALID CONFIG SPECIFIED, NOTHING LOADED!}

View File

@ -396,7 +396,7 @@
"\\documentclass[12pt,a4paper]{scrlttr2}\n",
"\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!",
"\\input{\\dir/include.tex}",
"\\load{recommended}\n",
"\\load{letter}\n",
"% Subject",
"\\setkomavar{subject}{$1}",
"\\begin{document}\\raggedright",