-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Figures and Tables in your Crossref examplae #48
Comments
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.
|
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. |
@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? |
@iandol Could you provide the openxml lines to create the LOF based on style? |
OK, found it: |
@iusgit -- great, for tables I would assume it would be I assume that a Lua filter could insert this into the DOCX to allow |
Correct, tables work as you say. |
It was as you think. Pandoc was the best option 😄 |
An example of injecting a TOC and LOF manually into a docx: ---
title: hello
author: Jane Doe
---
```{=openxml}
<w:sdt>
<w:sdtPr><w:docPartObj><w:docPartGallery w:val="Table of Contents" /><w:docPartUnique /></w:docPartObj></w:sdtPr>
<w:sdtContent>
<w:p><w:pPr><w:pStyle w:val="TOCHeading" /></w:pPr><w:r><w:t xml:space="preserve">Table of Contents</w:t></w:r></w:p>
<w:p><w:r><w:fldChar w:fldCharType="begin" w:dirty="true" />
<w:instrText xml:space="preserve">TOC \o "1-3" \h \z \u</w:instrText>
<w:fldChar w:fldCharType="separate" /><w:fldChar w:fldCharType="end" /></w:r></w:p>
</w:sdtContent>
</w:sdt>
```
```{=openxml}
<w:sdt>
<w:sdtPr><w:docPartObj><w:docPartGallery w:val="Table of Figures" /><w:docPartUnique /></w:docPartObj></w:sdtPr>
<w:sdtContent>
<w:p><w:pPr><w:pStyle w:val="TOCHeading" /></w:pPr><w:r><w:t xml:space="preserve">Table of Figures</w:t></w:r></w:p>
<w:p><w:r><w:fldChar w:fldCharType="begin" w:dirty="true" />
<w:instrText xml:space="preserve">TOC \h \z \t "Image Caption" \c</w:instrText>
<w:fldChar w:fldCharType="separate" /><w:fldChar w:fldCharType="end" /></w:r></w:p>
</w:sdtContent>
</w:sdt>
```
# A
Blah
![Image A](placeholder.png)
# B
Blah
![Image B](placeholder.png) |
@iandol can you fix your example with the changes mentioned here: quarto-dev/quarto-cli#2464 (reply in thread) ? It is also important to link to the pandoc issue regarding lof and lot in docx: jgm/pandoc#8245 |
Hi,
I used you crossref examplae, because I'm switching from pure Markdown with Typora as my editor back to Scrivener. Your setup works fine, but I have issue with figures and tables:
Any help is appreciated and thanks very much for your work during the last years
Andreas
The text was updated successfully, but these errors were encountered: