-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error running filter if figure also has a label #3
Comments
Unfortunately not going to have time to work on this for a little while; I've moved on to using my pandoc-chemfig package which should handle this specific problem (and some other stuff). Might clash with other filters you are using, though. |
An alternative is to avoid pandoc-fignos, reference the figure with |
Thanks, I'll check out Also thanks @gnpan. Good thought. I expect that'll work with LaTeX but probably not with |
You can still use the |
I can only get the
pandoc-wrapfig
filter to work if I don't also have a label on the figure. For example, this works:...but this doesn't...
In the latter case, I think the regular expression is failing:
I used
sys.stderr.write()
to printcaption[-1]['c']
and it seems to pull out the label --['tex', '\\label{fig:motor}']
-- instead of the caption probably becausepandoc-fignos
uses curly braces to define the label. A simple fix might be to only pick up the first instance of the regular expression'.*\{(\d+\.?\d?)\}'
.The text was updated successfully, but these errors were encountered: