# Compiling To LaTeX -- One file per section?

**URL:** <https://forum.literatureandlatte.com/t/compiling-to-latex-one-file-per-section/41136>\
**Category:** Scrivener for macOS\
**Tags:** support, advanced-tips\
**Created:** [May 20, 2018, 12:23pm UTC](https://forum.literatureandlatte.com/t/compiling-to-latex-one-file-per-section/41136 "2018-05-20T12:23:30Z")\
**Posts on this page:** 1\
**Showing post:** 45

<div class="post-metadata">

**Author:** ![bernardo\_vasconcelos](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/bernardo_vasconcelos/32/25376_2.png) [@bernardo\_vasconcelos](https://forum.literatureandlatte.com/u/bernardo_vasconcelos)\
**Post date:** [September 3, 2023, 2:09pm UTC](https://forum.literatureandlatte.com/t/compiling-to-latex-one-file-per-section/41136/45 "2023-09-03T14:09:32Z")

</div>

@AmberV, for Quarto, there is no need to fix cross-reference markup this way. All one has to do is use its proper markup for the element being referenced.

If I had the following:

```plaintext
## Text {#sec-text}

Lorem...

```

This would work anywhere else in the project (regardless of Book/Website).

```plaintext
So on and so on [@sec-text].

```

The same goes for Figures, Tables, Listings, and Equations, apart from Conjectures, Corollaries, Definitions, Examples, Exercises, Lemmas, Propositions, and Theorems.

---

_[View the full topic](https://forum.literatureandlatte.com/t/compiling-to-latex-one-file-per-section/41136)._
