TeX - LaTeX Asked by PietroP on June 1, 2021
I am new to LaTex.
I’m trying to create a thesis cover according to my University’s guidelines. I think I am almost there. However, I need some help:
date{today}
I don’t get the date.I have tried my best and got this with my code:
documentclass[a4paper,12pt]{report}
usepackage {graphicx}
graphicspath{{./images/}}
begin{document}
begin{titlepage}
begin{center}
vspace*{1cm}
includegraphics[width=0.4textwidth]{novalaw}
bigskip
textbf{Author's Name}
vspace{0.5cm}
vspace{1.5cm}
textbf{Thesis Title}
end{center}
begin{flushright}
vfill
Thesis to obtain a Master's Degree in Law, in
the speciality of…
vspace{0.8cm}
end{flushright}
begin{center}
Supervisor:
Name
end{center}
date{today}
end{titlepage}
end{document}
My University requires like this:
Many thanks.
The following redefines maketitle
(you might want to hide the definition in some other file to keep your main file clean). This is just a sketch of your title page and might need some more fine tuning to match your formatting better, but it should get you started.
I defined the macros myspecialty
to set the specialty. It takes an optional argument defining the thesis type (should be either doctoral
or master
). The mandatory argument can be used to specify the specialty. If the value is security
the "Doctoral Degree in Law and Security" is used.
The other macro I defined is mysupervisor
to directly specify the supervisor.
You can use the normal macros author
, title
, and date
to define those elements.
You might want to change the example-image-duck
to the actual logo you need to use.
documentclass[a4paper,12pt]{report}
usepackage[]{graphicx}
ExplSyntaxOn
cs_new_eq:NN textuppercase text_uppercase:n
cs_new_eq:NN strifeqon str_if_eq:onTF
ExplSyntaxOff
makeatletter
newcommand*@myspecialty{}
newcommand*@myspecialtytype{}
newcommand*@mysupervisor{}
NewDocumentCommandmyspecialty{O{doctoral} m}
{%
gdef@myspecialtytype{#1}%
gdef@myspecialty{#2}%
}
NewDocumentCommandmysupervisor{m}{gdef@mysupervisor{#1}}
RenewDocumentCommandmaketitle{}
{%
begin{titlepage}%
begin{center}%
includegraphics[width=.3paperwidth]{example-image-duck}par
vspace{1cm}%
{largetextuppercase{@author}par}%
vfill
vfill
{Largebfseriestextuppercase{@title}par}%
end{center}%
vfill
nullhfill
begin{minipage}{.5linewidth}
raggedright
strifeqon@myspecialtytype{doctoral}%
{%
Thesis to obtain a Doctoral Degree in
strifeqon@myspecialty{security}%
{Law and Security}
{Law, in the specialty of @myspecialty}%
}
{%
strifeqon@myspecialtytype{master}%
{%
Dissertation to obtain a Master's Degree in Law, in the
specialty of @myspecialty
}
{PackageError{mytitle}{Unknown degree type @myspecialtytype}{}}%
}%
end{minipage}%
vfill
vfill
vfill
begin{center}
Supervisor:
@mysupervisor
vfill
@date
end{center}
vfill
null
end{titlepage}%
}
makeatother
begin{document}
author{Author's Name}
title{Thesis or Dissertation Title}
myspecialty[master]{creating titlepages}
mysupervisor{Dr. Maria da Silva, Professor of the NOVA School of Law}
date{today}
maketitle
end{document}
Answered by Skillmon on June 1, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP