这里有一些新手开始学习 LaTeX。
我目前正在探索 KOMA scrlttr2。为此,我尝试重新创建以下字母,但在这样做时遇到了一些问题:
我不知道如何实现那些像图片中用红框标记的边注。我尝试使用 addmargin,但这完全破坏了布局(尤其是位置变量的布局)
我感谢任何帮助。
您可以在此处找到我尝试重新创建的电子邮件:https://wikileaks.org/bnd-inquiry/docs/MAD/MAT%20A%20MAD-2b.pdf
谢谢,
戴夫
代码
\documentclass[11pt, a4paper, oneside, ngerman, firsthead=false]{scrlttr2}
\usepackage[ngerman]{babel}
\usepackage{fontspec}
\setmainfont{Arial}
\setmonofont{Courier New}
% ---------------------------------------------------------------------------------------------------- %
\KOMAoption{locfield}{wide}
\setkomavar{location}{
\setlength{\parskip}{0pt}
\sffamily\raggedright\par
\fontsize{8}{8}\selectfont
\Ifkomavarempty{fromname}{}{\textbf{\usekomavar{fromname}}\\[1.5pt]}
\jobtitle\\[1.5pt]
\vspace{1em}
\Ifkomavarempty{fromaddress}{}{\usekomavar{fromaddress}\\[1.5pt]}
\Ifkomavarempty{fromzipcode}{}{\usekomavar{fromzipcode}\\[1.5pt]}
\vspace{1em}
\Ifkomavarempty{fromphone}{}{\usekomavar{fromphone}\\[1.5pt]}
\Ifkomavarempty{fromfax}{}{\usekomavar{fromfax}\\[1.5pt]}
\Ifkomavarempty{fromemail}{}{\usekomavar{fromemail}\\[1.5pt]}
}
% ---------------------------------------------------------------------------------------------------- %
\setkomavar{backaddress}{Bundesministerium~der~Verteidigung,~11055~Berlin}
\setkomavar{fromname}{Max Mustermann}
\newcommand{\jobtitle}{Beauftragter~des~Bundesministeriums~der\\Verteidigung~im~1.~Untersuchungsausschuss~der\\18.~Wahlperiode}
\setkomavar{fromaddress}{Stauffenbergstraße~18,~10785~Berlin}
\setkomavar{fromzipcode}{11055~Berlin}
\setkomavar{fromphone}{+49~(0)12~34-56-7890}
\setkomavar{fromfax}{+49~(0)12~34-567890}
\setkomavar{fromemail}{[email protected]}
\setkomavar{subject}{My Subject}
% ---------------------------------------------------------------------------------------------------- %
\begin{document}
\begin{letter}{RECIPIENT}
\opening{Opening}
Text...
\end{letter}
\end{document}