Mercurial > dottes
comparison dottes.tex.a5header @ 230:4800e1f12632
Add a flashier title page to the LaTeX documents.
| author | Jim Hague <jim.hague@acm.org> | 
|---|---|
| date | Sat, 23 Feb 2013 13:48:06 +0000 | 
| parents | f606da6f8718 | 
| children | 440172d9f5d6 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 229:1e4443d58177 | 230:4800e1f12632 | 
|---|---|
| 1 \documentclass[a5paper,landscape,11pt]{article} | 1 \documentclass[a5paper,landscape,11pt]{article} | 
| 2 \usepackage{fontspec} | 2 \usepackage{fontspec} | 
| 3 \usepackage{graphicx} | 3 \usepackage{graphicx} | 
| 4 \usepackage{fancyhdr} | 4 \usepackage{fancyhdr} | 
| 5 \usepackage{longtable} | 5 \usepackage{longtable} | 
| 6 \usepackage[svgnames]{xcolor} | |
| 6 | 7 | 
| 7 \usepackage{hyperref} | 8 \usepackage{hyperref} | 
| 8 \hypersetup{ | 9 \hypersetup{ | 
| 9 bookmarks=true,% | 10 bookmarks=true,% | 
| 10 colorlinks=true,% | 11 colorlinks=true,% | 
| 43 % Don't show section numbers. | 44 % Don't show section numbers. | 
| 44 \setcounter{secnumdepth}{-1} | 45 \setcounter{secnumdepth}{-1} | 
| 45 | 46 | 
| 46 % ----- | 47 % ----- | 
| 47 | 48 | 
| 49 % Title page | |
| 50 \newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees | |
| 51 \newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees | |
| 52 | |
| 53 \newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document | |
| 54 \centering % Center all text | |
| 55 | |
| 56 \def\CP{\textit{\Huge Ye Crie Havock Booke of Dottes}} % Title | |
| 57 | |
| 58 \settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title | |
| 59 {\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket | |
| 60 \textcolor{Sienna}{\CP} \\[\baselineskip] % Print title | |
| 61 {\color{RosyBrown}\Large \input{subtitle.txt}} \\ % Tagline or further description | |
| 62 {\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket | |
| 63 | |
| 64 \vfill % Whitespace between the title and the author name | |
| 65 | |
| 66 {\Large\textbf{Cry Havoc}}\\ % Author name | |
| 67 | |
| 68 \vfill % Whitespace between the author name and the rest | |
| 69 | |
| 70 \today % Date published | |
| 71 | |
| 72 \endgroup} | |
| 73 | |
| 74 % ----- | |
| 75 | |
| 48 \begin{document} | 76 \begin{document} | 
| 49 | 77 | 
| 50 % ----- Headers and footers | 78 % ----- Headers and footers | 
| 51 | 79 | 
| 52 \pagestyle{fancyplain} | 80 \pagestyle{fancyplain} | 
| 55 \rfoot{\thepage} | 83 \rfoot{\thepage} | 
| 56 \renewcommand{\headrulewidth}{0pt} | 84 \renewcommand{\headrulewidth}{0pt} | 
| 57 | 85 | 
| 58 % ----- Title page and contents | 86 % ----- Title page and contents | 
| 59 | 87 | 
| 60 \title{Ye Crie Havock Booke of Dottes \\ \input{subtitle.txt}} | 88 \titleBC | 
| 61 | |
| 62 \author{Cry Havoc} | |
| 63 | |
| 64 \date{\today} | |
| 65 | |
| 66 \maketitle | |
| 67 | 89 | 
| 68 \newpage | 90 \newpage | 
| 69 | 91 | 
| 70 \tableofcontents | 92 \tableofcontents | 
| 71 | 93 | 
