Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{capt-of}
- \usepackage{fancybox}
- \let\origcaption\caption
- \newcommand{\startfoo}{%
- \begin{Sbox}\begin{minipage}{\hsize}Note:\par\bgroup
- \renewcommand\figure{\renewcommand\caption[1]{\captionof{figure}{####1}}}%
- \renewcommand\endfigure{\let\caption\origcaption}}
- \newcommand{\stopfoo}{\egroup\end{minipage}\end{Sbox}\shadowbox{\TheSbox}}
- \begin{document}
- \startfoo
- \begin{figure}[h]
- some figure
- \caption{...}
- \end{figure}
- more text
- \stopfoo
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement