Skip to content

Commit

Permalink
protecting those fragile footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Apr 16, 2024
1 parent 8842486 commit ed15363
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 1-current-metaprogramming/1-metaprog-and-hpc-overview.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ \section{

\begin{lstlisting}[
language={c++},
caption={C++ macro usage example \footnotemark{}},
caption={C++ macro usage example \protect\footnotemark{}},
label={lst:c-preproc-example}
]{}
#include <boost/preprocessor/facilities/apply.hpp>
Expand Down Expand Up @@ -73,7 +73,7 @@ \section{

\begin{lstlisting}[
language={lisp},
caption={Definition of the \lstinline{while} Lisp macro\footnotemark{}},
caption={Definition of the \lstinline{while} Lisp macro\protect\footnotemark{}},
label=lst:lisp-while
]{}
(defmacro while (condition &body body)
Expand All @@ -95,7 +95,7 @@ \section{

\begin{lstlisting}[
language=caml,
caption={Run-time specialization of the power function in MetaOCaml\footnotemark{}},
caption={Run-time specialization of the power function in MetaOCaml\protect\footnotemark{}},
label={lst:metaocaml-spower}
]{}
let rec spower : int -> int code -> int code =
Expand Down Expand Up @@ -140,7 +140,7 @@ \section{

\begin{lstlisting}[
language=rust,
caption={Definition of the \lstinline{vec!} macro\footnotemark{}},
caption={Definition of the \lstinline{vec!} macro\protect\footnotemark{}},
label={lst:rust-vec-macro}
]{}
#[macro_export]
Expand Down Expand Up @@ -173,7 +173,7 @@ \section{

\begin{lstlisting}[
language=terra,
caption={Definition of the \lstinline{addone} metafunction\footnotemark{}},
caption={Definition of the \lstinline{addone} metafunction\protect\footnotemark{}},
label={lst:terra-addone}
]{}
function addone(a)
Expand Down
Binary file modified main.pdf
Binary file not shown.

0 comments on commit ed15363

Please sign in to comment.