This tag is for questions regarding the display of fractions and related problems.

learn more… | top users | synonyms

9
votes
2answers
207 views

Underbrace in denominator with () [] {} (howto)

I would like to put an underbrace correctly under the denominator of a expression but what I get is wrong because of the (). Alternatively I create another line in the text ...
9
votes
1answer
128 views

If fractions are Inner atoms, why don't they have thin spaces on either side?

The TeXbook says that fractions are Inner atoms. But if so, they don't seem to have thin spaces on either side when Inner atoms have them. For instance, in \documentclass{article} ...
6
votes
1answer
639 views

Nested exponents look too small

When I type $e^{\frac{\ln(r)}{2^{j}}}$, the output is: In the exponent, the denominator looks like 2j (especially in normal font), but it is supposed to look like 2^j. How can I make the term 2^j ...
17
votes
3answers
2k views

Guidelines for typesetting fractions

I realize that this question is to some extent subjective. However, I suspect that there are some common standards regarding how fractions ought to be typeset in mathematics. The guide Mathematical ...
6
votes
1answer
941 views

equal size numerator and denominator

I am trying to size the numerator and denominator of the below equation so that they are equal in size. I have not had much luck suggestions are appreciated. \begin{equation} \sum_{i=1}^{n} ...
5
votes
3answers
153 views

Improper display of parentheses in fraction of fraction

The following code: $\dfrac{\left( \dfrac{\left( \dfrac{1}{2}\right) }{2}\right) }{2}$ gives a nasty output: It seems that the $\left( \right)$ command doesn't do the job. Any idea how to solve ...
6
votes
1answer
269 views

Create multiline fraction

How to create an equation like in the image below. I tried to use \cfraq and \hline but with no success. I am asking for the layout only, not the formulae.
2
votes
1answer
56 views
14
votes
3answers
325 views

Frac or inference rule with dotted line

I would like to have a \frac or mathpartir-style inference rule with a dotted rather than solid line, so that I can put fractions into inference rules without overloading horizontal bar. The ...
6
votes
2answers
3k views

Elegant fractions in one line

What solution do you think is more elegant for a simple fraction that should be displayed in just one line? My examples are $x_F \equiv \frac{p_z}{p^{\rm MAX}_{z}} = \frac{p_z}{\sqrt{s}/2}$ $x_F ...
4
votes
1answer
346 views

Underlining fractions

I need to be able to underline equations involving fractions, which are aligned using the alignedat environment from amsmath. To be able to underline at all, I'm using the solution from this question ...
1
vote
3answers
245 views

Fraction in brackets

I want to have a fraction in brackets. Something like: $${\log C \brack \log 2}$$, but with the line in the middle. I know this possibility: $$\left[\frac{\log C}{\log 2}\right]$$. Nonetheless, does ...
2
votes
1answer
531 views

Compound fractions (i.e., “mixed numbers”) look bad in displaystyle

I find that in display mode, fractions that represent simple rational numbers look way too big. For instance, consider this case: $$ a = \frac12(b+c) $$ The fraction gets inordinately large ...
4
votes
1answer
394 views

Improve inline fraction style with Quattrocento font

I'm using the Quattrocento font in a beamer presentation (which my audience likes a lot) but I have a small problem with inline fractions like 33 1/3, which do not look very good. Specifically the "1" ...
3
votes
0answers
194 views

Two fractions with the same size [closed]

Can anyone tell me how I can make $A=\frac{1}{a} \frac{1}{1+\frac{a}{b}}$ look the same? So I want $a$ to be on the same height as the other denominator. MWE \documentclass[11pt]{article} ...
1
vote
1answer
214 views

Using \sqrt in the denominator of the \frac command [closed]

Below is the following code that I am trying to use in math mode. When I do this it distorts the sqrt line and blends into the fraction line. z=$\frac{ Estimate_{t} - Estimate_{t-1}} \sqrt{Var_{t} + ...
3
votes
2answers
2k views

Bigger fractions without using \dfrac

Is there any way to make fractions bigger? I know one can use \dfrac but is there any code I can use in the document preamble to make all fractions bigger?
9
votes
2answers
458 views

How do I typeset continued fractions in Pringsheim's concise notation?

I would like to obtain the following formatting so as to write continued fractions in my equations without wasting vertical space. What I need is one command named \cFrac which writes one fraction ...
2
votes
2answers
1k views

Line spacing with inline formula including fraction

I have a fraction in an inline formula as can be seen in the picture. \dfrac from the amsmath package was used. (This is article class with 14pts and linespread 0.9.) Though the space between the ...
2
votes
1answer
2k views

Fractions with `\dfrac` cause compile error

I'm new to LyX. I'm writing my next homework with it to give it a try. My example code is below: % Preview source code %% LyX 2.0.5.1 created this file. For more info, see http://www.lyx.org/. %% ...
4
votes
1answer
194 views

Bracing fraction numerator or denominator to the left or right

I have a fraction with further fractions in both the numerator and denominator. I wish to label the fractions in the numerator and denominator with braces to the right. I would like these braces to ...
9
votes
3answers
351 views

Nicer alignment of x^*/2

I'm trying to typeset $\frac{x^*}{2}$, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following: \documentclass{article} \begin{document} \begin{equation} ...
5
votes
4answers
10k views

Subscripts in partial derivatives

I would like to print the partial derivative operator $\frac{\partial}{\partial k_x}$, but the spacing and the length of the bar bug me a little. I would really like the fraction to be typeset as ...
8
votes
3answers
598 views

array within frac, using nath package

I use the nath package to get automatically-sized delimiters, but it breaks having a \begin{array}{…}…\end{array} within a \frac{}{} (simply removing the \usepackage{nath} below fixes the example, but ...
2
votes
2answers
1k views

How to put several lines in the numerator of a fraction?

When I use \\ it breaks the frac layout. Now I come up with the following solution: $$\frac{{O\vdash e_1:T_1 \atop O[T_1/x]\vdash e_2:T_2}}{O\vdash (let\ ((x e_1))\ e_2):T_2}$$ But it gives two ...
3
votes
1answer
223 views

Use catcode for alternative way of writing fractions

Writing fractions using different syntax would sometimes be useful, instead of using \frac{ab}{cd}, I would prefer to write something like \frac{ab⌂cd} where the Unicode ⌂ is the }{. n.b., I don't ...
6
votes
1answer
173 views

Can't make a fraction

I had been tried for a long time, but it had worked, I have this code, hope you can help me: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{pmatrix} m\\ n \end{pmatrix} = ...
5
votes
1answer
700 views

Aligned numerator and denominator in \frac or any other variant

Is there a way to align the numerator and the denominator of a fraction? Consider two fractions (from a SIAM paper) The denominator (k!) is nicely centred in the first fraction. However in the ...
3
votes
3answers
1k views

Changing fraction style in LaTeX as generated by Matlab

A= [0.7577 0.7060 0.8235 0.4387 0.4898 0.7431 0.0318 0.6948 0.3816 0.4456 0.3922 0.2769 0.3171 0.7655 0.6463 0.6555 0.0462 0.9502 0.7952 ...
45
votes
3answers
13k views

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?
37
votes
2answers
1k views

Improved kerning in fractions?

Question How can I apply selective kerning within the numerator and denominator of an inline fraction? Specifically, I'd like to: Tighten kerning after the numerator if it ends in 7 Loosen kerning ...
2
votes
2answers
307 views

Improve a fraction's appearance

I am using \documentclass[a4paper,11pt]{article} \usepackage{kerkis} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} \begin{document} \begin{equation} ...
9
votes
4answers
974 views

Align denominator of fraction to left

The highlighted part has the equation centred, which looks rather imbalance with the top equation, is it possible to align the highlighted part to the left? Below is the code I am using. ...
30
votes
5answers
6k views

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 ...
3
votes
1answer
522 views

Fraction whose items are words

I have troubles writing a fraction whose items are words not numbers. In a nutshell I should write: minaccia/vulnerabilità --> this is the numerator ---------------------- contromisure ...
5
votes
1answer
206 views

Expanding line height when equations have displaystyle fractions

In my document, I have got a lot of equations in inline mode, like: \documentclass{article} \begin{document} Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod ...
1
vote
1answer
183 views

Unsqueeze the fraction

For the LaTeX code below, \begin{equation} Fitness(\CS)= \begin{cases} 0.5 + 0.5 \cdot G(\CS) & if\ V(\CS)=0 \\ 0.5\cdot G(\CS)-\frac{V(\CS)}{V_{Tot}(\CS)} & ...
3
votes
2answers
285 views

Multiple horizontal line separators? Multiple \over-s?

How to code the syntax like fraction, but with more than 2 components? Fractions consist of numerator and denominator while I need more. In other words: how to code column-matrix with horizontal lines ...
3
votes
1answer
363 views

Displaying numbers above each other (like a fraction), but without horizontal line and with less vertical space between them

I want to have a 2x2 matrix of arrows (\uparrow and \downarrow) to illustrate electronic spins. I've managed to get a fraction without the horizontal line using \genfrac, but I can't figure out how to ...
14
votes
1answer
1k views

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} % ...
19
votes
6answers
2k views

How to increase row height while using booktabs?

I'm making a table using booktabs. One of the columns contains a series of fractions. \documentclass[12pt, letterpaper]{article} \usepackage{nag} \usepackage[margin=1.0in]{geometry} ...
6
votes
1answer
359 views

how to place text on fraction for accounting formulas?

Sorry for the bad grammar. English is not my native language. I want to have text on a fraction type line to show up in an accounting formula, here's an example of what I want: So, I've tried ...
9
votes
3answers
560 views

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 ...
6
votes
3answers
451 views

Define my own xfrac command?

Is it possible to create my own xfrac command - without using that package (it is giving me too much trouble)? I know you can do superscript, subscript to make a fraction look. Can I do something ...
4
votes
1answer
829 views

issues with fractions

I have: \usepackage{nicefrac } \begin{align*} &= \frac{2}{\sqrt{2y+1}\sqrt{2 \pi}} \exp \left( -y-\nicefrac{1}{2} \right) &&\forall y \in [-\frac{1}{2} , \infty) \\ &= ...
4
votes
3answers
128 views

Keep numerator inline with rest of equation

In the following example, I would like to to keep the Q''(p) on the same line as the rest of the equation, and put the vinculum and 2 underneath. \documentclass[12pt,reqno]{amsart} ...
1
vote
1answer
378 views

Bold fraction line

I would like to use a "bold style" for the fraction line in a math formula. I've seen it in some PDFs, but I do not know the proper command.
5
votes
1answer
1k views

How to make slash (/) paste with correct Unicode codepoint depending on context?

Unicode offers different characters for the slash: U+002F (/) for the ordinary slash U+2215 (∕) for the mathematical division operator U+2044 (⁄) to designate vulgar fractions How can I have these ...
9
votes
1answer
260 views

How to improve the looks of a fraction?

We may notice that the numerator and denominator in the following fraction are not aligned. And, to me it does not look good. How to align the numerator and denominator? \documentclass{article} ...
2
votes
0answers
131 views

How to typeset a continued fraction in the following style? [duplicate]

Possible Duplicate: How do I typeset continued fractions in Pringsheim's concise notation? How to type a continued fraction in displaystyle as shown below? Source: Fischler, Stéfane, ...