copy
几天以来,即使在MWE 中,选项scrlttr2
也会导致错误
./samplefile.tex:139: 未定义控制序列。\iterate ...arker }\AtBeginShipoutOriginalShipout \box \AtBeginShipoutBox \r...
l.139 \end{document}
如果我丰富这封信(删除%
MWE 中的),我就会遇到真正的麻烦:它会在原始信件的页面后插入一个空白页,复制页面会向右移动,会scrheadings
写在第一页的页眉上。使用我的 MWE,我只能重现错误消息和第一页的覆盖页眉,但没关系,因为我很确定导致向右移动等的错误是相同的,即\AtBeginShipoutOriginalShipout \box \AtBeginShipoutBox
% -*- mode: latex; TeX-engine: luatex; coding: utf-8; -*-
\documentclass[copy
% ,fromrule=aftername,fromalign=right,
]{scrlttr2}
% \PassOptionsToPackage{num,ngerman}{isodate}
\PreventPackageFromLoading{fixltx2e}
\usepackage[main=ngerman]{babel}
% \usepackage{calc}
% \usepackage{isodate}
% \usepackage{scrlayer-scrpage}
\usepackage{fontspec}
% \makeatletter
% \lohead{Ich Selbst}
% \rohead{\printdate{2020-10-19}}
% \pagestyle{scrheadings}
% \makeatother
% \setkomavar{fromname}{Ich Selbst}
% \setkomavar{fromaddress}{\parbox[t]{\widthof{Sample~Street~123}}{Sample Street 123\\12345 Stadt}}
% \setkomavar{date}{\printdate{2020-10-19}}
% \setkomavar{place}{Stadt}
\setkomavar{signature}{}
\begin{letter}{Herbie\\
Herbie Stadt}
\opening{Lieber Herbie,}
bla
\closing{Viele Grüße}
\end{letter}
\end{document}