% 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" + + ".S \\n(pS+6 \\n(pS+8\n" ".B" + + ".R" + + ".br\n" ".ft R\n" ".S -1" + + ".sp 2\n" ".S \\n(pS+2 \\n(pS+4" + + ".I" + + ".sp" + "\\*F\n" ".FS" + + ".FE" + + ".sp\n.R" + + ".br" +
+ ".EH &" "&&&" + + ".OH &&&" "&" + + ".ft HI" + + ".ft P" + + ".AS" + + ".AE" + + ".nr H1 1\n" ".HM A" + + ".nr Lf 1\n" + ".nr Lt 1\n" + ".H \\n(iL " + ".H 1+\\n(iL " + ".H 2+\\n(iL " + ".H 3+\\n(iL " + ".H 4+\\n(iL " + ".H 5+\\n(iL " "\"" "\"\n" +

+ ".P" +

+ ".LB \\n(Pi 6 0 0 \\(bu \n" % bullet list + ".LE" + + ".nr eL +1\n" % increment enumeration level ".aL\n" + + ".LE\n" ".nr eL -1\n" % decrement enumeration level + ".VL 5" + ".LE" + + ".LI " + ".LI\n\\fB" "\\fP" + + ".\[\n[ID]\n.\]" + + ".\[\n[ID]\n.\]\n([NOTE])" "\\*F\n" ".FS" + + ".FE" + "``" "''" + ".DS I F \\n(Si/2" + + ".DE" + "\\fI" "\\fP" "\\fB" "\\fP" "\\fI" "\\fP" "\\f(HR" "\\fP" "\\f(HI" "\\fP" "\\f(CR" "\\fP" + ".GETHN [ID]" + + ".GETPN [ID]" + + ".\[\n" "$LIST$\n" ".\]" + + ".EQ\ndelim off\n.EN\n" ".hl\n.nf\n.na\n" ".ft CR\n" ".eo" + + ".ec\n" ".hl\n" ".fi\n.ad\n.EQ\ndelim $$\n.EN\n" ".ft P\n" ".P 0" + + ".EQ\ndelim off\n.EN\n" ".nf\n.na\n" ".ft CR\n" ".eo" + + ".ec\n" ".fi\n.ad\n" ".EQ\ndelim $$\n.EN\n" ".ft P\n" ".P 0" + % theorems and such + ".sp\n" ".nr def \\n\[def\]+1\n" ".B \"Definition \\n\[def\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr prop \\n\[prop\]+1\n" ".B \"Proposition \\n\[prop\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr lemma \\n\[lemma\]+1\n" ".B \"Lemma \\n\[lemma\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr coroll \\n\[coroll\]+1\n" ".B \"Corolloary \\n\[coroll\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr proof \\n\[proof\]+1\n" ".B \"Proof \\n\[proof\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr theorem \\n\[theorem\]+1\n" ".B \"Theorem \\n\[theorem\] \"" + + ".ft P\n.sp" + + ".B\n(" ")\n.I" + % mathematics "$" "$" + ".DS C\n" ".EQ" + + ".EN\n" ".DE" + + ".DS C\n" ".nr eqlabel \\n\[eqlabel\]+1\n" ".EQ \\n\[eqlabel\]" + + ".EN\n" ".DE" + "{" "} over " "{" "}" " from {" "}" "}" " prod " " int " " sum " % limitation: eqn only does square roots! " sqrt {" "}" + ".TS\n" "center, tab(|), delim $$; \n" "[ca]." + + ".TE" + "\n" "|" " sup {" "}" " sub {" "}" "{" "} under " "{" "} bar " " bold{" "}" "{" "} vec " % limitation: no calligraphic characters, using helvetica italics instead. Is there a better font? "\\f(HI" "\\fP" " roman }" "}" + ".br" + % figures
+ ".nr cT 1" + % set caption type
+ ".if t .PSPIC [file].ps\n" ".if n .sp 4" + % Are TeX units properly handled by this translation of ph? + ".sp [VSPACE]" + + ".CAPTION \"" "\"" + % tables + ".nr cT 0\n" % set caption type ".DF\n.R" +
+ ".DE" + + ".TS\n" "center, tab(|), delim ($$);\n" "[ca]." + + ".TE" + "\n" + "|" + "_" + + ".S 18 20" + + ".bp\n\\&" + % letters -- replacement for email, using mh format. + ".nf" + + + "From: " + "To: "
+ ".de Ad\n"
+ ".." + " <" ">" + "Subject: " + "Sref: " + "In-Reply-To: " + "cc: " + ".fi\n.P 0" + + ".P 0" + + ".P 0\n" "encl: " + ".P 0\np.s." % end of roff replacement file