
Я хочу использовать переменные KOMA, например myref
, но не хочу, refline
чтобы они появлялись в моем документе (так как я собираюсь поместить их myref
в другое место). Однако, refline=false
похоже, это не имеет никакого эффекта. Как мне сделать так, чтобы рефлайн полностью исчез?
MWE (без исчезновения рефлайна):
\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}