在 TeXLive 2016 下,我遇到以下代码的问题:
\documentclass[mpinclude=true]{scrbook}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\usepackage{scrlayer-notecolumn}
\begin{document}
This is \makenote{margin note} test.
\end{document}
它适用于 LaTeX 或 XeLaTeX,但 LuaLaTeX 会抛出错误:
! Undefined control sequence.
<argument> ...ue {slncpage}}{\noexpand \number \scr@lastypos
}{margin note}}
l.10 This is \makenote{margin note}
test.
答案1
尝试一下,看看是否适合你
\documentclass[mpinclude=true]{scrbook}
\IfFileExists{luatex85.sty}{\usepackage{luatex85}}{}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\usepackage{scrlayer-notecolumn}
\begin{document}
This is \makenote{margin note} test.
\end{document}