Code Monkey home page Code Monkey logo

Comments (7)

garyng avatar garyng commented on August 24, 2024 2

What I did for this is to configure latexmk to ignore changes for pdf files by adding this into .latexmkrc

$hash_calc_ignore_pattern{'pdf'}='^';

(https://tex.stackexchange.com/questions/347980/how-to-make-latexmk-ignore-certain-input-files-as-dependencies/348361#348361)

from svg.

mrpiggi avatar mrpiggi commented on August 24, 2024 2

XeTeX now provides \filemoddate which will be supported with svg version v2.03

from svg.

flaport avatar flaport commented on August 24, 2024

Thanks, that did the trick!

However, I still think this is an issue worth solving in this package as well. If I understand it correctly, latexmk will look at the hash of each file to see if any of them have been modified and if that is the case it will rerun the build process. This means (i think) that the svg package rebuilds the pdf every run, even if the svg has not changed and the pdf was already generated. In my opinion, this should be prevented.

from svg.

garyng avatar garyng commented on August 24, 2024

Yeah, I agree it was kinda hack-y.

The idea of checking the hash is also mentioned in #11 though. My bad, misread the reply.

from svg.

flaport avatar flaport commented on August 24, 2024

Yes, I do.

OK this explains it. Too bad there's no built-in workaround... anyway, the workaround above seems to work fine, so I'll stick with that for now.

from svg.

garyng avatar garyng commented on August 24, 2024

Yes, I do.

OK this explains it. Too bad there's no built-in workaround... anyway, the workaround above seems to work fine, so I'll stick with that for now.

(I fat-fingered and deleted the reply... Original reply is here for future reference)

Do you happen to use xelatex?
From the package documentation:

Unfortunately a primitive like \pdffilemoddate is missing for XeTeX, so with this engine, the behaviour will be the same as inkscape=forced

Is this possibly the cause?

from svg.

garyng avatar garyng commented on August 24, 2024

Seems like the new version is still regenerating pdfs...
I updated to texlive 2019 (on Ubuntu 19.10), the svg package is up-to-date right?

It's not. My bad!
image

from svg.

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.