\documentclass[a4paper]{article} % generated by Docutils \usepackage{fixltx2e} % LaTeX patches, \textsubscript \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \setcounter{secnumdepth}{0} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets %%% Fallback definitions for Docutils-specific commands % numeric or symbol footnotes with hyperlinks \providecommand*{\DUfootnotemark}[3]{% \raisebox{1em}{\hypertarget{#1}{}}% \hyperlink{#2}{\textsuperscript{#3}}% } \providecommand{\DUfootnotetext}[4]{% \begingroup% \renewcommand{\thefootnote}{% \protect\raisebox{1em}{\protect\hypertarget{#1}{}}% \protect\hyperlink{#2}{#3}}% \footnotetext{#4}% \endgroup% } % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} \hypersetup{ pdftitle={Footnote testing}, } %%% Title Data \title{\phantomsection% Footnote testing% \label{footnote-testing}} \author{} \date{} %%% Body \begin{document} \maketitle Paragraphs contain text and may contain inline markup: \emph{emphasis}, \textbf{strong emphasis}, footnote references (manually numbered\DUfootnotemark{id1}{id6}{1}, anonymous auto-numbered\DUfootnotemark{id2}{id9}{3}, labeled auto-numbered\DUfootnotemark{id3}{label}{2}, or symbolic\DUfootnotemark{id4}{id10}{*}), citation references (\hyperlink{cit2002}{[CIT2002]}), and ... \section{Footnotes% \label{footnotes}% } % \DUfootnotetext{id6}{id1}{1}{% A footnote contains body elements, consistently indented by at least 3 spaces. This is the footnote's second paragraph. } % \DUfootnotetext{label}{id3}{2}{\phantomsection\label{label}% Footnotes may be numbered, either manually (as in\DUfootnotemark{id7}{id6}{1}) or automatically using a \textquotedbl{}\#\textquotedbl{}-prefixed label. This footnote has a label so it can be referred to from multiple places, both as a footnote reference (\DUfootnotemark{id8}{label}{2}) and as a hyperlink reference (\hyperref[label]{label}). } % \DUfootnotetext{id9}{id2}{3}{% This footnote is numbered automatically and anonymously using a label of \textquotedbl{}\#\textquotedbl{} only. } % \DUfootnotetext{id10}{id4}{*}{% Footnotes may also use symbols, specified with a \textquotedbl{}*\textquotedbl{} label. Here's a reference to the next footnote:\DUfootnotemark{id11}{id12}{†}. } % \DUfootnotetext{id12}{id11}{†}{% This footnote shows the next symbol in the sequence. } % \DUfootnotetext{id13}{id13}{4}{% Here's a footnote, with a reference to a footnote:\DUfootnotemark{id14}{id17}{5}. } \section{Citations% \label{citations}% } A test citation containing an underscore \hyperlink{underscore-2006}{[underscore\_2006]}. and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes \begin{figure}[b]\raisebox{1em}{\hypertarget{cit2002}{}}[CIT2002] Citations are text-labeled footnotes. They may be rendered separately and differently from footnotes. \end{figure} \begin{figure}[b]\raisebox{1em}{\hypertarget{underscore-2006}{}}[underscore\_2006] The underscore is mishandled. \end{figure} and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes Here's a reference to the above, \hyperlink{cit2002}{[CIT2002]} citation. % \DUfootnotetext{id17}{id14}{5}{% We need a lot to trigger the \textquotedbl{}too many floats\textquotedbl{}. } % \begin{quote}{\ttfamily \raggedright \noindent \textbackslash{}bibitem{[}like\{\textbackslash{}\_\}this{]}\{like\{\textbackslash{}\_\}this\}\\ That~places~forbidden~characters~in~the~citekey.\\ It~should~produce\\ \textbackslash{}bibitem{[}like\{\textbackslash{}\_\}this{]}\{like\_this\} } \end{quote} \begin{figure}[b]\raisebox{1em}{\hypertarget{like-this}{}}[like\_this] a citation with underscore \end{figure} \section{Footnote with bullet list% \label{footnote-with-bullet-list}% } and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes and some text to get not only footnotes % \DUfootnotetext{value-initialized}{value-initialized}{6}{% The concept of value-initialization was added to the C++ standard in the first \textquotedbl{}Technical Corrigendum\textquotedbl{}. To value-initialize an object of type T means: % \begin{itemize} \item if T is a class type (clause 9) with a user-declared constructor (12.1), then the default constructor for T is called (and the initialization is ill-formed if T has no accessible default constructor); \item if T is a non-union class type without a user-declared constructor, then every non-static data member and base-class component of T is value-initialized; \item if T is an array type, then each element is value-initialized; \item otherwise, the object is zero-initialized \end{itemize} } \end{document}