ソースコードの管理場所
Révision | 75602dd7453d7eb221a1b98ebf9d4f71d21e7c0e (tree) |
---|---|
l'heure | 2014-11-22 22:02:26 |
Auteur | Kazuki Maeda <kmaeda@kmae...> |
Commiter | Kazuki Maeda |
lltjp-geometry.sty: modify \Gm@adjustbody.
@@ -118,6 +118,55 @@ | ||
118 | 118 | \setlength\Gm@layoutwidth{\paperheight}% |
119 | 119 | \setlength\Gm@layoutheight{\paperwidth}% |
120 | 120 | \fi}% |
121 | +\def\Gm@adjustbody{ | |
122 | + \ifGm@hbody | |
123 | + \ifx\Gm@width\@undefined | |
124 | + \ifx\Gm@hscale\@undefined | |
125 | + \Gm@defbylen{width}{\Gm@Dhscale\Gm@layoutwidth}% | |
126 | + \else | |
127 | + \Gm@defbylen{width}{\Gm@hscale\Gm@layoutwidth}% | |
128 | + \fi | |
129 | + \fi | |
130 | + \ifx\Gm@textwidth\@undefined\else | |
131 | + \setlength\@tempdima{\Gm@textwidth}% | |
132 | + \ifGm@includemp | |
133 | + \advance\@tempdima\Gm@wd@mp | |
134 | + \fi | |
135 | + \ifGm@includehead | |
136 | + \addtolength\@tempdima{\headheight}% | |
137 | + \addtolength\@tempdima{\headsep}% | |
138 | + \fi | |
139 | + \ifGm@includefoot | |
140 | + \addtolength\@tempdima{\footskip}% | |
141 | + \fi | |
142 | + \edef\Gm@width{\the\@tempdima}% | |
143 | + \fi | |
144 | + \fi | |
145 | + \ifGm@vbody | |
146 | + \ifx\Gm@height\@undefined | |
147 | + \ifx\Gm@vscale\@undefined | |
148 | + \Gm@defbylen{height}{\Gm@Dvscale\Gm@layoutheight}% | |
149 | + \else | |
150 | + \Gm@defbylen{height}{\Gm@vscale\Gm@layoutheight}% | |
151 | + \fi | |
152 | + \fi | |
153 | + \ifx\Gm@lines\@undefined\else | |
154 | + \ifdim\topskip<\ht\strutbox | |
155 | + \setlength\@tempdima{\topskip}% | |
156 | + \setlength\topskip{\ht\strutbox}% | |
157 | + \Gm@warning{\noexpand\topskip was changed from \the\@tempdima\space | |
158 | + to \the\topskip}% | |
159 | + \fi | |
160 | + \setlength\@tempdima{\baselineskip}% | |
161 | + \multiply\@tempdima\Gm@lines | |
162 | + \addtolength\@tempdima{\topskip}% | |
163 | + \addtolength\@tempdima{-\baselineskip}% | |
164 | + \edef\Gm@textheight{\the\@tempdima}% | |
165 | + \fi | |
166 | + \ifx\Gm@textheight\@undefined\else | |
167 | + \edef\Gm@height{\the\textheight}% | |
168 | + \fi | |
169 | + \fi}% | |
121 | 170 | \def\Gm@@process{% |
122 | 171 | \Gm@expandlengths |
123 | 172 | \Gm@adjustpaper |