[texhax] \pscirclebox in Caption environment
Edsko de Vries
edsko at edsko.net
Fri Oct 26 11:03:05 CEST 2007
On Thu, Oct 25, 2007 at 04:50:12PM +0200, Dimitrios E. Kiousis wrote:
> Hello TeX-users,
>
> I have a figure, where some symbols are inside a circle. To do that, I
> used f.e. the command:
> \put(x,y){\pscirclebox[options]{I}}
>
> Now, I would like to have the character I in the caption, also inside
> a circle! I still haven't found a way to do that. It seems that the
> caption-environment doesn't allow ps-tricks commands?
>
> Any ideas? Thanks in advance!
Hi,
I'm not sure if I understand your question correctly. I took it to mean that you want to use a pspicture inside a caption -- something like this will do it:
\documentclass{article}
\usepackage{pst-all}
\newsavebox{\circIbox}
\sbox{\circIbox}{
\begin{pspicture}(0,0)(0.6,0.5)
\put(0,0){\pscirclebox{I}}
\end{pspicture}
}
\newcommand{\circI}{\usebox{\circIbox}}
\begin{document}
\section{e \circI f}
\end{document}
Edsko
More information about the texhax
mailing list