%% 
% \skiplines
%<*master>
%% \iffalse ^^A we skip the debug setting
\IfFileExists{\string~/bin/gen_and_xela}{\errorcontextlines=1000 }{}
%% \fi
%% ^^A $Id: TheUltimateMaster.gmd,v 0.298 2011/02/02 18:35:58 natror Exp natror $
% \endskiplines
%
%% \BundleInfoFromName{doc_gmdoc}
%% \title{\doc_gmdocTitle }
%% \author{Grzegorz Murzynowski}
%% \maketitle
%%
%% \let\ty\emph \let\df\dekfracc
%%
%% \begin{copyrnote}
%%
%% 
%% Copyright ©\, 
%% by Grzegorz ‘Natror’ Murzynowski
%% natror (at) gmail (dot) com
%% 
%% This program is subject to the \LaTeX\ Project Public License.
%% See ^^A
%% \url{http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html} ^^A
%% for the details of that license.\rrthis
%%
%% \acro{LPPL} status: "author-maintained". \par
%%
%% 
%% 
%% 
%% 
%% For the documentation please refer to the file(s)
%% \file{doc_gmdoc.{gmd,pdf}}.
%%
%% \end{copyrnote}
%% 
%
%
% \skiplines
%</master>
% \endskiplines
%
%
%% 
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{doc_gmdoc}
    [2010/09/25 v0.993  (GM)]


%%
\PassOptionsToPackage{hyperindex=false}{hyperref}% Because FM writes some almost

\documentclass[countalllines,
codespacesblank, outeroff, pagella, cronos, cursor,
fontspec=quiet]{gmdocc}
\usepackage{array}

\VisSpacesGrey

\def\BasePath{/home/natror/texmf/source/latex/base/}% Of course,

\ltxLookSetup
\gmdoccMargins
\olddocIncludes% This is the crucial declaration.
\twocoltoc

\DeleteShortVerb\|
\OldMakeShortVerb*\|
\HideAllDefining

\makeatletter

\edef\gmd@wykrzykniki{\xiihash\space\xiihash\space}
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki}
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki}
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki}

\author{Frank Mittelbach \and David Carlisle}
\title{The \pk{doc} and \pk{shortvrb} Packages\\ and\\
  the \pk{ltxdoc} Class}
\date{Typeset with the \pk{gmdoc} package by Natror\\\today}

\errorcontextlines=1000
\fooatletter{%
  \typeout{@@@@@ \meaning\@begindocumenthook}}
\begin{document}

\smartunder

\typeout{@@@@ in document}

\maketitle
\typeout{@@@@ after title}

\addtocontents{toc}{% to discard |\begin{multicols}{2}| of one
  % included document. (Table of contents is declared twocolumn with
  % |\twocoltoc| above.)
    \let\protect\begin\protect\@gobbletwo
      \protect\Store@Macro\protect\end
      \def\protect\end{\protect\Restore@Macro\protect\end\protect\@gobble}%
}% Because one document has a~\env{multicols} twocolumn table of

\tableofcontents


\makeatletter
\AfterMacrocode{161}{% it's for a~tiny little typo in line 3299: They
  % forgot to wrap |\@tempb| and |\@tempc| in shortverbs.
  \def\@tempb{\cs{@tempb} }\def\@tempc{\cs{@tempc} }}

\AtBegInputOnce{%
  \chschange{v2.1b}{2006/10/20}{2126}%
  \let\CheckSum\gobble
  % \par Of course, none of the documents is not loaded, so we give the
  % fileinfo explicitly.
  \def\filedate{2004/02/09}\def\fileversion{v2.1b}%
  % \label{explicit fileinfo}
  \let\GetFileInfo\relax
  \addtomacro\IndexParms{\arraybackslash}}% because |\IndexParms| use

\DocInclude[\BasePath]{doc}

\AtBegInputOnce{%
  \chschange{v2.0u}{2006/10/20}{410}%
  \let\CheckSum\gobble
  \def\filedate{1999/08/08} \def\fileversion{v2.0u}% see line
  % \ref{explicit fileinfo}.
  \let\GetFileInfo\relax
  % The rest of this |\AtBegInputOnce|'s contents is necessary since
  % DC wrote it not commented out, which with \pk{doc} results with
  % printing it both to the package (class) and the documentation, but
  % with \pk{gmdoc} it puts this stuff in the code layer that'll be
  % only printed verbatim.
  \providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
  \title{The file \texttt{ltxdoc.dtx} for use with
    \LaTeXe.\thanks{This file has version
      number \fileversion, dated \filedate.}\\[2pt]
    It contains the code for \texttt{ltxdoc.cls}}
  \date{\filedate}
  \author{David Carlisle}
  \maketitle}

\DocInclude[\BasePath]{ltxdoc}%

\gmdocIncludes

\AtBegInputOnce{%
  \title{\pk{doc_by_gmdoc.tex} The Driver\thanks{As mentioned in the
      title, I~typeset these package and class with the \pk{gmdoc}
      package, for which are they a~great inspiration and the base.
      The typesetting needed only a~few tricks, so here i~give the
      code of the `driver': a~snake eats its tail ;-) .}}
    \author{Grzegorz `Natror' Murzynowski}%
    \date{\today}%
    \maketitle}
\SelfInclude

\typeout{%
  Produce change log with^^J%
  makeindex -r -s gmglo.ist -o \jobname.gls \jobname.glo^^J
  (gmglo.ist should be put into some texmf/makeindex directory.)^^J}
\PrintChanges
\typeout{%
  Produce index with^^J%
  makeindex -r \jobname^^J}
 \PrintIndex

\end{document}


makeindex -r doc_gmdoc
makeindex -r -s gmglo.ist -o doc_gmdoc.gls doc_gmdoc.glo


\endinput
%%
%% End of file `doc_gmdoc.tex'.
