-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated figure & table numbering #1
Comments
@slowchower, we should also consider |
One additional consideration is that we need LaTeX free solutions, as currently we export to HTML and PDF, but not using LaTeX. |
Right. These are mostly easy.
That looks nice. I feel like I stumbled across it at some point, but haven't used it. Maybe I should hold off on the PR while we evaluate this?
Do you mean for CI compilation? I think we can get a VM with GHC /
Shouldn't be a problem. I used KaTeX to render some equations -- a javascript library that is LaTeX-free. |
Currently, any (linux) user can run:
Voila, they will have everything needed to build the manuscript. It's nice to everything manageable within conda. If we go with |
Ah, I see what you mean. Yeah, I agree that Docker is a bit much. (It still needs root to run, right?) Do you think porting the basic functionality from Haskell would be too hard? I'm guessing yes (and I don't know Haskell). |
Yes, we're already maintaining too much with this project! |
@dhimmel What are the main features provided by |
Agreed.
Section references like so you could dynamically refer to / link section references. Not a huge deal. I think we should go with the simpler solution, as long as it works well. |
I see. That did come up when we were writing deep review and had a hard time to referring back to previous sections. |
FWIW, there are pre-built binaries on releases page, although due to dependency on Pandoc version this can get convoluted. Also those are provided with no warranty, as you might expect. |
Closed by b03e1c3 and #8. Thanks @slochower! |
Great! @dhimmel any thoughts on how we should merge this into deep review? |
Is there an immediate need for this in deep review? I think it makes most sense to delay merging into deep review until we knockout some more of the outstanding issues on this repo. I'm happy to do the merge, just let me know when. Still experimenting regarding the best ways to perform the merge. |
It's not an immediate need. Two open pull requests - greenelab/deep-review#566 and greenelab/deep-review#567 - add a figure and table to deep review. However, I haven't even had time to review those so it is not at all urgent. We can continue to number manually until this repo stabilizes. |
@slochower welcome to manubot-rootstock... which is meant to be forked when creating a new manuscript. Still a work in progress.
See previous discussions at greenelab/deep-review#354 (comment) and greenelab/deep-review#558.
It seems like the best way to number and reference tables and figures will be with
pandoc-tablenos
andpandoc-fignos
, which are both python packages by @tomduck that we can add to the environment:They can be enabled in the pandoc conversion script with:
Since we're also using jinja2 templating, we could do the conversion prior to pandoc if there is a compelling reason.
@slochower do you want to submit the PR? I'm thinking the initial use case we should target is markdown tables and figures embedded via absolute URL (let's save the relative image path case for later).
Also @slowchower, any idea how figure and table captions work?
CC @agitter.
The text was updated successfully, but these errors were encountered: