Update my example LaTeX header file for the recent changes
[muse-el.git] / examples / mwolson / templates / header.tex
blobd9814f70a1576b2058d7f696704414e39e2d73f9
1 \documentclass<lisp>
2 (or (and (muse-publishing-directive "latex-twocolumn")
3 "[twocolumn]")
4 "")
5 </lisp>{<lisp>
6 (or (muse-publishing-directive "latex-document-class")
7 "article")</lisp>}
9 \usepackage[english]{babel}
10 \usepackage{amsfonts, amsmath, amssymb}
11 \usepackage{ucs}
13 % I'd love to be able to use CB fonts for Greek letters instead, as
14 % the ucs docs recommend, but i couldn't figure it out
15 \SetUnicodeOption{mathletters}
17 % define Unicode "middle dot" to be TeX \cdot
18 \DeclareUnicodeCharacter{183}{\ensuremath{\cdot}}
19 % declare Unicode "maplet" to be TeX \mapsto
20 \DeclareUnicodeCharacter{8614}{\ensuremath{\mapsto}}
21 % declare Unicode "leftwards arrow with hook" to be TeX \hookleftarrow
22 \DeclareUnicodeCharacter{8617}{\ensuremath{\hookleftarrow}}
23 % declare Unicode "downwards double arrow" to be TeX \Downarrow
24 \DeclareUnicodeCharacter{8659}{\ensuremath{\Downarrow}}
25 % define Unicode "white circle" to be TeX \circ
26 \DeclareUnicodeCharacter{9675}{\ensuremath{\circ}}
28 \usepackage[utf8x]{inputenc}
29 \usepackage[T1]{fontenc}
30 \usepackage{hyperref}
31 \usepackage[pdftex]{graphicx}
33 \def\museincludegraphics{%
34 \begingroup
35 \catcode`\|=0
36 \catcode`\\=12
37 \catcode`\#=12
38 \includegraphics[width=0.75\textwidth]
41 % One-inch margins
42 \usepackage{fullpage}
44 % A more PDF-friendly font
45 \usepackage{lmodern}
47 % An alternate, blockier font, should I ever want it
48 % \renewcommand{\familydefault}{\sfdefault} \sf
50 <lisp>(when (muse-publishing-directive "latex-block-paragraphs")
51 "\\setlength{\\parindent}{0pt}
52 \\setlength{\\parskip}{4pt}")
53 </lisp>
55 % For two-column documents, increase center margin to something readable
56 \setlength{\columnsep}{.25in}
58 \begin{document}
60 <lisp>(unless (muse-publishing-directive "latex-omit-title")
61 (concat "\\title{" (muse-publish-escape-specials-in-string
62 (muse-wiki-publish-pretty-title) 'document) "}
63 \\author{" (muse-publishing-directive "author") "}
64 \\date{" (muse-publishing-directive "date") "}
66 \\maketitle"))
67 </lisp>
69 <lisp>(and muse-publish-generate-contents
70 "\\tableofcontents
71 \\clearpage")</lisp>