English 中文(简体)
如何使横向模式在一本双面书中正确旋转?
原标题:How to make landscape mode rotate properly in a twoside book?
  • 时间:2011-02-13 03:17:25
  •  标签:
  • latex

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

因此,我希望不时有一个横向模式的页面,但它应该正确旋转。这可能会使一些横向页面很难在屏幕上阅读,因为它们会被翻转,但打印起来会更好。

最佳回答

你的要求实际上很难,试着在序言中添加以下内容:

makeatletter
globalletorig@begin@landscape=landscape%
globalletorig@end@landscape=endlandscape%
gdef@true{1}
gdef@false{0}
gdeflandscape{%
    globalletwithin@landscape=@true%
    orig@begin@landscape%
}%
gdefendlandscape{%
    orig@end@landscape%
    globalletwithin@landscape=@false%
}%
@ifpackageloaded{pdflscape}{%
    gdefpdf@landscape@rotate{PLS@Rotate}%
}{
    gdefpdf@landscape@rotate#1{}%
}
letlatex@outputpage@outputpage
def@outputpage{
    ifxwithin@landscape@true%
        if@twoside%
            ifoddc@page%
                gdefLS@rot{setbox@outputboxvbox{%
                    pdf@landscape@rotate{-90}%
                    hbox{
otatebox{90}{hbox{
otatebox{180}{ox@outputbox}}}}}%
                }%
            else%
                gdefLS@rot{setbox@outputboxvbox{%
                    pdf@landscape@rotate{+90}%
                    hbox{
otatebox{90}{hbox{
otatebox{0}{ox@outputbox}}}}}%
                }%
            fi%
        else%
            gdefLS@rot{setbox@outputboxvbox{%
                pdf@landscape@rotate{+90}%
                hbox{
otatebox{90}{hbox{
otatebox{0}{ox@outputbox}}}}}%
            }%
        fi%
    fi%
    latex@outputpage%
}
makeatother
问题回答

暂无回答




相关问题
Effective Version Control for Slides

I have to maintain a huge set of training material in forms of slides. At a first glance, I ve noticed there s no support for version control in OpenOffice OOImpress (but I might be wrong on this). ...

Maths in LaTex table of contents

I am trying to add a table of contents for my LaTex document. The issue I am having is that this line: subsubsection{The expectation of (X^2)} Causes an error in the file that contains the ...

Using vim s `gqap sometimes indents unusually

For the life of me, I cannot figure out the cause of this: when writing in LaTeX documents, I like to keep my line width to maximum of 80 characters. As such, I will execute the vim command gqap and ...

aligning math equations in Latex

I am trying to align the following equations around the equal sign. What can I do? Thanks! I am using the AMSMath package $$mddot{x}_{1}-K(x_{2}+x_{12})+C(dot{x}_{12}+dot{x}_{2})+2Cdot{x}_{1} ...

LaTeX output does not update

I have just begun using LaTeX. I am working in Windows and am using TeXnicCenter as my editor. When I build and output, having the following code: documentclass{article} egin{document} This is a ...

How to put line break in a math

I d like to express the following sentence (source_location is also italic, it s not correctly rendered): Each entry has a list of tuple: < source_location, R/W, trip_counter, occurrence, killed ...

热门标签