SHARE
TWEET

framed text with figure

a guest Sep 14th, 2011 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2. \usepackage{capt-of}
  3. \usepackage{fancybox}
  4.  
  5. \let\origcaption\caption
  6. \newcommand{\startfoo}{%
  7.  \begin{Sbox}\begin{minipage}{\hsize}Note:\par\bgroup
  8.      \renewcommand\figure{\renewcommand\caption[1]{\captionof{figure}{####1}}}%
  9.       \renewcommand\endfigure{\let\caption\origcaption}}
  10.  
  11. \newcommand{\stopfoo}{\egroup\end{minipage}\end{Sbox}\shadowbox{\TheSbox}}
  12.  
  13. \begin{document}
  14.  
  15. \startfoo
  16. \begin{figure}[h]
  17.    some figure
  18.    \caption{...}
  19. \end{figure}
  20. more text
  21. \stopfoo
  22.  
  23. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top