![]() ![]() # Markdown table For the next I will make it simple, using what I think is the easiest cross reference the tables: ```markdown ::: Table made with Latex ::: Ahh! seems this is not working as HTML! The reason is that Latex tables do not render in html. For example, the markdown table has an extra line that needs to be removed. ```stata *| code-fold: false *| echo: true frause oaxaca, clear qui:reg lnwage educ exper tenure female est sto m1 qui:reg lnwage educ exper tenure female age agesq married divorced est sto m2 esttab m1 m2 using "reg_md", wide se replace md esttab m1 m2 using "reg_html", wide se replace htm esttab m1 m2 using "reg_tex", wide se replace tex ``` The output of the code is not usable right away, as it has some minor issues. But now, with version 1.4, it seems very easy to reference tables that are not markdown tables! Let's see how it works! # Setup To do this, I will produce a simple regression using `Stata`, and export it as markdown, HTML, and LaTeX tables using `esttab`^. (specially those that involved using LaTeX commands). Looking at other people's questions and solutions, they all seemed a bit complicated to me. Unfortunately, there was no easy way to reference those kinds of tables using the syntax. Better options include HTML tables, and even better, LaTeX tables. However, as you may now, markdown tables are not very flexible. What is quite interesting to me is that this version includes a new feature that I have been waiting for a while: Multi source cross-referencing! I have been using Quarto for some time now, and one of the things I noticed is that it was very easy to add titles and cross-references to tables as long as they were formated as markdown tables. title: "Quarto 1.4" description: "Some examples for Table cross-referencing!" author: "Fernando Rios-Avila" date: "" categories: - Quarto draft: false format: html: default pdf: default - Quarto 1.4 is out! Over the last few weeks, they have been pushing quite few updates, and finally they have released version 1.4. To do this, I will produce a simple regression using Stata, and export it as markdown, HTML, and LaTeX tables using esttab 1. (specially those that involved using LaTeX commands).īut now, with version 1.4, it seems very easy to reference tables that are not markdown tables! Looking at other people’s questions and solutions, they all seemed a bit complicated to me. ![]() ![]() I have been using Quarto for some time now, and one of the things I noticed is that it was very easy to add titles and cross-references to tables as long as they were formated as markdown tables. What is quite interesting to me is that this version includes a new feature that I have been waiting for a while: Multi source cross-referencing! Quarto 1.4 is out! Over the last few weeks, they have been pushing quite few updates, and finally they have released version 1.4. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |