quarto-dev / quarto-dev/quarto-cli
format of word tables from quarto
@cscheid ci sta già lavorando.
Dal 24/5/2024.
- Lingua principale
- JavaScript
- Stelle
- 6k
- Fork
- 458
- Merge medio
- 1g 9h
- PR unite (30g)
- 41
Descrizione
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"))
```
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.