Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover supervisor listings need changing #16

Open
ekspek opened this issue Dec 29, 2019 · 4 comments
Open

Cover supervisor listings need changing #16

ekspek opened this issue Dec 29, 2019 · 4 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@ekspek
Copy link
Owner

ekspek commented Dec 29, 2019

Some changes need to be made to the personnel listing on the cover.

  • Supervisors can be singular or plural, cover needs to account for both cases either manually or automatically
  • Thesis supervisors != supervisors in the jury, cover needs another variable
@ekspek ekspek added the invalid This doesn't seem right label Dec 29, 2019
@ekspek ekspek self-assigned this Dec 29, 2019
@ekspek
Copy link
Owner Author

ekspek commented May 7, 2020

Separated into supervisor(s) and committee supervisor(s) in the last couple of commits. Singular/plural is still being looked at.

@rodrigogiraoserrao
Copy link
Contributor

How do I go about not including some information on the cover? E.g. say I don't want a cover image or supervisors in the examination committee?

@ekspek
Copy link
Owner Author

ekspek commented Dec 21, 2020

Good question. I figured the ones I wrote were standard across the board, so I didn't consider other possibilities.

Unfortunately the cover is mostly hardcoded. I thought it would cover the general use cases that match the IST rules for thesis, which unfortunately also don't allow for much creativity, so I left customization out in exchange for binding it to a single command, which still gives me some troubles (hence why this issue is still open).

The fix for this case would be to get the original cover code and renew the \makecover command. So the original code is:

\newrobustcmd{\makecover}{
	\pagenumbering{roman}
	\setcounter{page}{0}
	\begin{titlepage}
	\includegraphics[viewport=9.5cm 11cm 0cm 0cm,scale=0.29]{IST_A_CMYK_POS}
	\begin{center}
		\vspace*{17mm}
		\includegraphics[width=\tcoverimagewidth\linewidth]{\tcoverimage}
		\par\vspace{\fill}
		{\LARGE\bfseries \ttitle}
		\par\vspace{10mm}
		{\Large \tsubtitle}
		\par\vspace{10mm}
		{\Large\bfseries
			\begin{tabular}{c c}
				&\tauthor
			\end{tabular}
		}
		\par\vspace{10mm}
		\ifbool{@english}
			{\large Thesis to obtain the Master of Science Degree in}
			{\large Dissertação para obtenção do Grau de Mestre em}
		\par\medskip
		{\LARGE\bfseries \tdegree}
		\par\vspace{10mm}
		{\large\renewcommand\arraystretch{0.9}
			\begin{tabular}{r l}
				\ifbool{@english}{Supervisor:}{Orientador:} & \tsupervisor
			\end{tabular}
		}
		\par\vspace{7mm}
		{\large\bfseries \ifbool{@english}{Examination Committee}{Júri}}
		\par\vspace{3mm}{\large\renewcommand\arraystretch{0.9}
			\begin{tabular}{r l}
				\ifbool{@english}
					{Chairperson:}{Presidente:}				& \tchairperson{}		\\
				\ifbool{@english}
					{Supervisor:}{Orientador:}				& \tcsupervisor{}		\\
				\ifbool{@english}
					{Members of the Committee:}{Vogais:}	& \tcommittee{}
			\end{tabular}
		}
		\par\vspace{10mm}
		{\large\bfseries \tdate{}}
	\end{center}
	\newpage
	\thispagestyle{empty}
	\vspace*{\fill}
	\small\setstretch{1}\noindent
	\begin{flushleft}
		\textcolor{gray}{\tcoverbacktext}
	\end{flushleft}
	\cleardoublepage
	\end{titlepage}
}

What you could do is:

\renewrobustcmd{\makecover}{
	\pagenumbering{roman}
	\setcounter{page}{0}
	\begin{titlepage}
	\includegraphics[viewport=9.5cm 11cm 0cm 0cm,scale=0.29]{IST_A_CMYK_POS}
	\begin{center}
		\vspace*{17mm}
		\par\vspace{\fill}
		{\LARGE\bfseries \ttitle}
		\par\vspace{10mm}
		{\Large \tsubtitle}
		\par\vspace{10mm}
		{\Large\bfseries
			\begin{tabular}{c c}
				&\tauthor
			\end{tabular}
		}
		\par\vspace{10mm}
		\ifbool{@english}
			{\large Thesis to obtain the Master of Science Degree in}
			{\large Dissertação para obtenção do Grau de Mestre em}
		\par\medskip
		{\LARGE\bfseries \tdegree}
		\par\vspace{10mm}
		{\large\renewcommand\arraystretch{0.9}
			\begin{tabular}{r l}
				\ifbool{@english}{Supervisor:}{Orientador:} & \tsupervisor
			\end{tabular}
		}
		\par\vspace{7mm}
		{\large\bfseries \ifbool{@english}{Examination Committee}{Júri}}
		\par\vspace{3mm}{\large\renewcommand\arraystretch{0.9}
			\begin{tabular}{r l}
				\ifbool{@english}
					{Chairperson:}{Presidente:}				& \tchairperson{}		\\
				\ifbool{@english}
					{Members of the Committee:}{Vogais:}	& \tcommittee{}
			\end{tabular}
		}
		\par\vspace{10mm}
		{\large\bfseries \tdate{}}
	\end{center}
	\newpage
	\thispagestyle{empty}
	\vspace*{\fill}
	\small\setstretch{1}\noindent
	\begin{flushleft}
		\textcolor{gray}{\tcoverbacktext}
	\end{flushleft}
	\cleardoublepage
	\end{titlepage}
}

Just put that in your preamble if you have the latest version and you should be good to go. Admittedly it's a bit hacky and is a nasty amount of new code in your preamble, but this way you can also change a number of other things in the cover. The lack of a cover image will probably leave an empty void that won't look right, so feel free to adjust the vertical spacing to fit your case (the \vspace calls in the beginning of the center environment).

Sorry I can't give a better answer. If you still get problems let me know.

@rodrigogiraoserrao
Copy link
Contributor

After some digging I figured everything is pretty standard, yes. I would only suggest flexibility in including a cover image or not, as per #18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants