Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
7 votes
1 answer
898 views

Why is latex typesetting my fractions with so much vertical space?

I am using the normal \frac in display mode (\begin{equation}). This happens whether I'm using align, or double $, or whatever else. This looks weird, right? Especially the numerator being so far away ...
0 votes
1 answer
35 views

Increasing vertical distance above and below the fraction line

How can I increase the vertical distance above and below the fraction line (see the screenshot below)? Note, that I used \displaystyle for this term. See my code here: \documentclass{article} \...
0 votes
2 answers
40 views

Integral symbol in the denominator with standard size

How can I display the integral symbol in the denominator with the standard size. See the screenshot below.
0 votes
1 answer
26 views

How can I add limits in the fraction? [duplicate]

I can't seem to add limits in fractions. I tried \[ \frac{\lim_ {x \to a}[f(x)]} {{\lim_ {x \to a} [g(x)]}} \] But it just doesn't want to do it. Can someone help me? Thank you in advance.
0 votes
1 answer
50 views

Can't make this fraction

I want to create a formula for summing an arithmetic sequence in which the first term is 'a1' and the nth term is 'an' through the following formula. ${{S_n}}$ = \frac{n(${{a_1}}$+${{a_n}}$)}{2} ...
1 vote
1 answer
28 views

Is \inferrule* inside gather* not centered?

Feeding \documentclass{article} \pagestyle{empty} \usepackage{amsmath} \usepackage{mathpartir}% version 1.3.2 or 1.4.0 \begin{document} \begin{gather*} \inferrule*[left=M,right=M]{premises}{...
  • 1,565
2 votes
1 answer
40 views

LaTeX Squeezes Notation in `\frac{}{}` Environment [duplicate]

I have to write an expression of the form \frac{1}{E_{s}^{x}} However, the term is squeezed by TeX in the denominator (the x does not have the same height as if I did not use a fraction). Here the ...
  • 215
4 votes
1 answer
167 views

Multiply a fraction

It is necessary to multiply the fraction in accordance with the figure. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} % локализация и ...
4 votes
2 answers
143 views

Error when using \begin{split} and \end{split} to align equation

The following code gives me exactly what I need as displayed in the image. It's however displaying error messages when I run. How do I get rid of the errors displayed. Below is the code and equation. \...
2 votes
0 answers
28 views

How do you properly print a fraction number with unit in siunitx? [duplicate]

I was basically trying to replicate the answer to this question: Print \frac{4}{3} m/s using the SI unit package In doing so, I hope to achieve a proper output of minus one third (as a fraction) the ...
1 vote
1 answer
45 views

Display fractions in normal fonts with subscripts attached to the terms

I would be grateful if someone could help me write a fraction in normal text with subscripts attached. This is the latex code I wrote \begin{equation} v= \frac{ \triangle \text{Z} }{ \text{a\...
1 vote
1 answer
46 views

Fraction in a table

I have this table which has a fraction in it. I don't like how it looks small and variables don't look clear. Is there a way to fix this or increase the size of the fraction or something? Thank you!! \...
  • 41
3 votes
1 answer
63 views

LaTeX table/tabular and math/maths mode, insufficient vertical distance between square root symbol and the top edge

Got a problem with the square root sign inside a table: SEE THE COMMENTED PART \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{indentfirst} \usepackage[left=1.2in,right=1.2in,top=...
5 votes
1 answer
84 views

Extra space between fractions

I have heavy fractions in my LaTeX equations. When there are 2 or more consecutive fractions in a row (i.e. I evaluate a product), they are too close to each other. Is there any way to add an extra ...
3 votes
3 answers
53 views

handling whitespace in denominator of complex fraction

I have a paper where I need to format a series of ugly 'fraction expressions' -- ugly because the term in the numerator is (often) a complex sum or series, and in order to get it to `fit', I usually ...
1 vote
1 answer
86 views

How to create a backslash fraction using sfrac

I tried to create a backslash fraction using sfrac, but the output looks like this: \documentclass{article} \usepackage{xfrac} \begin{document} $ \sfrac{A}[\backslash]{B} $ \end{document} Any ...
  • 15
3 votes
3 answers
128 views

How to indent each line after a fraction in a single expression?

How can I format the fractions to appear underneath like so in both images. For the second image the plus should not be under the expression above it. Here is my code for the second image: \...
  • 145
4 votes
2 answers
454 views

How can I display very large fractions nicely?

I want to replicate the following fraction: However, I don't know, how I can get this nice diagonal fraction line. The nicefrac package did not display it like I would like to. So far I used \frac{dN}...
  • 43
4 votes
2 answers
146 views

Aligning fractions with an alignment tab

I don't know whether this is really a good idea or not, but I'm wondering if it's possible to implement a version of \frac where the numerator and denominator can be aligned at an alignment tab (&)...
  • 3,327
3 votes
2 answers
89 views

How to make long equation inside fraction optimized for mobile view?

I'm actually using mathjax when coding, but it's quite similar to latex. When calculating standard deviation, I am using this line of code: $$\sqrt{\frac{( (2-6.125)^2 + (4-6.125)^2 + (4-6.125)^2 + (5-...
11 votes
3 answers
1k views

Minus sign not aligning with fraction

When I use subscripts and superscript with \frac the numerator and denominator looks very tight, \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \begin{document} \[e^{-\frac{(x-\...
  • 359
1 vote
6 answers
855 views

How to manage tables with many fractions, where I like to give some sufficient spacing for the numerators?

I am working on a table with a lot of formulas (Laplace Transforms of various functions). Using a standard command (\[2mm]), I am able to generate spacings for the denominators. But the numerators ...
1 vote
0 answers
48 views

Fraction bar not showing with custom math font

I'm using unicode-math package to change my math font. Initially the fractions weren't rentering correctly but now I've got almost everything to look good with some adjustments using \fontdimen but ...
  • 11
2 votes
1 answer
76 views

How do I write "text as fractions" without moving to the next line in the O/P?

I used this command to get (a+b+c)/2 x=\[\frac{\textrm{a+b+c}}{2}\] However, the output has shifted it to the next line, as shown Is there a way I can have this in-line with the text?
0 votes
1 answer
76 views

Strikeout in fraction equation [duplicate]

I am having trouble getting the strikeout to work in this equation. I'd appreciate your help.
  • 1
2 votes
2 answers
148 views

How show rational simplification?

I need to show the path to simplify fractions, i.e., through their common divisors, so that show the first simplifications. For example: 18/6 I'd want to show some like this: \frac{\cancel{18}^9}{\...
  • 33
2 votes
3 answers
84 views

How do you make the text fit in the fraction?

How do you fit the text in a fraction? I am trying to fit a text equation inside a colored box: \documentclass[11pt,twoside, a4paper]{report} \usepackage{fontspec} \setmainfont{TeX Gyre Schola} \...
  • 93
3 votes
2 answers
100 views

Operation with continued fraction

Using this code b\cdot[0;a_1,a_2,a_3,\cdots]=\cfrac{b}{a_1+\cfrac{1}{a_2+\cfrac{1}{a_3+\cdots}}}= \cfrac{1}{\cfrac{1}{b} \left[a_1+\cfrac{1}{a_2+\cfrac{1}{a_3+\cdots}} \right ]} to represent an ...
10 votes
3 answers
389 views

uncommon form of continued-fraction expression

I have a copy of the text from the book to do. But I have been working in latex for a month and I have a problem with remaking these continued fractions. My code is looking like this: \[ \frac{n_{0}}{...
  • 101
0 votes
4 answers
70 views

How do I make the fraction look more presentable and not so small? [duplicate]

\begin{align*} \dv[2]{SA}{r} &=\frac{{\left({\pi^{2}r^{10}+9V^{2}r^{4}}\right)^{\frac{1}{2}}}(12\pi^{2}r^{5}) -\left({\frac{2\pi^{2}r^{6}-9V^{2}}{2\sqrt{\pi^{2}r^{10}+9V^{2}r^{4}}}}\right)} \end{...
3 votes
2 answers
553 views

How can I write the equation in LaTeX and I need the letter t ,r is tiny?

\begin{equation} \Phi s=\frac{E{\tiny t} r(S,\overline S̄ )+Etrv(S,\overline S̄ )}{|S|(9 )} \end{equation}
2 votes
2 answers
94 views

Vertical spacing in text style fractions with Stix 2 fonts

I am using the Stix 2 fonts for some of my documents and am pretty happy with them except for one thing: I feel they place an excessive amount of vertical spacing around fraction lines in text style ...
0 votes
1 answer
72 views

Align $\displaystyle\frac{dx(t)}{dt}$

In $\displaystyle\frac{dx(t)}{dt}$. Is it possible to align $dx(t)$ with $dt$? Well, as I write it, it looks wrong.
  • 191
11 votes
1 answer
598 views

Why do \left( \frac{a}{b} \right) and \left( \frac{b}{a} \right) have different sizes?

Interestingly enough, I found that \left( \frac{a}{b} \right) and \left( \frac{b}{a} \right) have different sizes in Display Mode. What caused them to have a different size?
  • 233
1 vote
1 answer
97 views

How to split and align equations in subequation mode with fractions

How to split this system of equations? \begin{subequations} \begin{align} u_0&=\frac{c_{1,1} (c_{1,0}^4 (I_{0,1}-2 (I_{-1,0}-I_{-1,1}+I_{0,0}))+c_{1,0}^2 (c_{0,0}^2 (2 I_{-1,1}+I_{0,1})-c_{1,1}...
3 votes
1 answer
57 views

How can I align the arrows in a fraction with the arrows of non-fraction equations?

I was wondering how to align the arrows \to and \xrightarrow in the numerator and denominator of the fraction with the arrows \xrightarrow of the other equations? Thanks. \begin{align*} \frac{ e \...
  • 55
2 votes
3 answers
70 views

Align fraction expanded parts

I want to make it easier to see how a fraction has been expanded. I used \hfill to separate the expanded parts, but the "1s" are not in the center anymore. How can I achieve this? &= \...
  • 23
6 votes
1 answer
170 views

New fraction line definition

1) How can we control the vertical alignment of this fraction line? 2) I'm also looking for a way to make the ends of the fraction line round. I know doing these will cause problems. I'm just ...
  • 377
1 vote
1 answer
116 views

\frac not putting first input over the numerator under very weird conditions

I'm basically brand new to Latex, so maybe this has a really simple answer I'm not seeing, but I'm having a problem where \frac isn't putting my first input over the numerator but instead to the side ...
0 votes
0 answers
41 views

Vertical spacing in fraction

How can I even out the spacing in these fraction? \documentclass{article} \begin{document} \[\frac{8}{4}\] \end{document}
  • 584
0 votes
0 answers
61 views

How to arraystretch in LyX

When I make arrays with fractions in LyX, see picture attached happens, and I do not know how to fix it. For more info see minimal example. Also, despite doing a minimal amount of searching and ...
0 votes
0 answers
45 views

How to stretch arrays in LyX

When I make arrays in LyX with fractions they always come out overlapping with each other, so I decided to figure out how to prevent that. After some searching I figured out that the two ways is to ...
0 votes
1 answer
65 views

How to align parentheses with splitfrac?

I am looking to create a fraction in which the numerator is split into two lines using the \splitfrac command. However, the denominator is short enough to not be split. All of this works well, except ...
3 votes
1 answer
173 views

Fraction line with rounded corners

I want to make the rounded corners of the fraction line. Is it possible ? Update: Or you can add rounded corners to all parts of TeX. \documentclass{beamer} \usepackage{amsmath} \usepackage{graphicx} ...
  • 584
0 votes
1 answer
74 views

How do I prevent the numerator of my fractions not exceed the height of the summation signs?

I used the technique presented by @Qrrbrbirlbel at making a big summation sign to make my summation symbols big enough. \documentclass[11pt,oneside,openany]{book} \usepackage[a4paper, left=1.5cm, ...
  • 492
0 votes
0 answers
25 views

Thickness of the fraction line [duplicate]

I want to make this fraction line thicker: \documentclass{beamer} \usepackage{tgheros} \renewcommand\familydefault{\sfdefault} \usepackage{mathastext} % \makeatletter \mathchardef\standardplus=\...
  • 377
8 votes
2 answers
305 views

Lower indices in numerator of fractions

I was wondering if it was possible to lower the exponent on a variable in the numerator or a fraction (like the one in the image below) to make it consistent with the height of one in the denominator. ...
  • 758
1 vote
2 answers
100 views

How to get better spacing in numerator and denominator inside delimiters

A fraction like this \frac{1}{\begin{vmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{vmatrix}} is nicely rendered as but when we enclose it in any kind of delimiters, LaTeX ...
  • 121
4 votes
2 answers
359 views

\frac with mathpazo: bar too close to denominator

In the following MWE: \documentclass{article} \usepackage{mathpazo} \begin{document} $\frac{1}{2}$ \end{document} the fraction bar is a little bit too close to the denominator, see the screenshot: ...
  • 369
-1 votes
2 answers
258 views

How I can use cancel package? [closed]

\dfrac{\cancel{4} \times \cancel{5} \times \cancel{3}}{\cancel{2} \times \cancel{10}}

1
2 3 4 5
11