Git Product home page Git Product logo

Comments (5)

imagema avatar imagema commented on September 21, 2024 1

Thanks vm David. Will check this out and revert if any queries.

from officedown.

davidgohel avatar davidgohel commented on September 21, 2024

It is possible, but as you would not use the default behavior, you would have to define yourself the component of your captions.

I've added an illustration here: https://ardata-fr.github.io/officeverse/officedown-for-word.html#table-caption-linked-to-section-number

Please, let me know if not clear.

Note that it is recommended to create a hook to make that code easier to use/less verbose with knit_hooks$set.

from officedown.

bishun945 avatar bishun945 commented on September 21, 2024

@davidgohel I tried the illustration you linked but got the error output in the word document.

I just copied your demo codes and append them after of 01-intro.Rmd and click Build book.

Figure Error! No text of specified style in document. - 1: truc machin chose

It seems that the auto-number 1 is correctly returned by run_autonum but failed to section number.

from officedown.

bishun945 avatar bishun945 commented on September 21, 2024

Strange. I restarted my R studio and re-built it again. And it works. (Dont know why)
I also tested to add the first head caption like Figure 1. 1 as follows:

runs <- list(
  run_word_field("STYLEREF 1 \\s"),
  ftext(". "),
  run_autonum(seq_id = "tab", pre_label = "", post_label = "")
)

That is OK. Thanks for that illustration.

Another question that has puzzled me for a long time is about auto-number equations and cross-reference them. I know it may be inappropriate to discuss in this issue but can you give me some quick answers?

Thanks a lot.

from officedown.

davidgohel avatar davidgohel commented on September 21, 2024

Another question that has puzzled me for a long time is about auto-number equations and cross-reference them. I know it may be inappropriate to discuss in this issue but can you give me some quick answers?

Please read:

Open a new issue if you have an issue.

from officedown.

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.