Skip to content
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

pandoc-crossref by pipe gives different result #262

Closed
gabyx opened this issue May 27, 2020 · 2 comments
Closed

pandoc-crossref by pipe gives different result #262

gabyx opened this issue May 27, 2020 · 2 comments
Labels

Comments

@gabyx
Copy link
Contributor

gabyx commented May 27, 2020

(see [@fig:figure1])

with

pandoc -s -f markdown -t json Test.md | pandoc-crossref --pipe latex | tee Test.json | pandoc -s -f json -t latex Test.tex

Output: Test.json

"blocks": [
        { "t": "Para", "c": [{ "t": "Str", "c": "(see" }, { "t": "Space" }, { "t": "Str", "c": "fig. 1)" }] }
    ],

replaces the reference directly with fig. 1, why is that behavior different from (should be the same behavior according to pandoc)

pandoc -s -f markdown -t latex -F pandoc-crossref Test.md > Test.tex

where its replaced correctly with \cref. What I am doing wrong?

@lierdakil
Copy link
Owner

Try invoking with pandoc-crossref latex --pipe. It seems there's a bug in option parser somewhere, which I will try to fix sometime next week.

@lierdakil lierdakil added the bug label May 27, 2020
@gabyx
Copy link
Contributor Author

gabyx commented May 27, 2020

See https://github.com/gabyx/TechnicalMarkdown/blob/master/output-tex/input.pdf
works like a charm, but the setup is a lot of fiddling trying to put together the best parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants