From 58a84f1f518f7f818c4e2bca5dbe871461f8da7d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 28 Apr 2007 00:49:23 +0000 Subject: new latex package gmeometric (26apr07) git-svn-id: svn://tug.org/texlive/trunk@4202 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/gmeometric/README | 71 ++++++++ .../doc/latex/gmeometric/gmeometricDoc.pdf | Bin 0 -> 250252 bytes .../doc/latex/gmeometric/gmeometricDoc.tex | 28 ++++ .../texmf-dist/tex/latex/gmeometric/gmeometric.sty | 184 +++++++++++++++++++++ Master/texmf-dist/tpm/gmeometric.tpm | 27 +++ Master/texmf/lists/gmeometric | 8 + Master/texmf/tpm/collection-latexextra.tpm | 1 + 7 files changed, 319 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/gmeometric/README create mode 100644 Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.pdf create mode 100644 Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.tex create mode 100644 Master/texmf-dist/tex/latex/gmeometric/gmeometric.sty create mode 100644 Master/texmf-dist/tpm/gmeometric.tpm create mode 100644 Master/texmf/lists/gmeometric (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/gmeometric/README b/Master/texmf-dist/doc/latex/gmeometric/README new file mode 100644 index 00000000000..7fd5a054e15 --- /dev/null +++ b/Master/texmf-dist/doc/latex/gmeometric/README @@ -0,0 +1,71 @@ +The gmeometric.zip package +is a work of Grzegorz Murzynowski, + + + +1. Copyright 2006 by Grzegorz `Natror' Murzynowski + +This program is subject to the LaTeX Project Public License. +See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html +for the details of that license. + + +2. Introduction + +This package loads the `geometry' package by Hideo Umeki +and lets you to use its main command, \geometry, +not only in the preamble. + +This package requires the `gmutils' package. + + +3. Installation + +Just put the gmeometric.sty somewhere in the texmf/tex/latex branch. +Creating a /texmf/tex/latex/gm directory may be advisable if you +consider using other packages written by me. + +Then you should refresh your TeX distribution's files' +database most probably. + + +4. Contents + +The distribution of this package consists of the following six files. + +gmeometric.sty +README +gmeometricDoc.tex +gmeometricDoc.pdf + + +5. Documentation + +The last of the above files (the .pdf) is a documentation compiled +from the .sty file by running LaTeX on the gmeometricDoc.tex file twice, +then MakeIndex on the gmeometric.glo file, and then LaTeX +on gmeometricDoc.tex twice again. + +MakeIndex shell commands: + makeindex -r -s gmglo.ist -o gmeometricDoc.gls gmeometricDoc.glo +The -r switch is to forbid MakeIndex make implicit ranges since the +(code line) numbers will be hyperlinks. +The -s switch makes MakeIndex use the style file instead of the +default settings and the -o switch declares the not-default name of +the output file + +Compiling of the documentation requires the packages gmdoc.sty (with +the gmdocc.cls class), gmverb.sty, gmutils.sty, gmiflink.sty and also +some standard packages: hyperref.sty, color.sty, geometry.sty, +multicol.sty, lmodern.sty, fontenc.sty that should be installed on +your computer by default. + +The gmglo.ist file, a MakeIndex style for the changes' history, is +provided on CTAN in the gmdoc .zip archive and should +be put into some texmf/makeindex directory. + +If you have not installed the mwcls classes (available on CTAN and +present in TeX Lives e.g.), the result of your compilation may differ +a bit from the .pdf provided in this .zip archive in formattings: If +you have not installed mwcls, the standard article.cls will be +used. \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.pdf b/Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.pdf new file mode 100644 index 00000000000..28fbf8005a7 Binary files /dev/null and b/Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.pdf differ diff --git a/Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.tex b/Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.tex new file mode 100644 index 00000000000..7852bb48f88 --- /dev/null +++ b/Master/texmf-dist/doc/latex/gmeometric/gmeometricDoc.tex @@ -0,0 +1,28 @@ +\documentclass[noindex]{gmdocc} +\twocoltoc +\begin{document} +\GetFileInfo{gmeometric.sty} +\DocInput{gmeometric.sty}%e:/texmf/tex/latex/gm/ + +\PrintChanges +\thispagestyle{empty} + +\typeout{% + Produce change log with^^J% + makeindex -r -s gmglo.ist -o \jobnamewoe.gls \jobnamewoe.glo^^J + (gmglo.ist should be put into some texmf/makeindex directory.)^^J} + +\end{document} + +% The package is too small to make index of it. +\typeout{% + Produce index with^^J% + makeindex -r \jobnamewoe^^J} + + +% The following is just my GNU Emacs stuff. +% +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/gmeometric/gmeometric.sty b/Master/texmf-dist/tex/latex/gmeometric/gmeometric.sty new file mode 100644 index 00000000000..f12a8734aab --- /dev/null +++ b/Master/texmf-dist/tex/latex/gmeometric/gmeometric.sty @@ -0,0 +1,184 @@ +% +% \GetFileInfo{gmeometric.sty} +% \title{The \pk{gmeometric} Package\thfileinfo} +% \author{Grzegorz Murzynowski} +% \maketitle +% +% +% \begin{copyrnote} +% +%% Written by Grzegorz Murzynowski, +%% natror at o2 dot pl +%% +%% \copyright\,2006, 2007 by Grzegorz Murzynowski. +%% +%% This program is subject to the \LaTeX\ Project Public License. +%% See +%% \url{http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html} +%% for the details of that license. +%% +%% LPPL status: "author-maintained".\par +% +%\end{copyrnote} +% +% \CheckSum{61} +% \chschange{v0.69}{2007/4/26}{40} +% +%% \FileInfo + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{gmeometric} + [2007/04/26 v0.69 to allow the `geometry' macro in the document (GM)] + +%% +% +%% \division{Introduction, usage} +%% +%% This package allows you to use the |\geometry| macro, provided by +%% the \pk{geometry} v3.2 by Hideo Umeki, anywhere in a~document: +%% originally it's claused |\@onlypreamble| and the main work of +%% \pk{gmeometric} is to change that. +%% +%% Note it's rather queer to change the page layout \emph{inside} +%% a~document and it should be considered as drugs or alcohol: it's +%% O.K.\ only if you \emph{really} know what you're doing. +%% +%% In order to work properly, the macro should launch the |\clearpage| +%% or the |\cleardoublepage| to `commit' the changes. So, the +%% unstarred version trigges the first while the starred the +%% latter. If that doesn't work quite as expected, try to precede or +%% succede it with |\onecolumn| or |\twocolumn|. +%% +%% It's important that |\clear(double)page| launched by |\geometry| +%% not to be a~no-op, i.e., |\clear(double)page| immediately +%% preceding |\geometry| (nothing is printed in between) discards the +%% `commitment'. +%% +%% \stanza +%% You may use \pk{gmeometric} just like \pk{geometry} i.e., to specify +%% the layout as the package options: they shall be passed to +%% \pk{geometry}. +% +% +% \begin{gmlonely} +% \subdivision{Installation} +% +% Just put the \pk{gmeometric.sty} somewhere in the \file{texmf/\:tex/\:latex} +% branch. Creating a~\file{texmf/\:tex/\:latex/\:gm} directory may be advisable +% if you consider using other packages written by me. +% +% Then you should refresh your \TeX\ distribution's files' database +% most probably. +% \end{gmlonely} +% +% +% \subdivision{Contents of the \pk{gmeometric.zip} archive} +% +% The distribution of the \pk{gmeometric} package consists of the +% following four files. +% \begin{verse} +% \pk{gmeometric.sty}\\ +% \pk{README}\\ +% \pk{gmeometricDoc.tex}\\ +% \pk{gmeometricDoc.pdf} +% \end{verse} +% +% +% \begin{gmlonely} +% \subdivision{Compiling of the Documentation} +% +% The last of the above files (the \pk{.pdf}, i.e., \emph{this +% file}) is a~documentation compiled from the \pk{.sty} file by +% running \LaTeX\ (twice) on the \pk{gmeometricDoc.tex} file. +% Compiling of the documentation requires the packages: \pk{gmdoc} +% (\pk{gmdoc.sty} and \pk{gmdocc.cls}), \pk{gmverb.sty}, +% \pk{gmutils.sty}, \pk{gmiflink.sty} and also some standard +% packages: \pk{hyperref.sty}, \pk{color.sty}, \pk{geometry.sty}, +% \pk{multicol.sty}, \pk{lmodern.sty}, \pk{fontenc.sty} that should +% be installed on your computer by default. +% +% If you have not installed the \pk{mwart.cls} class (available on +% CTAN in \pk{mwcls} package), the result of your compilation may +% differ a bit from the \pk{.pdf} provided in this \pk{.zip} archive +% in formattings: If you have not installed \pk{mwart.cls}, the +% standard \pk{article.cls} class will be used. +% \end{gmlonely} +% +% +% \division{Usage} +% The only use of this package is to allow the |\geometry| command +% also inside the \env{document} (originally it's +% |\@onlypreamble|). To make |\geometry| work properly it may be +% advisable to `commit' the layout changes with (|\clearpage|, +% |\cleardoublepage| or |\newpage|) and maybe |\one/twocolumn|. +% +% Some layout commands should be put before |\one/twocolumn| and other +% after it. An example: +% +%\begin{verbatim} +% \thispagestyle{empty} +% +% \advance\textheight 3.4cm\relax +% \onecolumn +% \newpage +% +% \advance\footskip-1.7cm +% \geometry{hmargin=1.2cm,vmargin=1cm} +%\end{verbatim} +% +% And another: +%\begin{verbatim} +% \geometry{bottom=3.6cm} +%\end{verbatim} +% +% +% \division{The Code} + +\RequirePackage{gmutils}[2007/04/23]% this package defines the storing +% and restoring commands. + + +\RequirePackageWithOptions{geometry} + +% Let's remove some macros from the list to erase at begin document: +\let\do\not@onlypreamble + +\do\Gm@cnth +\do\Gm@cntv +\do\c@Gm@tempcnt +\do\Gm@bindingoffset +\do\Gm@wd@mp +\do\Gm@odd@mp +\do\Gm@even@mp +\do\Gm@orgw +\do\Gm@orgh +\do\Gm@dimlist + + +% Redefine |\geometry| to give it the starred version that clears +% a~double page when used in the document. The unstarred versions will +% do just |\clearpage|. Note that |\clear(double)page| makes no harm +% when used in the preamble. \CodeDefine\geometry +\def\geometry{% + \@ifstar{\gm@geometry{double}}{\gm@geometry{}}} + +% \CodeDefine\gm@geometry +\def\gm@geometry#1#2{% + \Gm@clean + \setkeys{Gm}{#2}% + \Gm@process + \csname clear#1page\endcsname}% + + +% \changes{v0.69}{2007/04/26}{The package main action rewritten to use +% \cs{not@onlypreamble} and not \cs{(Re)StoreMacros}} + + +\endinput +% \NoEOF + +% (For my GNU Emacs:) +%%% Local Variables: +%%% mode: doctex +%%% TeX-master: "../../../../LaTeX/TeXGuru/gmeometric/gmeometricDoc.tex" +%%% End: diff --git a/Master/texmf-dist/tpm/gmeometric.tpm b/Master/texmf-dist/tpm/gmeometric.tpm new file mode 100644 index 00000000000..94434780cab --- /dev/null +++ b/Master/texmf-dist/tpm/gmeometric.tpm @@ -0,0 +1,27 @@ + + + + gmeometric + Package + 2007/04/26 15:36:00 + + karl + The gmeometric package. + + + 258549 + + + +texmf-dist/tex/latex/gmeometric/gmeometric.sty +texmf-dist/tpm/gmeometric.tpm + + +texmf-dist/doc/latex/gmeometric/README +texmf-dist/doc/latex/gmeometric/gmeometricDoc.pdf +texmf-dist/doc/latex/gmeometric/gmeometricDoc.tex + + Package/gmeometric + + + diff --git a/Master/texmf/lists/gmeometric b/Master/texmf/lists/gmeometric new file mode 100644 index 00000000000..9fa2808f807 --- /dev/null +++ b/Master/texmf/lists/gmeometric @@ -0,0 +1,8 @@ +texmf-dist/doc/latex/gmeometric/README +texmf-dist/doc/latex/gmeometric/gmeometricDoc.pdf +texmf-dist/doc/latex/gmeometric/gmeometricDoc.tex + +texmf-dist/tex/latex/gmeometric/gmeometric.sty +texmf-dist/tpm/gmeometric.tpm + +texmf/lists/gmeometric diff --git a/Master/texmf/tpm/collection-latexextra.tpm b/Master/texmf/tpm/collection-latexextra.tpm index 79e6e5955ec..3872bd310b3 100644 --- a/Master/texmf/tpm/collection-latexextra.tpm +++ b/Master/texmf/tpm/collection-latexextra.tpm @@ -202,6 +202,7 @@ A large collection of add-on packages for LaTeX. + -- cgit v1.2.3