Code Monkey home page Code Monkey logo

Comments (8)

iandol avatar iandol commented on June 16, 2024

Hi Andreas,

I have made some small tweaks to the Crossref project, and updated the repo with a newer zip file. but I don't think this will change your observed behaviour.

  1. Scrivener generates image syntax using the reference link syntax. This uses ![caption][ref link] to define the figure. This is valid pandoc markdown (and is also part of the original markdown spec, and commonmark too), so I'm somewhat confused why Typora doesn't support this? I've never used it (I use VSCode to edit markdown if I need to), so I don't know what flavour of markdown it supports…
  2. pandoc-crossref doesn't generate native figure numbers, I made an issue on this but the developer does not want to add output-specific code: lierdakil/pandoc-crossref#299 - another crossref plugin has a similar request and a bit more progress: tomduck/pandoc-fignos#34 — one thing to look out for is that Quarto https://quarto.org has built a new cross referencing filter for pandoc which may or may not generate native figure numbering on Word… Note if you use LaTeX then lists of figures etc. works fine.
  3. No, this warning is simply related to the fact the docx template file uses a field to put the current title in the footer. Word fields can be abused so Word asks you explicitly.

from scrivomatic.

gitopandi avatar gitopandi commented on June 16, 2024

Hi Ian,

After a while I'm back to writing. Thanks al lot for you answers and infos. I solved the issue with the figures and understood what my wrong thought was.

If I have more time I will have a look to quarto. In the mean time i use a PDF to Word converter. With a few manual corrections, the word doc is O.K.

from scrivomatic.

iandol avatar iandol commented on June 16, 2024

@gitopandi — By the way, I just checked Quarto does not [yet] support native Figure labels for DOCX. BUT I noticed at least in the most recent Word you can build the list-of-figures (LOF) based on styles and each figure caption has the style "Image Caption" so you can the LOF.

I am very surprised a PDF > DOCX converter produces better output than Pandoc?

from scrivomatic.

iusgit avatar iusgit commented on June 16, 2024

@iandol Could you provide the openxml lines to create the LOF based on style?
Is the magic in here: <w:instrText xml:space=\"preserve\"> TOC \h \z \u </w:instrText>?

from scrivomatic.

iusgit avatar iusgit commented on June 16, 2024

OK, found it: TOC \h \z \t "Image Caption" \c would provide everything of style "Image Caption". Thanks for mentioning this possibility!

from scrivomatic.

iandol avatar iandol commented on June 16, 2024

@iusgit -- great, for tables I would assume it would be TOC \h \z \t "Table Caption" \c. I'd made a test docx but it seems you got there first.

I assume that a Lua filter could insert this into the DOCX to allow lof to work with DOCX while we wait for Quarto, pandoc-crossref and others to update to utilise native numbering...

from scrivomatic.

iusgit avatar iusgit commented on June 16, 2024

Correct, tables work as you say.

from scrivomatic.

gitopandi avatar gitopandi commented on June 16, 2024

I am very surprised a PDF > DOCX converter produces better output than Pandoc?

It was as you think. Pandoc was the best option 😄

from scrivomatic.

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.