diff options
| author | John MacFarlane <[email protected]> | 2023-08-26 16:15:20 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-08-26 16:19:01 -0700 |
| commit | f7035d080c617cda3804a7d0932da8283a5c681c (patch) | |
| tree | 996d8a89d682dc15798ae1a1ab6299ea90a17e66 /test | |
| parent | 99340446685eed812895c7fb7028979dc6975ab3 (diff) | |
LaTeX writer link/target improvements.
+ Use `\phantomsection` and `\label` instead of `\hypertarget`.
+ Use `\hyperref` for LaTeX internal links, `\hyperlink` for
beamer (since `\hyperref` doesn't seem to work).
Closes #9022.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/1710.md | 2 | ||||
| -rw-r--r-- | test/command/2874.md | 2 | ||||
| -rw-r--r-- | test/command/4016.md | 6 | ||||
| -rw-r--r-- | test/command/4690.md | 2 | ||||
| -rw-r--r-- | test/command/6030.md | 4 | ||||
| -rw-r--r-- | test/command/6107.md | 4 | ||||
| -rw-r--r-- | test/command/6360.md | 2 | ||||
| -rw-r--r-- | test/command/7278.md | 8 | ||||
| -rw-r--r-- | test/command/7857.md | 2 |
9 files changed, 16 insertions, 16 deletions
diff --git a/test/command/1710.md b/test/command/1710.md index 64d86cffe..d14e35e14 100644 --- a/test/command/1710.md +++ b/test/command/1710.md @@ -55,7 +55,7 @@ ok </div> ^D \begin{frame}{Slide one} -\protect\hypertarget{slide-one}{} +\phantomsection\label{slide-one} \begin{columns}[T] \begin{column}{0.4\textwidth} \begin{itemize} diff --git a/test/command/2874.md b/test/command/2874.md index 99f46d2fb..41bd17959 100644 --- a/test/command/2874.md +++ b/test/command/2874.md @@ -10,5 +10,5 @@ % pandoc -f html -t latex <a name="foo"></a><br/> ^D -\protect\hypertarget{foo}{}{}\strut \\ +\phantomsection\label{foo}{}\strut \\ ``` diff --git a/test/command/4016.md b/test/command/4016.md index 8683c0056..54cbc78c3 100644 --- a/test/command/4016.md +++ b/test/command/4016.md @@ -14,11 +14,11 @@ </div> ^D \begin{frame}{Level 2 blocks} -\protect\hypertarget{level-2-blocks}{} +\phantomsection\label{level-2-blocks} \begin{columns}[T] \begin{column}{0.4\textwidth} \begin{block}{Block one} -\protect\hypertarget{block-one}{} +\phantomsection\label{block-one} \begin{itemize} \tightlist \item @@ -29,7 +29,7 @@ \begin{column}{0.6\textwidth} \begin{block}{Block two} -\protect\hypertarget{block-two}{} +\phantomsection\label{block-two} \begin{itemize} \tightlist \item diff --git a/test/command/4690.md b/test/command/4690.md index 9a46823cc..454f31171 100644 --- a/test/command/4690.md +++ b/test/command/4690.md @@ -12,7 +12,7 @@ content2 :::: ^D \begin{frame}{title} -\protect\hypertarget{title}{} +\phantomsection\label{title} \begin{columns}[T] \begin{column}{0.08\textwidth} content diff --git a/test/command/6030.md b/test/command/6030.md index 0801f9173..0e156a2db 100644 --- a/test/command/6030.md +++ b/test/command/6030.md @@ -83,11 +83,11 @@ Two \end{frame} \begin{frame}{Three} -\protect\hypertarget{three}{} +\phantomsection\label{three} Three \begin{block}{Four} -\protect\hypertarget{four}{} +\phantomsection\label{four} Four \end{block} \end{frame} diff --git a/test/command/6107.md b/test/command/6107.md index 2f9d3353c..eca60539b 100644 --- a/test/command/6107.md +++ b/test/command/6107.md @@ -16,11 +16,11 @@ Not much to do about nothing. \section{A circus!}\label{a-circus} \begin{frame}{Another silly title} -\protect\hypertarget{another-silly-title}{} +\phantomsection\label{another-silly-title} Not much to do about nothing. \end{frame} \begin{frame}[standout]{Epilogue} -\protect\hypertarget{epilogue}{} +\phantomsection\label{epilogue} \end{frame} ``` diff --git a/test/command/6360.md b/test/command/6360.md index 794307a83..1f8a9a6f2 100644 --- a/test/command/6360.md +++ b/test/command/6360.md @@ -2,5 +2,5 @@ % pandoc -f native -t latex --wrap=none [Link ("test2",[],[]) [Str "link",Space,Str "to",Space,Str "text",Space,Str "test1"] ("#test1","")] ^D -\protect\hypertarget{test2}{\hyperref[test1]{link to text test1}} +\phantomsection\label{test2}\hyperref[test1]{link to text test1} ``` diff --git a/test/command/7278.md b/test/command/7278.md index dcf71c29f..1ed490e6d 100644 --- a/test/command/7278.md +++ b/test/command/7278.md @@ -17,21 +17,21 @@ text in block text in block ^D \begin{frame}{Slide} -\protect\hypertarget{slide}{} +\phantomsection\label{slide} Some blocks: \begin{exampleblock}{example block title} -\protect\hypertarget{example-block-title}{} +\phantomsection\label{example-block-title} text in block \end{exampleblock} \begin{alertblock}{alert block title} -\protect\hypertarget{alert-block-title}{} +\phantomsection\label{alert-block-title} text in block \end{alertblock} \begin{block}{block title} -\protect\hypertarget{block-title}{} +\phantomsection\label{block-title} text in block \end{block} \end{frame} diff --git a/test/command/7857.md b/test/command/7857.md index 9fc128b5d..424fac8b5 100644 --- a/test/command/7857.md +++ b/test/command/7857.md @@ -15,7 +15,7 @@ ok \note{my note} \begin{frame}{slide} -\protect\hypertarget{slide}{} +\phantomsection\label{slide} ok \end{frame} ``` |
