# Creating a Publication with LaTeX

You are using LaTeX to write a thesis or journal submission. With Citavi you can insert your sources and quotations with the corresponding BibTeX-Key into your TeX document. Citavi will automatically create the BibTeX file that your TeX program needs in order to create the final version of your document.

The formatting depends on the LaTeX style you select; Citavi has no influence on the appearance of your footnotes and bibliography.

 On the Tools menu, click Options > General. Select the TeX support checkbox. Select your TeX-Editor. In the LaTeX project folder box, select the folder that your editor uses for LaTeX projects. Citavi needs to use this folder in order to make images available to your editor. Click OK. Citavi creates BibTeX keys for all of the references in your project. You can define BibTeX keys. Open the Publication Assistant. Click Citation > Publication assistant. Click Float to keep the Publication Assistant in focus. To save space click Mini. Double-clicking a reference in the Publication Assistant inserts \cite{} into your TeX document. Knowledge items are inserted the same way. To create a BibTeX file, in Citavi, on the File menu, click Export. Export all of the references in your project as a BibTeX file. Select BibTeX as the format. Click Next. If necessary, select a different package (such as jurabib or natbib). To do so, click Add export filter. Save the BibTeX file in your LaTeX project folder. Enter the style and name of the BibTeX file, for example: \bibliographystyle{plain} \bibliography{information-literacy} You may need to click Typeset several times until the compilation routine is complete.