包装coffee
很有趣,但在有数字的文件上,咖啡放在数字后面。在印刷版上这样做似乎不合适。我怎样才能将咖啡放在数字上面?
梅威瑟:
\documentclass{memoir}
\usepackage{graphicx}
\newsubfloat{figure}
\usepackage[onEveryPage]{coffee}
\begin{document}
\begin{figure}[htb]
\centering
\subbottom[A \label{fig:examplea}]{\includegraphics[width=0.4\columnwidth,height=20cm]{example-image-a}}
\hspace{0.1\columnwidth}
\subbottom[B\label{fig:exampleb}]{\includegraphics[width=0.4\columnwidth,height=10cm]{example-image-b}}
\caption{Example A and B}
\label{fig:examples}
\end{figure}
\end{document}
答案1
您可以自己加载 eso-pic,然后放置咖啡渍:
\documentclass{memoir}
\usepackage{graphicx}
\newsubfloat{figure}
\usepackage{coffee}
\usepackage{eso-pic}
\AddToShipoutPictureFG{\cofeSplash{}}
\begin{document}
\begin{figure}[htb]
\centering
\subbottom[A \label{fig:examplea}]{\includegraphics[width=0.4\columnwidth,height=20cm]{example-image-a}}
\hspace{0.1\columnwidth}
\subbottom[B\label{fig:exampleb}]{\includegraphics[width=0.4\columnwidth,height=10cm]{example-image-b}}
\caption{Example A and B}
\label{fig:examples}
\end{figure}
\end{document}