tufte-style-article
tufte-style-article copied to clipboard
Automatically convert footnotes to sidenotes for pandoc
Thanks for sharing your work, this package seems like a worthy successor to tufte-latex.
But how do I turn footnotes into sidenotes in your template when converting a Markdown document to PDF with pandoc? This was automated with tufte-latex, but it seems in your package \sidenotes have to be specified manually.
Answered my own question -- just add this line to the preamble:
\usepackage[side,flushmargin]{footmisc}
Thanks for raising the issue! (and for answering it)
Whenever I needed to get Tufte to work with pandoc
I used this small package tuftetopandoc.sty
I wrote specifically for this use case:
\renewcommand{\textfig}[4][]{%
\begin{figure}[ht!]
\noindent\includegraphics[width=#1\textwidth]{#2}%
\caption{#3}%
\label{#4}%
\end{figure}
}
\renewcommand{\marginfig}[3]{%
\begin{figure}[ht!]
\noindent\includegraphics[width=.5\textwidth]{#1}%
\caption{#2}%
\label{#3}%
\end{figure}
}
\renewcommand{\widefig}[4][]{%
\begin{figure}[ht!]
\noindent\includegraphics[width=#1\textwidth]{#2}%
\caption{#3}%
\label{#4}%
\end{figure}
}
\renewcommand{\sidenote}[1]{
\footnote{#1}
}
\renewcommand{\sidetext}[1]{
\footnote{#1}
}
Just \usepackage{tuftetopandoc}
in the preamble and it is pandoc
-ready.
(this is really dirty and does not cover listings, but it works ; your answer is better though)