Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird output with XeLaTeX #154

Closed
gkampolis opened this issue Feb 15, 2018 · 5 comments
Closed

Weird output with XeLaTeX #154

gkampolis opened this issue Feb 15, 2018 · 5 comments

Comments

@gkampolis
Copy link

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)

  • Windows 10
  • TexLive 2017
@krishnakumarg1984
Copy link

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

kks32 added a commit that referenced this issue Apr 3, 2018
@kks32
Copy link
Owner

kks32 commented Apr 3, 2018

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
Copy link
Owner

kks32 commented Apr 3, 2018

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
Copy link

krishnakumarg1984 commented Apr 4, 2018

Hi @kks32

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

@kks32 kks32 closed this as completed Apr 4, 2018
@trecsim
Copy link

trecsim commented Aug 25, 2019

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!

Fourthbus added a commit to Fourthbus/thesis-template that referenced this issue Jul 9, 2024
* Sync PDF, DVI, PS with TeX file

* Changelog

* Update to README makepdf makeps

* MIT License

* Changelog

* Updated format in tex file

* update to changelog

* Appendices after references

* Version 1.0

* Update to Acknowledgment

* Update to ChangeLog

* Acknowledgements

* Update ChangeLog

* TOC, LOF, LOT renaming options

* Biblatex implementation in progress

* Biblatex with TOC

* Bibfile specification in thesis.tex

* PhD Thesis Template Latest

* Version 1.1 Biblatex - bibtex backed and chapter mode

* Update to readme

* Modification on how biblatex was handled

* update to readme

* Version 1.1.1

* Abstract Separate with no page numbering and Declaration as per university guidelines

* Removed dependencies on obsolete packages

* Update to readme

* Version 1.2

* draft mode fixed hyperref issue

* compile-thesis.sh: Fix typo.

* arara, wc, shellscript update

* Arara default is latex

* Subcaption package and line spacing

* Supports Latexmk

* latexmk with mpost

* inkscape files handling in latexmk

* breakurl sty file

* Lineno enable/disable option

* restylefloat in preamble

* Update to readme

* lineno and caption packages

* draftcopy

* Draft mode with figures

* Arara clean

* backref removed as it's previously loaded

* fixed onehalfspace bug in cls file

* PDFLaTeX footnote warning fixed moved hyperref after all packages are loaded

* Moved hyperref package definition above breakurl -- fixed dependency issue

* Grammer change in declaration

Changed ‘less’ to ‘fewer’

* Declaration grammer and acknowledgments

* One-half spacing as default

* Draft using Background package

* Draftmode with watermark

* Degree date automated

* Draft - Position and version customisation

* Gray Scale

* CustomMargin

* CustomMargin with check for geometry package

* Draft disable figures option

* Custom Font

* Custom Bibliography

* Customfont - duplicating options has to be checked

* custombib with error catcher

* Font selection with conflict prevention

* Sentence case as per Uni identity guidelines

* Custom Font and messages

* Backward compatibility - setMargin

* Readme - draftmode

* Hotfix: custommargin was printing true on the first page - issue fixed

* Justified text

* Justify bug fixed

* Formatting tables - guidelines

* trying out travis-ci

* Travis-CI: Build status in readme

* Update to travis yml to minimise latex base

* texlive-science in travis - siunitx

* Travis - fonts

* Texlive fonts in travis-ci

* license and readme

* update to license.md

* travis - latex - dvi - ps2pdf

* travis - psutils

* degree date is centered, when college is undefined

* Fixes kks32#18: Custombib displays true on front page

* Version 1.3-stable bug fix custombib

* custombib - true on front page issue fixed

* Subtitle fixed kks32#9

* Fixes issue with declaration

* update to changelog

* Update to Readme

* Update to Readme and Changelog

* Update to ChangeLog

* Version 1.4

* biblatex check and lineno

* numbered citation

* Version 1.4.1 update to declaration and customfont set to Helvet

* Update to Readme

* 80 character width enforcement

* ChangeLog for version 1.4.1

* Update to latest release link in readme file

* Todo notes - annotations

* Tweaks to todonotes

* Club and widow penalty

* Fixed nomencl[x units] in abstract mode

* Moved todo notes to preamble

* setDraft

* Draftmode with comment options

* Hide TOC in TOC

* Table of contents in bookmarks and not in contents

* Fixes issue kks32#23

* Update to readme incl. Texstudio - nomenclature

* draft and draftclassic

* Draft and Draft classic support

* Fixing the pagenumbering issue in oneside

* Fixing oneside titlepage numbering error

* Moved oneside page numbering issue fix to class file

* Fixes kks32#24 issue on one-side pagenumbering in titlepage

* Update to readme - draftmode

* Version 1.4.2

* Fixed Issue kks32#26

* Version 1.4.3

* Add a Bitdeli badge to README

* removed trending

* College shields in the front page [optional] and title page cleanup

* Kings shield from college

* Minimum crest width for University crest and logo

* Title page width adjustment

* bug nomenclature page numbering

* Fixed issue kks32#28

* Version 1.4.4

* update to changelog

* removed the classfile from the main folder

* Nomenclature issue kks32#28 fixed

* Dropped arara support

* Fixed issue with alignment on front page

* version 1.4.5

* v1.4.5

* v1.4.5 fixed title page alignment

* Title page alignment issue fixed

* fixes issue kks32#29

* Fixes issue kks32#29

* draftclassic and draft instructions in thesis file

* Remove deprecated commands

* Update to readme for openany option

* updated to readme for openany option

* Version 2.0 Coding with XeLaTeX and LuaLaTeX support

* LuaLaTeX and XeLaTeX support

* College shield

* College and Year alignment

* CUED LaTeX PhD Thesis Template - v2.0

* Fixed reopened issue kks32#16

* Updated changelog

* ragged bottom, parskip and enumeration spaces

* Added support to include supervisor and advisor

* v2.1

* Add Gitter badge

* Add Gitter badge

* clarified latexmk xelatex command  line

* extended xelatex commands with makeindex

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

This ensures that the nomenclature is included if defined, latexmk is not capable of doing so unless hacked
https://mg.readthedocs.org/latexmk.html

* Update University logo long version and link to logo in Readme

* Gonville and Caius shield

* make it executable

* added multiple supervisors and advisors to titlepage issue kks32#48

* Fixed compilation error for multiple supervisors (using \newline)

* Commented supervisor and advisor options in thesis-info as they are optional in University of Cambridge thesis

* Fixes issue kks32#91

* Fixes maketitle and multiple supervisor and advisor support

* Version 2.2

* Include commit for v2.2 in ChangeLog

* Removed deprecated function romanpages in preamble

* Removed deprecated function romanpages in preamble - issue kks32#101

* Fixes issue kks32#101, draft numbers frontmatter with roman and mainmatter with arabic numerals

* CUED LaTeX PhD Thesis Template - v2.2.1

* Fixes kks32#107

* CUED LaTeX PhD Thesis Template - v2.2.2

* Aligned supervisors on P(rof.)

* Fixes kks32#113

* Fixes kks32#113 alignment of supervisor and advisor

* Issue kks32#114 provide classname

* Added TEX-Root to chapters

* Fixes 118 font size processing

* Fixes kks32#118 font size processing

* Fixes kks32#119 Option process and DVI

* Fixes incorrect driver in geometry setup

* Fixes 10pt document class option

* Fixes anything breaks

* CUED LaTeX PhD Thesis Template - v2.3

* ✏️ Added explanation for using pagestyles in README kks32#124

* 🔧 Fixes kks32#124 define pagestyle commands

* Version 2.3.1

* 📦 CUED LaTeX PhD Thesis Template - v2.3.1

* update texlive in travis-ci to 2017-07-05 (kks32#143)

* fix travis ci

* fix missing path

* update texlive to 2017-09-18

* Added biblatex, lualatex and xelatex to Makefile
added biblatex option to Makefile

* Update preamble.tex

* 🔨 Fix XeLaTeX compilation issue - kks32#154

* 📦 CUED LaTeX PhD Thesis Template - v2.3.2

* Update PhDThesisPSnPDF.cls

* Update preamble.tex

I'd recommend you use the command \addbibresource in the preamble, instead of \bibliography which is legacy (see biblatex manual for v.2.5, p.82).

* 💻 Add .bib extension to filename when using addbibresource

* 📦 CUED LaTeX PhD Thesis Template - v2.4

* Added an indirection layer for literal text

It makes it easier to change them in the actual document

* moved cls and glyphtounicode to root

* global replace of Classes/PhDThesisPSnPDF.cls

* remove troubleshoot as problem no longer exists

* College Crests: add Downing

* Add pre-commit hook

* Adding text highlighting package

* update version number and release date

as well as copyright year

* 🎨 Highlight changes commented as default

* Updated for XeLateX compiler

Minor modifications to lines 553 through 569 so that the template works better with XeLaTeX compiler.

* Update thesis.tex

Minor grammar fix

---------

Co-authored-by: Krishna Kumar <kks32@gmx.com>
Co-authored-by: Krishna Kumar <skrishnakumar001@gmail.com>
Co-authored-by: devhell <devhell@users.noreply.github.com>
Co-authored-by: Krishna Kumar <kks32@users.noreply.github.com>
Co-authored-by: Alex Broekhof <abroekhof@gmail.com>
Co-authored-by: Krishna Kumar <kks32@cam.ac.uk>
Co-authored-by: Bitdeli Chef <chef@bitdeli.com>
Co-authored-by: The Gitter Badger <badger@gitter.im>
Co-authored-by: tabias@gmail.com <tabias@gmail.com>
Co-authored-by: Holger Nahrstaedt <holgern@users.noreply.github.com>
Co-authored-by: Holger Nahrstaedt <holgernahrstaedt@gmx.de>
Co-authored-by: manuelbuitrago <mbuitrago@gmail.com>
Co-authored-by: Krishna Kumar <3963513+kks32@users.noreply.github.com>
Co-authored-by: Adrián Javaloy <adrian.javaloy@gmail.com>
Co-authored-by: lharries <github@lukeharries.me>
Co-authored-by: Chris Barnes <barnesc@janelia.hhmi.org>
Co-authored-by: HananHindy <hanan.hendy@gmail.com>
Co-authored-by: muzimuzhi <muzimuzhi@gmail.com>
Co-authored-by: cbsimmons99 <45488367+cbsimmons99@users.noreply.github.com>
Co-authored-by: Manuel Buitrago <mbm1d15@soton.ac.uk>
Fourthbus added a commit to Fourthbus/thesis-template that referenced this issue Jul 9, 2024
* Sync PDF, DVI, PS with TeX file

* Changelog

* Update to README makepdf makeps

* MIT License

* Changelog

* Updated format in tex file

* update to changelog

* Appendices after references

* Version 1.0

* Update to Acknowledgment

* Update to ChangeLog

* Acknowledgements

* Update ChangeLog

* TOC, LOF, LOT renaming options

* Biblatex implementation in progress

* Biblatex with TOC

* Bibfile specification in thesis.tex

* PhD Thesis Template Latest

* Version 1.1 Biblatex - bibtex backed and chapter mode

* Update to readme

* Modification on how biblatex was handled

* update to readme

* Version 1.1.1

* Abstract Separate with no page numbering and Declaration as per university guidelines

* Removed dependencies on obsolete packages

* Update to readme

* Version 1.2

* draft mode fixed hyperref issue

* compile-thesis.sh: Fix typo.

* arara, wc, shellscript update

* Arara default is latex

* Subcaption package and line spacing

* Supports Latexmk

* latexmk with mpost

* inkscape files handling in latexmk

* breakurl sty file

* Lineno enable/disable option

* restylefloat in preamble

* Update to readme

* lineno and caption packages

* draftcopy

* Draft mode with figures

* Arara clean

* backref removed as it's previously loaded

* fixed onehalfspace bug in cls file

* PDFLaTeX footnote warning fixed moved hyperref after all packages are loaded

* Moved hyperref package definition above breakurl -- fixed dependency issue

* Grammer change in declaration

Changed ‘less’ to ‘fewer’

* Declaration grammer and acknowledgments

* One-half spacing as default

* Draft using Background package

* Draftmode with watermark

* Degree date automated

* Draft - Position and version customisation

* Gray Scale

* CustomMargin

* CustomMargin with check for geometry package

* Draft disable figures option

* Custom Font

* Custom Bibliography

* Customfont - duplicating options has to be checked

* custombib with error catcher

* Font selection with conflict prevention

* Sentence case as per Uni identity guidelines

* Custom Font and messages

* Backward compatibility - setMargin

* Readme - draftmode

* Hotfix: custommargin was printing true on the first page - issue fixed

* Justified text

* Justify bug fixed

* Formatting tables - guidelines

* trying out travis-ci

* Travis-CI: Build status in readme

* Update to travis yml to minimise latex base

* texlive-science in travis - siunitx

* Travis - fonts

* Texlive fonts in travis-ci

* license and readme

* update to license.md

* travis - latex - dvi - ps2pdf

* travis - psutils

* degree date is centered, when college is undefined

* Fixes kks32#18: Custombib displays true on front page

* Version 1.3-stable bug fix custombib

* custombib - true on front page issue fixed

* Subtitle fixed kks32#9

* Fixes issue with declaration

* update to changelog

* Update to Readme

* Update to Readme and Changelog

* Update to ChangeLog

* Version 1.4

* biblatex check and lineno

* numbered citation

* Version 1.4.1 update to declaration and customfont set to Helvet

* Update to Readme

* 80 character width enforcement

* ChangeLog for version 1.4.1

* Update to latest release link in readme file

* Todo notes - annotations

* Tweaks to todonotes

* Club and widow penalty

* Fixed nomencl[x units] in abstract mode

* Moved todo notes to preamble

* setDraft

* Draftmode with comment options

* Hide TOC in TOC

* Table of contents in bookmarks and not in contents

* Fixes issue kks32#23

* Update to readme incl. Texstudio - nomenclature

* draft and draftclassic

* Draft and Draft classic support

* Fixing the pagenumbering issue in oneside

* Fixing oneside titlepage numbering error

* Moved oneside page numbering issue fix to class file

* Fixes kks32#24 issue on one-side pagenumbering in titlepage

* Update to readme - draftmode

* Version 1.4.2

* Fixed Issue kks32#26

* Version 1.4.3

* Add a Bitdeli badge to README

* removed trending

* College shields in the front page [optional] and title page cleanup

* Kings shield from college

* Minimum crest width for University crest and logo

* Title page width adjustment

* bug nomenclature page numbering

* Fixed issue kks32#28

* Version 1.4.4

* update to changelog

* removed the classfile from the main folder

* Nomenclature issue kks32#28 fixed

* Dropped arara support

* Fixed issue with alignment on front page

* version 1.4.5

* v1.4.5

* v1.4.5 fixed title page alignment

* Title page alignment issue fixed

* fixes issue kks32#29

* Fixes issue kks32#29

* draftclassic and draft instructions in thesis file

* Remove deprecated commands

* Update to readme for openany option

* updated to readme for openany option

* Version 2.0 Coding with XeLaTeX and LuaLaTeX support

* LuaLaTeX and XeLaTeX support

* College shield

* College and Year alignment

* CUED LaTeX PhD Thesis Template - v2.0

* Fixed reopened issue kks32#16

* Updated changelog

* ragged bottom, parskip and enumeration spaces

* Added support to include supervisor and advisor

* v2.1

* Add Gitter badge

* Add Gitter badge

* clarified latexmk xelatex command  line

* extended xelatex commands with makeindex

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

This ensures that the nomenclature is included if defined, latexmk is not capable of doing so unless hacked
https://mg.readthedocs.org/latexmk.html

* Update University logo long version and link to logo in Readme

* Gonville and Caius shield

* make it executable

* added multiple supervisors and advisors to titlepage issue kks32#48

* Fixed compilation error for multiple supervisors (using \newline)

* Commented supervisor and advisor options in thesis-info as they are optional in University of Cambridge thesis

* Fixes issue kks32#91

* Fixes maketitle and multiple supervisor and advisor support

* Version 2.2

* Include commit for v2.2 in ChangeLog

* Removed deprecated function romanpages in preamble

* Removed deprecated function romanpages in preamble - issue kks32#101

* Fixes issue kks32#101, draft numbers frontmatter with roman and mainmatter with arabic numerals

* CUED LaTeX PhD Thesis Template - v2.2.1

* Fixes kks32#107

* CUED LaTeX PhD Thesis Template - v2.2.2

* Aligned supervisors on P(rof.)

* Fixes kks32#113

* Fixes kks32#113 alignment of supervisor and advisor

* Issue kks32#114 provide classname

* Added TEX-Root to chapters

* Fixes 118 font size processing

* Fixes kks32#118 font size processing

* Fixes kks32#119 Option process and DVI

* Fixes incorrect driver in geometry setup

* Fixes 10pt document class option

* Fixes anything breaks

* CUED LaTeX PhD Thesis Template - v2.3

* ✏️ Added explanation for using pagestyles in README kks32#124

* 🔧 Fixes kks32#124 define pagestyle commands

* Version 2.3.1

* 📦 CUED LaTeX PhD Thesis Template - v2.3.1

* update texlive in travis-ci to 2017-07-05 (kks32#143)

* fix travis ci

* fix missing path

* update texlive to 2017-09-18

* Added biblatex, lualatex and xelatex to Makefile
added biblatex option to Makefile

* Update preamble.tex

* 🔨 Fix XeLaTeX compilation issue - kks32#154

* 📦 CUED LaTeX PhD Thesis Template - v2.3.2

* Update PhDThesisPSnPDF.cls

* Update preamble.tex

I'd recommend you use the command \addbibresource in the preamble, instead of \bibliography which is legacy (see biblatex manual for v.2.5, p.82).

* 💻 Add .bib extension to filename when using addbibresource

* 📦 CUED LaTeX PhD Thesis Template - v2.4

* Added an indirection layer for literal text

It makes it easier to change them in the actual document

* moved cls and glyphtounicode to root

* global replace of Classes/PhDThesisPSnPDF.cls

* remove troubleshoot as problem no longer exists

* College Crests: add Downing

* Add pre-commit hook

* Adding text highlighting package

* update version number and release date

as well as copyright year

* 🎨 Highlight changes commented as default

* Updated for XeLateX compiler

Minor modifications to lines 553 through 569 so that the template works better with XeLaTeX compiler.

* Update thesis.tex

Minor grammar fix

---------

Co-authored-by: Krishna Kumar <kks32@gmx.com>
Co-authored-by: Krishna Kumar <skrishnakumar001@gmail.com>
Co-authored-by: devhell <devhell@users.noreply.github.com>
Co-authored-by: Krishna Kumar <kks32@users.noreply.github.com>
Co-authored-by: Alex Broekhof <abroekhof@gmail.com>
Co-authored-by: Krishna Kumar <kks32@cam.ac.uk>
Co-authored-by: Bitdeli Chef <chef@bitdeli.com>
Co-authored-by: The Gitter Badger <badger@gitter.im>
Co-authored-by: tabias@gmail.com <tabias@gmail.com>
Co-authored-by: Holger Nahrstaedt <holgern@users.noreply.github.com>
Co-authored-by: Holger Nahrstaedt <holgernahrstaedt@gmx.de>
Co-authored-by: manuelbuitrago <mbuitrago@gmail.com>
Co-authored-by: Krishna Kumar <3963513+kks32@users.noreply.github.com>
Co-authored-by: Adrián Javaloy <adrian.javaloy@gmail.com>
Co-authored-by: lharries <github@lukeharries.me>
Co-authored-by: Chris Barnes <barnesc@janelia.hhmi.org>
Co-authored-by: HananHindy <hanan.hendy@gmail.com>
Co-authored-by: muzimuzhi <muzimuzhi@gmail.com>
Co-authored-by: cbsimmons99 <45488367+cbsimmons99@users.noreply.github.com>
Co-authored-by: Manuel Buitrago <mbm1d15@soton.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants