Scrartcl 文档模板中未定义 (Opening、Encl、Subject) 控制序列

Scrartcl 文档模板中未定义 (Opening、Encl、Subject) 控制序列

你好,我正在使用这个 overleaf 模板来制作基于 André Miede 的经典论文模板的演示信:

https://www.overleaf.com/latex/templates/carta-de-apresentacao-template/gpwkqmqwncsc

这封信运行得很好,但一些字母类型的命令似乎未定义。它们在模板中的样子如下:

\newcommand{\ToAddr}[1]{\noindent \\ #1\vspace{1em}}
\newcommand{\LetterDate}[1]{\hfill #1\par}
\newcommand{\Subject}[1]{\hangindent=2em\hangafter=0\justifying\textbf{Sub: #1}\par\vspace{0.5em}}
\newcommand{\Opening}[1]{\justifying #1\par\vspace{1em}}
\newcommand{\Sign}[1]{\vspace{2em}\noindent Sincerely yours,\vspace{1em}\\ #1\par}
%\newcommand{\Encl}[1]{\vspace{1em}\noindent\footnotesize\color{Maroon}\emph{Encl. #1}\\ #1\par}

尝试使用 \Opening、\Subject 和 \Encl 会产生未定义的命令错误。这是打开的命令:

\Opening #1->\justifying 
                         #1\par \vspace {1em}
l.54 \Opening{Hi}
                 
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

我认为问题是 scrartcl 文档中缺少一个包,但我找不到它。

欢迎提出任何建议。

答案1

ragged2e包定义了命令\justifying(尽管几乎没有任何情况它会做任何有用的事情,因为默认的对齐文本)。

相关内容