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

Weird output with XeLaTeX #154

Closed gkampolis closed 6 years ago

gkampolis commented 6 years ago

Issue short description

LaTeX beginner here... After compiling with XeLaTex (and no other changes), there is "weird" output at the start of the file (see image below): capture

Expected Behavior

With no other changes, it should compile like in pdflatex, correct? pdflatex output shown below: capture2

Steps to Reproduce

I simply changed the mentions of pdflatex to xelatex in compile-thesis-windows.bat, like so:

SET FILENAME=thesis

DEL "%FILENAME%.aux"
DEL "%FILENAME%.bbl"
DEL "%FILENAME%.blg"
DEL "%FILENAME%.d"
DEL "%FILENAME%.fls"
DEL "%FILENAME%.ild"
DEL "%FILENAME%.ind"
DEL "%FILENAME%.toc"
DEL "%FILENAME%.lot"
DEL "%FILENAME%.lof"
DEL "%FILENAME%.idx"
DEL "%FILENAME%.out"
DEL "%FILENAME%.nlo"
DEL "%FILENAME%.nls"
DEL "%FILENAME%.pdf"
DEL "%FILENAME%.ps"
DEL "%FILENAME%.dvi"

xelatex -interaction=nonstopmode "%FILENAME%.tex"
bibtex "%FILENAME%.aux"
makeindex "%FILENAME%.aux"
makeindex "%FILENAME%.idx"
makeindex "%FILENAME%.nlo" -s nomencl.ist -o "%FILENAME%".nls
xelatex -interaction=nonstopmode "%FILENAME%.tex"
makeindex "%FILENAME%.nlo" -s nomencl.ist -o "%FILENAME%".nls
xelatex -interaction=nonstopmode "%FILENAME%.tex"

DEL "%FILENAME%.aux"
DEL "%FILENAME%.bbl"
DEL "%FILENAME%.blg"
DEL "%FILENAME%.d"
DEL "%FILENAME%.fls"
DEL "%FILENAME%.ild"
DEL "%FILENAME%.ind"
DEL "%FILENAME%.toc"
DEL "%FILENAME%.lot"
DEL "%FILENAME%.lof"
DEL "%FILENAME%.idx"
DEL "%FILENAME%.out"
DEL "%FILENAME%.nlo"
DEL "%FILENAME%.nls"

"%FILENAME%.pdf"

Technical Details (OS, project version, relevant details)

krishnakumarg1984 commented 6 years ago

I can confirm the same problem here. XeLatex is completely broken even with the given unix build recipe

kks32 commented 6 years ago

Hi @krishnakumarg1984 I have fixed the issue on unix XeLaTeX issue. Could you try with the latest release? Use the following command to compile?

latexmk -xelatex thesis.tex
makeindex thesis.nlo -s nomencl.ist -o thesis.nls
latexmk -xelatex -g thesis.tex
kks32 commented 6 years ago

Hi @gkampolis

I don't have a Windows system to test. If you have latexmk installed on Windows through TexLive or MikTex, then you can replace the content of compile-thesis-windows.bat with this:

latexmk -xelatex thesis.tex
makeindex thesis.nlo -s nomencl.ist -o thesis.nls
latexmk -xelatex -g thesis.tex

and see if that helps?

krishnakumarg1984 commented 6 years ago

Hi @kks32

I can confirm that with commit 85a8d91, this issue has been fixed. You may close this issue.

trecsim commented 5 years ago

Using overleaf with Xelatex compiler on windows, this issue is still replicable. I need a custom font (Verdana) so I have to use xelatex instead of pdflatex, but as a result, I am getting this error. Please help!