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

UIUC LaTeX PDF ECE Department Thesis Style #15

Closed
wants to merge 23 commits into from
Closed

Conversation

coatless
Copy link
Collaborator

@coatless coatless commented May 23, 2019

Closes #14 by implementing the ECE thesis style

  • Add R function hook similar to thesisdown::thesis_pdf
  • Convert the thesis.tex over to template.tex
    • Note: IEEE style has issues with hyperref
  • Separate out reference and appendix sections.
  • Add _bookdown.yml and output.yml

ECE Thesis style is available at:

Further details can be found on the official ECE Department @ UIUC Website.

Template disclaimer

The Grad College at UIUC does not provide a LaTeX template. The template converted here is the "best" LaTeX version available. However, there is a word thesis template available here: https://grad.illinois.edu/thesis/format

Note: It might be fun to look into redoc and officer.

There are other templates around such as:

@coatless
Copy link
Collaborator Author

Right now, the PR is being held up due to hyperref not playing nicely with \MakeUppercase. So, using any chapter heading, e.g. # Chapter, is getting a nice ol' error of:

! Undefined control sequence.
\MakeUppercase ...ppercaseUnsupportedInPdfStrings 

Error: Failed to compile _main.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See _main.log for more info.
Please delete _main.Rmd after you finish debugging the error.

@coatless
Copy link
Collaborator Author

coatless commented May 23, 2019

So, the solution I opted to go for here is to modify the .cls file.

That is, going from:

\MakeUppercase{}

to

\texorpdfstring{\MakeUppercase{text}}{}

Useful links:

\makeatletter
\renewcommand{\section}{\@ifstar{\@sSection}{\@Section}}
\newcommand{\@sSection}[2][]{%
  \oldsection*{\texorpdfstring{\MakeUppercase{#2}}{#2}}}
\newcommand{\@Section}[2][]{%
  \def\shortsec{#1}%
  \ifx\shortsec\empty%
    \oldsection{\texorpdfstring{\MakeUppercase{#2}}{#2}}
  \else%
    \oldsection[\texorpdfstring{\MakeUppercase{#1}}{#1}]{\texorpdfstring{\MakeUppercase{#2}}{#2}}
  \fi}
\makeatother

Note: Not all instances were changed. Only instances that dealt with a hyperref.

@coatless
Copy link
Collaborator Author

Still not where it needs to be...

! Undefined control sequence.
\listtablename ...tablename \else \texorpdfstring 
                                                  {\MakeUppercase {\thesis@l...
l.97 \listoftables

@coatless coatless closed this Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add UIUC Thesis style
1 participant