diff options
author | Karl Berry <karl@freefriends.org> | 2007-12-25 19:55:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-12-25 19:55:32 +0000 |
commit | 57b6bdd7ce9155595f073c8e3c1a689a14f89e6a (patch) | |
tree | 37adee0138d0da146f5d11081b7197ff8f30079f /Master/texmf-dist/doc/latex/gmdoc/basedrivers | |
parent | 49455a020514ef25d7ef902ed0a33348ac68cf1c (diff) |
gmdoc update (19nov07)
git-svn-id: svn://tug.org/texlive/trunk@5905 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/gmdoc/basedrivers')
7 files changed, 144 insertions, 345 deletions
diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/doc_gmdoc.tex b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/doc_gmdoc.tex index 4ac5034465f..1a0b8906a9f 100644 --- a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/doc_gmdoc.tex +++ b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/doc_gmdoc.tex @@ -2,7 +2,8 @@ % explicit indexing commands where he uses `encapsulating' i.e., % a~command to encapsulate the page number, which would interfere with % \pk{hyperref}'s default \verb+|hyperpage+. -\documentclass[outeroff]{gmdocc} + +\documentclass[outeroff,minion]{gmdocc} \usepackage{array} \def\BasePath{/mnt/middle/TeXLive2005/texmf-dist/source/latex/base/}% Of course, @@ -16,6 +17,7 @@ \DeleteShortVerb\| \OldMakeShortVerb*\| +\HideAllDefining \makeatletter diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/docstrip_gmdoc.tex b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/docstrip_gmdoc.tex index 5ec7751ec49..6a724ef87fc 100644 --- a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/docstrip_gmdoc.tex +++ b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/docstrip_gmdoc.tex @@ -11,7 +11,7 @@ \documentclass[debug]{gmdocc}% \mcdiagOn \else - \documentclass{gmdocc}% + \documentclass[minion]{gmdocc}% \fi \ltxLookSetup @@ -26,8 +26,24 @@ \relaxen\ds \emptify\EOFMark +\fooatletter{% + \@ifXeTeX{% + \let\gm@TrueAcute\' + \def\'#1{% + \ifx\f@family\rmdefault + \if n#1\nacute + \else\typeout{****** \cs{'} with argument }\show#1 + \fi + \else + \gm@TrueAcute#1% + \fi + }}{}} + +\HideAllDefining + \begin{document} - \def\BasePath{/mnt/middle/TeXLive2005/texmf-dist/source/latex/base/} + +\def\BasePath{/mnt/middle/TeXLive2005/texmf-dist/source/latex/base/} %^^A \tableofcontents \addtomacro\endabstract{\aftergroup\tableofcontents} \AtBegInputOnce{\date{Printed \today\\ with \pk{gmdoc} package by diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmeometric.sty b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmeometric.sty deleted file mode 100644 index bf9d573c66e..00000000000 --- a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmeometric.sty +++ /dev/null @@ -1,184 +0,0 @@ -% -% \GetFileInfo{gmeometric.sty} -% \title{The \pk{gmeometric} Package\thfileinfo} -% \author{Grzegorz `Natror' Murzynowski} -% \maketitle -% -% -% \begin{copyrnote} -% -%%Written by Grzegorz `Natror' Murzynowski, -%% natror at o2 dot pl -%% -%% \copyright\,2006 by Grzegorz `Natror' Murzynowski. -%% -%% This program is subject to the \LaTeX\ Project Public License. -%% See \url{http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html}^^A -%% for the details of that license. -%% -%% LPPL status: "author-maintained".\par -% -%\end{copyrnote} -% -% \CheckSum{61} -%% - -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{gmeometric} - [2006/10/11 v0.67 to allow 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} -% \clearpage -%\end{verbatim} -% -% -% \division{The Code} - -\RequirePackage{gmutils}% this package defines the storing and -% restoring commands. - -%^^A\let\gm@compactBDhook\@begindocumenthook -%^^A\def\@begindocumenthook{\gm@compactBDhook} - - -% redefine |\@onlypreamble|, add storing to BeginDocument. -\newcommand*\gme@tobestored{{% - \Gm@cnth \Gm@cntv \c@Gm@tempcnt \Gm@bindingoffset \Gm@wd@mp - \Gm@odd@mp \Gm@even@mp \Gm@orgw \Gm@orgh \Gm@dimlist}} - - -\AtBeginDocument{\expandafter\StoreMacros\gme@tobestored} - -\StoreMacro\@onlypreamble -\let\@onlypreamble\@gobble - - -\RequirePackageWithOptions{geometry} - - -% Restore |\@onlypreamble|: -\RestoreMacro\@onlypreamble - -% Add restore to BeginDocument: - -\AtBeginDocument{\expandafter\RestoreMacros\gme@tobestored} - - -% Redefine |\geometry| -% \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}% - - -\endinput -% \NoEOF - -% (For my GNU Emacs:) -%%% Local Variables: -%%% mode: latex -%%% TeX-master: "e:/LaTeX/TeXGuru/gmeometric/gmeometricDoc" -%%% End: diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmoldcomm.sty b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmoldcomm.sty new file mode 100644 index 00000000000..e4bcc16cbf5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmoldcomm.sty @@ -0,0 +1,92 @@ +% +% \GetFileInfo{gmoldcomm.sty} +% \title{The \pk{gmoldcomm} Package\thfileinfo} +% \author{Natror (Grzegorz Murzynowski)} +% \date{\today} +% \maketitle +% +% +% This is a~package +% for handling the old comments in \LaTeXe\ Source Files when \LaTeX^^B +% ing them with the \pk{gmdoc} package. +% +% Written by Natror (Grzegorz Murzynowski) 2007/11/10. +% +% It's a~part of the \pk{gmdoc} bundle and as such a~subject to the +% \LaTeX\ Project Public License. +% +% +% \stanza +% Scan CSs and put them in tt. If at beginning of line, precede them +% with |%|. Obey lines in the commentary. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{gmoldcomm} + [2007/11/10 v0.99 LaTeX old comments handling (GM)] + +\newenvironment{oldcomments}{% + \catcode`\\=\active + \let\do\@makeother + \do\$% Not only CSs but also special chars happen in the old comments. + \do\|\do\#\do\{\do\}\do\^\do\_\do\&% + \gmoc@defbslash + \obeylines + \StoreMacro\finish@macroscan + \def\finish@macroscan{% + \@xa\gmd@ifinmeaning\macro@pname\of\gmoc@notprinted% + {}{{\tt\ifvmode\%\fi\bslash\macro@pname}}% + \gmoc@checkenv + }% +}{} + +{\escapechar\m@ne +\xdef\gmoc@notprinted{\string\begin,\string\end}} + +\def\gmoc@maccname{macrocode} +\def\gmoc@ocname{oldcomments} + + +\foone{% + \catcode`\[=1 \catcode`\]=2 + \catcode`\{=12 \catcode`\}=12 } +[\def\gmoc@checkenv[% + \@ifnextchar{%^^A} + [\gmoc@checkenvinn][]]% +% +\def\gmoc@checkenvinn{#1}[% + \def\gmoc@resa[#1]% + \ifx\gmoc@resa\gmoc@maccname + \def\next[% + \begingroup + \def\@currenvir[macrocode]% + \RestoreMacro\finish@macroscan + \catcode`\\=\z@ + \catcode`\{=1 \catcode`\}=2 + \macrocode]% + \else + \ifx\gmoc@resa\gmoc@ocname + \def\next[\end[oldcomments]]% + \else + \def\next[% + % ^^A \typeout[**** detected environment [#1]]% + \{#1\}% + % ^^A \show\relax + ]% + \fi + \fi + \next]% +] + +\foone{% + \catcode`\/=\z@ + \catcode`\\=\active} +% \CodeEscapeChar\/ +{/def/gmoc@defbslash{% + /let\/scan@macro}} +% \CodeEscapeChar\\ + +\def\task#1#2{} + +\endinput + +%\NoEOF diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmsource2e.ist b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmsource2e.ist deleted file mode 100644 index 4d172d47320..00000000000 --- a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/gmsource2e.ist +++ /dev/null @@ -1,21 +0,0 @@ -%% LaTeX2e file `gmsource2e.ist' -%% generated by the `filecontents' environment -%% from source `source2e_by_gmdoc' on 2006/11/30. -%% -preamble -"\n \\begin{theindex} \n" -postamble -"\n\n \\end{theindex}\n" -% The next lines will produce some warnings when -% running Makeindex as they try to cover two different -% versions of the program: -lethead_prefix "{\\bfseries\\hfill " -lethead_suffix "\\hfill}\\nopagebreak\n" -lethead_flag 1 -heading_prefix "{\\bfseries\\hfill " -heading_suffix "\\hfill}\\nopagebreak\n" -headings_flag 1 - -% and just for source2e:\\ -% Remove R so I is treated in sequence I J K not I II III -page_precedence "rnaA" diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/oldcomm.sty b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/oldcomm.sty deleted file mode 100644 index a278a1bfd22..00000000000 --- a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/oldcomm.sty +++ /dev/null @@ -1,111 +0,0 @@ -% -% This is a~fragment of the \pk{ltxdoc} class by David Carlisle -% for handling the old comments in \LaTeXe\ Source Files. -% -% -% \section{Old Comments} -% -% The \LaTeXe\ sources contain a lot of code inherited from -% \LaTeX2.09. The comments in this code were not designed to be -% typeset, and do not contain the necessary \LaTeX\ markup. The -% \texttt{oldcomments} environment typesets these comments, -% automatically sensing when any control sequence appears, and -% implicitly adding the |\verb|. This procedure does not produce -% particularly beautiful pages, but it allows us to fully document new -% sections, and have some form of typeset comments on all the old -% code. -% \changes{v2.0e}{1994/03/18}{Use a fixed font.} -% -% Scan control names and put them in tt. -% will actually (incorrectly) scan past |\\| but this does not matter as -% this is almost never followed by a letter in practice. -% (ie |\\foo|) would put |foo| in |\ttfamily|. -% \begin{macrocode} -\def\oc@scan#1{% - \ifx\oc@bslash#1% - \egroup\let\next\oc@bslash\else - \ifcat a\noexpand#1% - #1\let\next\oc@scan\else - \ifx\oc@percent#1% - \def\next{\char`\%\egroup}% - \else - #1\let\next\egroup - \fi\fi\fi\next} -% \end{macrocode} -% -% \begin{macrocode} -\def\oc@bslash{\bgroup\oc@ttf\char`\\\oc@scan}% -% \end{macrocode} -% -% \begin{macrocode} -\def\oc@verb#1{% - \catcode`#1\active - \uccode`\~`#1% - \uppercase{\def~{{\oc@ttf\char`#1}}}} -% \end{macrocode} -% -% \begin{macrocode} -\begingroup - \obeyspaces% - \catcode`\/=\catcode`\\ -% \CodeEscapeChar\/ - /catcode`/\/active - /catcode`<=/catcode`{% - /catcode`>=/catcode`}% - /catcode`/{/active% - /catcode`/}/active% - /gdef/oldc< \end{oldcomments}>% - /gdef/begmac< \begin{macrocode}>% - /gdef/obs</def <</oc@ttf/ >>>% -/endgroup% -% \end{macrocode} -% -% \begin{macrocode} -\begingroup - \catcode`\/=\catcode`\\ - \catcode`\\=13 -% \CodeEscapeChar\/ - /catcode`/|=/catcode`/% - /catcode`/%=13 - /gdef/oldcomments{| - /makeatletter - /let/do/oc@verb/dospecials - /frenchspacing/@vobeyspaces/obs - /raggedright - /oc@verb/>| - /oc@verb/<| - /let\/oc@bslash - /let%/oc@percent - /obeylines - /parindent/z@ - /ttfamily/expandafter/let/expandafter/oc@ttf/the/font - /rmfamily - /hfuzz/maxdimen - } -/endgroup -% \end{macrocode} -% -% \begin{macrocode} -\begingroup - \sloppy% - \obeylines% - \gdef\oc@percent#1^^M{% - \ifvmode% - \def\commentline{#1}% - \ifx\commentline\oldc% - \end{oldcomments}% - \else% - \ifx\commentline\begmac% - \begin{macrocode}% - \else% - \leavevmode% - #1^^M% - \fi\fi% - \else% - {\oc@ttf\char`\%}#1^^M% - \fi}% -\endgroup% -% \end{macrocode} -% -% -\def\task#1#2{}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/source2e_gmdoc.tex b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/source2e_gmdoc.tex index 47a14531209..cdfcd7b0626 100644 --- a/Master/texmf-dist/doc/latex/gmdoc/basedrivers/source2e_gmdoc.tex +++ b/Master/texmf-dist/doc/latex/gmdoc/basedrivers/source2e_gmdoc.tex @@ -108,21 +108,18 @@ page_precedence "rnaA" \PassOptionsToPackage{indexallmacros}{gmdoc} \if1 1 - \documentclass[debug,gmeometric]{gmdocc}% + \documentclass[debug,minion]{gmdocc}% \mcdiagOn \else - \documentclass[gmeometric]{gmdocc}% + \documentclass[sysfonts]{gmdocc}% \fi -\bgroup\catcode`_=12 -\firstofone{\egroup - \if1 1\includeonly{source2e_by_gmdoc}\fi} - - +\foone{\catcode`_=12 } +{\if1 1\includeonly{source2e_by_gmdoc}\fi} %^^A\usepackage[margin=2cm,b5paper]{geometry}% and this -\usepackage{oldcomm}% Definitions of \env{oldcomments} and |\task| -% copied from \file{ltxdoc.dtx}. +\usepackage{gmoldcomm}% Definitions of \env{oldcomments} and |\task|. + \listfiles @@ -137,8 +134,6 @@ page_precedence "rnaA" % remains shortverb in math mode (by default I~define it to be $\vert$ in % math mode. - - % Do not index some TeX primitives, and some common plain TeX commands. \DoNotIndex{\def,\long,\edef,\xdef,\gdef,\let,\global} @@ -208,8 +203,19 @@ page_precedence "rnaA" \usepackage{textcomp} \olddocIncludes +\HideAllDefining + +\fooatletter{% + \@ifXeTeX{% + \def\"#1{% + \if o#1\oumlaut\fi + \if u#1\uumlaut\fi +%^^A \else\typeout{****** \cs{"} with argument }\show#1\fi + }}{}} \begin{document} + + \title{The \LaTeXe\ Sources\thanks{Typeset with \pk{gmdoc} by Natror on \today.}} \author{% @@ -265,16 +271,16 @@ page_precedence "rnaA" \fi \makeatother - \pagenumbering{roman} - \thispagestyle{empty} - \maketitle - \emptify\maketitle +\pagenumbering{roman} +\thispagestyle{empty} +\maketitle +\emptify\maketitle - \tableofcontents +\tableofcontents - \clearpage +\clearpage - \pagenumbering{arabic} +\pagenumbering{arabic} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -292,8 +298,8 @@ page_precedence "rnaA" % the entire source of the format file. Note that such a document will % be quite large (about 555 pages). % - - \DocInclude[\BasePath]{ltdirchk} % System dependent initialisation + +\DocInclude[\BasePath]{ltdirchk} % System dependent initialisation \AfterMacrocode{53}{\def\do{\cs{do}}}% A~bare |\do| in narration on % line 161. @@ -425,11 +431,10 @@ page_precedence "rnaA" % precedes |\else|. So if the argument was a~CS, its backslash will % be gobbled by |\if|. Otherwise |\if...\fi| expands to what is % between |\else| and |\fi|, to the unchanged argument that is. Then - % to that expanded list of tokens the original |\cs| is applied. + % to that list of tokens the original |\cs| is applied. \let\GMDebugCS\cs - \def\cs#1{\edef\AtTempa{\if\bslash\string#1\else#1\fi}% - \GMDebugCS{\AtTempa}} -\PrintChanges} + \def\cs#1{\GMDebugCS{\if\bslash\string#1\else#1\fi}}% + \PrintChanges} \typeout{% ^^JProduce index with^^J% @@ -466,13 +471,13 @@ page_precedence "rnaA" \gmdocIncludes \SelfInclude{%^^A\def\CommonEntryCmd{UsgEntry}%\label{UsgHack} % ^^A\label{SelfIncludeUsg} - \csname gag@index\endcsname% we tur writing outto the \file{.idx} + \csname gag@index\endcsname% we turn writing outto the \file{.idx} % out for the driver since it's \emph{not} a~part of The Source. %^^A \filediv[The New Driver?]{How I~did It or \gmhypertarget{The Driver} File}% } \end{document} -%\endinput +%\NoEOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |