quarto-dev / quarto-dev/quarto-cli
format of word tables from quarto
@cscheid y travaille déjà.
Depuis le 24/5/2024.
- Langage dominant
- JavaScript
- Étoiles
- 6k
- Forks
- 458
- Merge moyen
- 1 j 9 h
- PR mergées (30 j)
- 41
Description
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/9650
Originally posted by KipBalkcom-USDA May 13, 2024
Description
There appears to be a format change from the previous version of Quarto I was using (1.3.???) compared with the latest version (1.4.554). As suggested in the discussion, I removed the reference document and the cross reference label. The rendered table format is what I expected, but I obviously want to be able to use cross referencing the automatically number tables and I don't want to manually format the table captions. Hopefully, this issue can eventually be resolved.
Current software:
Windows 10
Quarto 1.4.554
Word Microsoft 365
---
title: "Reproducible Table in Quarto"
engine: jupyter
format: docx
---
```{python}
#| tbl-cap: Years and locations.
#| echo: FALSE
import pandas as pd
from tabulate import tabulate
from IPython.display import Markdown
# define values
field_ops = (pd.DataFrame({
"Year": ['2020', '2021'],
"Location": ["Loc1", "Loc2"]}))
Markdown(tabulate(
field_ops, headers="keys", showindex=False, tablefmt="pipe"))
```
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.