diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-06-02 14:37:15 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-06-02 14:38:18 -0700 |
commit | 8d19e45b97d81276b046de2a5078cf5ce0122745 (patch) | |
tree | 2b86a0fc876c35a0ee522814af40ecbad6563b00 /tests/writer.latex | |
parent | 768ddc3d5626dea320ee050ee8b411b43daa1105 (diff) |
LaTeX writer: Always create labels for sections.
Previously the labels were only created when there were links to
the section in the document.
Closes #871.
Diffstat (limited to 'tests/writer.latex')
-rw-r--r-- | tests/writer.latex | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/tests/writer.latex b/tests/writer.latex index 04924f0b1..0e7c81ceb 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -77,31 +77,32 @@ markdown test suite. \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Headers} +\section{Headers}\label{headers} -\subsection{Level 2 with an \href{/url}{embedded link}} +\subsection{Level 2 with an \href{/url}{embedded +link}}\label{level-2-with-an-embedded-link} -\subsubsection{Level 3 with \emph{emphasis}} +\subsubsection{Level 3 with \emph{emphasis}}\label{level-3-with-emphasis} -\paragraph{Level 4} +\paragraph{Level 4}\label{level-4} -\subparagraph{Level 5} +\subparagraph{Level 5}\label{level-5} -\section{Level 1} +\section{Level 1}\label{level-1} -\subsection{Level 2 with \emph{emphasis}} +\subsection{Level 2 with \emph{emphasis}}\label{level-2-with-emphasis} -\subsubsection{Level 3} +\subsubsection{Level 3}\label{level-3} with no blank line -\subsection{Level 2} +\subsection{Level 2}\label{level-2} with no blank line \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Paragraphs} +\section{Paragraphs}\label{paragraphs} Here's a regular paragraph. @@ -115,7 +116,7 @@ There should be a hard line break\\here. \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Block Quotes} +\section{Block Quotes}\label{block-quotes} E-mail style: @@ -160,7 +161,7 @@ And a following paragraph. \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Code Blocks} +\section{Code Blocks}\label{code-blocks} Code: @@ -184,9 +185,9 @@ These should not be escaped: \$ \\ \> \[ \{ \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Lists} +\section{Lists}\label{lists} -\subsection{Unordered} +\subsection{Unordered}\label{unordered} Asterisks tight: @@ -257,7 +258,7 @@ Minuses loose: Minus 3 \end{itemize} -\subsection{Ordered} +\subsection{Ordered}\label{ordered} Tight: @@ -323,7 +324,7 @@ Multiple paragraphs: Item 3. \end{enumerate} -\subsection{Nested} +\subsection{Nested}\label{nested} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt @@ -388,7 +389,7 @@ Same thing but with paragraphs: Third \end{enumerate} -\subsection{Tabs and spaces} +\subsection{Tabs and spaces}\label{tabs-and-spaces} \begin{itemize} \item @@ -404,7 +405,7 @@ Same thing but with paragraphs: \end{itemize} \end{itemize} -\subsection{Fancy list markers} +\subsection{Fancy list markers}\label{fancy-list-markers} \begin{enumerate} \def\labelenumi{(\arabic{enumi})} @@ -492,7 +493,7 @@ B. Williams \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Definition Lists} +\section{Definition Lists}\label{definition-lists} Tight using spaces: @@ -595,7 +596,7 @@ orange fruit \end{enumerate} \end{description} -\section{HTML Blocks} +\section{HTML Blocks}\label{html-blocks} Simple block on one line: @@ -657,7 +658,7 @@ Hr's: \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Inline Markup} +\section{Inline Markup}\label{inline-markup} This is \emph{emphasized}, and so \emph{is this}. @@ -689,7 +690,7 @@ spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d. \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Smart quotes, ellipses, dashes} +\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes} ``Hello,'' said the spider. ``\,`Shelob' is my name.'' @@ -710,7 +711,7 @@ Ellipses\ldots{}and\ldots{}and\ldots{}. \begin{center}\rule{3in}{0.4pt}\end{center} -\section{LaTeX} +\section{LaTeX}\label{latex} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt @@ -758,7 +759,7 @@ Cat & 1 \\ \hline \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Special Characters} +\section{Special Characters}\label{special-characters} Here is some unicode: @@ -820,9 +821,9 @@ Minus: - \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Links} +\section{Links}\label{links} -\subsection{Explicit} +\subsection{Explicit}\label{explicit} Just a \href{/url/}{URL}. @@ -842,7 +843,7 @@ Just a \href{/url/}{URL}. \href{}{Empty}. -\subsection{Reference} +\subsection{Reference}\label{reference} Foo \href{/url/}{bar}. @@ -870,7 +871,7 @@ Foo \href{/url/}{bar}. Foo \href{/url/}{biz}. -\subsection{With ampersands} +\subsection{With ampersands}\label{with-ampersands} Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the URL}. @@ -882,7 +883,7 @@ Here's an \href{/script?foo=1\&bar=2}{inline link}. Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}. -\subsection{Autolinks} +\subsection{Autolinks}\label{autolinks} With an ampersand: \url{http://example.com/?foo=1\&bar=2} @@ -911,7 +912,7 @@ or here: <http://example.com/> \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Images} +\section{Images}\label{images} From ``Voyage dans la Lune'' by Georges Melies (1902): @@ -925,7 +926,7 @@ Here is a movie \includegraphics{movie.jpg} icon. \begin{center}\rule{3in}{0.4pt}\end{center} -\section{Footnotes} +\section{Footnotes}\label{footnotes} Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of |