ekspek / ist-thesis

Classe LaTeX para teses de mestrado do Instituto Superior Técnico

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cover supervisor listings need changing

ekspek opened this issue · comments

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

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

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?

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.

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.