Tags

, , ,

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

[code lang=patch]
— 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}
[/code]

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