From: den@atr-la.atr.co.jp (Yasuharu Den)
Newsgroups: fj.comp.texhax
Subject: Re: Oval enclosing a word?
Date: 23 Jul 92 02:56:08 GMT
	<4433@hoffman.cc.sophia.ac.jp>
	<KOJIMA.92Jul21213920@srd.ull.rdc.toshiba.co.jp>
Distribution: fj
Organization: ATR Interpreting Telephony Research Labs., Japan
In-reply-to: kojima@srd.ull.rdc.toshiba.co.jp's message of 21 Jul 92 12:39:20 GMT


$@$3$N%0%k!<%W$K$O$:$C$H@NEj9F$7$?$3$H$N$"$kEA!w#A(J$@#T#R!?5~Bg$H?=$7$^$9!%(J

In article <KOJIMA.92Jul21213920@srd.ull.rdc.toshiba.co.jp> kojima@srd.ull.rdc.toshiba.co.jp (Naohito Kojima) writes:

> $@$=$3$G!"4{$K$3$N$h$&$J%^%/%m(J($@;d$N:n$k$N$H$O0c$C$F$b$C$HH~(J$@$7(J
> $@$$$b$N(J)$@$r:n$C$?J}$,$$$i$C$7$c$k$N$G$O$J$$$+$H;W$$!"Ej9F$7$F(J
> $@$_$?$o$1$G$9!#(J

$@>.Eg$5$s$NMWK>$K$"(J$@$&$+$I$&$+$o$+$j$^$;$s$,!$0JA0F1<o$N(J
$@%^%/%m$r=q$$$?$3$H$,$"$k$N$G!$$=$l$rEj9F$7$^$9!%(J

$@GK@~OH%F%-%9%H(J$@$dBJ1_OH%F%-%9%H$r(J \fbox/\framebox $@$HF1$8(J
$@$h$&$K$7$F=q$3$&$H$$$&$b$N$G$9!%;H$$J}$O(J

$@GK@~OH%F%-%9%H(J:

  \dbox{DashDimen}{Text}
  \dashbox{DashDimen}[Wdth][Pos]{Text}
  \dashbox{DashDimen}(XDimen,YDimen)[Pos]{Text}

$@BJ1_OH%F%-%9%H(J:

  \obox{Text}
  \ovalbox[Wdth][Pos]{Text}
  \ovalbox(XDimen,YDimen)[Pos]{Text}

DashDimen, XDimen, YDimen $@$O(J \unitlength $@C10L$G$9!%(J

$@$H$3$m$G!$JX>h<ALd$G$9$,!$;d$N;H$C$F$$$k(J latex.tex

  LATEX VERSION 2.09 <4 Aug 1988>

$@$G$O!$(J\frame $@%3%^%s%I$NDj5A$,(J

\long\def\frame#1{\leavevmode
    \hbox{\hskip-\@wholewidth
                 ^^^^^^^^^^^^
     \vbox{\vskip-\@wholewidth
                  ^^^^^^^^^^^^
            \hrule \@height\@wholewidth
          \hbox{\vrule \@width\@wholewidth #1\vrule \@width\@wholewidth}\hrule
           \@height \@wholewidth\vskip -\@halfwidth}\hskip-\@wholewidth}}
                                        ^^^^^^^^^^^        ^^^^^^^^^^^^
$@$N$h$&$K$J(J$@$C$F$$$k$N$G$9$,!$2<@~ItJ,$O(J

  (1) \@wholewidth $@$GE}0l$9$k$N$,@5$7$$!%(J
  (2) \@halfwidth $@$GE}0l$9$k$N(J$@$,@5$7$$!%(J
  (3) $@0l8+4V0c$C$F$$$k$h$&$K8+$($k$,$3$l$G@5$7$$!%(J

$@$N$$$:$l$G$7$g$&$+!%(J


  $@5~ETBg3XBg3X1!(J $@9)3X8&5f2J(J $@EE5$9)3XBhFs@l96(J $@D9Hx8&5f<<(J $@#D#3(J
          $@#A#T#R<+F0K]LuEEOC8&5f=j(J $@8@8l=hM}8&5f<<(J $@BZ:_8&(J$@5f0w(J

                                                     $@EA(J $@9/@2(J
                               den@forest.kuee.kyoto-u.ac.jp
                                        den@atr-la.atr.co.jp


-----
% miscbox.sty by Yasuharu Den (23 Jul 1992)

% \dbox{DashDimen}{Text}
% \dashbox{DashDimen}[Wdth][Pos]{Text}
% \dashbox{DashDimen}(XDimen,YDimen)[Pos]{Text}
%
\let\@iDashpicbox\dashbox

\def\dashbox#1{%
  \@ifnextchar({\@Dashpicbox{#1}}%
               {\@ifnextchar[{\@Dashbox{#1}}{\dbox{#1}}}%
}

\long\def\dbox#1#2{%
  \leavevmode
  \setbox\@tempboxa\hbox{#2}%
  \@tempdima\fboxrule
  \advance\@tempdima\fboxsep \advance\@tempdima\dp\@tempboxa
  \setbox\@tempboxa\hbox{%
    \hskip\fboxsep
    \vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
    \hskip\fboxsep
  }%
  \@tempdimb\wd\@tempboxa
  \edef\X@Dashbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \@tempdimb\ht\@tempboxa \advance\@tempdimb\dp\@tempboxa
  \edef\Y@Dashbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \hbox{\lower \@tempdima\hbox{%
    \@Dashpicbox{#1}(\X@Dashbox,\Y@Dashbox){\box\@tempboxa}%
  }}%
}

\def\@Dashbox#1[#2]{%
  \@ifnextchar[{\@iDashbox#1[#2]}{\@iDashbox#1[#2][x]}%
}

\long\def\@iDashbox#1[#2][#3]#4{%
  \leavevmode
  \savebox\@tempboxa[#2][#3]{\hbox{\kern\fboxsep #4\kern\fboxsep}}%
  \@tempdima\fboxrule
  \advance\@tempdima\fboxsep \advance\@tempdima\dp\@tempboxa
  \setbox\@tempboxa\hbox{%
    \hskip-\fboxrule
    \vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
    \hskip-\fboxrule
  }%
  \@tempdimb\wd\@tempboxa
  \edef\X@Dashbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \@tempdimb\ht\@tempboxa \advance\@tempdimb\dp\@tempboxa
  \edef\Y@Dashbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \hbox{\lower \@tempdima\hbox{%
    \@Dashpicbox{#1}(\X@Dashbox,\Y@Dashbox){\box\@tempboxa}%
  }}%
}

\def\@Dashpicbox#1(#2,#3){%
  \@ifnextchar[{\@iDashpicbox{#1}(#2,#3)}%
               {\@iDashpicbox{#1}(#2,#3)[]}%
}

% \obox{Text}
% \ovalbox[Wdth][Pos]{Text}
% \ovalbox(XDimen,YDimen)[Pos]{Text}
%
\def\ovalbox{%
  \@ifnextchar({\@Ovalpicbox}%
               {\@ifnextchar[{\@Ovalbox}{\obox}}%
}

\long\def\obox#1{%
  \leavevmode
  \setbox\@tempboxa\hbox{#1}%
  \@tempdima\fboxrule
  \advance\@tempdima\fboxsep \advance\@tempdima\dp\@tempboxa
  \setbox\@tempboxa\hbox{%
    \hskip\fboxsep
    \vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
    \hskip\fboxsep
  }%
  \@tempdimb\wd\@tempboxa
  \edef\X@Ovalbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \@tempdimb\ht\@tempboxa \advance\@tempdimb\dp\@tempboxa
  \edef\Y@Ovalbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \hbox{\lower \@tempdima\hbox{%
    \@Ovalpicbox(\X@Ovalbox,\Y@Ovalbox){\box\@tempboxa}%
  }}%
}

\def\@Ovalbox[#1]{%
  \@ifnextchar[{\@iOvalbox[#1]}{\@iOvalbox[#1][x]}%
}

\long\def\@iOvalbox[#1][#2]#3{%
  \leavevmode
  \savebox\@tempboxa[#1][#2]{\hbox{\kern\fboxsep #3\kern\fboxsep}}%
  \@tempdima\fboxrule
  \advance\@tempdima\fboxsep \advance\@tempdima\dp\@tempboxa
  \setbox\@tempboxa\hbox{%
    \hskip-\fboxrule
    \vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
    \hskip-\fboxrule
  }%
  \@tempdimb\wd\@tempboxa
  \edef\X@Ovalbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \@tempdimb\ht\@tempboxa \advance\@tempdimb\dp\@tempboxa
  \edef\Y@Ovalbox{\expandafter\@RemoveDim\the\@tempdimb}%
  \hbox{\lower \@tempdima\hbox{%
    \@Ovalpicbox(\X@Ovalbox,\Y@Ovalbox){\box\@tempboxa}%
  }}%
}

\def\@Ovalpicbox(#1,#2){%
  \@ifnextchar[{\@iOvalpicbox(#1,#2)}%
               {\@iOvalpicbox(#1,#2)[]}%
}

\def\@iOvalpicbox(#1,#2)[#3]#4{%
  \leavevmode
  \hbox{%
    \hskip -\@wholewidth
    \vbox{%
      \vskip -\@wholewidth
      \hbox{%
        \@imakepicbox(#1,#2)[#3]{#4}%
        \@tempdima#1\unitlength \@tempdimb#2\unitlength
        \hskip -\@tempdima
        \raise .5\@tempdimb\hbox{%
          \hskip .5\@tempdima
          \@oval(#1,#2)[]%
          \hskip .5\@tempdima}%
      }%
      \vskip -\@wholewidth
    }%
    \hskip -\@wholewidth
  }%
}

% \@RemoveDim by Hideki Isozaki
{\catcode`\p = 12 \catcode`\t = 12
\gdef\@RemoveDim#1pt{#1}}