Cross-References¶
MergDown2TeX adds bidirectional navigation between citations.
How it works¶
graph LR
A[Text] -->|↑| B[Citation]
B -->|↓| C[Bibliography]
Features¶
Bidirectional arrows¶
In text:
In bibliography:
Navigation¶
- Click ↑ in text → Jump to citation in bibliography
- Click ↓ in bibliography → Jump to citation in text
Implementation¶
Text navigation¶
Bibliography navigation¶
Configuration¶
Enable/disable¶
Arrow style¶
Options:
- ↑↓ (default)
- ↗↙
- →←
Example¶
Input¶
---
title: "Research Paper"
bibliography: references.bib
---
# Introduction
This paper cites @smith2020.
# Bibliography
Output¶
\documentclass[12pt]{report}
\usepackage{cite}
\usepackage{hyperref}
\title{Research Paper}
\begin{document}
\section{Introduction}
This paper cites \citep{smith2020}... \hyperlink{smith2020}{↑}
\bibliographystyle{plain}
\bibliography{references}
\end{document}
In references.bib:
Troubleshooting¶
Arrows not appearing¶
Error:
Solution:
- Check citationNavigation: true in YAML
- Verify hyperref package is loaded
- Run pdflatex 3 times
Links not working¶
Error:
Solution:
- Check citation key matches
- Verify hyperref package is loaded
- Rebuild PDF
Block Cross-References (DOCX Support)¶
MergDown2TeX now supports cross-referencing blocks like Tables, Equations, and Figures, with proper hypertargets and labels functioning correctly in DOCX outputs.
Adding Anchors to Blocks¶
To enable cross-referencing, add a specific anchor directly after the block. The anchor must be on the immediate next non-empty line.
Tables:
Equations:
Figures:
Referencing Blocks¶
You can reference these blocks anywhere in your Markdown using standard Obsidian internal links:
- [[#^table--block-my-table]]
- [[#^eq--block-einstein]]
- [[#^figure--block-my-figure]]
These will automatically be compiled into proper LaTeX \label{...} and \hypertarget{...} tags, ensuring correct numbering and cross-referencing in generated PDF and DOCX files.
Next steps¶
- Citations - Citation features
- Configuration - Customize settings
- Compilation - PDF/DOCX options