````{md}

---
title: "Example of Tables"
format: pdf
---

## Problem cross-referencing table computations

Quarto is not recognizing the cross reference of tables made with R syntax mostly in PDF and MS Word but could also be in HTML.

Here is a reference to a table in an R chunk: @tbl-planets

```{r}
#| label: tbl-planets
#| tbl-cap: Planets


if (!require("pacman")) install.packages("pacman")
pacman::p_load(tidyverse)


mtcars %>% 
  head()

```

Here is a reference of a plot computation: @fig-plot

```{r}
#| label: fig-plot
#| fig-cap: This is a plot

qplot(mtcars$mpg)

```


The problem is that PDF and MS Word does recognize cross-referencing plots but not tables. 

````


Output:
![image](https://user-images.githubusercontent.com/53672503/184285748-b76a5e92-9035-40a0-83c5-0261e9042747.png)

2022-08-12T04:32:40Z
aito123
bug
closed
Problem Quarto cross reference tables when render to PDF
https://github.com/quarto-dev/quarto-cli/issues/1842