Comments (4)
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.
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.
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.
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)
- Putting 'Figure X: Description' into the figure caption automatically HOT 4
- No `.Rnw` source file to look over if there is confusion HOT 2
- .docx implementation? HOT 2
- using anchor eliminates figure captions HOT 6
- "First reference must define the type." on Check HOT 3
- Deal with `rmarkdown`'s option wiping
- language of cross reference figr function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kfigr.