aboutsummaryrefslogtreecommitdiff
path: root/test/command/6033.md
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-08-19 09:52:01 -0700
committerJohn MacFarlane <[email protected]>2023-08-19 09:52:01 -0700
commit70329edcd7afb7b3f8f015b13ab2e734c9e31d05 (patch)
tree34c8363de72e10ae737681f4cdbdb3f25b5f4a97 /test/command/6033.md
parent068fce4293eb139f54d4825e1dbdcaf35e34da03 (diff)
LaTeX writer: improve internal links and targets.
We no longer wrap section headings in a `\hypertarget`. This is unnecessary (hyperref creates an anchor based on the label) and it interferes with tagging. In addition, we now use `\hyperref` rather than `\hyperlink` for internal links. Currently `\hypertarget` is still being used for link anchors not on headings. Closes #8744. Thanks to @u-fischer.
Diffstat (limited to 'test/command/6033.md')
-rw-r--r--test/command/6033.md15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/command/6033.md b/test/command/6033.md
index f831daa49..cc1b212bf 100644
--- a/test/command/6033.md
+++ b/test/command/6033.md
@@ -32,11 +32,9 @@
- More text.
^D
-\hypertarget{one}{%
-\section{One}\label{one}}
+\section{One}\label{one}
-\hypertarget{one-a}{%
-\subsection{One-A}\label{one-a}}
+\subsection{One-A}\label{one-a}
\begin{frame}{One-A}
\begin{columns}[T]
@@ -64,8 +62,7 @@
\end{itemize}
\end{frame}
-\hypertarget{one-b}{%
-\subsection{One-B}\label{one-b}}
+\subsection{One-B}\label{one-b}
\begin{frame}{One-B}
\begin{itemize}
@@ -75,11 +72,9 @@
\end{itemize}
\end{frame}
-\hypertarget{two}{%
-\section{Two}\label{two}}
+\section{Two}\label{two}
-\hypertarget{two-a}{%
-\subsection{Two-A}\label{two-a}}
+\subsection{Two-A}\label{two-a}
\begin{frame}{Two-A}
\begin{itemize}