|
57 | 57 | %%
|
58 | 58 | %% The following macros can be used just after inputting gapmacro.tex to control
|
59 | 59 | %% the layout.
|
60 |
| -%% \casesensitivetrue makes labels case sensitive (this is still experimental |
| 60 | +%% \casesensitivetrue makes labels case sensitive (this is still experimental |
61 | 61 | %% and not currently supported by the html converter)
|
62 | 62 | %% \casesensitivefalse & (default) labels are case insensitive
|
63 | 63 | %%
|
64 |
| -%% \addlinks (default) This inserts pdf links within the document, so |
| 64 | +%% \addlinks (default) This inserts pdf links within the document, so |
65 | 65 | %% that you can click on a reference or citation. This will only work
|
66 | 66 | %% with pdftex, otherwise this has no effect.
|
67 | 67 | %%
|
68 | 68 | %% \nolinks This switches off additional pdf links within the document.
|
69 | 69 | %%
|
70 |
| -%% \citebookstrue References to external books will be |
71 |
| -%% "GAP Reference Manual, 2.7.12" instead of just "2.7.12", similarly |
72 |
| -%% for the GAP tutorial. If you cite other books, you have to define |
73 |
| -%% macros \xxxManual which must expand to the text which you want to |
| 70 | +%% \citebookstrue References to external books will be |
| 71 | +%% "GAP Reference Manual, 2.7.12" instead of just "2.7.12", similarly |
| 72 | +%% for the GAP tutorial. If you cite other books, you have to define |
| 73 | +%% macros \xxxManual which must expand to the text which you want to |
74 | 74 | %% be inserted before the number for package xxx (lower case).
|
75 | 75 | %% \citebooksfalse (default) just print the number
|
76 | 76 | %%
|
77 | 77 | %% \usepsfonts (default) use the standard Postscript fonts for typesetting
|
78 | 78 | %% \usecmfonts use the TeX standard fonts
|
79 | 79 | %%
|
80 |
| -%% \biblitemfalse (default) In the bibliography, print abbreviations for |
| 80 | +%% \biblitemfalse (default) In the bibliography, print abbreviations for |
81 | 81 | %% papers right-aligned (as in gapmacro.tex)
|
82 | 82 | %% \biblitemtrue print abbreviations left-aligned
|
83 |
| -%% \bibindent (default: 3 pc) indentation used in the bibliography - |
84 |
| -%% depending |
85 |
| -%% on the abbreviations you use, you may need more (this is not very |
| 83 | +%% \bibindent (default: 3 pc) indentation used in the bibliography - |
| 84 | +%% depending |
| 85 | +%% on the abbreviations you use, you may need more (this is not very |
86 | 86 | %% obvious if you use \biblitemfalse because long abbreviations will
|
87 | 87 | %% protrude into the left margin only, but will cause overfull hboxes
|
88 | 88 | %% when using \biblitemtrue
|
89 | 89 |
|
90 | 90 | \input amssym.tex
|
91 | 91 |
|
92 |
| -\catcode`@=11 |
| 92 | +\catcode`@=11 |
93 | 93 |
|
94 | 94 | % Page dimensions and double column output.
|
95 | 95 | \hsize 39pc
|
|
113 | 113 | \gdef\endlink{\pdfliteral{0 0 0 rg}\pdfendlink\endgroup}%
|
114 | 114 | }
|
115 | 115 |
|
116 |
| -% do we run pdftex? |
| 116 | +% do we run pdftex? |
117 | 117 | \ifx\pdfdest\undefined
|
118 | 118 | \immediate\write16{Running TeX}
|
119 | 119 | % no: define dummy bookmarking functions
|
|
148 | 148 | \fi
|
149 | 149 |
|
150 | 150 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
151 |
| -% |
| 151 | +% |
152 | 152 | % Generic double column output.
|
153 | 153 | %
|
154 | 154 | % Modified from a routine written by Donald Knuth (The TeXBook, App. E)
|
|
244 | 244 | \font\tenbf=ptmb7t at 10pt % boldface extended
|
245 | 245 | \font\sevenbf=ptmb7t at 7pt
|
246 | 246 | \font\fivebf=ptmb7t at 5pt
|
247 |
| - % additional fonts needed by gapmacro.tex |
| 247 | + % additional fonts needed by gapmacro.tex |
248 | 248 | \font\tentt=cmtt10 % typewriter
|
249 | 249 | \font\tensl=ptmro7t at 10pt
|
250 | 250 | \font\tenit=ptmri7t at 10pt % text italic
|
|
256 | 256 | \font\sf=phvr7t at 10 pt
|
257 | 257 | \font\bsf=phvb7t at 10 pt
|
258 | 258 | \font\smallrom=ptmr7t at 8pt
|
259 |
| - \font\sevenit=ptmri7t at 7pt |
260 |
| - \font\fiveit=ptmri7t at 5pt |
| 259 | + \font\sevenit=ptmri7t at 7pt |
| 260 | + \font\fiveit=ptmri7t at 5pt |
261 | 261 | \inst@allfonts
|
262 | 262 | }
|
263 | 263 | \outer\def\usecmfonts{
|
|
290 | 290 | \font\bsf=cmssdc10
|
291 | 291 | \font\smallrom=cmr8
|
292 | 292 | \font\sevenit=cmti10 at 7pt
|
293 |
| - \font\fiveit=cmti10 at 5pt |
| 293 | + \font\fiveit=cmti10 at 5pt |
294 | 294 | \inst@allfonts
|
295 | 295 | }
|
296 | 296 |
|
|
395 | 395 | \newif\iftestexample\global\testexampletrue
|
396 | 396 | \newread \labelin \newread \indexin \newread \tocin \newread \citein
|
397 | 397 | \countdef\chapno=1 \newcount\secno \newcount\subsecno \newcount\exno
|
398 |
| -\newcount\indentno |
| 398 | +\newcount\indentno |
399 | 399 | \newcount\chapnum %GG \chapnum is a numerical \chapno for the .six file
|
400 | 400 | \def\chapterno{{\edef\tempa{\thechapter}\tempa}}
|
401 | 401 | %\def\folio{\ifnum\pageno<0 \romannumeral-\pageno \else
|
|
408 | 408 | %AH
|
409 | 409 | \def\folio{\ifnum\pageno<0 \romannumeral-\pageno \else
|
410 | 410 | \number\pageno\fi}
|
411 |
| - |
| 411 | +
|
412 | 412 | %\def\doindex#1#2#3{\protectedwrite\indexout{\noexpand\indexentry{#1#2#3}%
|
413 | 413 | % {\ifnum\pageno<0\romannumeral-\pageno\else%
|
414 | 414 | % \number\pageno\fi}}%
|
415 | 415 | % \ifvmode\nobreak\else\unskip\fi}
|
416 | 416 |
|
417 |
| -{\catcode`<=\active \catcode`_=\active \catcode`!=\active \catcode`*=\active |
418 |
| -\catcode``=\active |
| 417 | +{\catcode`<=\active \catcode`_=\active \catcode`!=\active \catcode`*=\active |
| 418 | +\catcode``=\active |
419 | 419 |
|
420 | 420 | \global\let\n@exp\noexpand
|
421 | 421 |
|
|
442 | 442 | \catcode`*=\active \def*{\ifmmode\let\next=\*\else\let\next=\bold\fi\next}
|
443 | 443 | \def\bold#1*{{\bf #1\/}} \chardef\*=`*
|
444 | 444 | \catcode`<=\active \def<#1>{{\chardef*=`*\let_=\_\it#1\/}}
|
445 |
| - |
| 445 | +
|
446 | 446 | \catcode`"=\active \def"{\begingroup\undoquotes\doref} \chardef\"=`"
|
447 | 447 | \chardef\\=`\\
|
448 | 448 |
|
|
463 | 463 | \def\printbookref#1:#2:"{\printref{#1:#2}}
|
464 | 464 |
|
465 | 465 | % Macros which write labels, citations and index entries on auxiliary files.
|
466 |
| -% |
| 466 | +% |
467 | 467 | % 1. Some code was moved around so that all the labels and indexing stuff
|
468 | 468 | % would be together.
|
469 | 469 | % 2. Modified \makelabel, \printref and \label to be more like the LaTeX
|
470 | 470 | % commands \newlabel, \ref and \label, respectively. The commands:
|
471 |
| -% \@xp, \@firstoftwo, \@secondoftwo, \namedef, \@ifundefined |
| 471 | +% \@xp, \@firstoftwo, \@secondoftwo, \namedef, \@ifundefined |
472 | 472 | % \protectedwrite are adapted pieces of LaTeX code (\@xp is actually
|
473 | 473 | % AmSLaTeX's abbreviation of \expandafter).
|
474 | 474 | % 3. The upshot of 2. is that now underscore is allowed in labels and
|
|
511 | 511 | \ifcitebooks\expandafter\csname\next Manual\endcsname,\space\fi
|
512 | 512 | \csname r@\xpandlowr\endcsname\fi}
|
513 | 513 |
|
514 |
| -\newif\ifnewlab |
| 514 | +\newif\ifnewlab |
515 | 515 |
|
516 | 516 | % Macros which write labels, citations and index entries on auxiliary files.
|
517 | 517 | \gdef\label#1{\@xplowr{#1}%
|
518 | 518 | \ifnum\secno=0 \edef\@currentlabel{\thechapter}\else
|
519 | 519 | \ifnum\subsecno=0 \edef\@currentlabel{\thechapter.\the\secno}\else
|
520 | 520 | \edef\@currentlabel{\thechapter.\the\secno.\the\subsecno}\fi\fi
|
521 | 521 | \@xp\ifx\csname r@\book:\xpandlowr\endcsname\@currentlabel\else%
|
522 |
| - %\immediate\write16{Label `\book:#1' has changed.}% |
| 522 | + \immediate\write16{Label `\book:#1' has changed.}% |
523 | 523 | \global\labchangedtrue\fi%
|
524 | 524 | \expandafter\ifx\csname pdfdest@\xpandlowr\endcsname\relax
|
525 | 525 | \nameddest{\xpandlowr}%
|
|
591 | 591 | \xdef\ors{\the\ortoks}\endgroup}
|
592 | 592 | \def\setors{{\xdef\ors{} \count0=\chapno
|
593 | 593 | \loop\ifnum\count0>0 \addor \advance\count0 by -1\repeat}}
|
594 |
| -\def\appno#1{\expandafter\ifcase\expandafter#1\ors\or A\or B\or C\or D\or E\or |
595 |
| - F\or G\or H\or I\or J\or K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or |
| 594 | +\def\appno#1{\expandafter\ifcase\expandafter#1\ors\or A\or B\or C\or D\or E\or |
| 595 | + F\or G\or H\or I\or J\or K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or |
596 | 596 | U\or V\or W\or X\or Y\or Z\else\immediate\write16{Counter too large} \fi}
|
597 | 597 |
|
598 | 598 | % Macros for chapter and section headings.
|
|
601 | 601 | \outer\def\Input#1{\def\filename{#1.tex}\input #1}
|
602 | 602 | \def\emptychapter{\noexpand\tocstrut}
|
603 | 603 | \def\normalchapter{\the\chapno}
|
604 |
| -% GG |
| 604 | +% GG |
605 | 605 | \def\appendixchapter{\appno\chapno} % \appno behaves like LaTeX's \Alph
|
606 | 606 | \newif\ifchapter % set to true when \thechapter = \normalchapter
|
607 | 607 | % ... or ... when \thechapter = \appendixchapter
|
|
798 | 798 | % The date
|
799 | 799 |
|
800 | 800 | \def\Today{{\Day} {\Month} {\Year}}
|
801 |
| - |
| 801 | +
|
802 | 802 | % Miscellaneous macros.
|
803 | 803 | \def\N{{\Bbb N}} \def\Z{{\Bbb Z}} \def\Q{{\Bbb Q}} \def\R{{\Bbb R}}
|
804 | 804 | \def\C{{\Bbb C}} \def\F{{\Bbb F}} \def\calR{{\cal R}}
|
|
832 | 832 | %\setbox0=\vbox{\Bibliography}
|
833 | 833 | \endgroup
|
834 | 834 | \labchangedfalse
|
835 |
| - |
| 835 | +
|
836 | 836 | % Open the auxiliary files for output.
|
837 | 837 | \immediate\openout\tocout =\jobname.toc
|
838 | 838 | \immediate\openout\labelout =\jobname.lab
|
|
845 | 845 | \ifodd\pageno\else\headlinefalse\null\vfill\eject\fi
|
846 | 846 | % \pageno=1
|
847 | 847 | }
|
848 |
| - |
| 848 | +
|
849 | 849 | \outer\def\Chapters{\vfill\eject
|
850 | 850 | \chapno=0 \let\thechapter=\normalchapter \chaptertrue
|
851 | 851 | \def\lefthead{{\it Chapter \the\chapno. \chapname}}
|
852 | 852 | \def\righthead{\ifx\botmark\empty\lefthead\else{\it \botmark}\fi}}
|
853 | 853 |
|
854 | 854 | % GG
|
855 |
| -% Rather than reset \chapno in \Appendices, for the .six file (which GAP's |
856 |
| -% help uses), we number appendices as if they were chapters (via \the\chapno) |
857 |
| -% i.e. if the last chapter was numbered 7 then for the .six file the first |
| 855 | +% Rather than reset \chapno in \Appendices, for the .six file (which GAP's |
| 856 | +% help uses), we number appendices as if they were chapters (via \the\chapno) |
| 857 | +% i.e. if the last chapter was numbered 7 then for the .six file the first |
858 | 858 | % appendix would be numbered 8.
|
859 |
| -% The \setors macro puts (\number\chapno - 1) \or s in the \ors macro so that |
| 859 | +% The \setors macro puts (\number\chapno - 1) \or s in the \ors macro so that |
860 | 860 | % \appno\chapno (= \appendixchapter) numbers the appendices sequentially from A
|
861 | 861 | % for the .lab file (which TeX uses).
|
862 | 862 | \outer\def\Appendices{\vfill\eject
|
|
1011 | 1011 | \begingroup\undoquotes\frenchspacing
|
1012 | 1012 | \parindent\bibindent
|
1013 | 1013 | \pretolerance=5000 %badness allowed for hypenation
|
1014 |
| - \tolerance=5000 %badness allowed before overfull boxes appear |
| 1014 | + \tolerance=5000 %badness allowed before overfull boxes appear |
1015 | 1015 | \parskip 1ex plus 0.5ex minus 0.5ex
|
1016 | 1016 | \def\begin##1##2{} \def\end##1{}
|
1017 | 1017 | \let\newblock=\relax \let\em=\sl
|
|
1046 | 1046 | \bigskip
|
1047 | 1047 | \begindoublecolumns
|
1048 | 1048 | \pretolerance=5000 %badness allowed for hypenation
|
1049 |
| - \tolerance=5000 %badness allowed before overfull boxes appear |
| 1049 | + \tolerance=5000 %badness allowed before overfull boxes appear |
1050 | 1050 | \parindent 0pt \parskip 0pt \rightskip 0pt plus2em \emergencystretch 2em
|
1051 | 1051 | \everypar{\hangindent\smallmanindent}
|
1052 | 1052 | \def\par{\endgraf\leftskip 0pt}
|
|
0 commit comments