Skip to content

Weird output with XeLaTeX #154

Closed
Closed
@gkampolis

Description

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

Activity

krishnakumarg1984

krishnakumarg1984 commented on Apr 3, 2018

@krishnakumarg1984

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

kks32

kks32 commented on Apr 3, 2018

@kks32
Owner

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

kks32 commented on Apr 3, 2018

@kks32
Owner

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

krishnakumarg1984 commented on Apr 4, 2018

@krishnakumarg1984

Hi @kks32

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

trecsim

trecsim commented on Aug 25, 2019

@trecsim

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Weird output with XeLaTeX · Issue #154 · kks32/phd-thesis-template