Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
3 votes
3 answers
48 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 ...
user avatar
1 vote
1 answer
46 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 ...
user avatar
  • 11
3 votes
3 answers
123 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: \...
user avatar
  • 145
4 votes
2 answers
421 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}...
user avatar
  • 43
4 votes
2 answers
129 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 (&)...
user avatar
  • 2,990
3 votes
2 answers
78 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-...
user avatar
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-\...
user avatar
  • 339
1 vote
6 answers
392 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 ...
user avatar
1 vote
0 answers
33 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 ...
user avatar
  • 11
2 votes
1 answer
50 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?
user avatar
0 votes
1 answer
47 views

Strikeout in fraction equation [duplicate]

I am having trouble getting the strikeout to work in this equation. I'd appreciate your help.
user avatar
  • 1
2 votes
2 answers
83 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}{\...
user avatar
  • 33
2 votes
3 answers
73 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} \...
user avatar
  • 83
3 votes
2 answers
98 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 ...
user avatar
10 votes
3 answers
364 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}}{...
user avatar
  • 101
0 votes
4 answers
67 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{...
user avatar
3 votes
2 answers
478 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}
user avatar
2 votes
2 answers
73 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 ...
user avatar
  • 12.4k
0 votes
1 answer
52 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.
user avatar
  • 181
11 votes
1 answer
572 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?
user avatar
  • 233
1 vote
1 answer
92 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}...
user avatar
3 votes
1 answer
43 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 \...
user avatar
  • 55
2 votes
3 answers
61 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? &= \...
user avatar
  • 23
6 votes
1 answer
164 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 ...
user avatar
  • 345
1 vote
1 answer
69 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 ...
user avatar
0 votes
0 answers
35 views

Vertical spacing in fraction

How can I even out the spacing in these fraction? \documentclass{article} \begin{document} \[\frac{8}{4}\] \end{document}
user avatar
  • 584
0 votes
0 answers
44 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 ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
3 votes
1 answer
165 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} ...
user avatar
  • 584
0 votes
1 answer
64 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, ...
user avatar
  • 147
0 votes
0 answers
23 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=\...
user avatar
  • 345
8 votes
2 answers
260 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. ...
user avatar
  • 748
1 vote
2 answers
84 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 ...
user avatar
  • 121
4 votes
2 answers
318 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: ...
user avatar
  • 369
-1 votes
2 answers
184 views

How I can use cancel package? [closed]

\dfrac{\cancel{4} \times \cancel{5} \times \cancel{3}}{\cancel{2} \times \cancel{10}}
user avatar
4 votes
1 answer
93 views

Extra vertical space in fraction

If I compile this: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[\left\lvert\frac{\displaystyle\int_0^1\frac{\sin t}t\,\mathrm dt}C\right\rvert\] \end{document} what ...
user avatar
3 votes
3 answers
362 views

Index in fraction in exponent in fraction looks wonky

I'm trying to write \[ \frac{1}{1+e^{\frac{\varepsilon-\mu}{k_B T}}} \] but it looks really wonky. In particular the B in the subscript is just as big as everything else. I've seen this written in a ...
user avatar
0 votes
0 answers
97 views

Using amsmath package in elsarticle preprint

I am trying to add a fraction to my manuscript. I am using the elsarticle preprint template. Below you can find the important parts of the preamble. When I put \usepackage{amsmath} directly below \...
user avatar
  • 15
0 votes
0 answers
34 views

Fraction in siunitx [duplicate]

Some time ago (last year) I had the following code working without errors \documentclass[12pt,a4paper]{article} \usepackage{siunitx} \begin{document} If we have \SI{2/3}{\mole} the reaction \ldots \...
user avatar
1 vote
1 answer
53 views

Ugly fractions including exponents in superscript

Consider typesetting the following expression in LaTeX: \[ a^{\frac{\mathrm{e}^{\lambda x}}{1-\mathrm{e}^{\lambda x}}} \] The output is as follows: This looks quite ugly. I think the issue is that ...
user avatar
  • 748
0 votes
2 answers
65 views

Vertically align text with display style fraction bar in array environment

I'm typesetting a subsection of exercises using array environment. However, the vertical centers of exercise numbers do not align with the display style fraction bars (see the following figure). Other ...
user avatar
2 votes
3 answers
76 views

How to have a fractional environment number

For kind of a gag, i want to have a theorem with a fractional number. It is perfectly fine if i have to give the number specifically. However, i do not want to define a new environment for this, since ...
user avatar
0 votes
1 answer
56 views

Proper Maths way to write nested fractions

My question concerns more the Maths field rather then the LaTeX one ... in fact it's about writing mathematical equations correctly. I was looking for a way to be able to write a fraction nested in ...
user avatar
0 votes
0 answers
46 views

Problem with displaying brackets in fractions

I need display fraction with multiple levels and brackets in some levels. If i use standart left, right constructions, i have ugly fraction. I have a lot of empty place in brackets. Below you see ...
user avatar
  • 1
3 votes
2 answers
125 views

Write text next to fractions

I would like to write some text next to fractions with many floors, but I don't know how to do it right. Here is an example of what I want to do: In the red circle, I want to write something like ...
user avatar
  • 33
3 votes
1 answer
60 views

In Lyx, is there a way to force global use of \cfrac instead of \frac?

I'm currently typing a document with a lot of equations with complex fractions. Is it possible to set the document to use \cfrac instead of \frac everywhere? I'm using Lyx's equation editor so it ...
user avatar
1 vote
1 answer
48 views

Keep summation sign in fraction

In Overleaf, I have the following formula: \[ \frac{sum_{1}^{d_i} P(W_i|T_k) }{sum_{1}^{k}sum_{1}^{d_i} P(W_i|T_k)}\] Which looks as follows: However, instead of the word sum in the numerator and ...
user avatar
  • 317
12 votes
4 answers
747 views

In math mode, how do I make the fraction bar "invisible"?

I am trying to typeset a "fraction" without the fraction bar. I have tried to do this using the genfrac, but as in the example below, the numerator and denominator in genfrac are farther ...
user avatar
  • 1,137
6 votes
2 answers
323 views

Mirrored Cube Rooted Fraction Looks Weird

I was testing something with Overleaf, and then a weird result was output. What's more weird is that I went to a Discord server where a TeX-rendering engine exists. This is its result: It's a really ...
user avatar

1
2 3 4 5
10