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

learn more… | top users | synonyms

3
votes
2answers
25 views

Multiple lines in equation environment

I have to put an two equations inside one equation environment. I could do it with this piece o code: \begin{equation} \begin{array}{ccl} \nabla \cdot F & = & \left(\frac{\partial}{\partial ...
1
vote
0answers
33 views

Token not allowed in a PDF string: hyperref warning affecting the bookmarks in the PDF [duplicate]

I have written a text in documentclass book and I have quite a lot of maths into subsections titles. These titles are of course correctly rendered in the pdf page but are not in the bookmarks: for ...
11
votes
3answers
187 views

\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+ ...
3
votes
1answer
66 views

Problem with fraction

I have a problem with the appearance of a fraction which has in its numerator another fraction. It is not very beautiful as the second fraction is small, even though I use \displaystyle. How can I ...
3
votes
2answers
236 views

Displaying fractions nicely

I'd like the following to look nicer: $\frac{1 - \left(\frac{r-3}{r-1} \right)^{k-(p+q)+1}}{1 - \left(\frac{r-3}{r-1} \right)}$ As of now, the horizontal line is way too long.
4
votes
2answers
122 views

New to TeX; issue with compiling

I keep getting the compiling error >file ended while scanning use of \frac. I can't see any missing {}, so I'm not sure what to do. \documentclass[]{scrreprt} \usepackage{geometry} ...
7
votes
6answers
673 views

derivative with respect to a vector

\[ \frac{\partial f} {\partial \left( \begin{array}{l} x \\ y \\ z \end{array} \right) } \] gives Can you help me to improve this by reducing the size of the denominator?
3
votes
4answers
75 views

Latex incorporate a fraction in tan

I want to write in latex that an angle equals to tan of (BM/AB). I wrote this: $\widehat{BAM}$ = $ \tan ($ \dfrac {BM} {AB} $)$ But I have an error "missing $ inserted. Can someone help me?
14
votes
2answers
245 views

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

Schrodinger's equation [duplicate]

Trying to get Schrodinger's equation to format better. The first term is -\dfrac{\hslash^2}{2m} \, \dfrac{\mathrm{d}^2 \psi}{\mathrm{d} x^2} However, because of the exponent in the denominator, ...
9
votes
1answer
118 views

How and whether to fine-tune the vertical placement of a fraction line

This is a question about the aesthetics of mathematical typesetting, as well as a technical question about LaTeX. I'm writing a lot of expressions like this: (\log\frac{p_{i\to j}}{p_{j\to i}} in ...
3
votes
2answers
80 views

Non-commutative fractions

There are symbols for non-commutative fractions? I know \holter and \polter (see here), but they are very ugly (lateral lines are too long for my taste) Edit: By non-comutative fraction I mean a ...
4
votes
2answers
148 views

How to reduce the size of fractions typed in align environment?

When digit fractions align environment, this goes with a size \displaystyle. But I want the size is like the one shown in a paragraph. I tried with \scriptstyle but I get letters too small and the ...
9
votes
2answers
397 views

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.
0
votes
2answers
91 views

How to control the font size in complex fractions? [duplicate]

I am writing an equation and for part of that, I have the following fraction: \begin{eqnarray} \frac{u_{fe}\frac{\frac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}+ \frac{u_{i+1,j,k}^n+u_{i+1,j,k}^{*}}{2}}{2}- ...
4
votes
1answer
48 views

Aligning the Left Hand Side of a big equation with fraction

After spending quite some time making sure this wasn't already answered, I decided to post this anyway, as I haven't found what I'm looking for. I have this equation with nested fractions, and I want ...
8
votes
2answers
185 views

How to change horizontal alignment of \frac?

Typing \frac{W+W^*}{2} gives a fraction in which the denominator appears to the eye to be in the wrong position. Is there a way to correct this, i.e. place the 2 in under the + (without using ...
3
votes
1answer
96 views

How to properly display a product within a fraction?

I have product inside a fraction, like this: \[ \phi_n(t)=\frac{t^n-1}{\prod_{\substack{ d \mid n,\\ d<n.}} \phi_d(t)} \] And that places the "limits" of the product on it's side, not ...
7
votes
2answers
202 views

Color fraction bar

What would be the easiest way to create a fraction whose bar can be coloured as desired? I know one can use the \genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator} command ...
3
votes
1answer
136 views

How to create A/B with LaTeX/LyX?

I want to create frac with this style: Is this possible? I try to find another way, alternative to xfrac.
1
vote
1answer
109 views

Ways to show fractions

As I use TexMaths in LibreOffice and it has a problem with \frac and \over; are there other ways to show fractions in Tex? In LibreOffice with \frac the line is not shown:
18
votes
5answers
587 views

Cross Multiplying Two Fractions with Ovals Around the Appropriate Terms

I would like to implement something akin to the following in LaTeX, perhaps in tikz. I would be very grateful for any help.
9
votes
2answers
179 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
104 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
263 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 ...
15
votes
3answers
782 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 ...
2
votes
1answer
150 views

ConTeXt: How to create nice-looking fractions

Background Looking to create vulgar fractions in the current font such those in Unicode. LaTeX has the nicefrac package that provides, as the name implies, fractions where the dividing line is a ...
6
votes
1answer
276 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
104 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
175 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
48 views

typing a straightline next to a dfrac? [duplicate]

I would like to type how do I do it? Thanks!
14
votes
3answers
266 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 ...
5
votes
2answers
778 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
282 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 ...
6
votes
2answers
219 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
168 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
287 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
264 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
153 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
161 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
228 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
229 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
1k 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
1k 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
165 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
344 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
4k 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
738 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
688 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
183 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 ...