完全刪除 scrlttr2 中的 refline

完全刪除 scrlttr2 中的 refline

我想使用 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}

在此輸入影像描述

相關內容