ismayc / thesisdown

An updated R Markdown thesis template using the bookdown package
Other
809 stars 357 forks source link

How do I remove the "Approved for the division page" without running into an error? #194

Closed marcyshieh closed 1 year ago

marcyshieh commented 1 year ago

I want to take the "Approved for the division page" out, but whenever I remove the LaTeX from those pages, my file fails to knit.

Whenever I remove this from reedthesis.cls:

  {\fontsize{12}{14}
  \setbox0=\hbox{Approved for the \@approvedforthe}
  % \thispagestyle{empty}
  \null\vfil        % just below center of page
  \par\vskip 6cm    % below center, not center
  \centerline{\copy0}   % approved
  \centerline{(\@department)} %major
  \vskip 1cm        %space to sign
  \centerline{\makebox[\wd0][c]{\hrulefill}
    \if@altadvisor \makebox[.5in]{} \makebox[\wd0][c]{\hrulefill} \fi}
  \centerline{\makebox[\wd0][c]{\@advisor}
    \if@altadvisor \makebox[.5in]{} \makebox[\wd0][c]{\@altadvisor} \fi}
  \par\vfil\null}
  }
}

I get the following error:

! File ended while scanning use of \@argdef.
<inserted text> 
                \par 
l.33 \usepackage
                {graphicx,latexsym} 

Error: LaTeX failed to compile thesis.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See thesis.log for more info.
Execution halted
github-actions[bot] commented 1 year ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.