% qwertz replacement file
% translates into groff, using groff mm macros
% manpages can be processed using the man macros
% Author: Tom Gordon
% Groff dependencies are few. To port to another roff:
% 1. Check and modify, if necessary, font changes. (e.g. In psroff the
% same fonts have other names.)
% 2. Check the code for including Encapsulated PostScript, generated
% for eps elements.
% 3. Also make versions of general.grops and math.grops, which are sed
% scripts translating character entities into groff character references.
+ ".nr pS 10\n" % default point size and spacing
".S \\n(pS \\n(pS+2\n"
".nr PI 3n\n" % paragraph indendation
".PH \"\"\n" % no page header
".PF \"''\%''\"\n" % page number in footer
% DIN A4
".nr W 15c\n"
".po 3c\n" % page offset, left margin
".nr L 29.5\n"
".nr C1 4\n" % Four levels in table of contents
".ds HF TB TB TB TI TI TI\n"
".if t .ds HP +6 +4 +3 +0 -1 -2\n" % heading pt sizes
% line break and blank line after all headings
".nr Hs 7\n"
".nr Hb 7\n"
% Footnote style
".nr FD 1\n"
% James Clark's trick to prevent unintended paragraph
% breaks
".tr \\&\n"
% horizontal line
".de hl\n"
".br\n"
"\\l'\\\\n(.lu-\\\\n(.iu'\n"
"..\n"
% initialize indentation level of headings
".nr iL 1\n"
% indent all paragraphs, except when they occur
% after headings, lists and displays
".nr Pt 2\n"
% context-sensitive list macro
".nr eL 0\n" % current enumeration level
".de aL\n"
".if \\\\n(eL=1 .LB \\\\n(Li 6 0 1 1\n"
".if \\\\n(eL=2 .LB \\\\n(Li 6 0 3 a\n"
".if \\\\n(eL=3 .LB \\\\n(Li 6 0 1 i\n"
".if \\\\n(eL=4 .LB \\\\n(Li 6 0 1 A\n"
"..\n\n"
% captions of figures and tables
".nr cT 0\n" % caption type, 0=table, 1=figure
".de CAPTION\n"
".if \\\\n(cT=0 .TB \\\\$1\n"
".if \\\\n(cT=1 .FG \\\\$1\n"
"..\n\n"
% Number registers for theorems
".nr def 0\n"
".nr prop 0\n"
".nr lemma 0\n"
".nr coroll 0\n"
".nr proof 0\n"
".nr theorem 0\n"
% Math
".nr eqlabel 0\n" % equation counter
".EQ\ndelim $$\n.EN\n"
".ds nequiv { \"relation\" \"\\o'/\\(=='\" }\n"
".ds nsub { \"relation\" \"\\o'/\\(sb'\" }\n"
".ds nsube { \"relation\" \"\\o'/\\(ib'\" }\n"
".ds nsup { \"relation\" \"\\o'/\\(sp'\" }\n"
".ds nsupe { \"relation\" \"\\o'/\\(ip'\" }\n"
".ds nvDash { \"relation\" \"\\z\\(br\\o'/='\"}\n"
".ds nvdash { \"relation\" \"\\z\\(br\\o'/\\(en'\"}\n"
% Reference commands
".INITR #groff#\n"
% redefine superscript strings so that
% refer tags look like [this]
".ds \[. \[\n"
".ds .\] \]\n"
% set initial level of headings, in register il
+ ".nr il 0" +
+ ".nr il 1\n"
".nr Ej 1" + % start new page at each chapter
+ ".TC" +
+ ".nr il 1\n"
".nr Ej 1" +
+ ".TC" +
+ ".nr il -1" +
+ ".ft H\n"
".DS C" +
+ ".DE\n"
".ft R\n"
".S \\n(pS \\n(pS+2\n" % reset font size to default
".sp 3" +