TransWikia.com

XeLaTeX broken pipe

TeX - LaTeX Asked by FPSUsername on April 10, 2021

Edit: I cleaned up this first post to make it all a bit more clear.

I am trying to compile my tex files using XeLaTeX.
This is the minimal code I wrote to try:


% !TEX program = xelatex
documentclass[10pt,a4paper]{article}

% Standard packages
usepackage[right=2.8cm,left=2.8cm,top=3.2cm,bottom=3.0cm, headheight=16pt]{geometry}

% Other packages
usepackage{fontspec}
usepackage{lipsum}
setmainfont{Calibri}

begin{document}

lipsum[1]

end{document} 

The compile command I use: xelatex file.tex

The error:

... (normal behaviour)
(d:/texlive/2018/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex)) (./file.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
[1] (./file.aux) )xelatex.exe: fwrite: Broken pipe

Whenever I compile using xelatex --no-pdf file.tex and after that xdvipdfmx file.xdv it seems to work fine. Another way is by executing latexmk --xelatex file.tex. I am trying to understand why I get a Broken pipe error.

One Answer

For Visual Code with LaTeX-Workshop, my workaround is to use latexmk as mentioned above. This however is a workaround and not a fix.

I edited my visual studio recipe "latex-workshop.latex.tools" to:

    "name": "xelatex",
    "command": "latexmk",
    "args": [
        "--xelatex",
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
    ]

Answered by FPSUsername on April 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP