# Generated files

To view the list of files which are generated upon compilation of the project, such as `.aux`, `.log` and `.toc` files, you can click into **Logs and output files**:

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FeBR0lGubz7tKu7mrkRhv%2Flogs-newdesign-dark.png?alt=media&#x26;token=daaa4b0d-9a54-4d67-aa7b-703b31283268" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FgTJ7uDAuo1ne9qbgLR7A%2Flogs-newdesign-light.png?alt=media&#x26;token=8485dfdb-3407-4930-a415-4983bc059420" alt="Image of the &#x22;Logs and output files&#x22; button location, to the right of the Recompile button" width="252"></picture><figcaption></figcaption></figure>

and scroll down to **Other logs and files**.

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FmUBGjeslU8gRURwSJQYq%2Flogsoptions-newdesign-dark.png?alt=media&#x26;token=1791f6a0-5c63-4af3-b711-103c589108dc" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2Fl3qMlKFtouYfWDIJA3OW%2Flogsoptions-newdesign-light.png?alt=media&#x26;token=73b36493-9a3b-4344-8687-b27decb06fa3" alt="Image of options for clearing the cache and downloading the generated files, in the bottom right of the logs and output files panel" width="362"></picture><figcaption></figcaption></figure>

This will provide you with the option of downloading selected files or all the files generated by the compiler.

## Downloading generated files along with the source

When you download the source files for your project using the standard options, the generated files are not included.

Some journals and repositories ask for the generated files to be included along with the source.  Overleaf's **Submit to arXiv** option will produce a zip that includes both the source and the generated files. This option does not directly submit to arXiv, but rather produces a zip file in the format expected by arXiv, which can also be used for other journals and services that expect the same format.

### How to submit to a journal or service

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FiFt4bD2Q4UDsCFk2OWHP%2Fsubmittoarxiv-dark.gif?alt=media&#x26;token=db2f949e-89df-4473-a9ea-ce5db9a98ee7" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FGUqEMeIwhnocMd2H1MpQ%2Fsubmittoarxiv-light.gif?alt=media&#x26;token=c67d9ba5-8d56-4fa4-b752-a0e96dd5a62e" alt="Using the arXiv submission option to obtain a .zip file that includes files generated by the compiler"></picture><figcaption></figcaption></figure>

1. Go to **File** > **Submit**, then choose a journal or service. There will be an option to download a `.zip` with the `.bbl` included.
2. Once you select the **Download project ZIP with submission files** button, it should show a "Compiling project, please wait" message. It may take a while to build, then download, the zip file.
3. Select the **Submit to \[journal or service]** button to be directed to the corresponding external website  to upload your project ZIP.

## Including .bbl contents directly in the .tex file

Some publishers use article-submission systems that cannot process a separate .bib file. In such cases, the publisher’s guidelines might ask authors to paste the contents of the `.bbl` file (generated by BibTeX) into the article’s main `.tex` file. \
\
If BibTeX is used, the .bbl file produced by the Overleaf compile process can be downloaded (as described above), and its contents can be added to the .tex file to accommodate these submission systems.

### How to download a `.bbl` file

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FEt54dBx692ej2oidwYx4%2Fdownloadingbib-newdesign-dark.gif?alt=media&#x26;token=2dcf902a-001b-4f87-94ca-5a68a4909aed" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FXaEdPbpyhTXUo4HrIHOj%2Fdownloadingbib-newdesign-light.gif?alt=media&#x26;token=40426a57-1373-4b26-9483-b365c09aeb17" alt="GIF demonstrating how to download a .bib file"></picture><figcaption></figcaption></figure>

1. Select the **Logs and output files** button to the right of the Recompile button.
2. Scroll down and select the **Other logs and files** button in the bottom right.
3. In the menu that appears, select the `output.bbl` file to download it.&#x20;

### How to paste a `.bib` file's contents into the project’s main `.tex` file

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FByuYSQwvYetNsGoSQJ14%2Fpastingbbl-newdesign-dark.gif?alt=media&#x26;token=a6283957-7744-4791-83fa-73d59969b3b7" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FdGxcPWKSqeVTNzQ5fT8x%2Fpastingbbl-newdesign-light.gif?alt=media&#x26;token=24224245-7ec0-487a-a67a-666b61828547" alt=""></picture><figcaption></figcaption></figure>

1. After you've [downloaded the `.bbl` file](#how-to-download-a-.bbl-file), copy the contents of the file.
2. Comment out the `\bibliography{}` line of your `.tex` file.
3. Paste the contents of the downloaded `.bbl` file.
4. [Recompile](https://docs.overleaf.com/getting-started/recompiling-your-project).
