
我想使用 KOMA 變量,myref
但我不希望refline
出現在我的文件中(因為我打算將其放在myref
其他地方)。不過,refline=false
似乎沒有什麼效果。我怎樣才能讓反射完全消失?
MWE(沒有 refline 消失):
\documentclass{scrlttr2}
\usepackage[british]{babel}
\setkomavar{myref}{letterone}
%\KOMAoptions{refline=false} %%This does NOT WORK
\begin{document}
\begin{letter}{Mrs Mabel Canary\\24 The Street\\Some Village\\
Some Town\\Noshire\\AB1 2YZ}
\opening{Dear Mrs~Canary}
This is an imaginary letter.
This is the second paragraph of the letter.
\closing{Yours sincerely}
\ps PS: this is a postscript.
\encl{Photocopy of something interesting\\
Photocopy of something rather dull}
\cc{Prof Important Person\\
Dr Bor Ing}
\end{letter}
\end{document}
答案1
用於\removereffields
從引用中刪除除日期之外的所有欄位:
\documentclass{scrlttr2}
\usepackage[british]{babel}
\setkomavar{myref}{letterone}
\removereffields% <- added
\begin{document}
\begin{letter}{Mrs Mabel Canary\\24 The Street\\Some Village\\
Some Town\\Noshire\\AB1 2YZ}
\opening{Dear Mrs~Canary}
This is an imaginary letter.
This is the second paragraph of the letter.
\closing{Yours sincerely}
\ps PS: this is a postscript.
\encl{Photocopy of something interesting\\
Photocopy of something rather dull}
\cc{Prof Important Person\\
Dr Bor Ing}
\end{letter}
\end{document}