OSDN Git Service

ltjclasses.dtx: Add patch for geometry.sty to ltjt*.cls.
authorKazuki Maeda <kmaeda@kmaeda.net>
Sat, 7 Jun 2014 20:22:11 +0000 (05:22 +0900)
committerKazuki Maeda <kmaeda@kmaeda.net>
Sat, 7 Jun 2014 20:22:11 +0000 (05:22 +0900)
20 files changed:
src/ltjarticle.cls
src/ltjbk10.clo
src/ltjbk11.clo
src/ltjbk12.clo
src/ltjbook.cls
src/ltjclasses.dtx
src/ltjreport.cls
src/ltjsize10.clo
src/ltjsize11.clo
src/ltjsize12.clo
src/ltjtarticle.cls
src/ltjtbk10.clo
src/ltjtbk11.clo
src/ltjtbk12.clo
src/ltjtbook.cls
src/ltjtreport.cls
src/ltjtsize10.clo
src/ltjtsize11.clo
src/ltjtsize12.clo
test/test12-ltjtarticle.pdf

index 8775fcb..1986cdb 100644 (file)
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{ltjarticle}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
  Standard LuaLaTeX-ja class]
 \RequirePackage{luatexja}
+\RequirePackage{filehook}
 \newcounter{@paper}
 \newif\if@landscape \@landscapefalse
 \newcommand{\@ptsize}{}
index 34dcafa..fafef11 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjbk10.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xpt{15}%
index e91e26e..200fbec 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjbk11.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xipt{15.5}%
index 8ea4e74..7b0e443 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjbk12.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xiipt{16.5}%
index 5a68167..e2329b6 100644 (file)
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{ltjbook}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
  Standard LuaLaTeX-ja class]
 \RequirePackage{luatexja}
+\RequirePackage{filehook}
 \newcounter{@paper}
 \newif\if@landscape \@landscapefalse
 \newcommand{\@ptsize}{}
index 904eea8..d9322f9 100644 (file)
@@ -76,7 +76,8 @@
 %   (ありがとうございます、鈴木た@MILNさん)}
 % \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがとう、ymtさん。}
 % \changes{v1.6-ltj}{2011/09/27}{jclasses.dtx v1.6 をベースにLua\LaTeX-ja用に修正。}
-% \changes{v1.6-ltj-2}{2013/06/06}{jclasses.dtx luatexja.cfgに対応.}
+% \changes{v1.6-ltj-2}{2013/06/06}{luatexja.cfgに対応.}
+% \changes{v1.6-ltj-3}{2014/06/08}{縦組みクラスの時のgeometry.styに対応.}
 % \fi
 %
 % \iffalse
 %<11pt&bk>\ProvidesFile{ltjtbk11.clo}
 %<12pt&bk>\ProvidesFile{ltjtbk12.clo}
 %</tate>
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
 %<article|report|book> Standard LuaLaTeX-ja class]
 %<10pt|11pt|12pt>  Standard LuaLaTeX-ja file (size option)]
 %<*driver>
 % \end{quotation}
 % のエラーが起こった場合は、|lualatex-math|パッケージを読み込んでみて下さい。
 % \item 出力PDFの用紙サイズが自動的に設定されるようにしてあります。
+% \item 縦組みクラスにおいて、|geometry|パッケージを読み込んだときに意図通りにならない問題に対応しました。
 % \end{itemize}
 %
 % \section{Lua\TeX-ja の読み込み}
 %<*article|report|book>
 \RequirePackage{luatexja}
 %    \end{macrocode}
+% 縦組みの場合は|geometry|対応のために|filehook|も読み込んでおきます。
+%    \begin{macrocode}
+\RequirePackage{filehook}
+%    \end{macrocode}
 %
 % \section{オプションスイッチ}
 % ここでは、後ほど使用するいくつかのコマンドやスイッチを定義しています。
   \setlength\paperheight {257mm}
   \setlength\paperwidth  {182mm}}
 %    \end{macrocode}
+% 縦組みクラスについて、|geometry|パッケージが読み込まれると|\textwidth|と|\textheight|が
+% ひっくり返ってしまう問題に対処します。
+%    \begin{macrocode}
+%<*tate>
+\AtEndOfPackageFile{geometry}{%
+    \setlength{\@tempdima}{\textheight}%
+    \setlength{\textheight}{\textwidth}%
+    \setlength{\textwidth}{\@tempdima}}
+%</tate>
 %
 % \subsection{サイズオプション}
 % 基準となるフォントの大きさを指定するオプションです。
 %
 % \subsection{組方向オプション}
 % このオプションが指定されると、縦組で組版をします。
-% しかしLua\TeX-jaではまだ縦組は未対応なのでコメントアウトします。
 % \changes{v1.0g}{1997/01/25}{Insert \cs{hbox}, to switch tate-mode.}
 % \changes{v1.1d}{1997/02/05}{開始ページがおかしくなるのを修正}
 % \changes{v1.1f}{1997/07/08}{縦組時にベースラインがおかしくなるのを修正}
index 6d1b491..3d119f9 100644 (file)
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{ltjreport}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
  Standard LuaLaTeX-ja class]
 \RequirePackage{luatexja}
+\RequirePackage{filehook}
 \newcounter{@paper}
 \newif\if@landscape \@landscapefalse
 \newcommand{\@ptsize}{}
index 1aead6f..2593817 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjsize10.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xpt{15}%
index a31c7cd..010ca2d 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjsize11.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xipt{15.5}%
index 16d1a5b..f4bd50f 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjsize12.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xiipt{16.5}%
index 108522d..5647ffb 100644 (file)
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{ltjtarticle}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
  Standard LuaLaTeX-ja class]
 \RequirePackage{luatexja}
+\RequirePackage{filehook}
 \newcounter{@paper}
 \newif\if@landscape \@landscapefalse
 \newcommand{\@ptsize}{}
 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
   \setlength\paperheight {257mm}
   \setlength\paperwidth  {182mm}}
+\AtEndOfPackageFile{geometry}{%
+    \setlength{\@tempdima}{\textheight}%
+    \setlength{\textheight}{\textwidth}%
+    \setlength{\textwidth}{\@tempdima}}
 \if@compatibility
   \renewcommand{\@ptsize}{0}
 \else
index 1c1f613..ef1f066 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjtbk10.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xpt{17}%
index f1e5128..769e3d0 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjtbk11.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xipt{17}%
index 4b0e525..3c1d393 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjtbk12.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xiipt{18}%
index 2e057ce..1846889 100644 (file)
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{ltjtbook}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
  Standard LuaLaTeX-ja class]
 \RequirePackage{luatexja}
+\RequirePackage{filehook}
 \newcounter{@paper}
 \newif\if@landscape \@landscapefalse
 \newcommand{\@ptsize}{}
 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
   \setlength\paperheight {257mm}
   \setlength\paperwidth  {182mm}}
+\AtEndOfPackageFile{geometry}{%
+    \setlength{\@tempdima}{\textheight}%
+    \setlength{\textheight}{\textwidth}%
+    \setlength{\textwidth}{\@tempdima}}
 \if@compatibility
   \renewcommand{\@ptsize}{0}
 \else
index 52ccfd8..ccc95e1 100644 (file)
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{ltjtreport}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
  Standard LuaLaTeX-ja class]
 \RequirePackage{luatexja}
+\RequirePackage{filehook}
 \newcounter{@paper}
 \newif\if@landscape \@landscapefalse
 \newcommand{\@ptsize}{}
 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
   \setlength\paperheight {257mm}
   \setlength\paperwidth  {182mm}}
+\AtEndOfPackageFile{geometry}{%
+    \setlength{\@tempdima}{\textheight}%
+    \setlength{\textheight}{\textwidth}%
+    \setlength{\textwidth}{\@tempdima}}
 \if@compatibility
   \renewcommand{\@ptsize}{0}
 \else
index 2e01cd7..4ebd627 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjtsize10.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xpt{17}%
index 250afb4..87df649 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjtsize11.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xipt{17}%
index e661c85..36f0f7b 100644 (file)
@@ -39,7 +39,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{ltjtsize12.clo}
-  [2013/06/06 v1.6-ltj-2
+  [2014/06/08 v1.6-ltj-3
   Standard LuaLaTeX-ja file (size option)]
 \renewcommand{\normalsize}{%
     \@setfontsize\normalsize\@xiipt{18}%
index 8fcb2ad..4faac91 100644 (file)
Binary files a/test/test12-ltjtarticle.pdf and b/test/test12-ltjtarticle.pdf differ