### Bug description

When I used RMarkdown following tex code used to yield equation numbers and I could get references. But in Quarto it seems to be no longer possible. My .qmd file is part of a Quarto Book. Neither preview nor render made a difference.

> \begin{gather}
> \max z = 3x_{1} + 2x_{2} \label{eq:obj.fun} \\
> s.t. \nonumber \\
> 2x_{1} + x_{2} \le 100 \label{eq:finishing.constraint} \\
> x_{1} + x_{2} \le 80 \label{eq:carpentry.constraint}\\
> x_{1} \le 40 \label{eq:demand.constraint}\\
> x_{1},x_{2} \ge 0 \\
> \end{gather}
> 
> See \ref{eq:obj.fun}

I saw this [cross references](https://quarto.org/docs/authoring/cross-references.html#equations) section on Quarto but having too many dollar signs is hard on readability. Is there a way to get numbering back?

My RStudio version is 2022.07.1 Build 554 on MacOS Monterey 12.2.1


### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-10-15T16:47:04Z
berkorbay
bug needs-repro
closed
Equation numbering for "gather" is not working.
https://github.com/quarto-dev/quarto-cli/issues/2870