From 40fa01765bbd41145372e4e6f01f375353f683d0 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 1 Nov 2007 17:32:59 +0000 Subject: Cleaned up LaTeX footnotes: + Footnotes start on a separate line. A comment % is used at the end of the previous line to prevent unwanted spaces. This makes footnotes easier to see, delete, and move around. + The final } now only appears on a separate line if it needs to (i.e. if the note ends with a Verbatim environment). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1061 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/writer.latex | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests') diff --git a/tests/writer.latex b/tests/writer.latex index 883217c86..0e7f7c165 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -792,11 +792,12 @@ Here is a movie \includegraphics{movie.jpg} icon. \section{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 the document. -} +reference,% +\footnote{Here is the footnote. It can go anywhere after the footnote +reference. It need not be placed at the end of the document.} and -another.\footnote{ Here's the long note. This one contains multiple blocks. +another.% +\footnote{Here's the long note. This one contains multiple blocks. Subsequent blocks are indented to show that they belong to the footnote (as with list items). @@ -805,24 +806,23 @@ footnote (as with list items). { } \end{Verbatim} If you want, you can indent every line, but you can also be lazy -and just indent the first line of each block. -} +and just indent the first line of each block.} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline -note.\footnote{ This is \emph{easier} to type. Inline notes may contain +note.% +\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \verb!]! verbatim characters, -as well as [bracketed text]. -} +as well as [bracketed text].} \begin{quote} -Notes can go in quotes.\footnote{ In quote. -} +Notes can go in quotes.% +\footnote{In quote.} \end{quote} \begin{enumerate}[1.] \item - And in list items.\footnote{ In list. -} + And in list items.% +\footnote{In list.} \end{enumerate} This paragraph should not be part of the note, as it is not indented. -- cgit v1.2.3