Citations¶
MergDown2TeX converts Obsidian citations to LaTeX with bidirectional navigation.
How it works¶
graph LR
A[Text] -->|↑| B[Citation]
B -->|↓| C[Bibliography]
Syntax¶
Basic citation¶
Input:
Output:
Multiple citations¶
Input:
Output:
Citation with page¶
Input:
Output:
Citation styles¶
| Style | Syntax | Output |
|---|---|---|
authoryear |
@smith2020 |
\citep{smith2020} |
numeric |
@smith2020 |
\cite{smith2020} |
alphabetic |
@smith2020 |
\cite{smith2020} |
super |
@smith2020 |
\cite{smith2020} |
Configuration:
Navigation arrows¶
MergDown2TeX adds bidirectional arrows to citations:
In text¶
In bibliography¶
graph LR
A[Text] -->|↑| B[Citation]
B -->|↓| C[Bibliography]
Bibliography file¶
BibTeX format¶
File: references.bib
@article{smith2020,
author = {Smith, John},
title = {Important Research},
journal = {Journal of Science},
year = {2020},
volume = {1},
pages = {1-10}
}
@book{doe2021,
author = {Doe, Jane},
title = {Advanced Topics},
publisher = {Academic Press},
year = {2021}
}
Configuration¶
Citation extraction¶
MergDown2TeX automatically extracts citations from your note:
graph TD
A[Note Content] --> B[Regex: @citation]
B --> C[Extract citation keys]
C --> D[Generate \citep{}]
D --> E[Generate bibliography]
Supported patterns¶
| Pattern | Example | Output |
|---|---|---|
@key |
@smith2020 |
\citep{smith2020} |
@key[p. 1] |
@smith2020[p. 1] |
\citep[p.~1]{smith2020} |
@key[text] |
@smith2020[see] |
\citep[see]{smith2020} |
Example¶
Input¶
---
title: "Research Paper"
bibliography: references.bib
---
# Introduction
This paper discusses [[Related Work]] and cites @smith2020.
## Methods
Research shows @doe2021 that...
## Results
Our findings confirm @smith2020[p. 42].
Output¶
\documentclass[12pt]{report}
\usepackage{cite}
\usepackage{hyperref}
\title{Research Paper}
\begin{document}
\section{Introduction}
This paper discusses \hyperref[related-work]{Related Work} and cites \citep{smith2020}.
\section{Methods}
Research shows \citep{doe2021} that...
\section{Results}
Our findings confirm \citep[p.~42]{smith2020}.
\bibliographystyle{plain}
\bibliography{references}
\end{document}
Troubleshooting¶
Citation not found¶
Error:
Solution:
- Check references.bib for this key
- Verify spelling (case-sensitive)
- Add entry to .bib file
Bibliography not rendering¶
Error:
Solution:
- Run pdflatex 3 times
- Check bibliography setting in YAML frontmatter
Next steps¶
- Cross-References - Navigation arrows
- Configuration - Customize settings
- Compilation - PDF/DOCX options