# HG changeset patch # User Jim Hague # Date 1361627286 0 # Node ID 4800e1f126328ecce3fa0753ffabad726f69fdf3 # Parent 1e4443d58177bcf37fee16b4c5cff9bee0f63a42 Add a flashier title page to the LaTeX documents. diff -r 1e4443d58177 -r 4800e1f12632 dottes.tex.a4header --- a/dottes.tex.a4header Sat Feb 23 13:10:58 2013 +0000 +++ b/dottes.tex.a4header Sat Feb 23 13:48:06 2013 +0000 @@ -3,6 +3,7 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} +\usepackage[svgnames]{xcolor} \usepackage{hyperref} \hypersetup{ @@ -45,6 +46,33 @@ % ----- +% Title page +\newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees +\newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees + +\newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document +\centering % Center all text + +\def\CP{\textit{\Huge Ye Crie Havock Booke of Dottes}} % Title + +\settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title +{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket +\textcolor{Sienna}{\CP} \\[\baselineskip] % Print title +{\color{RosyBrown}\Large \input{subtitle.txt}} \\ % Tagline or further description +{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket + +\vfill % Whitespace between the title and the author name + +{\Large\textbf{Cry Havoc}}\\ % Author name + +\vfill % Whitespace between the author name and the rest + +\today % Date published + +\endgroup} + +% ----- + \begin{document} % ----- Headers and footers @@ -57,13 +85,7 @@ % ----- Title page and contents -\title{Ye Crie Havock Booke of Dottes \\ \input{subtitle.txt}} - -\author{Cry Havoc} - -\date{\today} - -\maketitle +\titleBC \newpage diff -r 1e4443d58177 -r 4800e1f12632 dottes.tex.a5header --- a/dottes.tex.a5header Sat Feb 23 13:10:58 2013 +0000 +++ b/dottes.tex.a5header Sat Feb 23 13:48:06 2013 +0000 @@ -3,6 +3,7 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} +\usepackage[svgnames]{xcolor} \usepackage{hyperref} \hypersetup{ @@ -45,6 +46,33 @@ % ----- +% Title page +\newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees +\newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees + +\newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document +\centering % Center all text + +\def\CP{\textit{\Huge Ye Crie Havock Booke of Dottes}} % Title + +\settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title +{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket +\textcolor{Sienna}{\CP} \\[\baselineskip] % Print title +{\color{RosyBrown}\Large \input{subtitle.txt}} \\ % Tagline or further description +{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket + +\vfill % Whitespace between the title and the author name + +{\Large\textbf{Cry Havoc}}\\ % Author name + +\vfill % Whitespace between the author name and the rest + +\today % Date published + +\endgroup} + +% ----- + \begin{document} % ----- Headers and footers @@ -57,13 +85,7 @@ % ----- Title page and contents -\title{Ye Crie Havock Booke of Dottes \\ \input{subtitle.txt}} - -\author{Cry Havoc} - -\date{\today} - -\maketitle +\titleBC \newpage