GithubHelp home page GithubHelp logo

Link not displayed in PDF about kfigr HOT 4 CLOSED

ismayc avatar ismayc commented on September 28, 2024
Link not displayed in PDF

from kfigr.

Comments (4)

mkoohafkan avatar mkoohafkan commented on September 28, 2024

Hi ismayc,

kfigr does not currently support PDF documents; if you look at the code, you can see that it writes HTML tags to do the anchoring/cross-referencing. I'm considering adding LaTeX/PDF support and it should be fairly straight-forward (just need a switch to detect the output format and write LaTeX instead of HTML), but it's hard to find the time---if you feel like contributing this functionality yourself it probably wouldn't actually be too tough.

If you are writing in markdown and going to PDF using rmarkdown, that's actually a pandoc issue rather than a kfigr issue. pandoc does a lot of non-standard things with markdown and is still under active development, so it's too large of a burden to support for pandoc in kfigr. You may want to check out the captioner package, which apparently supports pandoc (although I have not used it).

from kfigr.

ismayc avatar ismayc commented on September 28, 2024

Thanks, @mkoohafkan! I think I'm going to try out the pandoc route: https://github.com/lierdakil/pandoc-crossref . I am using rmarkdown to PDF using a custom LaTeX template and was hoping to avoid messing around more with pandoc if possible, but I'll check it out.

from kfigr.

mkoohafkan avatar mkoohafkan commented on September 28, 2024

If you are writing an Rnw file (dynamic document in LaTeX) you might want to consider just using Latex's built-in support for cross-referencing. You can embed a plot-producing code chunk inside a figure environment and anchor/cross-reference with \label and \ref, respectively. Good luck!

from kfigr.

ismayc avatar ismayc commented on September 28, 2024

I'm writing Rmd files and then converting to either HTML or PDF based on an rticles template. I've done the Rnw and LaTeX stuff in the past, but would like to stay away from using LaTeX code as much as possible. Thanks for the well wishes and for this cool package! I'll certainly be using this with HTML documents I produce.

from kfigr.

Related Issues (8)

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.