Dear members,
Has anyone solved the issue regarding `cross-reference` of formatted tables (html) while using MarkStat `.stmd` or Quarto nbstata `.qmd`.
My workflow is mainly for papers: Stata 17 SE (Mac & Windows) & German Rodriguez MarkStat. Coding/analysis with Mattias Nordin Sublime Text StataEditor package, report rendering to html with MarkStat embedding formatted tables with `.include ` function with great results. Finally, I use html2docx stata command to convert the html to docx.
Unfortunately, cross-reference of tables does not work in MarkStat. ??
As MarkStat uses Pandoc, I tried using pandoc's fenced divs ( :::{#tbl:tableid} ), but it seems that MarkStat does not recognise pandocs fenced divs.
I have recently tried Tim Huegerich nbstata with Quarto, and followed FernandoRios tips in another thread
```{stata}
*| output: asis
display "```{=html}"
type my_table.html
display "```"
```
but this works only if there is no code chunck option for create cross-referencing. Once you specify *| label: tbl-tableid, the document fails to render.
I even tried using the table as `.md` like
::: {#tbl:tableid}
{{< include my_table.md >}}
:::
and this works for simple tables but complex tables are rendered as a chuck of text.
Has anyone found a working solution to cross-reference formatted tables with either MarkStat or nbstata? Have you been able to use Pandoc's cross-referenced fenced divs MarkStat?
Best,
J
Has anyone solved the issue regarding `cross-reference` of formatted tables (html) while using MarkStat `.stmd` or Quarto nbstata `.qmd`.
My workflow is mainly for papers: Stata 17 SE (Mac & Windows) & German Rodriguez MarkStat. Coding/analysis with Mattias Nordin Sublime Text StataEditor package, report rendering to html with MarkStat embedding formatted tables with `.include ` function with great results. Finally, I use html2docx stata command to convert the html to docx.
Unfortunately, cross-reference of tables does not work in MarkStat. ??
As MarkStat uses Pandoc, I tried using pandoc's fenced divs ( :::{#tbl:tableid} ), but it seems that MarkStat does not recognise pandocs fenced divs.
I have recently tried Tim Huegerich nbstata with Quarto, and followed FernandoRios tips in another thread
```{stata}
*| output: asis
display "```{=html}"
type my_table.html
display "```"
```
but this works only if there is no code chunck option for create cross-referencing. Once you specify *| label: tbl-tableid, the document fails to render.
I even tried using the table as `.md` like
::: {#tbl:tableid}
{{< include my_table.md >}}
:::
and this works for simple tables but complex tables are rendered as a chuck of text.
Has anyone found a working solution to cross-reference formatted tables with either MarkStat or nbstata? Have you been able to use Pandoc's cross-referenced fenced divs MarkStat?
Best,
J
Comment