Skip to content

LaTeX: render hyperlinks which are in titles #13593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jfbu
Copy link
Contributor

@jfbu jfbu commented May 24, 2025

Purpose

Fix #12821 per the discussion there (sorry for delay).

  • I added a test along the lines of [LaTeX] URLs/links in sections headers should be hyperlinks #12821 (comment) i.e. with an URL using # as this is potentially dangerous in LaTeX,
  • I included a commit to execute pdflatex twice when building a PDF document during our CI/LaTeX tests; this is not quite yet an exact mirroring of what happens in real world which uses Latexmk, but such a change is required in the context of this PR, as hyperlinks in section titles navigate to the auxiliary .toc file and only in second LaTeX pass are parsed again by LaTeX and it is needed to test nothing bad happens at that stage,
  • This PR also includes an unrelated .gitignore update which is for my comfort when using Emacs/AUCTeX for the editing of LaTeX files in sphinx/texinputs.

@jfbu jfbu added this to the 8.3.0 milestone May 24, 2025
jfbu added a commit to jfbu/sphinx that referenced this pull request May 24, 2025
@jfbu jfbu force-pushed the latex_URLs_in_titles branch from efb54cf to 38859e9 Compare May 24, 2025 15:04
@jfbu jfbu marked this pull request as draft May 25, 2025 07:40
@jfbu jfbu marked this pull request as ready for review May 25, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LaTeX] URLs/links in sections headers should be hyperlinks
1 participant