Comments (4)
I have the same problem. I noticed it when trying to work out why I was getting "Bad reference" errors. Finally noticed that none of the figures were numbered, which is why the reference was bad. This wasn't happening a couple of weeks ago. We're preparing a report and have been running the same command many times over the last few weeks. In case it's relevant, around the same time I got this error when running the command:
<userpath>.pyenv/versions/3.9.7/envs/pandoc/lib/python3.9/site-packages/pandocxnos/core.py", line 179, in _get_pandoc_version
raise RuntimeError(msg)
RuntimeError: Cannot understand pandocversion=3.1
Error running filter pandoc-fignos:
This can be fixed by manually changing core.py as @nandokawka writes here. It seems more than a coincidence that the figures stop appearing around the same time as this error.
from pandoc-fignos.
I have changed core.py, but the error still exist.
from pandoc-fignos.
Same issue with
pandoc 3.1.1
Features: +server +lua
Scripting engine: Lua 5.4
If you refer to the figure you get pandoc-fignos: Bad reference:
from pandoc-fignos.
Maybe this could help in finding a bugfix. I'm running into similar issues when trying to generate LaTeX or HTML output. From some very rough debugging attempts I'm getting the feeling, that these "free standing" images are not properly processed by the fignos filter.
When you add a non-breaking space at the end of such an image (notice the \
at the end of the line):
![map](C:\Pandoc\map.png){#fig:map_id}\
you can get rid of the Bad reference:
error. The same happens when you add some text in front.
After having a quick look at
pandoc-fignos/pandoc_fignos.py
Line 294 in 6ab8ac6
'Para'
and 'Div'
but should also somehow handle 'Image '
. Maybe this has to do with a change to Pandoc 3.x?from pandoc-fignos.
Related Issues (20)
- Auto-generated caption names want to be bold, when converting from markdown to word.
- Installation of Fignos for windows
- Error producing PDF related to no-prefix-figure-caption HOT 1
- Changing figure caption name with babel in LaTeX
- RuntimeError: Cannot understand pandocversion=3.0.1 HOT 9
- "Bad reference" - syntax doesn't work on recent pandoc releases HOT 1
- TypeError in pandocxnos.core.process_refs with Pandoc 2.11 HOT 4
- Pandoc HTML5 Video, Media Fragments HOT 3
- Please clarify documentation for `pandoc-fignos` and `pandoc-eqnos` when a pandoc defaults file is used
- ! LaTeX Error: Environment fignos:no-prefix-figure-caption undefined. HOT 3
- Feature Request: new caption separator for respecting some language typo rules
- Label and sizing HOT 3
- Error when filtering with 'python -m pandoc_fignos json'
- Hardwire figure numbers in LaTeX
- Using a figure caption as referenced label
- Feature Request: `--fail-if-warnings`
- Issues when converting "*.tex" to "*.html"
- \theHfigure undefined
- Figure reference links on epub files are wrong 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 pandoc-fignos.