📄 geometry.sty
字号:
\Gm@even@mp\@tempdimb \fi \fi \fi}%\@onlypreamble\Gm@mpfix\def\Gm@process{% \ifGm@pass \Gm@dorg \else \Gm@processdimlist \ifx\Gm@hmarginratio\@undefined \if@twoside \edef\Gm@hmarginratio{\Gm@Dhratiotwo}% \else \edef\Gm@hmarginratio{\Gm@Dhratio}% \fi \fi \ifx\Gm@vmarginratio\@undefined \edef\Gm@vmarginratio{\Gm@Dvratio}% \fi \Gm@checkpaper \ifGm@sworient \setlength\@tempdima{\paperwidth}% \setlength\paperwidth{\paperheight}% \setlength\paperheight{\@tempdima}% \Gm@setpaper(\strip@pt\paperwidth,\strip@pt\paperheight){pt}% \Gm@sworientfalse \fi \addtolength\paperwidth{-\Gm@bindingoffset}% \ifGm@includemp \Gm@mpfix \fi \ifGm@hbody \ifx\Gm@width\@undefined \ifx\Gm@hscale\@undefined \edef\Gm@width{\Gm@Dhscale\paperwidth}% \else \edef\Gm@width{\Gm@hscale\paperwidth}% \fi \fi \ifx\Gm@textwidth\@undefined\else \setlength\@tempdima{\Gm@textwidth}% \ifGm@includemp \advance\@tempdima\Gm@wd@mp \fi \edef\Gm@width{\the\@tempdima}% \fi \fi \ifGm@vbody \ifx\Gm@height\@undefined \ifx\Gm@vscale\@undefined \edef\Gm@height{\Gm@Dvscale\paperheight}% \else \edef\Gm@height{\Gm@vscale\paperheight}% \fi \fi \ifx\Gm@lines\@undefined\else \setlength\@tempdima{\baselineskip}% \multiply\@tempdima\Gm@lines \addtolength\@tempdima{\topskip}% \addtolength\@tempdima{-\baselineskip}% \edef\Gm@textheight{\the\@tempdima}% \fi \ifx\Gm@textheight\@undefined\else \setlength\@tempdima{\Gm@textheight}% \ifGm@includehead \addtolength\@tempdima{\headheight}% \addtolength\@tempdima{\headsep}% \fi \ifGm@includefoot \addtolength\@tempdima{\footskip}% \fi \edef\Gm@height{\the\@tempdima}% \fi \fi \Gm@detall{h}{width}{lmargin}{rmargin}% \Gm@detall{v}{height}{tmargin}{bmargin}% \setlength\textwidth{\Gm@width}% \setlength\textheight{\Gm@height}% \setlength\topmargin{\Gm@tmargin}% \setlength\oddsidemargin{\Gm@lmargin}% \addtolength\oddsidemargin{-1\Gm@truedimen in}% \ifGm@includemp \advance\textwidth-\Gm@wd@mp \advance\oddsidemargin\Gm@odd@mp \fi \if@mparswitch \setlength\evensidemargin{\Gm@rmargin}% \addtolength\evensidemargin{-1\Gm@truedimen in}% \ifGm@includemp \advance\evensidemargin\Gm@even@mp \fi \ifGm@compatii \ifx\Gm@twosideshift\@undefined \def\Gm@twosideshift{20\Gm@truedimen pt}% \fi \addtolength\oddsidemargin{\Gm@twosideshift}% \addtolength\evensidemargin{-\Gm@twosideshift}% \fi \else \evensidemargin\oddsidemargin \fi \advance\oddsidemargin\Gm@bindingoffset \addtolength\topmargin{-1\Gm@truedimen in}% \ifGm@includehead \addtolength\textheight{-\headheight}% \addtolength\textheight{-\headsep}% \else \addtolength\topmargin{-\headheight}% \addtolength\topmargin{-\headsep}% \fi \ifGm@includefoot \addtolength\textheight{-\footskip}% \fi \ifGm@heightrounded \setlength\@tempdima{\textheight}% \addtolength\@tempdima{-\topskip}% \@tempcnta\@tempdima \@tempcntb\baselineskip \divide\@tempcnta\@tempcntb \setlength\@tempdimb{\baselineskip}% \multiply\@tempdimb\@tempcnta \advance\@tempdima-\@tempdimb \multiply\@tempdima\tw@ \ifdim\@tempdima>\baselineskip \addtolength\@tempdimb{\baselineskip}% \fi \addtolength\@tempdimb{\topskip}% \textheight\@tempdimb \fi \addtolength\paperwidth{\Gm@bindingoffset}% \fi}%\@onlypreamble\Gm@process\def\Gm@showparams{% -------------------- Geometry parameters^^J% \ifGm@pass 'pass' is specified!! (disables the geometry layouter)^^J% \else paper: \ifx\Gm@paper\@undefined class default\else\Gm@paper\fi^^J% \Gm@checkbool{landscape}% twocolumn: \if@twocolumn\Gm@true\else--\fi^^J% twoside: \if@twoside\Gm@true\else--\fi^^J% asymmetric: \if@mparswitch --\else\if@twoside\Gm@true\else --\fi\fi^^J% h-parts: \Gm@lmargin, \Gm@width, \Gm@rmargin% \ifnum\Gm@cnth=\z@\space(default)\fi^^J% v-parts: \Gm@tmargin, \Gm@height, \Gm@bmargin% \ifnum\Gm@cntv=\z@\space(default)\fi^^J% hmarginratio: \ifnum\Gm@cnth<5 \ifnum\Gm@cnth=3--\else% \Gm@hmarginratio\fi\else--\fi^^J% vmarginratio: \ifnum\Gm@cntv<5 \ifnum\Gm@cntv=3--\else% \Gm@vmarginratio\fi\else--\fi^^J% lines: \@ifundefined{Gm@lines}{--}{\Gm@lines}^^J% \Gm@checkbool{heightrounded}% bindingoffset: \the\Gm@bindingoffset^^J% truedimen: \ifx\Gm@truedimen\@empty --\else\Gm@true\fi^^J% \Gm@checkbool{includehead}% \Gm@checkbool{includefoot}% \Gm@checkbool{includemp}% driver: \Gm@driver^^J% \fi -------------------- Page layout dimensions and switches^^J% \string\paperwidth\space\space\the\paperwidth^^J% \string\paperheight\space\the\paperheight^^J% \string\textwidth\space\space\the\textwidth^^J% \string\textheight\space\the\textheight^^J% \string\oddsidemargin\space\space\the\oddsidemargin^^J% \string\evensidemargin\space\the\evensidemargin^^J% \string\topmargin\space\space\the\topmargin^^J% \string\headheight\space\the\headheight^^J% \string\headsep\@spaces\the\headsep^^J% \string\footskip\space\space\space\the\footskip^^J% \string\marginparwidth\space\the\marginparwidth^^J% \string\marginparsep\space\space\space\the\marginparsep^^J% \string\columnsep\space\space\the\columnsep^^J% \string\skip\string\footins\space\space\the\skip\footins^^J% \string\hoffset\space\the\hoffset^^J% \string\voffset\space\the\voffset^^J% \string\mag\space\the\mag^^J% \if@twocolumn\string\@twocolumntrue\space\fi% \if@twoside\string\@twosidetrue\space\fi% \if@mparswitch\string\@mparswitchtrue\space\fi% \if@reversemargin\string\@reversemargintrue\space\fi^^J% (1in=72.27pt, 1cm=28.45pt)^^J% -----------------------}%\@onlypreamble\Gm@showparams\def\ProcessOptionsKV{\@ifnextchar[%] {\@ProcessOptionsKV}{\@ProcessOptionsKV[]}}%\def\@ProcessOptionsKV[#1]#2{% \let\@tempa\@empty \@tempcnta\z@ \if#1p\@tempcnta\@ne\else\if#1c\@tempcnta\tw@\fi\fi \ifodd\@tempcnta \edef\@tempa{\@ptionlist{\@currname.\@currext}}% \else \@for\CurrentOption:=\@classoptionslist\do{% \@ifundefined{KV@#2@\CurrentOption}% {}{\edef\@tempa{\@tempa,\CurrentOption,}}}% \ifnum\@tempcnta=\z@ \edef\@tempa{\@tempa,\@ptionlist{\@currname.\@currext}}% \fi \fi \edef\@tempa{\noexpand\setkeys{#2}{\@tempa}}% \@tempa \AtEndOfPackage{\let\@unprocessedoptions\relax}}%\@onlypreamble\ProcessOptionsKV\@onlypreamble\@ProcessOptionsKV\Gm@init\ProcessOptionsKV[c]{Gm}%\Gm@setdefaultpaper\def\Gm@setkeys{\setkeys{Gm}}%\@onlypreamble\Gm@setkeys\let\Gm@origExecuteOptions\ExecuteOptions\let\ExecuteOptions\Gm@setkeys\InputIfFileExists{geometry.cfg}{}{}%\let\ExecuteOptions\Gm@origExecuteOptions\ProcessOptionsKV[p]{Gm}%\Gm@process\AtBeginDocument{% \edef\Gm@orgw{\the\paperwidth}% \edef\Gm@orgh{\the\paperheight}% \ifGm@pass\else \ifnum\mag=\@m\else \Gm@magtooffset \divide\paperwidth\@m \multiply\paperwidth\the\mag \divide\paperheight\@m \multiply\paperheight\the\mag \fi \fi \Gm@checkdrivers \ifx\Gm@driver\Gm@pdftex \ifx\pdfpagewidth\@undefined \Gm@warning{`pdftex' option is invalid in this environment}% \else \setlength\pdfpagewidth{\Gm@orgw}% \setlength\pdfpageheight{\Gm@orgh}% \ifnum\mag=\@m\else\ifx\Gm@truedimen\Gm@true \setlength\paperwidth{\Gm@orgw}% \setlength\paperheight{\Gm@orgh}% \fi\fi \fi \fi \ifx\Gm@driver\Gm@vtex \ifx\VTeXversion\@undefined \Gm@warning{`vtex' option is invalid in this environment}% \else \mediawidth=\paperwidth \mediaheight=\paperheight \fi \fi \ifGm@special \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}% \ifx\Gm@driver\Gm@dvips\ifGm@landscape \AtBeginDvi{\special{! /landplus90 true store}}% \fi\fi \fi \ifGm@showframe \AtBeginDvi{% \moveright\@themargin% \vbox to\z@{\baselineskip\z@skip\lineskip\z@skip\lineskiplimit\z@% \vskip\topmargin\vbox to\z@{\vss\hrule width\textwidth}% \vskip\headheight\vbox to\z@{\vss\hrule width\textwidth}% \vskip\headsep\vbox to\z@{\vss\hrule width\textwidth}% \hbox to\textwidth{\llap{\vrule height\textheight}\hfil% \vrule height\textheight}% \vbox to\z@{\vss\hrule width\textwidth}% \vskip\footskip\vbox to\z@{\vss\hrule width\textwidth}% \vss}}% \AtBeginDvi{% \vbox to\z@{\baselineskip\z@skip\lineskip\z@skip\lineskiplimit\z@% \vskip-1\Gm@truedimen in\rlap{\hskip-1\Gm@truedimen in% \vbox to\z@{\vbox to\z@{\vss\hrule width\paperwidth}% \hbox to \paperwidth{\llap{\vrule height\paperheight}\hfil% \vrule height\paperheight}% \vbox to\z@{\vss\hrule width\paperwidth}% \vss}}\vss}}% \fi \ifGm@verbose\ifGm@pass\else\Gm@checkmp\fi\fi \ifGm@verbose\expandafter\typeout\else\expandafter\wlog\fi {\Gm@showparams}% \let\Gm@cnth\relax \let\Gm@cntv\relax \let\c@Gm@tempcnt\relax \let\Gm@bindingoffset\relax \let\Gm@wd@mp\relax \let\Gm@odd@mp\relax \let\Gm@even@mp\relax \let\Gm@orgw\relax \let\Gm@orgh\relax \let\Gm@dimlist\relax}%\def\geometry#1{% \Gm@clean \setkeys{Gm}{#1}% \Gm@process}%\@onlypreamble\geometry\endinput%%%% End of file `geometry.sty'.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -