Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

crossmem_cite

Look up a citation by cite key and return it in the requested format.

Parameters

ParameterTypeRequiredDefaultDescription
cite_keystringyesCitation key, e.g. vaswani2017attention
formatstringnobibtexOne of: bibtex, apa, mla, chicago, ieee

Returns

The formatted citation string extracted from the wiki file’s citation section.

Success

Vaswani, A., & Shazeer, N. (2017). Attention Is All You Need. arXiv preprint arXiv:1706.03762.

Cite key not found

If the cite key doesn’t match any wiki entry, returns the top 5 fuzzy matches:

Error: cite_key 'vaswani' not found. Did you mean:
  - vaswani2017attention — Attention Is All You Need

Format not found

If the cite key exists but the wiki file is missing the requested citation section:

Error: cite_key 'vaswani2017attention' found but no APA citation section in wiki file.
File: /Users/you/crossmem/wiki/1776227300_vaswani2017attention.md

Fuzzy matching

When an exact match fails, the tool scores candidates by:

  1. Full cite key substring match (+10)
  2. Full title substring match (+5)
  3. Per-token cite key match (+3 each)
  4. Per-token title match (+2 each)

The top 5 candidates are returned as suggestions.