Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a fraction without the dividing line?

10,170 views
Skip to first unread message

Arne

unread,
Sep 4, 2003, 4:07:45 AM9/4/03
to
How can I use the \frac command so that a fraction is displayed
without the dividing line? Or are there other commands which do that?

Thanks
Arne

Matthew Low

unread,
Sep 4, 2003, 8:43:01 AM9/4/03
to
On Thu, 4 Sep 2003, Arne wrote:

> How can I use the \frac command so that a fraction is displayed
> without the dividing line? Or are there other commands which do that?

Now why would you want to do that? Combinatorics? Vectors? Well, you can
achieve a similar effect by using a 1x2 array:
\begin{array}{c}
1\\2
\end{array}

Matthew Low

Danie Els

unread,
Sep 4, 2003, 9:00:53 AM9/4/03
to
ahe...@ccii.co.za (Arne) wrote in message news:<e74abcbf.03090...@posting.google.com>...

You can use the TeX primative \atop it is strongly discoraged because
of its bizare syntax ($a \atop b$). The best is the AMS \genfrac
command

\genfrac{Ldelim}{Rdelim}{rulethick}{style}{num}{denom}

with style:
Empty mathstyle arg: no change;
0 = displaystyle,
1 = textstyle,
2 = scriptstyle,
3 = scriptscriptstyle.

Usage: $\genfac{}{}{0pt}{}{a}{b}$

Danie Els
(dnjels at sun dot ac dot za)

Burkhard Volland

unread,
Sep 4, 2003, 9:40:09 AM9/4/03
to
Arne schrieb in Nachricht ...

You can use \stackrel{text on top}{text below}, or $text\ on\ top
\atop text\ below$ (without the backslash, no blanks are set in the
output).

Best regards

Burkhard

Dan Luecking

unread,
Sep 4, 2003, 12:56:34 PM9/4/03
to
On 4 Sep 2003 01:07:45 -0700, ahe...@ccii.co.za (Arne) wrote:

>How can I use the \frac command so that a fraction is displayed
>without the dividing line? Or are there other commands which do that?

This depends on what you want that to mean. The amsmath package supplies
\binom{a}{b} which does what you ask and surrounds it with parentheses.
(there are also variants \dbinom and \tbinom to force a displaystyle
version or a text style (inline math) version.

For other constructs of a similar nature, amsmath also has a
\genfrac command.

If you are making a two-by-one matrix, there is
\begin{matrix}a\\b \end{matrix} (amsmath) or the array environment in
basic LaTeX

If you are creating a relation (e.g., by putting some symbol on top of
an equal sign) there is \stackrel (basic LaTeX).

If you are wanting to place a couple of lines under \sum, there is
\sum_{\substack{a\\b}} (amsmath).

Etc.


Dan

--
Dan Luecking Department of Mathematical Sciences
University of Arkansas Fayetteville, Arkansas 72701
luecking at uark dot edu

0 new messages