Files
John MacFarlane f7035d080c 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.
2023-08-26 16:19:01 -07:00

1.0 KiB

% pandoc -t revealjs --slide-level=3
# One

One

## Two

Two

### Three

Three

#### Four

Four

# New sec

New sec

## New sub

New sub
^D
<section>
<section id="one" class="title-slide slide level1">
<h1>One</h1>
<p>One</p>
</section>
<section id="two" class="title-slide slide level2">
<h2>Two</h2>
<p>Two</p>
</section>
<section id="three" class="slide level3">
<h3>Three</h3>
<p>Three</p>
<h4 id="four">Four</h4>
<p>Four</p>
</section>
</section>
<section>
<section id="new-sec" class="title-slide slide level1">
<h1>New sec</h1>
<p>New sec</p>
</section>
<section id="new-sub" class="title-slide slide level2">
<h2>New sub</h2>
<p>New sub</p>
</section>
</section>
% pandoc -t beamer --slide-level=3
# One

One

## Two

Two

### Three

Three

#### Four

Four
^D
\section{One}\label{one}

\begin{frame}{One}
One
\end{frame}

\subsection{Two}\label{two}

\begin{frame}{Two}
Two
\end{frame}

\begin{frame}{Three}
\phantomsection\label{three}
Three

\begin{block}{Four}
\phantomsection\label{four}
Four
\end{block}
\end{frame}