\encircle{My text}
and have "My text" encircled by a sweeping ellipse. How can I do this?
I almost always use pdflatex. What packages do I need to have? If I
can't do it with one command as described, how can it be done? What I
am trying to avoid is specifying the position and size of an oval
around my text or other object I want to encircle.
Thanks for your help,
Jeremy
: \encircle{My text}
: am trying to avoid is specifying the position and size of an oval
: around my text or other object I want to encircle.
Use pstricks, (consult www.pstricks.de for a full overview)
O絛iver.
--
Dr. Oliver Corff e-mail: co...@zedat.fu-berlin.de
Sorry, I didn't pay attention to your mentioning of pdflatex,
Oliver.
> I would like to be able to make LaTeX draw an oval (or ellipse) around
> some text. For example, I would like to issue a command like:
>
> \encircle{My text}
>
> and have "My text" encircled by a sweeping ellipse. How can I do this?
\input{diagmac}
\begin{document}
\begin{center}
% circle:
\diagram{\vertex 0,0:{\mbox{My text}}
{\border{3pt}{4pt}\rorect{6pt}11\outline}}
% rounded-corner rectangle:
\diagram{\vertex 0,0:{\mbox{My text}}
{\border{3pt}{4pt}\rorect{6pt}00\outline}}
% oval:
\diagram{\vertex 0,0:{\mbox{My text}}
{\border{3pt}{4pt}\rorect{6pt}01\outline}}
\end{center}
where diagmac.tex (and the documentation diagmac.doc, a text file) are
available here:
ftp://ftp.cs.cmu.edu/user/jcr/
This will work with either LaTeX or pdfLaTeX. You can define a single
command encircle to use whichever of these styles you might prefer.
If you find the LaTeX picture constraints on line slopes and circle
diameters too severe, there is an version of diagmac adapted to pict2e
available; send me e-mail (Reply-To address).
Bob T.
>j> I would like to be able to make LaTeX draw an oval (or ellipse) around
>j> some text. For example, I would like to issue a command like:
>j> \encircle{My text}
>j> and have "My text" encircled by a sweeping ellipse. How can I do this?
>j> I almost always use pdflatex. What packages do I need to have? If I
>j> can't do it with one command as described, how can it be done? What I
>j> am trying to avoid is specifying the position and size of an oval
>j> around my text or other object I want to encircle.
With the pict2e package you can draw a circle (\circle) with any diameter.
You can calculate the diameter from the widt of the text. pict2e doesn't
have real ellipses, but only rectangle with rounded corners as ovals.
The pgf packages has both circles and ellipses.
Both packages work with pdflatex (and also with latex/dvips).
--
Piet van Oostrum <pi...@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: pi...@vanoostrum.org
Hi Jeremy,
You can indeed use pstricks to compile to pdf, using dvipdfm, but I
believe Piet's suggestion(s) are just fine.
Pieter Rautenbach
> You can indeed use pstricks to compile to pdf, using dvipdfm
How does one use pstricks with dvipdfm, which bypasses Postscript?
Bob T.
You can't. I'm sure Pieter meant dvipdf, not dvipdfm.
Dan
Thanks for pointing that out. Please correct me if I'm wrong, Dan:
dvipdf is a bash script that uses a combination of dvips and ps2pdf,
right? dvipdfm will ignore the PostScript specials introduced by some
packages.
A quick glance of the Makefile I used to compile my thesis refreshed my
memory: I actually used the latex (dvi) -> ps (dvips) -> pdf (ps2pdf)
route. To Bob: make sure that you use the correct driver for hyperref
(ps2pdf in this case).
Pieter Rautenbach