Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
2 votes
2 answers
267 views

How can I format these "cases" better?

How can I edit the following fraction, so the "x" is bigger? \documentclass{minimal} \usepackage{amsmath} \begin{document} \(\tfrac{x_{\left(\tfrac{n}{2}\right)} + x_{\left(\tfrac{n}{2} + 1\...
Bastian Sommerfeld's user avatar
1 vote
3 answers
153 views

I made a complex number command

So I've written a command as a homework assignment to render complex numbers correctly. Like, when I write \complfull{5}{-2} the output is 5-2i \documentclass{scrartcl} \usepackage{amsmath} \...
editilly's user avatar
2 votes
1 answer
230 views

Right side of the equation is a denominator

Below is my overleaf latex code: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{equation*} \frac{\partial \log L(\theta)} {\partial\theta_k} = \sum_{i=1}^{n}\delta_i \...
user1916067's user avatar
6 votes
3 answers
396 views

Spacing in fractions

I have a fraction whose denominator is a fraction again. I want to write the denominator in parantheses, but I have the feeling that the space is not really nice. The lower term is nice from the ...
Lereu's user avatar
  • 471
0 votes
0 answers
39 views

How to automatically break fractions generated by Mathematica

I am looking for an automated way of presenting my Mathematica results in latex. My workflow at the moment is the following I use TeXForm[] Mathematica function to generate a latex code from my ...
Paweł Korzeb's user avatar
1 vote
1 answer
51 views

How do I make a good northeast arrow to represent continued fractions?

I'm taking notes on a book which represents continued fractions like this: When I'm doing this in LaTeX, I've been using \nearrow, but that looks more like this: I don't love how everything is on ...
U1traVi01et's user avatar
1 vote
1 answer
49 views

Problem with writing a fraction expression

I am trying to obtain an expression where I want to write the numerator in multiple aligned lines, and I need a denominator covering all of the numerator terms in a single line. My equation is: But I ...
Jpmg's user avatar
  • 13
3 votes
2 answers
110 views

Large vertical spacing in denominator above \rho

The vertical spacing above rho in the denominator here is off. I'm not sure if it's caused by the descender in the numerator, or if that only exaggerates the issue. I think both 2/μ and μ/2 look ...
Anna's user avatar
  • 837
1 vote
1 answer
68 views

Line spacing between lines containing inline math

Honestly I give up on this. I searched for a solution to this for so long, but nothing seemed to work (well) for me. I just want my equations to no longer look squashed together, referring to how ...
Andy3153's user avatar
  • 361
5 votes
3 answers
712 views

Continued fraction is hard to read

So this sort of ties into this question on Puzzling.SE about making π out of the numbers [1...n] for n=[1,2,3...20]. I am currently working on a document using LAT EX that I am going to publish as an ...
CrSb0001's user avatar
  • 153
1 vote
1 answer
51 views

Fraction with double line with ams environment

I am not sure if this counts as a duplicate question, but I would like to have a fraction where the delimiter consists of two lines. I tried using the Tfrac solution at Fraction with doubled line and ...
Filu's user avatar
  • 25
2 votes
2 answers
142 views

Latex for Continued Fractions

The current formula I have is: \begin{displaymath} 1 = \frac{1}{\cfrac{2}{1-\cfrac{1}{3}}} \end{displaymath} How should I proceed further?
Manoj Bharadhwaj's user avatar
3 votes
1 answer
223 views

How to make this fraction balanced?

I want to balance this fraction \frac{2.5^{13.6}}{100} \sim 2700. Without any modifications, the numerator 2.5 goes too far left and the balance is with the numerator and exponent combined . I tried ...
Damitr's user avatar
  • 1,961
3 votes
2 answers
241 views

Extra space in fractions

What is the civilized way to modify \frac so that there is a little horizontal padding — using CSS terms — so as to avoid things like which looks like it is going to tip over? One can (use a command ...
Mariano Suárez-Álvarez's user avatar
4 votes
2 answers
281 views

Adopting a fraction Graph in TikZ

with this MWE \documentclass[letterpaper]{article} \usepackage{amsmath, tikz} \usetikzlibrary{calc} \newcounter{CountOfSections} \newcommand{\fracgraph}[3][1]{% % #1 = optional height \begin{...
montarenbici's user avatar
1 vote
2 answers
56 views

Fit equation with long fraction in two column setting

I have a an equation with a long fraction and at each derivation step the fraction gets longer and the final fraction looks something like this : \begin{equation*} \begin{split} \frac{\sum_{A} P(Y|...
Moh's user avatar
  • 35
0 votes
1 answer
73 views

How to draw an arc beetween two fractions? [duplicate]

I want to mark a fraction, which I shorten, with an arc. Haver anybody an idea how to start? I wish that it looks like the text in the picture. Is there a way to do it?
montarenbici's user avatar
0 votes
2 answers
168 views

delimeter not extending enough in relation to the denominator of a major fraction containing itself an extensible delimeter and a minor fraction

I have the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} A1 &= \left\{\frac{1}{2\omega} \right. \\ & \enspace \left. \left[\frac{z_{v}^2}{...
Euclides's user avatar
0 votes
1 answer
56 views

Intermediate size between \textstyle and \displaystyle

I am looking for a way to write equations in a paragraph that are bigger than the \textstyle option but smaller than the \displaystyle option. The screenshot below explains what I'm talking about. ...
IsaKEKW's user avatar
  • 547
0 votes
0 answers
39 views

Attempting to put arrows above equation with fractions - assume no or minimal packages installed

i am attempting to put arrows above and below fractions to help students with addition of fractions - only to be displayed on a web page Something like this This is the code for the fractions: \LARGE ...
Durutti's user avatar
  • 11
5 votes
3 answers
393 views

Adjusting the height of math floor symbol

Recently I started to play with LaTeX again just to train for when I have to use it again. I like to write mathematical formulas and I am trying to nail down floor and ceil symbols with fractions. ...
MR. PROD's user avatar
2 votes
2 answers
216 views

Half fraction symbol in the style of pifont's xmark/cmark

As noted in this answer, the pifont package provides a set of dingbats which includes a popular \xmark and \cmark pair as displayed below. \documentclass{article} \usepackage{amssymb}% http://ctan.org/...
Seraf Fej's user avatar
  • 143
1 vote
2 answers
56 views

Trying to vertically 3 align fractions - one has a hidden rule

Im attempting to align the X12 over X12 with the fractions. It looks OK until I make the text LARGE then the vertical alignment is off - I think I need to change the baseline for the X12 over X12 but ...
Durutti's user avatar
  • 11
1 vote
1 answer
47 views

Change spacing in a fraction with parentheses?

I have the exponential function that I wrote as: \begin{equation} e^{\left(\frac{R_G^2\cdot q^2}{3}\right)} \end{equation} which appears as: and I don't like the spacing in particular the ...
HyperQ's user avatar
  • 13
3 votes
1 answer
89 views

Crossed NE and SE arrows?

I'm trying to write a piece of code in LaTeX which includes a crossed set of arrows (the \nearrow and \searrow). Here is my code \documentclass{article} \begindocument $$\dfrac{5}{12}\makebox[0pt][l]{$...
Duncan Chrystal's user avatar
0 votes
0 answers
40 views

Use fractions for coordinate ticks [duplicate]

So I have some issues with the rounding of fractions, and I know that calculating fractions is notoriously difficult for a computer, so I am not too surprised this is not as easy as I want it to be. I ...
lurgold's user avatar
  • 13
0 votes
1 answer
36 views

Size added to fraction bar

I see that TeX when render a faction they add some space before and after nominator and demoninator, so the fraction bar have width more than nominator and denominator width. The following TeX show ...
Denis Sletkov's user avatar
1 vote
1 answer
69 views

Lower the period following a display style fraction

I dislike the look of the output of the following code because the period mark following the fraction looks confused (to my eyes, at least), almost like it's trying to be a degree symbol. I wish that ...
Noah J's user avatar
  • 515
8 votes
2 answers
573 views

Nicer way to cancel whole fraction

I attempted to utilize \cancel{} to strike through entire fractions. While it functions okay for fractions that occupy a small space, it appears slightly awkward for larger fractions. The angle of the ...
Terrarium's user avatar
  • 483
0 votes
1 answer
53 views

What would `\stackrel` be if you were to write it out in full as an entire English phrase?

Most LaTeX commands have a full-English counter-part. Some Examples of what I am looking for are shown in this posting. What is the full English equivalent of \stackrel? d = { 'approx' ...
IdleCustard's user avatar
  • 1,230
0 votes
0 answers
54 views

amsmath: request improved formatting to display an exponent multiplied by a fractional exponent [closed]

The mwe rendering for the distribution of a fractional exponent to a single digit exponent (basically a power to another power) is shown here: To my eyes, the multiplication in the exponent seems a ...
Siuslaw Math's user avatar
3 votes
1 answer
96 views

What phrase from natural language does the letter "**t**" in `\tfrac` stand for?

I saw someone use \tfrac in one of their documents. \text{young children are often taught } \tfrac 18 \text{ is } \tfrac 12 \text{ of } \tfrac 14 As two examples of what I am looking for, we have: ...
IdleCustard's user avatar
  • 1,230
2 votes
1 answer
152 views

Problem using \bm with \dfrac in amsmath

Please teach me why \bm doesn't play well with \dfrac in amsmath. This code \hl{$=\bm{\frac{7\sqrt[3]{2}}{2}}$} produces: But \hl{$=\bm{\dfrac{7\sqrt[3]{2}}{2}}$} crashes the compiler. I'm using \...
Siuslaw Math's user avatar
1 vote
1 answer
48 views

How to break text to a new line in the denominator of a fraction?

I am trying to align text vertically in the denominator of a fraction, analogous to a new line or line break. I have tried using the matrix environment \begin{equation*} p(a\mid b)=\frac{1}{\begin{...
tele's user avatar
  • 33
2 votes
1 answer
63 views

How to center numerator and denominator, and shorten the fraction line so as to include only the two of them?

\documentclass{article} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath, amssymb} \usepackage{soul} \usepackage[dvipsnames]{xcolor} \newcommand{\...
SkullHex2's user avatar
7 votes
1 answer
286 views

Why is grouping used in the numerator of the definition of \frac but not the denominator?

In the answers to this question: What is the difference between \over and \frac?, one finds the ams and plain latex definitions of \frac, respectively: \DeclareRobustCommand{\frac}[2]{{\begingroup#1\...
Anthony Pulido's user avatar
1 vote
1 answer
219 views

Splitting fraction numerator into several lines

I need to write a fraction for which I can break the numerator into several (not just two) lines. I tried several solutions and none have works. On Overleaf, most just stop the document from compiling....
eje211's user avatar
  • 1,201
0 votes
1 answer
89 views

Chemical Formulae in fraction

I was trying to write an equation for equilibrium constant K, but I cannot put Fe(SCN)^2 in the fraction for some reasons. This is what my code was. K=\frac{\ce{[Fe(SCN)^2+]}}{\ce{[Fe^3+][SCN^-]}}
Liley's user avatar
  • 1
4 votes
2 answers
238 views

Row misaligned when using \dfrac

I can't understand why it's misaligned, what am i doing wrong? It can be corrected if I use \frac, but it's not what I need \documentclass {article} \usepackage[utf8]{inputenc} \usepackage[spanish]{...
Guillermo LP's user avatar
2 votes
1 answer
493 views

`sfrac` with fraction numerator and denominator

I want a fraction of derivatives, so I use this code: \documentclass{article} \usepackage{amsmath} \usepackage{xfrac} \begin{document} Good: $\sfrac{4}{5}$ Not good: $ \sfrac{\dfrac{dy}{...
Kώστας Κούδας's user avatar
2 votes
1 answer
123 views

SI Units power messing up fraction display

I realized that when I put the power on the unit, the m/s^2 is displayed inline instead of in a \frac format. MWE: \documentclass[12pt]{article} \usepackage{units} \usepackage{siunitx} \usepackage{...
Superman's user avatar
  • 1,625
1 vote
1 answer
121 views

Fractions increasing spacing above and below fraction line (vinculum) and make more bold

I'd like to increase spacing between fraction line and numbers (numerator, denominator, and make the fraction more bold. I want same line thickness. One solution I've got from the website increases ...
Jon's user avatar
  • 537
0 votes
2 answers
74 views

Array/tabular env. showing fractions directly in display mode and correctly spaced?

In my Latex documents I usually include arrays and tables with fraction that always get crushed to their inline form, giving an unpleasant result. I know I could solve the issue by switching every \...
5kywAlker43's user avatar
1 vote
1 answer
179 views

Vertical space in a fraction

I found a solution here on Stack Exchange to separate the numerator and denominator further from the divide line. The solution is fine if you have fractions above and below the divide line but, if you ...
Dhirgham Murran's user avatar
4 votes
2 answers
247 views

Display all fractions generated by the \over command in red

In my copy-editing work I need to fix the layout of equations in the submitted papers. To make it easier and faster it would be helpful to have the all fractions generated by the \over command ...
Gabriele's user avatar
  • 1,935
0 votes
0 answers
125 views

Fit a determinant inside a fraction

I want to put a determinant into a fraction, so it displays 1/matrix, (the reverse) I have the determinant that is this one, but putting inside \frac does not do the trick. What should I do instead? \...
user avatar
3 votes
1 answer
240 views

Hiding the dividing line in a fraction [duplicate]

I would like to be able to hide the dividing line in the fraction that arises from applying a command such as \dfrac. In particular, what I would like to do is take an expression such as the following:...
OGBond's user avatar
  • 75
1 vote
1 answer
43 views

strange interaction between breqn and code that changes the sqrt sign. Alignments in fraction becomes bad

I thought to point out this strange problem. I was using code from answer in improving spacing between math expressions automatically? which changes the sqrt sign, so instead of It now looks like ...
Nasser's user avatar
  • 20.3k
0 votes
2 answers
193 views

How to type cancel to with a line not an arrow

I want to use cancel to but with just a line instead of an arrow
Mahmoud Tabasi's user avatar
0 votes
0 answers
11 views

Continued fractions - Minimize the horizontal rules [duplicate]

Is there an easy way to display continued fractions like in the picture above? If you have one complicated solution, it is also ok because I will automatize the building of such outputs.
projetmbc's user avatar
  • 13.4k

1
2 3 4 5
12