Results 1 to 2 of 2

Thread: latex oval

  1. #1
    Jan 2009

    Talking latex oval

    how do I place an "oval" around two letters ? as used to highlight the two letter endings in say, german. a big circle would interfere with the next line.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Opalg's Avatar
    Aug 2007
    Leeds, UK
    Do you mean something like this? \text{Frau Frau}\kern1pt\setbox0=\hbox{en}\dimen0=\wd0 \advance\dimen0 by -1.75em\lower1.5pt\hbox <br />
to0pt{\kern-2.5pt\Large$\subset\kern\dimen0\supset $\hss}\box0, \text{Kind Kind}\kern1pt\setbox0=\hbox{er}\dimen0=\wd0 \advance\dimen0 by -1.75em\lower1.5pt\hbox <br />
to0pt{\kern-2.5pt\Large$\subset\kern\dimen0\supset $\hss}\box0

    As far as I know, TeX is not really set up to do that sort of thing, and you have to resort to messy improvisations. I once had to construct a macro for putting a circle round a number, and even that isn't straightforward. It would produce results like \setbox0=\hbox{$3$}\dimen0=\wd0 \divide\dimen0 by 2<br />
\advance\dimen0 by -8.5pt \lower0.6pt\hbox <br />
to0pt{\kern\dimen0\Large$\bigcirc$\hss}\box0. But at least TeX provides a circle symbol. If you want an oval then you have to be creative. I constructed those above by overlapping the set inclusion symbols \subset and \supset. That can sometimes be stretched to cover three letters, but there is a danger of a gap appearing, as in \text{zwei}\kern1pt\setbox0=\hbox{mal}\dimen0=\wd0 \advance\dimen0 by -1.75em\lower1.5pt\hbox <br />
to0pt{\kern-2.5pt\Large$\subset\kern\dimen0\supset $\hss}\box0.

    The implementation of TeX in this Forum does not allow the use of macros, so I have had to write out the construction in full each time. You can click on the results to see the code.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Oval track problem
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: Nov 29th 2010, 10:34 AM
  2. Perimeter of oval
    Posted in the Geometry Forum
    Replies: 2
    Last Post: Nov 19th 2009, 10:40 AM
  3. Distance between 2 point along an oval
    Posted in the Calculus Forum
    Replies: 7
    Last Post: Mar 16th 2009, 06:03 PM
  4. Replies: 1
    Last Post: Mar 14th 2009, 10:38 PM
  5. Area of oval
    Posted in the Calculus Forum
    Replies: 4
    Last Post: Aug 18th 2008, 01:52 PM

Search Tags

/mathhelpforum @mathhelpforum