kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
833 stars 400 forks source link

turn off line numbers in draft mode #164

Closed godey4me closed 6 years ago

godey4me commented 6 years ago

Hi, I want to turn off the line numbers in draft mode. How do I do that? I have tried lineno=off and lineno=false in the documentment class but non had any effect. The .cls says can be turned off below but did not say how. Thanks % Line numbering (can be switched off) \ifPHD@lineno \RequirePackage[switch,pagewise,mathlines]{lineno} %switch,pagewise,mathlines \renewcommand{\frontmatter}{% \cleardoublepage \@mainmatterfalse \pagenumbering{roman} \nolinenumbers } \renewcommand{\mainmatter}{% \cleardoublepage \@mainmattertrue \pagenumbering{arabic} \linenumbers } \renewcommand{\backmatter}{% \if@openright \cleardoublepage \else \clearpage \fi \@mainmatterfalse \linenumbers }

kks32 commented 6 years ago

Pass nolineno to the documentclass options https://github.com/kks32/phd-thesis-template/blob/master/thesis.tex#L4 this will disable line numbering.

godey4me commented 6 years ago

it works. appreciated.