Questions tagged [fractions]
This tag is for questions regarding the display of fractions and related problems.
588 questions
2
votes
3
answers
95
views
Typesetting a more aesthetic continued fraction
In the following code, the quotient $\pi/4$ is expressed as a continued fraction. There is only one modification that I would like to be made. The diagonal dots at the end of the continued fraction ...
1
vote
1
answer
71
views
How to keep the expected size of a denominator marked/surfed ?, in \frac{}{}?
How to obtain the expected size in \frac after surf/mark a denominator ?
\documentclass[12pt]{article}
\usepackage[spanish,galician]{babel}
\usepackage{mathtools}
\usepackage[most]{tcolorbox}
\...
5
votes
1
answer
132
views
Decimals and Fractions on a Number line
Question:
See the attached figure. I also provided MWE. Can anyone help me to achieve the desirable figure?
MWE
\documentclass[a4paper,landscape]{article}
\usepackage[margin=1in]{geometry}
\usepackage{...
2
votes
0
answers
124
views
How to diminish the distance between the numerator and denominator of a text-style \frac expression if 'Stix Two Math' is used?
When the Stix Two Math font is in use, I think the inline/text-style fraction has its numerator and denominator too far away from each other, in comparison to other fonts.
The following screenshot ...
8
votes
3
answers
405
views
Text fractions in Cambria have too much space around solidus
Text fractions look bad in Cambria for me. I haven't had this problem in other fonts that support them, and they look fine even in Cambria if I use bold, italics, or bold italics.
Is there a way that ...
5
votes
3
answers
543
views
Fraction with a numerator having a long exponent
In an expression as e.g.
\frac{A^{iB}}{C},
the fraction looks badly aligned.
I can manage for it to look better with the rather clumsy
\frac{A}{C}^{\!\text{\tiny $iB$}}.
Do you know a simpler method ...
1
vote
1
answer
97
views
Variable height of characters in \frac expression in XITS and STIX Two [closed]
I've noticed that using XITS or STIX Two with unicode-math (and LuaLaTeX), the characters in fractions have variable height, e.g. in the following example:
As can be seen, when the root two ...
1
vote
1
answer
90
views
How can I superimpose a hat on a fraction line?
The \frac-macro in LaTeX allows us to write two expressions separated by a horizontal line. I would like to have a macro that does the same thing, except that superimposed on the dividing line is a \...
1
vote
1
answer
71
views
How to make the division bar thicker in an equation environment?
I am trying to make the line of a "fraction" or derivative to be thicker. I have an example of thin and thick cases. I have only found examples of how to make a new fraction environment.
5
votes
2
answers
546
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 ...
2
votes
1
answer
78
views
Strange behaviour in size of greek letters in combination with vmatrix
I am experimenting this thing when I use the cases environment in combination with \frac.
When, for example $\alpha$ is put near a vmatrix at numerator of a fraction and inside cases environment, then ...
1
vote
0
answers
82
views
Issue with vfactor in ConTeXt's fraction
I am experiencing an issue with the vfactor option in the \frac command in ConTeXt. Below is a minimal working example:
\startTEXpage[offset=5pt]
\m{\frac[method=line,vfactor=4000]{c}{c}c}
\...
2
votes
2
answers
292
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\...
125
votes
7
answers
127k
views
How do I typeset arbitrary fractions like the standard symbol for .5 = ½?
I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't ...
7
votes
3
answers
2k
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.
...
11
votes
3
answers
2k
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-\...
12
votes
4
answers
905
views
How to align 2 equations in fraction at `=`?
I was trying to answer this question on another stackexchange forum, to say that they could use Latex instead, only to find I can't figure how to do this in Latex myself.
Is it possible to have 2 ...
4
votes
2
answers
328
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{...
2
votes
2
answers
218
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?
0
votes
2
answers
87
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. ...
3
votes
2
answers
159
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 ...
7
votes
1
answer
1k
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 ...
51
votes
2
answers
162k
views
Elegant fractions in one line
What solution do you think is more elegant for a simple fraction that should be displayed in just one line?
My examples are
$x_F \equiv \frac{p_z}{p^{\rm MAX}_{z}} = \frac{p_z}{\sqrt{s}/2}$
$x_F \...
6
votes
3
answers
814
views
How to produce display style fractions in plain tex
How to produce display style fractions in plain tex?
I know that plain tex uses \over for fractions, for example {1}\over{2}.
But how to do displaystyle fractions? I tried to use \displaystyle and it ...
7
votes
1
answer
321
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\...