Skip to content

Commit

Permalink
Made changes to the coverpage to look like the new templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Micket committed Feb 5, 2015
1 parent 6a4379c commit e90656e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
12 changes: 6 additions & 6 deletions ExampleMasters.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
% http://en.wikibooks.org/wiki/LaTeX/
% See chalmers-thesis.cls for the documentation on this actual template.

\RequirePackage[l2tabu,orthodox]{nag} % This package helps prevent you from doing things wrong.
%\RequirePackage[l2tabu,orthodox]{nag} % This package helps prevent you from doing things wrong.

% change masters to bachelors if necessary
\documentclass[masters,a4paper]{chalmers-thesis}
\documentclass[masters,university,a4paper]{chalmers-thesis}
% All options are; doctorate, licentiate, masters, bachelors, techreport, projectreport, nocover, draft, g5paper,
% and everything the standard report class support.
\usepackage{ifluatex} % Automatic check for luatex.
Expand All @@ -27,7 +27,7 @@
\usepackage[utf8]{inputenc} % File encoding, you should try to stick to utf8.
\fi
\usepackage{microtype} % Magically improves typesetting for pdflatex
\usepackage{subfiles} % Convenient use of subfiles in documents. Using \subfile is optional. See README
%\usepackage{subfiles} % Convenient use of subfiles in documents. Using \subfile is optional. See README
\usepackage{hyperref} % Required for in document links and document metadata.
\usepackage[swedish, english]{babel}

Expand All @@ -53,9 +53,9 @@

% User commands
\title{The Title of Your Thesis which might be very long}
\subtitle{And Perhaps a Subtitle} % Optional
%\subtitle{And Perhaps a Subtitle} % Optional
\author{Some Author\and Other Author}
\thesisin{Solid and Structural Mechanics}
\thesisin{Applied Mechanics}
\department{Department of Applied Mechanics}
\division{Division of Solid Mechanics}
\reportno{2011:01}
Expand Down Expand Up @@ -114,7 +114,7 @@

% Sets up page numbering for the rest of the document.
% Highly recommended to put contents into subfiles, or use \input.
\subfile{ExampleIntroduction}
%\subfile{ExampleIntroduction}
%\subfile{Introduction}
%\subfile{Theory}
%\subfile{Method}
Expand Down
43 changes: 19 additions & 24 deletions chalmers-thesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,8 @@
\if@bachelors
\global\@bachelorsormasterstrue
\ISSN{1654-4676}
\def\titlepage@edge{draw}
\def\titlepage@chalmerscolor{black}
\def\titlepage@bg{}
\def\titlepage@bg{\draw[ultra thick] (0.1\paperwidth,0) -- (0.99\paperwidth,0);}
\def\titlepage@logotype{Avancez_invert}
\def\titlepage@chagu{Cha_GU_blue_eng}
\def\thesisname{\bachelorsthesisname}
Expand All @@ -345,17 +344,15 @@
\if@masters
\global\@bachelorsormasterstrue
\ISSN{1652-8557}
\def\titlepage@edge{draw}
\def\titlepage@chalmerscolor{black}
\def\titlepage@bg{\draw[step=5mm,black] (0,0) grid (\paperwidth,0.25\paperheight);}
\def\titlepage@bg{\draw[ultra thick] (0.1\paperwidth,0) -- (0.99\paperwidth,0);}
\def\titlepage@logotype{Avancez_white}
\def\titlepage@chagu{Cha_GU_bluewhite_eng}
\def\thesisname{\masterthesisname}
\def\@reportseries{\thesisname}
\fi
\if@licentiate
\ISSN{1652-8565}
\def\titlepage@edge{}
\def\titlepage@chalmerscolor{white}
\def\titlepage@bg{\fill[chalmers_grey] (0,0) rectangle (\paperwidth,0.25\paperheight);}
\def\titlepage@logotype{Avancez_black}
Expand All @@ -365,7 +362,6 @@
\fi
\if@doctorate
\ISSN{0346-718X}
\def\titlepage@edge{}
\def\titlepage@chalmerscolor{white}
% The chalmers_blue is supposely the correct one, but it doesn't match at all.
%\def\titlepage@bg{\fill[chalmers_blue] (0,0) rectangle (\paperwidth,0.25\paperheight);}
Expand All @@ -379,9 +375,8 @@
\fi
\if@techreport
\ISSN{1652-8549}
\def\titlepage@edge{draw}
\def\titlepage@chalmerscolor{black}
\def\titlepage@bg{\draw[step=5mm,black] (0,0) grid (\paperwidth,0.25\paperheight);}
\def\titlepage@bg{\draw[black] (0.1\paperwidth,0) -- (0.99\paperwidth,0);}
\def\titlepage@logotype{Avancez_white}
\def\titlepage@chagu{Cha_GU_bluewhite_eng}
\def\thesisname{\techreportname}
Expand Down Expand Up @@ -525,7 +520,7 @@

% Introducing some new lengths for the front page
\newlength{\headerheight}
\setlength{\headerheight}{0.18812\paperheight}%~5.6cm in a4
\setlength{\headerheight}{0.13085\paperheight}%~5.6cm in a4

\AtEndPreamble{
\@ifpackageloaded{tikz}{
Expand All @@ -534,34 +529,34 @@
\begin{tikzpicture}[remember picture,overlay]
\node[yshift=-\headerheight] at (current page.north west)
{\begin{tikzpicture}[remember picture, overlay]
\clip[\titlepage@edge] (0,\headerheight) -- +(\paperwidth,0) -- (\paperwidth,0) -- (0,0) -- cycle;
\titlepage@bg
\if@university
\node[anchor=west,xshift=0.1\paperwidth,yshift=0.55\headerheight,inner sep=0]{\includegraphics[width=0.8\paperwidth]{figures/\titlepage@chagu}};
\else
\node[anchor=west,xshift=0.1\paperwidth,yshift=0.516\headerheight]{\includegraphics[width=0.16\paperwidth]{figures/\titlepage@logotype}};
\node[anchor=west,xshift=0.28\paperwidth,yshift=0.511\headerheight]{\chalmerslogo{\titlepage@chalmerscolor}{0.55\paperwidth}}; % 13.2cm for A4 paper
\node[anchor=west,xshift=0.1\paperwidth,yshift=0.45\headerheight]{\includegraphics[width=0.884in]{figures/\titlepage@logotype}}; %width=0.107*8.262772in
\node[anchor=west,xshift=0.1\paperwidth,yshift=0.45\headerheight]{\hspace{1in}\chalmerslogo{\titlepage@chalmerscolor}{3.305in}}; % 13.2cm for A4 paper
\fi
\end{tikzpicture}};
\if@university
\node[anchor=south east,xshift=-0.1\paperwidth,yshift=0.1\paperheight,inner sep=0] at (current page.south east)
{\includegraphics[width=0.171\paperwidth]{figures/\titlepage@logotype}};
\fi
%\if@university
% \node[anchor=south east,xshift=-0.1\paperwidth,yshift=0.1\paperheight,inner sep=0] at (current page.south east)
% {\includegraphics[width=0.171\paperwidth]{figures/\titlepage@logotype}};
%\fi
\end{tikzpicture}
\ \vfill
\ \vfill\vfill\vfill
\begin{center}
\@ifundefined{@coverfigure}{}{\@coverfigure}
\end{center}
{\raggedright\huge\bfseries\sffamily\noindent\@title\par} % title, 21
\@ifundefined{@subtitle}{}{{\Large\sffamily\noindent\@subtitle\par}} % subtitle, 16
{\raggedright\Huge\bfseries\sffamily\noindent\@title\par} % title, 21
\@ifundefined{@subtitle}{\vspace{1em}}{{\huge\sffamily\noindent\@subtitle\par}} % subtitle, 16
\if@bachelorsormasters
{\normalsize\noindent{\sffamily\thesisname\ \inname\ \@thesisin}\par} % 14 thesis in programmename (only bachelor's and master's)
{\large\noindent{\sffamily\thesisname\ \inname\ \@thesisin}\par} % 14 thesis in programmename (only bachelor's and master's)
\fi
\vskip 1.5em
{\renewcommand{\and}{\\}\Large\sffamily\noindent \MakeUppercase{\@author}\par}% 18
\hspace{-0.5em}\rule{1.05\linewidth}{0.5pt}
\vskip 1.em
{\small\sffamily\noindent\@department\\
\vfill\vfill
\rule{0.89\paperwidth}{0.5pt}
\vskip 0.3em
{\normalsize\sffamily\noindent\@department\\
%\@ifundefined{@division}{}{\textit{\@division}\\} % Not used anymore.
\MakeUppercase{\universityname}\\
\if@university
Expand All @@ -572,7 +567,7 @@
% \if@bachelorsormasters
% \\ \thesisname\ \@reportno \fi
\par}

\vskip -4em
% Second page, blank
\newpage
\mbox{}
Expand Down

0 comments on commit e90656e

Please sign in to comment.