Results 1 to 2 of 2

Math Help - latex oval

  1. #1
    Newbie
    Joined
    Jan 2009
    From
    raleigh
    Posts
    1

    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
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    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: November 29th 2010, 11:34 AM
  2. Perimeter of oval
    Posted in the Geometry Forum
    Replies: 2
    Last Post: November 19th 2009, 11:40 AM
  3. Distance between 2 point along an oval
    Posted in the Calculus Forum
    Replies: 7
    Last Post: March 16th 2009, 07:03 PM
  4. Replies: 1
    Last Post: March 14th 2009, 11:38 PM
  5. Area of oval
    Posted in the Calculus Forum
    Replies: 4
    Last Post: August 18th 2008, 02:52 PM

Search Tags


/mathhelpforum @mathhelpforum