-
Notifications
You must be signed in to change notification settings - Fork 161
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
Handle EPS images #27
Comments
I mean, you call out to |
No, we don't. I need to find a way to communicate this more clearly, but all of the TeX and bibtex engine code is integrated into Tectonic — it's a self-contained system. |
What does "integrated" mean exactly though? It wasn't ported to rust... |
The relevant C code is compiled and linked into the Rust binary and called from the Rust code — no external binaries are invoked. |
Ah I see. Would it be possible to do the same with Ghostscript? That's what |
In principle, yes, but there are two reasons I lean against that path:
|
pdf_coord & pdf_color
Is there any workaround for this to date? This is an issue that prevents me from migrating my projects to tectonic |
Well, the situation still hasn't changed. In fact, one thing I've come to appreciate over time is that Ghostscript is generally considered to be a pretty significant security hazard these days, so I wouldn't even consider bundling it within Tectonic anymore. My recommendation is that if you need to do image conversions such as EPS → PDF, those should happen outside of Tectonic rather than within it. So, basically, set things up to do that conversion as part of your build process before you launch Tectonic. Traditionally, the TeX ecosystem has had an opposite approach of having the engine launch tools on the fly, but I think it's not a good approach in general; it's analogous to an approach where your C compiler tries to invoke One helpful thing here is that if your document has a command that looks like |
Thanks, @pkgw! I will look into better ways of handling my build process to produce PDFs or SVGs then. I'm using EPS mainly coming from the output of PlantUML diagrams, so it should be an easy change since apparently PlantUML also generates PDFs. |
Glad to hear it. If anyone has any use cases where the generate-PDF-externally approach really seems unworkable, that would be good to know about, but I think I'm going to close this since I'm now fairly convinced that we shouldn't add built-in support for EPS processing. |
Tectonic doesn't support PostScript or EPS images:
xdvipdfmx
gets them into PDF files by running an external "distiller" command to convert them to PDF, which is something that we absolutely don't want to do, because Tectonic aims to be self-contained and embeddable.If
xdvipdfmx
converts to PDF, presumably that’s the only technique that works, so we’d have to implement that in order to support (E)PS images. Sounds like a lot of work, unfortunately. Ideas welcome!The text was updated successfully, but these errors were encountered: