CalPolyCSC / thesis-template

A LaTeX template for Cal Poly Master's theses which conforms to the guidelines given by the graduate education department.
MIT License
52 stars 59 forks source link

Dedication Page #28

Closed abergsneider closed 4 months ago

abergsneider commented 3 years ago

Good evening, is there any special recommendation for implementing a dedication page?

I see some information mentioned on: https://github.com/CalPolyCSC/thesis-template/blob/4fc49fb678c31a02bd8c98e910f6c6a5fadeee29/ucthesis.cls#L505

Thanks for any guidance in advance.

Andres

abergsneider commented 3 years ago

Answering my own question, or at least the steps I performed to make it work:

Below line 505 (mentioned above) I added the following code:

% DEDICATION
%
% The dedication environment just makes sure the dedication gets its
% own page.

\newenvironment{dedication}{\begin{alwayssingle}
\begin{center}
{\dedicationname}
\end{center}
}{\end{alwayssingle}}

Below line 233 of the same .cls file I added the following:

% dedication environment
\def\dedicationname{DEDICATION}

Then, I added the following to main.tex (underneath acknowledgments input)

\begin{dedication}
\input{dedication}
\end{dedication}

Lastly, and most importantly, on the root location of the LaTeX file I created a file named dedication.tex, in here I typed my dedication.