When Lions Roared…

If you ever have the urge to reformat John Lions’ “A commentary on the Sixth Edition UNIX Operating System”, this patch might help you:

--- Lions.old/lionc.tex 1994-05-19 04:40:49.000000000 +0200
+++ Lions.new/lionc.tex 2011-04-07 15:38:14.000000000 +0200
@@ -1,7 +1,16 @@
 %
 % The Lion's Commentary, file lionc.tex, version 1.3, 18 May 1994
+% Updated 07 April 2011 to generate PDF Bookmarks
+% and to fit LaTeX2e slightly better
 %
-documentstyle[twoside,fancyheadings]{article}
+documentclass[twoside,a4paper]{article}
+usepackage{fancyhdr}
+usepackage[plainpages=false]{hyperref}
+hypersetup{%
+ pdfborder = {0 0 0},
+ pdftitle = {Commentary on 6ed UNIX OS},
+ pdfauthor = {John Lions}
+}
 fonttwlrm = cmr10 scaled magstep1

% Set the page dimensions
@@ -38,7 +47,7 @@

% Set up the headings for the document

-setlength{headrulewidth}{0cm}
+renewcommand{headrulewidth}{0pt}
 renewcommand{sectionmark}[1]{markboth{#1}{}}
 renewcommand{subsectionmark}[1]{markright{#1}}
 rhead[{it UNIX 6th Edition Commentary}]{it leftmark}

If you have no idea what I’m talking about… Well, then, erm… Never mind… :-)

Sans-Serif Fonts in Texinfo

Brett Hutley, in a post on TeX, LaTeX and Texinfo mentioned that he likes setting his documents in a Sans-serif font in Texinfo.

This intrigued me, but I could not get it to work at all. Until I actually read the Texinfo log message, of course.

Just in case I ever forget how I did it, here it is:

@c %**start Sans-Serif
@c Sans-Serif does not work too well yet. Drat. Needs some work...
@c @set SANSSERIF

@ifset SANSSERIF
@tex
@sf
@setfont@secrm@sfbshape{11}{@magstep1}@endcsname
@setfont@chaprm@sfbshape{11}{@magstep2}@endcsname
@setfont@titlerm@sfbshape{11}{@magstep3}@endcsname
@setfont@ssecrm@sfbshape{11}{@magstephalf}@endcsname
@end tex
@end ifset
@c %**end Sans-serif Fonts

This is currently commented out, since it breaks all kinds of headings, indexes and other miscellaneous mark-up rather badly, but it is a beginning…

And hopefully this saves someone else a bit of frustration as well…