[texhax] Eplain and \mark (Stephen Moye)
Elizabeth Dearborn
elizabeth at medicalese.org
Sat Jun 17 15:45:02 CEST 2006
Hi Stephen,
I produced my book MeDiCaLeSe 2005, a nonstandard medical reference book,
using LaTeX 2e. I didn't use eplain or \mark. You can see examples of the
pages at http://www.medicalese.org/05sampl.pdf, and I will be explaining
this in much more detail at Practical TeX 2006. Here is the main TeX file:
%medicalese.tex
\documentclass{book}
\def\enl{\filbreak\small\textbf}
\def\ene{\filbreak\normalsize\textbf}
\def\enn{\normalsize}
\def\eno{\enspace\scriptsize}
\def\enc{\filbreak\small\texttt}
\def\enb{\protect\raisebox{-2pt}}
\def\enu{\protect\raisebox{2pt}}
\usepackage{fancyhdr}
\usepackage[papersize={6.14in,9.21in},margin={0.5in},top={1in},bottom={0.75in},headheight={34.545pt},centering,verbose=true]{geometry}
\usepackage{textcomp}
\usepackage[none]{hyphenat}
\usepackage{multicol}
\newcommand{\enk}[1]{#1\markboth{#1}{#1}}
\begin{document}
% \frontmatter
\mainmatter
\input drugs
\input notes
... and so on for the various chapters of the book ...
\eject
\end{document}
\bye
... and files for individual chapters ...
%drugs.tex
\pagestyle{fancy}\fancyhead{}
\fancyhead[LE,RO]{\textsf{\rightmark\\\leftmark}}
\fancyhead[C]{\textbf{Drugs}}
\fancyhead[RE,LO]{\textsl{\small drugs, vitamins, baby formulas,\\herbals,
medical foods ...}}
\renewcommand{\headrulewidth}{0.2pt}
\fancyfoot[LE,RO]{\textit{MeDiCaLeSe~2005}}
\fancyfoot[RE,LO]{\textsf{www.medicalese.org}}
\renewcommand{\footrulewidth}{0.2pt}
\raggedright
\begin{multicols}{2}
\textbf{\enk{206 Shake}}\enn: nutritional supplement.\ene
{\enk{2-CdA}}\enn: 2-chlorodeoxyadenosine, for hairy-cell leukemia.\ene
...
\\
\end{multicols}
\eject
Hope this helps!
Elizabeth Dearborn
elizabeth at medicalese.org
More information about the texhax
mailing list