2

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!

0

1 Answer 1

4

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
\usepackage{lmodern}
\usepackage[LGR,TS1,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek,latin,english]{babel}
\usepackage{csquotes}
\hyphenpenalty=500
\def\longs{{\fontencoding{TS1}\selectfont s

should be

\usepackage[greek,latin,english]{babel}
\usepackage{csquotes}
\hyphenpenalty=500
\def\longs{^^^^017F}

(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)

3
  • 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 .
https://tex.stackexchange.com/questions/423904/adjusting-latex-thesis-template-to-lualatex
tex.stackexchange.com
CC-MAIN-2024-26
142383
application/http; msgtype=response
sha1:HICFYJMPEIYCKLXWZGWJEI5QWWY72U2Z
<urn:uuid:9627c67e-93d6-4eee-81ec-b8afb0dbdcf9>
2024-06-13T15:09:45Z
172.64.144.30
text/html
sha1:KPNWHYWZ6SY6W67DCWE75I4G6QSPXTBL
<urn:uuid:7c2410cc-bfd9-4601-a702-92f853af02c3>
https://tex.stackexchange.com/questions/423904/adjusting-latex-thesis-template-to-lualatex
response
<urn:uuid:32866ccf-f178-407c-a43b-158ed62d9ff1>
isPartOf: CC-MAIN-2024-26
publisher: Common Crawl
description: Wide crawl of the web for June 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-185
software: Apache Nutch 1.20 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/