Git Product home page Git Product logo

Comments (4)

brenwickham avatar brenwickham commented on August 28, 2024

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.

Miaoyifei-mz avatar Miaoyifei-mz commented on August 28, 2024

I have changed core.py, but the error still exist.

from pandoc-fignos.

ttxtea avatar ttxtea commented on August 28, 2024

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.

Jokymon avatar Jokymon commented on August 28, 2024

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

def process_figures(key, value, fmt, meta): # pylint: disable=unused-argument
and following lines, I believe that there is a problem in how the filter searches for images. It only checks for '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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.