forked from CryHavoc/dottes
Add a flashier title page to the LaTeX documents.
This commit is contained in:
parent
6c091c1470
commit
c2686353cc
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue