Citas y bibliografía
ComdTeX gestiona citas académicas con BibTeX estándar, así que el mismo archivo funciona en ComdTeX, en Overleaf y en cualquier otra herramienta LaTeX. No hace falta un formato propio ni una base de datos aparte.
El archivo references.bib
Si tu vault tiene un archivo references.bib en la raíz, ComdTeX lo reconoce automáticamente y lo usa como fuente de todas las citas [@clave] del vault. Una entrada típica:
@book{rudin1976,
author = {Walter Rudin},
title = {Principles of Mathematical Analysis},
edition = {3},
publisher = {McGraw-Hill},
year = {1976}
}
Citar en el texto
En cualquier nota, cita la entrada por su clave con [@clave]:
La demostración se sigue del teorema de convergencia dominada [@rudin1976, p. 321].
Puedes añadir información de página u otro detalle después de una coma, como en p. 321 arriba. Varias fuentes van en un solo corchete separadas por punto y coma: [@a; @b] o [@a; @b, p. 3] se muestran como un solo marcador ([1, 2], o (Rudin, 1976; Smith, 2001) en los estilos autor-año), se exportan como un único \cite{a,b} y se comprueban clave por clave. [@a][@b] sigue mostrándose como dos marcadores. Todas las entradas citadas en el documento se recopilan automáticamente en una bibliografía al final de la vista previa, en el orden en que aparecen.
Encontrar la clave mientras escribes
Escribe [@ y el editor lista las entradas de references.bib. Puedes buscar como recuerdas la fuente: por clave, autor, título o año. Cada sugerencia muestra algo como “Levin & Peres 2017”, el título y una tarjeta con la revista o editorial, y las sugerencias siguen apareciendo después de ; y , @ en [@a; @b, p. 3]. Al pasar el cursor sobre una cita aparece una tarjeta por clave, y Ctrl+clic o F12 sobre una clave abre references.bib en esa entrada. Si una clave no está en el archivo, la corrección rápida (Ctrl+.) añade un esqueleto BibTeX. Ver El editor.
El Citation Manager
El panel Citation Manager es un navegador y editor visual para las entradas de references.bib: te permite ver, editar y añadir entradas sin escribir BibTeX a mano.
Capturar por DOI o arXiv
Pega un DOI o un identificador de arXiv en el Citation Manager y ComdTeX obtiene la entrada automáticamente desde CrossRef o DataCite, sin que tengas que transcribir autor, título, año ni el resto de los campos a mano.
Capturar por PubMed ID
Para papers biomédicos, pega un PMID (PMID: 12345678), un PMCID (PMC1234567) o un enlace de PubMed o PMC. ComdTeX consulta el registro en NCBI, sin token. Cuando el paper tiene DOI, obtienes la entrada completa de CrossRef; si no, la entrada se construye con los datos propios de PubMed (autores, título, revista, año, volumen, páginas). En ambos casos el pmid, y el pmcid cuando existe, se guardan en la entrada. La clave de una entrada construida desde PubMed se ve como smith2020pmid12345678.
Importar desde Zotero
Si tienes Zotero corriendo localmente con el plugin Better BibTeX instalado, el Citation Manager puede importar entradas directamente desde su API JSON-RPC local (http://localhost:23119), sin pasar por un paso de exportación manual.
Resumen
| Acción | Cómo |
|---|---|
| Definir bibliografía | references.bib en la raíz del vault |
| Citar una fuente | [@clave] |
| Citar con página | [@clave, p. 321] |
| Añadir por DOI/arXiv/PubMed | Pegar el identificador (DOI, ID de arXiv, PMID o PMCID) en el Citation Manager |
| Importar desde Zotero | Better BibTeX corriendo en localhost:23119 |
Citations and bibliography
ComdTeX manages academic citations with standard BibTeX, so the same file works in ComdTeX, in Overleaf, and in any other LaTeX tool. There is no proprietary format and no separate database.
The references.bib file
If your vault has a references.bib file at its root, ComdTeX recognizes it automatically and uses it as the source for every [@key] citation in the vault. A typical entry:
@book{rudin1976,
author = {Walter Rudin},
title = {Principles of Mathematical Analysis},
edition = {3},
publisher = {McGraw-Hill},
year = {1976}
}
Citing in text
In any note, cite the entry by its key with [@key]:
The proof follows from the dominated convergence theorem [@rudin1976, p. 321].
You can add page information or other detail after a comma, as with p. 321 above. Several sources go in one bracket separated by semicolons: [@a; @b] or [@a; @b, p. 3] render as a single marker ([1, 2], or (Rudin, 1976; Smith, 2001) in author-year styles), export as one \cite{a,b}, and are checked key by key. [@a][@b] still renders as two markers. Every entry cited in the document is automatically collected into a bibliography at the bottom of the preview, in the order it appears.
Finding the key while you type
Type [@ and the editor lists the entries of references.bib. You can search the way you remember the source: by key, author, title or year. Each suggestion shows something like “Levin & Peres 2017”, the title, and a card with the journal or publisher, and the suggestions keep coming after ; and , @ in [@a; @b, p. 3]. Hovering a citation shows one card per key, and Ctrl+click or F12 on a key opens references.bib at that entry. If a key is not in the file, the quick fix (Ctrl+.) adds a BibTeX stub for it. See The editor.
The Citation Manager
The Citation Manager panel is a visual browser and editor for the entries in references.bib: it lets you view, edit, and add entries without hand-writing BibTeX.
Fetch by DOI or arXiv
Paste a DOI or an arXiv ID into the Citation Manager and ComdTeX fetches the entry automatically from CrossRef or DataCite, so you never have to transcribe author, title, year, and the rest of the fields by hand.
Fetch by PubMed ID
For biomedical papers, paste a PMID (PMID: 12345678), a PMCID (PMC1234567) or a PubMed or PMC link. ComdTeX asks NCBI for the record, with no token. When the paper has a DOI, you get the full CrossRef entry; otherwise the entry is built from PubMed’s own data (authors, title, journal, year, volume, pages). Either way the pmid, and the pmcid when there is one, are saved in the entry. The key of an entry built from PubMed looks like smith2020pmid12345678.
Import from Zotero
If you have Zotero running locally with the Better BibTeX plugin installed, the Citation Manager can import entries directly from its local JSON-RPC API (http://localhost:23119), with no manual export step required.
Summary
| Action | How |
|---|---|
| Define bibliography | references.bib at the vault root |
| Cite a source | [@key] |
| Cite with page | [@key, p. 321] |
| Add by DOI/arXiv/PubMed | Paste the identifier (DOI, arXiv ID, PMID or PMCID) into the Citation Manager |
| Import from Zotero | Better BibTeX running on localhost:23119 |