summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/geometry
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-13 23:53:33 +0000
committerKarl Berry <karl@freefriends.org>2010-09-13 23:53:33 +0000
commit19908bf03185813a2c3bb24b2db83f04978c28b9 (patch)
tree17cf74f91ba02731ab528dc1973cb8d9fddc5ac6 /Master/texmf-dist/source/latex/geometry
parenta90c8f1327404390540ffdd03ac9f3db374c92b9 (diff)
geometry 5.6 (12sep10)
git-svn-id: svn://tug.org/texlive/trunk@19716 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/geometry')
-rw-r--r--Master/texmf-dist/source/latex/geometry/geometry.dtx56
-rw-r--r--Master/texmf-dist/source/latex/geometry/geometry.ins2
2 files changed, 40 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/geometry/geometry.dtx b/Master/texmf-dist/source/latex/geometry/geometry.dtx
index 67c5479b531..32c24d0d36c 100644
--- a/Master/texmf-dist/source/latex/geometry/geometry.dtx
+++ b/Master/texmf-dist/source/latex/geometry/geometry.dtx
@@ -39,12 +39,12 @@
%</ignore>
%<package|driver>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{geometry}
-%<package> [2010/07/13 v5.5 Page Geometry]
+%<package> [2010/09/12 v5.6 Page Geometry]
%<*install>
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: geometry 2010/07/13 v5.5 Page Geometry}
+\Msg{* Package: geometry 2010/09/12 v5.6 Page Geometry}
\Msg{************************************************************************}
\keepsilent
@@ -117,7 +117,7 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
%</driver>
% \fi
%
-% \CheckSum{2677}
+% \CheckSum{2680}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -1615,7 +1615,7 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
%
% \section{Examples}
%
-% \begin{itemize}
+% \begin{enumerate}
% \item A onesided page layout with the text area centered in the paper.
% The examples below have the same result because the horizontal margin ratio
% is set |1:1| for oneside by default.
@@ -1716,6 +1716,21 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
% You can add |dvips| option, that is useful to preview it with proper
% paper size by |dviout| or |xdvi|.
%
+% \item Changing the layout of the first page and leaving the others
+% as default before loading \Gm. Use |pass| option, |\newgeometry|
+% and |\restoregeometry|.
+% \begin{verbatim}
+% \documentclass{book}
+% \usepackage[pass]{geometry}
+% % 'pass' disregards the package layout,
+% % so the original 'book' layout is memorized here.
+% \begin{document}
+% \newgeometry{margin=1cm}% changes the first page dimensions.
+% Page 1
+% \restoregeometry % restores the original 'book' layout.
+% Page 2 and more
+% \end{document}\end{verbatim}
+%
% \item A complex page layout.
% \begin{verbatim}
% \usepackage[a5paper, landscape, twocolumn, twoside,
@@ -1723,7 +1738,7 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
% bottom=1cm, foot=.7cm, includefoot, textheight=11cm, heightrounded,
% columnsep=1cm, dvips, verbose]{geometry}\end{verbatim}
% Try typesetting it and checking out the result yourself. |:-)|
-% \end{itemize}
+% \end{enumerate}
%
% \section{Known problems}
% \begin{itemize}
@@ -1752,6 +1767,7 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
% Morten H\o{}gholm,
% Jonathan Kew,
% James Kilfiger,
+% Yusuke Kuroki,
% Jean-Marc Lasgouttes,
% Wlodzimierz Macewicz,
% Frank Mittelbach,
@@ -1781,20 +1797,20 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
% \begin{macrocode}
%<*package>
% \end{macrocode}
-% This package requires three other packages: \textsf{keyval} in
-% \LaTeX\ graphics bundle, \textsf{ifpdf} and \textsf{ifvtex} in
-% `oberdiek' bundle.
+% This package requires the following packages:
+% \textsf{keyval}, \textsf{ifpdf}, \textsf{ifvtex} and \textsf{ifxetex}.
% \begin{macrocode}
\RequirePackage{keyval}%
\RequirePackage{ifpdf}%
\RequirePackage{ifvtex}%
+\RequirePackage{ifxetex}%
% \end{macrocode}
%
% Internal switches are declared here.
% \begin{macrocode}
\newif\ifGm@verbose
\newif\ifGm@landscape
-\newif\ifGm@swap@papersize\Gm@swap@papersizefalse
+\newif\ifGm@swap@papersize
\newif\ifGm@includehead
\newif\ifGm@includefoot
\newif\ifGm@includemp
@@ -1803,7 +1819,7 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
\newif\ifGm@heightrounded
\newif\ifGm@showframe
\newif\ifGm@showcrop
-\newif\ifGm@pass\Gm@passfalse
+\newif\ifGm@pass
\newif\ifGm@resetpaper
\newif\ifGm@layout
\newif\ifGm@newgm
@@ -1993,6 +2009,8 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
% in |\newgeometry|.
% \begin{macrocode}
\def\Gm@initnewgm{%
+ \Gm@passfalse
+ \Gm@swap@papersizefalse
\Gm@dimlist={}
\Gm@hbodyfalse
\Gm@vbodyfalse
@@ -3244,7 +3262,8 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
% \begin{macro}{\Gm@detectdriver}
% The macro checks the typeset environment and changes the driver option
% if necessary. To make the engine detection more robust, the macro is
-% rewritten in the version 4 with packages \textsf{ifpdf} and \textsf{ifvtex}.
+% rewritten with packages \textsf{ifpdf}, \textsf{ifvtex} and
+% \textsf{ifxetex}.
% \begin{macrocode}
\def\Gm@detectdriver{%
% \end{macrocode}
@@ -3269,17 +3288,21 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
\Gm@setdriver{vtex}%
\fi
% \end{macrocode}
-% xetex
+% \cs{ifxetex} is defined in \textsf{ifxetex} package written by
+% Will Robertson.
% \begin{macrocode}
- \@ifundefined{XeTeXversion}{}{\Gm@setdriver{xetex}}%
+ \ifxetex
+ \Gm@setdriver{xetex}
+ \fi
% \end{macrocode}
% When the driver option is set by the user, check if it is valid or not.
% \begin{macrocode}
\else
\ifx\Gm@driver\Gm@xetex %%
- \@ifundefined{XeTeXversion}{\Gm@warning{%
- Wrong driver setting: `xetex'; trying `pdftex' driver}%
- \Gm@setdriver{pdftex}}{}%
+ \ifxetex\else
+ \Gm@warning{Wrong driver setting: `xetex'; trying `pdftex' driver}%
+ \Gm@setdriver{pdftex}
+ \fi
\fi
\ifx\Gm@driver\Gm@vtex
\ifvtex\else
@@ -3697,7 +3720,6 @@ the derived files: geometry.{sty,ins,drv}, geometry-samples.tex.
\newcommand{\newgeometry}[1]{%
\clearpage
\Gm@restore@org
- \Gm@swap@papersizefalse
\Gm@initnewgm
\Gm@newgmtrue
\setkeys{Gm}{#1}%
diff --git a/Master/texmf-dist/source/latex/geometry/geometry.ins b/Master/texmf-dist/source/latex/geometry/geometry.ins
index 655e0e56459..3d2b0496632 100644
--- a/Master/texmf-dist/source/latex/geometry/geometry.ins
+++ b/Master/texmf-dist/source/latex/geometry/geometry.ins
@@ -26,7 +26,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: geometry 2010/07/13 v5.5 Page Geometry}
+\Msg{* Package: geometry 2010/09/12 v5.6 Page Geometry}
\Msg{************************************************************************}
\keepsilent