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

[AY 22-23] Multi-Line Title Spacing Requires Manual Changes #36

Closed patrickrperrine closed 4 months ago

patrickrperrine commented 10 months ago

The \title field in "frontmatter.tex" https://github.com/CalPolyCSC/thesis-template/blob/3699f204b16ec80aa11b00ea79b5237b266ab02b/frontmatter.tex#L1 will need to be manually spaced-out for multi-line titles, like so

\title{Multi-line Thesis Title Following The\\ \vspace{3.5mm}Upside-Down Pyramid Format}

This can cause other spacing problems where the \title field is used by default such as on the Abstract Page (iv), which also has a related spacing issue raised here as Issue https://github.com/CalPolyCSC/thesis-template/issues/34.

patrickrperrine commented 10 months ago

(Accidentally marked as 'Closed')

It would also be nice if the title could be automatically displayed in an upside-down pyramid form, which would mitigate the need for manually determining where the appropriate spacing should be placed in the title field.

kpa28-git commented 10 months ago

Thanks. I created a command \covertitle just for the title on the cover page. Changing the frontmatter title field unfortunately changes the titles on pages (iii) and (iv). This might not be a problem for page (iv) depending on the structure of the title, but it uses the wrong indentation for page (iii) regardless.

I created a file "frontmatter2.tex" and added this content:

\newcommand{\covertitle}[0]{Multi-line Thesis Title Following The\\ \vspace{3.5mm}Upside-Down Pyramid Format}

I included "frontmatter2.tex" from "main.tex" (around line 116, line number might not be exactly right because I added other things to my "main.tex"):

% Declarations for Front Matter
\input{frontmatter}
\input{frontmatter2} % XXX formatting workarounds

I made these changes to "ucthesis.cls" (lines 336-348):

        \MakeTextUppercase{\covertitle} % XXX \title -> \covertitle [https://github.com/CalPolyCSC/thesis-template/issues/36]
    % or another variation would be:
    % \textsc{\@title}

        %\vfill\null
        \addvspace{1.15in} % XXX 1.4 -> 1.15 [https://github.com/CalPolyCSC/thesis-template/issues/27]

    A Thesis \par
    presented to \par
    the Faculty of California Polytechnic State University, \par
    \@campus

        \addvspace{1.15in} % XXX 1.4 -> 1.15 [https://github.com/CalPolyCSC/thesis-template/issues/27]
        %\vfill\null