gpt4 book ai didi

latex - 如何使横向模式在双面书中正确旋转?

转载 作者:行者123 更新时间:2023-12-01 11:06:40 28 4
gpt4 key购买 nike

如何在双面书中使用 pdflscape(或其他一些?)包,以便始终旋转横向模式,使页面顶部指向书的中间?默认情况下,横向模式似乎不会那样做?

所以我希望不时有一个横向模式的页面,但它应该正确旋转。这可能会使某些横向页面难以在屏幕上阅读,因为它们会被翻转,但打印效果会好得多。

最佳答案

您的要求实际上真的很难,请尝试将以下内容添加到您的序言中:

\makeatletter
\global\let\orig@begin@landscape=\landscape%
\global\let\orig@end@landscape=\endlandscape%
\gdef\@true{1}
\gdef\@false{0}
\gdef\landscape{%
\global\let\within@landscape=\@true%
\orig@begin@landscape%
}%
\gdef\endlandscape{%
\orig@end@landscape%
\global\let\within@landscape=\@false%
}%
\@ifpackageloaded{pdflscape}{%
\gdef\pdf@landscape@rotate{\PLS@Rotate}%
}{
\gdef\pdf@landscape@rotate#1{}%
}
\let\latex@outputpage\@outputpage
\def\@outputpage{
\ifx\within@landscape\@true%
\if@twoside%
\ifodd\c@page%
\gdef\LS@rot{\setbox\@outputbox\vbox{%
\pdf@landscape@rotate{-90}%
\hbox{\rotatebox{90}{\hbox{\rotatebox{180}{\box\@outputbox}}}}}%
}%
\else%
\gdef\LS@rot{\setbox\@outputbox\vbox{%
\pdf@landscape@rotate{+90}%
\hbox{\rotatebox{90}{\hbox{\rotatebox{0}{\box\@outputbox}}}}}%
}%
\fi%
\else%
\gdef\LS@rot{\setbox\@outputbox\vbox{%
\pdf@landscape@rotate{+90}%
\hbox{\rotatebox{90}{\hbox{\rotatebox{0}{\box\@outputbox}}}}}%
}%
\fi%
\fi%
\latex@outputpage%
}
\makeatother

关于latex - 如何使横向模式在双面书中正确旋转?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4982219/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com