Questions tagged [fractions]
This tag is for questions regarding the display of fractions and related problems.
573
questions
0
votes
0
answers
28
views
Math mode: centering/aligning the entire fraction height, vertically, in a series sum with the operation signs exactly centered, as well
I'm interested in learning something more about LaTex syntax and semantics. So this isn't a question about best-practices when writing math-mode expressions. That's a different discussion I'd prefer ...
4
votes
1
answer
77
views
How can I modify the \dfrac command to automatically display thousands separators?
In small math classes, students are asked to respect the thousand separators, like this:
This forces me to use the \num{} command from the siunitx package in each argument of the \dfrac command.
How ...
5
votes
2
answers
453
views
Subscripts in fractions on an exponent look terrible
It seems that whenever we have a fraction in an exponent, the denominator looks terrible. For example,
The K in the subscript looks unduly large. This is definitely a bug or something. Is there any ...
9
votes
3
answers
436
views
Problem with superscripts on fractions
I am a bit of a novice with LaTeX so excuse if this is a silly question.
I am writing a "common methods" booklet for my department, and one of the agreed methods is to show fractional ...
0
votes
2
answers
55
views
x/y and y/x having different-sized parentheses
I wrapped \dfrac xy and \dfrac yx in left and right LaTeX tags with parentheses, and I expected that the parentheses would be the same size since x/y and y/x should technically be the same height. ...
2
votes
2
answers
271
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\...
1
vote
3
answers
167
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}
\...
2
votes
1
answer
375
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 \...
6
votes
3
answers
429
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 ...
0
votes
0
answers
45
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 ...
1
vote
1
answer
54
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 ...
1
vote
1
answer
58
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 ...
3
votes
2
answers
121
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 ...
1
vote
1
answer
77
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 ...
5
votes
3
answers
738
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 ...
1
vote
1
answer
77
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 ...
2
votes
2
answers
155
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?
3
votes
1
answer
230
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 ...
3
votes
2
answers
244
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 ...
4
votes
2
answers
292
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{...
1
vote
2
answers
69
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|...
0
votes
1
answer
76
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?
0
votes
2
answers
203
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}{...
0
votes
1
answer
76
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.
...
0
votes
0
answers
47
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 ...
7
votes
3
answers
617
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.
...
2
votes
2
answers
274
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/...
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 ...
1
vote
1
answer
52
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 ...
3
votes
1
answer
109
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]{$...
0
votes
0
answers
41
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 ...
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 ...
1
vote
1
answer
83
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 ...
8
votes
2
answers
610
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 ...
0
votes
1
answer
55
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' ...
3
votes
1
answer
99
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:
...
2
votes
1
answer
179
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 \...
1
vote
1
answer
50
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{...
2
votes
1
answer
71
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{\...
7
votes
1
answer
292
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\...
1
vote
1
answer
370
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....
0
votes
1
answer
105
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^-]}}
4
votes
2
answers
241
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]{...
2
votes
1
answer
693
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}{...
2
votes
1
answer
155
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{...
1
vote
1
answer
155
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 ...
0
votes
2
answers
84
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 \...
1
vote
1
answer
212
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 ...
4
votes
2
answers
262
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 ...
0
votes
0
answers
144
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?
\...