Git Product home page Git Product logo

Comments (4)

mgieseki avatar mgieseki commented on June 2, 2024 1

It actually works correctly because your example creates a DVI file that contains the PS special header= which requires the PS handler to be loaded:

[page 1 0 0 0 0 0 0 0 0 0]
push:
  xxx: 'header=l3backend-dvips.pro'
pop:
...

You can prevent this e.g. with document class option dvisvgm. The corresponding DVI file won't contain the PS special.

from dvisvgm.

mgieseki avatar mgieseki commented on June 2, 2024 1

I try to do the following, and it still would initialize ghostscript.

dvisvgm checks if Ghostscript is available when registering the PS special handler together with the other special handlers. This requires to dlopen the GS library if it's not directly linked to dvisvgm which could increase the execution time.
The PS handler itself is only initialized before processing the first PS special.
I'm not sure if it's easily possible to defer the GS check as well. I have to look into this. You can completely turn off the GS handler with --no-specials=ps.

Also, the "textual format" or "dumped format" of the DVI looks interesting, how did you produce that?

That's the output of dviasm.

from dvisvgm.

mgieseki avatar mgieseki commented on June 2, 2024 1

I've changed the registration of the PS special handler a bit so that it doesn't require to call Ghostscript any longer. GS functions are now only called when PS specials are processed.

from dvisvgm.

user202729 avatar user202729 commented on June 2, 2024

I try to do the following, and it still would initialize ghostscript.

pdflatex -jobname=d --output-format=dvi << 'EOF'
\documentclass[dvisvgm]{article}
\begin{document}
hello world
\end{document}
EOF

Also, the "textual format" or "dumped format" of the DVI looks interesting, how did you produce that? (edit: okay it's dvitype.)

from dvisvgm.

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.