Fix letters + improvements for them. More fixes to come
This commit is contained in:
parent
b8276dcf2f
commit
ffe81249b0
@ -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
BIN
examples/letter/letter.pdf
Normal file
Binary file not shown.
17
examples/letter/letter.tex
Normal file
17
examples/letter/letter.tex
Normal 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}
|
@ -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!}
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user