我的文档中有两页是横向格式的。我的问题:换行符设置得太早了(在行的一半)。我检查了我的代码,问题似乎是“bigfoot”:当我删除它时,它就可以正常工作了。但是,我需要 bigfoot 包来处理文档中的其他元素,因此我想问一下如何解决这个问题?
\RequirePackage[patch]{kvoptions}
\documentclass[open=any,12pt,oneside,headings=standardclasses,chapterprefix=false,pointlessnumbers]{scrbook} %headsepline
\let\Tiny=\tiny
\addtolength{\headsep}{-.5\baselineskip} %abstand kopfzeile text kleiner
\usepackage{scrbase}
\providecommand*{\Ifstr}{\ifstr}
\usepackage[automark,headsepline=.5pt]{scrlayer-scrpage}
\clearpairofpagestyles
\renewcommand*{\headfont}{\normalfont}
\ohead{\pagemark}
\ihead{\headmark}
\ofoot{}
\renewcommand*{\chapterpagestyle}{empty}
\usepackage{scrlayer}
\DeclareNewLayer[
background,
rightmargin,
contents={%
\parbox[\layerheight][c]{\dimexpr\footskip+\footheight\relax}{%
\hfill\rotatebox{90}{\pagemark}}}
]{lscape.foot}
\DeclareNewLayer[
background,
textarea,
addhoffset=\dimexpr-\headsep-\headheight\relax,
width=\dimexpr\headsep+\headheight\relax,
contents={\hfill\rotatebox{90}{\headmark}\hspace*{\headsep}}
]{lscape.head}
\DeclareNewPageStyleByLayers{lscape}{}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{bigfoot}
\begin{document}
\section{Introduction}
Hallo\footnote{sdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdfsdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdfsdfdsfsdfsdf sdfdsfsdfsdf}
\newpage
\begin{landscape}
\pagestyle{lscape}
sdfdsfsdfsdf\footnote{sdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdfsdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdf sdfdsfsdfsdfsdfdsfsdfsdf sdfdsfsdfsdf}
\end{landscape}
\end{document}
答案1
尝试
\makeatletter
\AddToHook{env/landscape/begin}{\MFL@columnwidth\textheight}
\makeatother.
这假设当前的 LaTeX。