Skip to content

Instantly share code, notes, and snippets.

@thor314
Created December 15, 2022 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thor314/84211e27643972167eb956261c7f5088 to your computer and use it in GitHub Desktop.
Save thor314/84211e27643972167eb956261c7f5088 to your computer and use it in GitHub Desktop.
creation-date tags link docs
2022-11-28
topic/tool

Tool-Zotero

Usage

Simple setup. Stays in sync across devices.

  • prefer to install via flatpak over snap. Some plugins don't work with the snap.
  • add a file: use the zotero browser extension or the GUI from filesystem.
  • Retrieve citation details for a pdf without them: Right click a file, press retrieve metadata. Will search severa academic databases. Or use the green -> crossref feature.
  • citing a thing: integrates with several platforms for cerating citations. Or right-click create bib from item. Quick-cite: Ctrl Shift C. Probably easier to do from within Obsidian. Configure quick copy with Edit > Preferences > Export > default frmat
  • extremely nice pdf reader, once enabled with a dark plugin.
  • Install plugins: Tools > Add ons > settings wheel > install add on from file > choose an .xpi file.

Obsidian integration

Obsidian Zotero Integration

Insert notes and PDF annotations, which Citations does not do. Setting up the tesseract command for importing images seems to be failing though. Set up:

  • download the PDF tool from the plugin settings
  • configure image export location
  • (This step is actually unnecessary) In zotero, "add note from annotations" for the file
  • commands:
    • import format - preferred over the following; creates a file with the list of annotations, formatted according to templates. See https://forum.obsidian.md/t/zotero-desktop-connector-import-templates/36310/3?u=thor314 for a nice sample template.
    • import-notes - creates a file with the list of annotations notes. Won't work if file already exists, or if haven't exported annotations in zotero.
      • insert notes into current document: similar to above
    • data extractor - create a scratch note with the metadata from a zotero file.
    • BibLatex citation format: \autocite{aumassonSeriousCryptographyPractical2017}
      • Similar to citations insert note link: [[@aumassonSeriousCryptographyPractical2017]]
      • and citations markdown citation: [@aumassonSeriousCryptographyPractical2017]
  • main workflow:
    • create annotations in zotero
    • import them with this plugin with import format (or import notes if don't want formatting)
    • create annotations with at-symbol autofill, or Ctrl-shift-k autocite
    • profit

Citations plugin

Appears to be entirely superceded by Obsidian Zotero integration. which appears in all ways superior. Citations doesn't import annotations and seems to have a clunkier workflow. https://github.com/hans/obsidian-citation-plugin Functionality:

  • create literature notes in Obsidian from files in Zotero
  • Insert citations to zotero links

Set up:

  • Install Better BibTex (see below)
  • Right click My Library > Export: Format Better BibLaTeX, check all boxes except export files.
  • Save to ~/.zotero/My Library.bib
  • Specify the path with the Obsidian Citations plugin settings
  • Example output from insert note content
---
title: Serious cryptography: A practical introduction to modern encryption
authors: Jean-Philippe Aumasson, Matthew D. Green
year: 2017
tags: zotero-citations
link: zotero://select/items/@aumassonSeriousCryptographyPractical2017
---

Plugins

  • GitHub - tefkah/zotero-night: Night theme for Zotero UI and PDF - make zotero pdf reader dark and pretty.
  • Better BibTeX for Zotero :: Better BibTeX for Zotero - generate citation keys, drag and drop latex citations, convert between HTML and LaTeX snippets when quoting. Required for Obsidian integration. Better BibTex adds a couple of export formats to Zotero’s export dialog and several ways to improve export for plaintext-based authoring. Tweak the exports options in Edit > Preferences > Better Bibtex:
    • Omit fields from exports to slim down your bib files
    • Configure how citation keys are generated

Misc

  • can subscribe to rss feeds (they adv use case for journals)

  • topic:: [[Topic-Tool]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment