summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gmdoc/basedrivers/docstrip_gmdoc.tex
blob: 42a6e4ef3720775d7794011d8515c29ae983ef88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
%% 
% \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{docstrip_gmdoc}
%% \title{\docstrip_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{docstrip_gmdoc.{gmd,pdf}}.
%%
%% \end{copyrnote}
%% 
%
%
% \skiplines
%</master>
% \endskiplines
%
%
%% 
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{docstrip_gmdoc}
    [2010/09/25 v0.993  (GM)]


%%

\PassOptionsToPackage{countalllines,codespacesgrey,indexallmacros}{gmdoc}

\if11
  \documentclass[debug, pagella, fontspec=quiet]{gmdocc}%
  \mcdiagOn
\else
  \documentclass[pagella]{gmdocc}%
\fi

\ltxLookSetup
\gmdoccMargins
\twocoltoc% For towocolumn table of contents.

\DeleteShortVerb\|
\OldMakeShortVerb*\|% To define shortverb \verb+|+ such that it

\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{/home/natror/texmf/source/latex/base/}
  \addtomacro\endabstract{\aftergroup\tableofcontents}
  \AtBegInputOnce{\date{Printed \today\\ with \pk{gmdoc} package by
      Natror}\let\date\gobble
    \let\renewenvironment\gobbletwo}% the only renewed env.\ in
  % \file{docstrip.dtx} is \env{theglossary}. I~prefer it to be twocolumn.


  \OldDocInput{\BasePath docstrip.dtx}

  \typeout{%
    ^^JProduce change log with^^J%
    makeindex -r -s gmglo.ist -o \jobname.gls \jobname.glo^^J}

  \typeout{%
    ^^JProduce index with^^J%
    makeindex -r \jobname.idx^^J}

\end{document}

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