Skip to content

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:

As shown by \citep{smith2020}... ↑

In bibliography:

\textbf{Smith, J. (2020).} Important Research. ↓

  • Click in text → Jump to citation in bibliography
  • Click in bibliography → Jump to citation in text

Implementation

Text navigation

As shown by \citep{smith2020}... \hyperlink{smith2020}{}

Bibliography navigation

\hypertarget{smith2020}{\textbf{Smith, J. (2020).} Important Research.} \hyperlink{smith2020}{}

Configuration

Enable/disable

---
citationNavigation: true
---

Arrow style

---
arrowStyle: "↑↓"
---

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:

\hypertarget{smith2020}{\textbf{Smith, J. (2020).} Important Research.} \hyperlink{smith2020}{}


Troubleshooting

Arrows not appearing

Error:

Citation navigation not working

Solution: - Check citationNavigation: true in YAML - Verify hyperref package is loaded - Run pdflatex 3 times

Error:

Hyperlink not found

Solution: - Check citation key matches - Verify hyperref package is loaded - Rebuild PDF


Next steps