File: hyperref.tex

package info (click to toggle)
latexml 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,920 kB
  • sloc: xml: 109,048; perl: 30,224; sh: 179; javascript: 28; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{Introduction}\label{sec:intro}
\section{Motivation}\label{sec:motivation}
\section{Conclusion}\label{sec:conclusion}

\subsection{nameref}\label{subsec:nameref}
Nameref for sections \nameref{sec:intro} and \nameref{sec:motivation}.

And subsections \nameref{subsec:nameref} and \nameref{subsec:autoref}.

\subsection{autoref}\label{subsec:autoref}
Autoref for \autoref{sec:intro} and \autoref{sec:motivation}.

And also \autoref{subsec:nameref} and \autoref{subsec:autoref}.

These two should fail gracefully: \nameref{sec:fail} and \autoref{sec:fail}.

\end{document}