Tagged Questions

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

learn more… | top users | synonyms

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 ...
8
votes
1answer
412 views

How to vertically center the fraction line?

I feel a bit weird because this is a really simple issue that apparently nobody has brought up so far but I find that very simple fractions produce output that looks vertically unbalanced. The ...
8
votes
2answers
304 views

A special fraction macro with raised fraction bar

I need to create a macro which allows me to get a fraction with a raised fraction bar. In a first approach, I mean to create two boxes (numerator and denominator), separated by a fixed horizontal rule ...
1
vote
3answers
233 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
466 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
359 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
187 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
202 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?
4
votes
1answer
329 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 ...
4
votes
3answers
3k views

Text-mode in fractions?

I want to have written words in a fraction but to have them in correct fraction form and not crude-looking. So, I have; $\displaystyle\frac{Actual Value of Production}{Demand}$ x $100$ But it ...
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
187 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} ...
3
votes
4answers
9k 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 ...
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 ...
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 ...
3
votes
1answer
213 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
171 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
652 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 ...
2
votes
2answers
291 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
894 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. ...
5
votes
1answer
191 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 ...
3
votes
1answer
472 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 ...
1
vote
1answer
179 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
266 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
352 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 ...
6
votes
1answer
351 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 ...
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} ...
9
votes
3answers
530 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 ...
4
votes
1answer
760 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
125 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
354 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.
9
votes
1answer
257 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, ...
45
votes
3answers
12k 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?
5
votes
1answer
951 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 ...
11
votes
5answers
1k views

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 ...
1
vote
1answer
111 views

How to avoid a continuous fraction line going through the equals sign in MathJaX? [closed]

When I use Math.SE, and I type a equation such as: I get this continuous line. Is there a way to avoid this?
6
votes
1answer
3k views

Vertical spacing between numerator and division symbol in \dfrac

How can I fix the vertical spacing between the numerator and the division symbol when entering fractions. Eg. in the following code, the spacing between a and the division symbol is greater than one ...
10
votes
1answer
4k views

displaystyle, dfrac, dcases

Am I correct in saying that the dcases environment replaces \frac with \dfrac? The replacement only occurs at the outer-most level of \frac, so if I have \documentclass{article} ...
1
vote
1answer
4k views

How can I write a latex fraction without a bar? [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? I'm trying to write a math formula like this: \sum_{ \frac{n=0}{(n+k-i) \text{~even}} }^{k-i} This ...
9
votes
2answers
450 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 ...
4
votes
1answer
1k views

\text{} in a fraction but spread over two lines

Rather than try to describe in words or by way of a MWE, I have uploaded a picture of the desired result. I know how to create all the components (e.g. \frac{}{} \text{}, ^{}) of this fraction, except ...
6
votes
1answer
211 views

About shorthand \frac

It is possible to write \frac 2 4 or \frac \pi 4 to get 2/4 and \pi/4, respectively. However, it is not possible to write \frac \sqrt{2} 2 to get \sqrt{2}/2. Are there consistent rules on 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} % ...
8
votes
3answers
588 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 ...
7
votes
4answers
5k views

Proper display of fractions

Have a look at the following code: \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \begin{document} $2-\frac{2}{1-\left(\frac{2}{2-\frac{2}{x^2}}\right)}$\quad ...
3
votes
1answer
534 views

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!