diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/inrstex/inrstex/prelhead.tex |
Initial commit
Diffstat (limited to 'macros/inrstex/inrstex/prelhead.tex')
-rw-r--r-- | macros/inrstex/inrstex/prelhead.tex | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/macros/inrstex/inrstex/prelhead.tex b/macros/inrstex/inrstex/prelhead.tex new file mode 100644 index 0000000000..e14d1850f8 --- /dev/null +++ b/macros/inrstex/inrstex/prelhead.tex @@ -0,0 +1,31 @@ +%-*-tex-*- +% Copyright Michael J. Ferguson, INRS-Telecommunications +% All rights reserved. + +%============ Preface/Prelude macros =========== +% this is the first of the environment macros. The problem, among others is +% that the headers, footers, pagenumbering, etc are different in preface of +% the document than elsewhere. + +% These attempt to set this up in such a way +% that they will work with books and reports .... it may not be possible and +% perhaps they should be parchuted in as a complete package for reports +% and books ... There will be more put in these as time goes on +% these are the paperstyle/report style macros +\newtoks\everyprelude +\newtoks\e@veryprelude +\def\beginprelude{\begingroup\the\e@veryprelude\the\everyprelude} + +\def\preludeheadformat#1{\centerline{\sheadfont #1}\vskip 1cm} +\newtoks\preludetitle +\def\preludeheadmark{\mark{\hfill \the\preludetitle\hfill}} +\def\preludehead#1{ \preludetitle = {#1} + \writeterm{< }{\the\preludetitle}{ >} + \preludeheadformat{#1} + \preludeheadmark + \writelistfile{toc}{\prtocout}{}{#1} + } + +\def\endprelude{\endgroup\ejectpage} + +% \def\prtocout{\string\prtoc} % actually set in inrsdef.tex |