For my PhD thesis, I'm using the following template available at: https://github.com/mcmanigle/OxThesis

When I compile this in TeXStudio with pdfLaTeX everything works well. However, when I use LuaLaTeX - which I prefer, especially in order to avoid issues with special characters - I get a range of "! Undefined control sequence." errors.

Unfortunately, my knowledge of TeX is much too basic to figure out what I should change in order to make this template work with LuaLaTeX.

Any help / suggestions would be very much appreciated!


1 Answer 1


As Alan said the [pdftex] option should be removed from graphicx (it is best to remove that even if you are using pdftex)

Then the block starting at line 412

% JEM: for crazy multi character set quotes and Unicode and all
\def\longs{{\fontencoding{TS1}\selectfont s

should be


(Latin Modern is the default in luatex and you should never use inputenc or fontenc packages with LuaTeX oe XeTeX)

(500 seems rather high for \hyphenpenalty but that comment would also apply if using pdftex)

  • Any particular reason you did not suggest polyglossia? It is my understanding that issues from a few years ago are no longer issues.
    – user139954
    Commented Mar 29, 2018 at 19:35
  • @RobtAll well since I'm english it doesn't make any difference, certainly babel is being much more actively updated than polyglossia currently, so unless there was a specific issue and you are using babel I see no reason to suggest changing. Commented Mar 29, 2018 at 19:59
  • I didn't look that far down the class. I've deleted my answer since this covers both.
    – Alan Munn
    Commented Mar 29, 2018 at 20:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .