In my thesis, in overleaf, I use my university thesis as document class. In the fisrt page there are command for head of school and nominating professor which I want to remove them. But when I deactive the command by % and recompile the document they are not removed still there with other words in pdf version. Just wondering if you could let me know how can I remove them? for example:

\headSchool{Prof. Mike Niki} % vice provost name 
\nomProf{Dr Adam Woods}

I tried this (even I removed them)

% \headSchool{Prof. Mike Niki} % vice provost name 
% \nomProf{Dr Adam Woods}

When I compile, in the PDF version this can be seen:

Head of School: Prof. Thom Jackson Nominating Professor: My Nominating Professor

  • 1
    Welcome to TeX - LaTeX! Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.`` – Alessandro Cuttin Sep 4 '20 at 9:43
  • what is your university thesis documentclass? – Alessandro Cuttin Sep 4 '20 at 9:46
  • It seems to me your university has gone to some length to prevent you from doing what you want to do. You can still do it my editing the document class, but I would not recommend it. – John Kormylo Sep 4 '20 at 14:24
  • If you could just add the name of the documentclass, this would help for future reference – Alessandro Cuttin Sep 7 '20 at 9:25

Instead of commenting the lines, try

\headSchool{ }
\nomProf{ }

that is, with an empty space between the brackets. It's likely that Thom Jackson and My Nominating Professor are the default values of the commands.

  • Thanks Alessandro, I followed your advise but the title are still there – Mohammad Ali Ekhtiari Sep 4 '20 at 9:57

Perhaps try deleting all of the auxiliary files (e.g. ending in log, aux, dvi, lof, lot, bit, idx, glo, bbl, ilg, toc, ind, out, blg, which is pretty much everything that doesn't end in tex, albeit with a few exceptions), and then recompiling. Most IDE's (such as TexStudio have a button for this in their Tools tab).

  • Thanks so much Oliver, – Mohammad Ali Ekhtiari Sep 4 '20 at 10:50
  • @MohammadAliEkhtiari If it worked then please consider upvoting/accepting, and if not then please specify what's not working. – oliversm Sep 4 '20 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.