4  Writing with Zotero

Zotero isn’t just for organizing your research materials; it also integrates with word processors like Microsoft Word to help you generate and insert in-text citations and bibliographies directly into your documents. This section will guide you through using Zotero with Microsoft Word, Google Docs, and Rstudio (RMarkdown/Quarto)

4.1 Setting Up Zotero with Microsoft Word

To integrate Zotero with Word, ensure Zotero is running in the background. Open Microsoft Word and look for the Zotero tab in the toolbar. If you don’t see the Zotero tab, refer to the section “Locating the Zotero Tools in Microsoft Word” in Chapter 1.

4.1.1 Zotero Toolbar in Word

Once you click the Zotero tab in Word, you’ll see several options:

  • Add/Edit Citation: Insert or modify a citation at the current cursor position.
  • Add/Edit Bibliography: Insert or modify a bibliography at the current cursor position.
  • Document Preferences: Set your citation style (e.g., APA, MLA, Chicago).
  • Refresh: Update the document to reflect any edits made to citations in Zotero.
  • Unlink Citations: Convert your citations to plain text, severing links with Zotero.

4.1.2 Choosing a Citation Style

Before you start citing, select your desired citation style:

  1. Click on Document Preferences.
  2. Choose your style from the Citation Style list.
  3. Click OK.

If your required style isn’t listed, you can add new styles:

  1. Open Zotero, go to Edit → Preferences (PC) or Zotero → Preferences (Mac).
  2. In the Preferences window, select the Cite tab.
  3. Click Get Additional Styles to access the Zotero Styles Repository.
  4. Search and add your desired style.
  5. Return to Word, select the new style from Document Preferences.

4.2 Generating In-Text Citations

To insert a citation:

  1. Place the cursor where the citation should appear.
  2. Click Add/Edit Citation in the Zotero toolbar.
  3. Type a keyword (title, author, year) into the Zotero search box that appears.
  4. Select the correct reference from the dropdown list.
  5. Adjust the citation details as needed (add page numbers, suppress author, etc.).
  6. Press Enter to insert the citation.

4.3 Editing In-Text Citations

To edit an existing citation:

  1. Click on the citation in your document.
  2. Select Add/Edit Citation.
  3. Make adjustments in the Zotero search box.
  4. Press Enter to update the citation.

For changes to citation metadata (e.g., correcting a typo):

  1. Update the information in your Zotero library.
  2. Click the Refresh button in Word to update the citation.

4.4 Inserting a Bibliography

To add a bibliography:

  1. Place the cursor where the bibliography should appear.
  2. Click Add/Edit Bibliography.
  3. Zotero will generate and insert a bibliography based on citations used.

4.5 Export and Save Final Document

Before finalizing your document:

  1. Save a version with Zotero field codes as a backup.
  2. Click Unlink Citations in the Zotero toolbar to remove field codes.
  3. Save the document as a new file for a plain text version.

4.5.1 Using Zotero with Google Docs

Zotero also works with Google Docs. Install the Zotero Connector to add Zotero tools to Google Docs. Note that you’ll need to authenticate the plugin with your Google account upon first use.

Remember, using Zotero with Google Docs does not require a Zotero account.

4.6 Integrating Zotero with RStudio for R Markdown and Quarto

Zotero can be seamlessly integrated with RStudio for use in R Markdown and Quarto documents. This integration allows you to cite sources and generate bibliographies directly from your Zotero library. Here’s a step-by-step guide to set this up:

4.6.1 Step 1: Install Better BibTeX for Zotero

  1. Open Zotero.
  2. Go to Tools → Add-ons.
  3. Search for “Better BibTeX for Zotero” and install it.
  4. Restart Zotero after installation.

4.6.2 Step 2: Configure Better BibTeX

  1. In Zotero, go to Edit → Preferences → Better BibTeX.
  2. Under the “Citation keys” tab, choose your preferred citation key format.
  3. Under the “Export” tab, ensure “Automatic export” is enabled.

4.6.3 Step 3: Create a BibTeX Library

  1. In Zotero, select the collection you want to use for your project.
  2. Right-click and choose “Export Collection.”
  3. Select “Better BibTeX” as the format.
  4. Check “Keep updated” to automatically sync changes.
  5. Save the file with a .bib extension in your project folder.

4.6.4 Step 4: Set Up Your R Markdown or Quarto Document

  1. Open RStudio and create a new R Markdown or Quarto document.

  2. In the YAML header, add the following lines:

    bibliography: references.bib
    csl: apa7.csl