https://github.com/anthesevenants/zotex

A VSCode Extension: Zotero with Better Bibtex support for LaTeX.

https://github.com/anthesevenants/zotex

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

A VSCode Extension: Zotero with Better Bibtex support for LaTeX.

Basic Info
  • Host: GitHub
  • Owner: AntheSevenants
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Homepage:
  • Size: 802 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of raykr/zotex
Created over 1 year ago · Last pushed over 1 year ago

https://github.com/AntheSevenants/zotex/blob/main/

# Zotex README

This is a Zotero Cite plugin that is used to conveniently reference and manage literature in Zotero within VSCode. It supports multiple file formats and can automatically import bib files (such as ref.bib).

## Features

### Supports multiple file formats

- Support markdown, pandoc, and LaTeX file insertion references.
- Support for multiple citation formats, such as pandoc's `[@citekey]`, LaTeX's `\cite{citekey}`, markdown footnotes `[^citekey]`, etc.
- Support inserting the content in the clipboard as a markdown hyperlink, for example [^wbndRgHX]: , where keyContent is the content in the clipboard and key is automatically generated.
- Open current cite item in Zotero.

### Automatically import bib files.

- You can automatically import bib files based on citekey without the need to export a batch of bib entries in advance, making it more flexible to use.

## Usage

### Add Citations in Latex/Pandoc.

- Activate via Command Palette (command + shift + P): Type "`Zotex: Add Citation`" and press enter.
- Select the item you want to cite in Zotero Citation Picker.
- The plugin will automatically select the appropriate citation format based on the file extension of the current document, such as `\cite{citekey}` for LaTeX and `[@citekey]` for Pandoc footnotes.

> Tip: This operation does not automatically import bib entries. If you need to automatically import bib entries, please use the following method.

### Insert citations and automatically import bib entries in Latex/Pandoc.

- Activate via Command Palette (command + shift + P): Type "`Zotex: Cite and Create Bibliography for Latex/Pandoc`" and press enter.

### Insert footnotes in Markdown.

- Activate via Command Palette (command + shift + P): Type "`Zotex: Cite and Create Bibliography for Markdown`" and press enter.

Example:

> [^andrychowicz2018hindsight][^andrychowicz2018hindsight]: Andrychowicz, M., Wolski, F., Ray, A., Schneider, J., Fong, R., Welinder, P., McGrew, B., Tobin, J., Abbeel, P., & Zaremba, W. (2018). Hindsight Experience Replay (arXiv:1707.01495). arXiv. https://doi.org/10.48550/arXiv.1707.01495

### Insert clipboard content as a hyperlink in Markdown.

- Activate via Command Palette (command + shift + P): Type "`Zotex: Add Hyperlink Citation`" and press enter.

### Open the currently cited item in Zotero.

- Activate via Command Palette (command + shift + P): Type "`Zotex: Open in Zotero`" and press enter.

### Keyboard shortcuts

- Pressing `ctrl+s` will open the Zotero Citation Picker to insert a citation.
- By default, `ctrl+alt+s` directly inserts the citation of the currently selected item in Zotero client and automatically imports the bib entry without needing to initiate Zotero Citation Picker.

## Requirements

You need to have Zotero installed, along with the Better BibTex extension. You'll probably also want some kind of LaTeX editor extension installed, such as LaTeX Workshop.

## Extension Settings

Include if your extension adds any VS Code settings through the `zotex.configuration` extension point.

For example:

This extension contributes the following settings:

- `zotex.serverUrl`: URL of the Zotero server.
- `zotex.bibliograpyStyle`: URL of bibliography style, see: https://www.zotero.org/styles.
- `zotex.defaultBibName`: Default bib file name
- `zotero.minimizeAfterPicking`: Minimize all Zotero windows after picking a citation.

## Known Issues

## Release Notes

Users appreciate release notes as you update your extension.

### 0.0.1

Initial release of Zotex.

### 0.0.2

Improved README.md.

### 0.0.3

Fix a menu bug about minimizeAfterPicking. `minimizeAfterPicking` must be require Zotero BBT extension build 4926 or later.

### 1.0.0

Fix: insert incorrectly citation into `\cite[]{}`.

### 1.0.1

Fixed the problem that the original bib entry was overwritten when Exporting BibLaTex.

### 1.0.2

New Feature: Add `Flush BibLaTex` command to reforce fresh bib items and sort.

### 1.0.3

Update icon.

### 1.0.4

New Feature: support export bib items nested. Awesome!

### ...

### 1.0.7

Bug Fix: imported incorrect when citekey contains special characters, e.g. `-`.

### 1.0.8

Bug Fix: cannot `Open in Zotero` when citekey contains special characters, e.g. `-`.

### 1.0.9

Bug Fix: cannot add biblatex to ref.bib.

### 1.0.10

New Feature: Add support for other citation commands in Natbib.

---

**Enjoy!**

Owner

  • Name: Anthe Sevenants
  • Login: AntheSevenants
  • Kind: user
  • Location: Leuven, Belgium
  • Company: KU Leuven

AI & linguistics master. Linguistics PhD candidate @QLVL

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1