Code Monkey home page Code Monkey logo

Comments (6)

mgieseki avatar mgieseki commented on July 28, 2024

With the current options it's not possible to only print the filename, unfortunately, but it shouldn't be too complicated to add this functionality. To keep compatibility with previous versions, it's probably not a good idea to introduce a separate verbosity flag for the filename.
Maybe I could add a new option --message to print arbitrary user messages that may contain the macros already evaluated by special dvisvgm:message. I just have to add macro svgfile. Then you could call dvisvgm with -v3 --message "Output file: {?svgfile}" or something like that.

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

As proposed above, I've added option --message that allows you to output your own message text after creating an SVG file. It will be available as of the next version 3.2. If you want to use it in your scripts, you probably need to check the available dvisvgm version to prevent errors.

from dvisvgm.

tecosaur avatar tecosaur commented on July 28, 2024

Thanks Martin!

I've been wondering if this could be done in a backwards-compatible way, but that does seem like a bit of a stretch (I guess depending on the implementation a new verbosity number could maybe work).

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

I thought about assigning the filename output to its own verbosity flag, but decided against it because you also needed to adapt the verbosity levels depending on the dvisvgm version, e.g. 7 for versions < 3.2. and 11 for the newer ones. To me, the current, more generic way is more flexible and might support further needs of other users without having to introduce many special verbosity flags.

from dvisvgm.

tecosaur avatar tecosaur commented on July 28, 2024

Makes sense, thanks again!

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

You're welcome.

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.