zoteroRoam
Report an issueRoadmap
v0.7
v0.7
  • Introduction
  • ▶️Demo by Cortex Futura
  • 🔄Updating from older versions
  • 🚀Changelog
  • 🆘Help/Getting Support
  • 🏠Getting Started
    • Pre-requisites
    • Basic Setup
  • 🧪Using the extension
    • The search panel
    • In-text references
    • Contextual menus
    • On-page menu
    • The dashboard
    • Web import
  • 🛠️Customizations
    • What's Available
    • Formatting metadata
      • SmartBlock templates
      • JavaScript templates
        • Helper functions
        • Nesting metadata
    • Formatting annotations
    • Formatting notes
    • Keyboard Shortcuts
    • CSS Themes
    • Other Settings
      • Autocomplete
      • Copy Settings
      • Page Menus
      • Scite Badge
      • Typemap
      • Web Import
      • Other
    • Advanced : Event Hooks
    • Advanced : Extension API
  • About the Zotero API
    • Zotero API Docs (v3)
  • Support the project
    • How to support/contribute
    • Buy a (virtual) coffee
    • Sponsor on GitHub
Powered by GitBook
On this page
  • Description
  • Display as
  • Insert as
  • Custom templates

Was this helpful?

  1. Customizations
  2. Other Settings

Autocomplete

Description

The Autocomplete feature enables you to insert references to Zotero items while you're writing in Roam. It is powered by the tributejs library.

To enable Autocomplete, add a trigger in your user settings - the trigger is a sequence of one or more characters which, when typed in a Roam block, will cause the autocomplete menu to be shown. A common trigger is @.

Besides the trigger, you may customize the following:

  • how items are displayed in the autocomplete menu

  • how items' references are inserted into the Roam block

Display as

// Citekey
@someCitekey
@anotherCitekey
...

// Zettlr
Author et al. (2019) Some Paper Title
A.N. Author (2018) Some study : a paper
...

Insert as

// Citation
[Author et al. (2019)]([[@someCitekey]])

// Citekey
@someCitekey

// Citekey (raw)
someCitekey

// Page reference
[[@someCitekey]]

// Popover
{{=: Author et al. (2019) | {{embed: [[@someCitekey]]}} }}

// Tag
#[[@someCitekey]]

Custom templates

For both settings, you can choose to use a custom template for rendering items.

Here are the replacements available:

  • {{authors}} will insert shortened authorship information - Author et al.

  • {{citekey}} will insert the citekey - @someCitekey

  • {{key}} will insert the raw citekey - someCitekey

  • {{summary}} will insert shortened publication information - Author et al. (2019)

  • {{summary_or_key}} will insert the same contents as {{summary}}, or default to the item's key if information is missing

  • {{title}}

  • {{year}}

Last updated 2 years ago

Was this helpful?

🛠️