changeset 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 1e4443d58177
children 3629dff70c5f
files dottes.tex.a4header dottes.tex.a5header
diffstat 2 files changed, 58 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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