• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョンeefcb4ebcd5c8290d8f23459194e35584b517258 (tree)
日時2014-11-22 21:34:19
作者Kazuki Maeda <kmaeda@kmae...>
コミッターKazuki Maeda

ログメッセージ

lltjp-geometry.sty: modify \Gm@clean.

変更サマリ

差分

--- a/src/patches/lltjp-geometry.sty
+++ b/src/patches/lltjp-geometry.sty
@@ -32,9 +32,9 @@
3232 \ifx\Gm@bmargin\@undefined\else\advance\@tempcnta1\relax\fi
3333 \Gm@cnth\@tempcnta
3434 \else
35- \ifx\Gm@lmargin\@undefined\else\advance\@tempcnta4\relax\fi
35+ \ifx\Gm@rmargin\@undefined\else\advance\@tempcnta4\relax\fi
3636 \ifGm@vbody\advance\@tempcnta2\relax\fi
37- \ifx\Gm@rmargin\@undefined\else\advance\@tempcnta1\relax\fi
37+ \ifx\Gm@lmargin\@undefined\else\advance\@tempcnta1\relax\fi
3838 \Gm@cntv\@tempcnta
3939 \fi
4040 \ifcase\@tempcnta
@@ -82,6 +82,22 @@
8282 ^^J\@spaces `#2' (\@nameuse{Gm@#2}) is ignored}%
8383 \Gm@detiv{#2}{#3}{#4}{#2}%
8484 \else\fi}%
85+\def\Gm@clean{%
86+ \ifnum\Gm@cnth<4\let\Gm@tmargin\@undefined\fi
87+ \ifodd\Gm@cnth\else\let\Gm@bmargin\@undefined\fi
88+ \ifnum\Gm@cntv<4\let\Gm@rmargin\@undefined\fi
89+ \ifodd\Gm@cntv\else\let\Gm@lmargin\@undefined\fi
90+ \ifGm@hbody\else
91+ \let\Gm@hscale\@undefined
92+ \let\Gm@width\@undefined
93+ \let\Gm@textwidth\@undefined
94+ \fi
95+ \ifGm@vbody\else
96+ \let\Gm@vscale\@undefined
97+ \let\Gm@height\@undefined
98+ \let\Gm@textheight\@undefined
99+ \fi
100+ }%
85101 \def\Gm@adjustpaper{%
86102 \ifdim\paperwidth>\p@\else
87103 \PackageError{geometry}{%
@@ -109,7 +125,7 @@
109125 \Gm@adjustmp
110126 \Gm@adjustbody
111127 \Gm@detall{h}{width}{tmargin}{bmargin}%
112- \Gm@detall{v}{height}{lmargin}{rmargin}%
128+ \Gm@detall{v}{height}{rmargin}{lmargin}%
113129 \setlength\textwidth{\Gm@width}%
114130 \setlength\textheight{\Gm@height}%
115131 \setlength\topmargin{\Gm@tmargin}%
旧リポジトリブラウザで表示