Coder Social home page Coder Social logo

Comments (11)

lfourquaux avatar lfourquaux commented on July 19, 2024

This is with TeXLive 2016.

from asymptote.

lfourquaux avatar lfourquaux commented on July 19, 2024

It looks like this is fixed in current TL 2016.

from asymptote.

u-fischer avatar u-fischer commented on July 19, 2024

I don't think that the issue is fixed. On tex.sx there just has been a similar question: https://tex.stackexchange.com/questions/376401/asymptote-package-works-with-pdflatex-and-xelatex-but-problems-with-lualatex,

And the asymptote.sty you get with texlive (2016/11/14 v1.32) still contains in various places quotes around the main part of a graphic. E.g "\AsyFile".pdf, and luatex doesn't like this (it isn't a problem of the graphicx drivers, it doesn't work with primitives either).

from asymptote.

johncbowman avatar johncbowman commented on July 19, 2024

The quotes are necessary in order to handle file names containing spaces, which many users unfortunately insist on. If you remove the quotes, lualatex will work, but only with file names that do not contain spaces. I will check to see if lualatex in TeXLive 2017 has been fixed to discard quotation marks.

from asymptote.

u-fischer avatar u-fischer commented on July 19, 2024

It still fails. But users that wants to use spaces can use the grffile package:

\documentclass{book}
\usepackage{graphicx}
\usepackage{grffile}
\begin{document}
\includegraphics{test space.pdf}

\includegraphics{test space} 
\end{document}

from asymptote.

matthuszagh avatar matthuszagh commented on July 19, 2024

This issue persists in texlive-2019. Maybe a reasonable compromise would be to commit something like the patch mentioned in this issue and require that luatex users use grffile if they want spaces in their files? At least that way the base case would work with luatex.

from asymptote.

johncbowman avatar johncbowman commented on July 19, 2024

It turns out that a patched version of grffile now supports all TeXengines (including lualatex, xelatex, latex as well as pdflatex). So the simplest solution is to use grffile. I have committed this
as revision 41cc1fa, but I still have to update asymptote.sty.

from asymptote.

u-fischer avatar u-fischer commented on July 19, 2024

This week patch level 2 of the current latex will be released, which will contain significant changes in the file name handling of graphicx. grffile will then be no longer needed, the package will be made to a no-op package.

from asymptote.

matthuszagh avatar matthuszagh commented on July 19, 2024

@johncbowman I'm experiencing the following issues when attempting to build asymptote:

Package asymptote Warning: file `latexusage-1.tex' not found on input line 76.
Package asymptote Warning: file `latexusage-2.tex' not found on input line 93.
Package asymptote Warning: file `latexusage-3.tex' not found on input line 117.

Is this possibly related to the pending changes to asymptote.sty?

from asymptote.

johncbowman avatar johncbowman commented on July 19, 2024

from asymptote.

matthuszagh avatar matthuszagh commented on July 19, 2024

EDIT

The latest commits fix the issue for me. Thanks for the fixes!


Thanks for the clarification on that. I thought that may have been causing the error I'm getting when building latexusage.pdf, but I guess it's something else. I'm seeing this

[...]
tex/latex/latexconfig/epstopdf-sys.cfg)) (./latexusage-1.tex)
! Missing } inserted.
<inserted text>
                }
l.76 \end{asy}

?
! Emergency stop.
<inserted text>
                }
l.76 \end{asy}

!  ==> Fatal error occurred, no output PDF file produced!

Have you encountered this?

from asymptote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.