This tag is for questions regarding the display of fractions and related problems.
Questions tagged [fractions]
566 questions
116
votes
7 answers
How do I typeset arbitrary fractions like the standard symbol for .5 = ½?
I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't seem to find it.
How do I typeset an arbitrary…
Tomas Aschan
- 15,528
110
votes
4 answers
What is the difference between \over and \frac?
What is the difference between
{some-expression}\over{another-expression}
and
\frac{some-expression}{another-expression}
?
Which is preferable?
lily
- 1,227
18
votes
2 answers
Continued fractions
How do I make this in LaTeX? I keep losing track of the brackets.
user121994
- 251
16
votes
3 answers
How can you change the width of a fraction bar?
I have an equation using fractions of fractions - much like
\frac{\frac{a}{b}}{\frac{c}{d}}
However, all of the fraction bars are the same width. I'd like to make the central bar wider than the others for improved readability. Is this possible? …
jebyrnes
- 265
- 2
- 5
16
votes
1 answer
Reformat \frac depending on numerator/denominator size difference
Is it possible to detect cases where the second argument of \frac is much smaller than the first argument, and split it? Namely (I'm using a new macro name \wfrac to simplify things),
\wfrac{x}{2} % => \frac{x}{2}
\wfrac{x+y}{2} % =>…
Bruno Le Floch
- 44,937
15
votes
6 answers
How to typeset a continued fraction in the following format?
How does one typeset the following continued fraction as shown below?
Source: Notes on continued fractions and recurrence sequences by Alfred van der Poorten.
Note: Alf van der Poorten's style is similar to Euler's (in E071).
Source: The Euler…
Américo Tavares
- 1,756
14
votes
2 answers
Aesthetic issue in fractions
While I was typing a document related to special relativity, I came across this slight misalignment in \frac{V}{c}(shown with huge text size so that the effect is easily seen)
The 'problem' is that the V's bottom point is not at all close to c's…
typesanitizer
- 287
12
votes
3 answers
\frac command: height of the numerator vs height of denominator
I have the following code:
\begin{equation}
\underline{W}^1_{\,q,\rho} = \left\lceil
\frac{\sum\limits_{v \in
Q, v \neq q}\underline{C}_{\,v} + \sum\limits_{i=\rho+1}^{|\Omega^{(U)}_q|}p_i+
\sum\limits_{i \in U \backslash…
Roby
- 123
10
votes
2 answers
Interpret a/(b+c) as \frac{a}{b+c}
Is it possible to make LaTeX, or a similar software, interpret a/b as \frac{a}{b}?
Writing out (x+1)/((x)(x+2)) seems much easier than writing \frac{x+1}{(x)(x+2)}.
simplegamer
- 209
9
votes
2 answers
Fraction with doubled line
Is there a way to make the fraction line look like the equality (=) sign, i.e., to have two parallel horizontal lines with a little gap in between? Many thanks!
Alex
- 427
9
votes
2 answers
Shorten fraction line
I understand that this request may sound stupid, but my eyes are just bleeding when I see how $\frac{x^-}{2}$ is rendered:
I'm wondering if there's a moderately simple way to make it look like this?
(Please do not suggest…
mavzolej
- 556
9
votes
1 answer
When to use \tfrac?
When should I use \tfrac in formulas? I normally use it in power series, but are there other cases where it looks better with \tfrac instead of a full size fraction? Are there any general rules I can follow?
Håkon Marthinsen
- 1,132
9
votes
2 answers
How to create a backslash fraction?
How does one produce a backslash fraction? That is, something like 2\1 with the 1 above the 2.
Jim
- 223
9
votes
2 answers
New command in TeX for fraction
Now I need to redefine the fractions as follows
By writing \fr{2,3}, we get $\frac{2}{3}$. How can I achieve this? I have tried
\newcommand{\fr}[1,2]{\frac{#1}{#2}}
but got wrong.
XLDD
- 383
8
votes
5 answers
Adding a vertical line at the right end of the horizontal line in \frac
I'd like to use a mathematical notation that looks like a fraction \frac{A}{B}, with an additional vertical line that extends from the right end of the horizontal line down towards the base line of the denominator. Is there an easy way to achieve…
Michael
- 622