shadequote
and it works quite fine. Now I'd like to add a footnote
to it, to be able to show the aphorism's translation at the bottom. But when I add it inside the shadequote
, it's not displayed at the bottom. How to make the footnote displayed at the bottom, even when it's inside the shadequote?Note: I'm using the code below only because I wanted to accomplish the task which is as simple as making an aphorism look like an aphorism. Otherwise, this code is doing more than that. It's adding colored background and big double quotes, which I don't really need. I've tried some simpler codes but they didn't work, this one worked. Reminder: I'm a novice at
LaTeX
If you can suggest any code simpler than this, I'd like to try it.Note 2: The "run latex here" button doesn't work.
Code: Select all
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage{graphicx}
\usepackage[svgnames]{xcolor}
\usepackage{framed}
\newcommand*\openquote{\makebox(25,-22){\scalebox{5}{``}}}
\newcommand*\closequote{\makebox(25,-22){\scalebox{5}{''}}}
\colorlet{shadecolor}{Azure}
\makeatletter
\newif\if@right
\def\shadequote{\@righttrue\shadequote@i}
\def\shadequote@i{\begin{snugshade}\begin{quote}\openquote}
\def\endshadequote{%
\if@right\hfill\fi\closequote\end{quote}\end{snugshade}}
\@namedef{shadequote*}{\@rightfalse\shadequote@i}
\@namedef{endshadequote*}{\endshadequote}
\makeatother
\begin{document}
\begin{shadequote}
Ignorance is bliss
\footnote{Unwissenheit ist seligkeit}
\par\emph{John Doe}
\end{shadequote}
Ignorance is bliss \footnote{Unwissenheit ist seligkeit}
\par\emph{John Doe}
\end{document}