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

learn more… | top users | synonyms

4
votes
1answer
117 views

TeX, LaTeX and fractions

I just stumbled upon a Math SE answer which used {num \over den} for fractions. This seems perfectly equivalent to \frac{num}{den}. I'm guessing the former is TeX syntax and the latter is the LaTeX ...
13
votes
3answers
692 views

How to make fractions in powers look good

Quick question. When I type $e^{\frac{1}{2x}}$ it makes the fraction very small and hard to read. However when I type $e^{\displaystyle\frac{1}{2x}}$ it makes the fraction way to big. I guess in ...
0
votes
0answers
29 views

Cancelling in a Fraction [duplicate]

I am trying to create a step-by-step solution sheet for my homework and have discovered that I need to use "cancel" things in a fraction. For example, like in the following picture I would like to ...
4
votes
1answer
68 views

A notation for continued fractions

http://www.math.illinois.edu/~berndt/gausslandenmonthly.pdf On page 602 of this linked document (which is the 19th of 25 pages) there appears a notation for continued fractions which has been fairly ...
1
vote
0answers
61 views

Spacing of fractions in TeX Gyre Pagella Math

Using TeX Gyre Pagella Math with xelatex, some objects like \frac12 just seem way too large compared to the rest of the equations. Have a look: In the first line, the numerator looks like it's ...
1
vote
0answers
141 views

Slanted fractions

I'm trying to develop a command to typeset slanted fractions. I know about nicefrac and xfrac packages, have tried both, and disliked both. At the moment, in text mode I use \nicefrac with a bit of ...
4
votes
1answer
59 views

How to make equations the same size

When I write an equation using the simple \[ and \], it comes out to the correct size, with the fractions bulging above and below the lines and the parentheses surrounding them. But when I use the ...
2
votes
0answers
35 views

In the output the denominator appears in front of the fraction [duplicate]

Command \frac works in strange way: Any suggestions? \documentclass{report} \usepackage{polski} \usepackage[cp1250]{inputenc} \usepackage{graphicx} \begin{document} \setcounter{secnumdepth}{3} ...
8
votes
1answer
194 views

How to eliminate the gaps before and after \frac{}{}?

The macro \frac add a gap (approx 1.2pt) before and after the whole fraction. You could compare \[\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\] and ...
0
votes
1answer
36 views

`\center` and size of `\frac` in my code

\documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{fullpage} \usepackage{secdot} \usepackage{setspace} \setlength\parindent{0pt} \title{\vspace{-3em} Quantum Mechanics} ...
5
votes
2answers
183 views

Square root in fraction space problem

I'm having some troubles with the square root symbol within a fraction. This code \documentclass{book} \begin{document} \begin{equation} h_4 = \frac{\sqrt{1.5 \gamma_4 -3.5}-1}{18} \end{equation} ...
8
votes
3answers
248 views

How do I typeset a fraction of Young tableaux?

How do I typeset a fraction of Young tableaux so that the fraction is nicely spaced and diagonal? \documentclass{article} \usepackage{nicefrac} \usepackage{xfrac} \usepackage{youngtab} % for Young ...
0
votes
1answer
93 views

Multline & Splitfrac

\documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{multline*} -\dfrac{1}{64\pi^2} \left[ \dfrac{ \splitfrac{ ...
4
votes
4answers
191 views

Breaking the equation inside a fraction

I am trying to write this equation using the help provided in the link below How to break a long expression in the denominator of a fraction? Still the equation goes outside the margin. I using ...
1
vote
1answer
34 views

Sequential \frac that aren't nested [duplicate]

I'm new to Latex and am having trouble troubleshooting an equation that I can't get to display correctly. The equation I am trying to create in Latex is: ...but I keep getting nested fractions ...
5
votes
2answers
303 views

Convert hours (as decimals) to fractions for billable-time invoice

I'm creating an invoice in LaTeX and I've entered the hours I've worked as decimals (for example, 1, 1.5, 0.75, 2.25), but I want to display those decimals as fractions (1, 1½, ¾, 2¼). (The reason ...
4
votes
2answers
272 views

Dante Monotype typeface and fractions

I am handling a text which is natively written in a proprietary LaTeX documentclass which implements Dante Monotype fontface. In this text there is a lot of maths and I would say that it works, ...
1
vote
2answers
186 views

Problems with fractions in a square root [closed]

whenever i have a fraction inside a square root, the square root symbol drops down below the line and intercepts whatever is on the next line. I think the package savetrees may be causing the ...
3
votes
2answers
59 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
54 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
261 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
98 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
254 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
320 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
733 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
97 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
276 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
756 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
157 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
89 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
232 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
424 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
194 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
81 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
237 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
109 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
236 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
292 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
132 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
625 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
202 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
121 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
525 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 ...
2
votes
1answer
178 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
730 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
137 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
256 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
54 views

typing a straightline next to a dfrac? [duplicate]

I would like to type how do I do it? Thanks!
14
votes
3answers
309 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 ...