Questions tagged [fractions]
This tag is for questions regarding the display of fractions and related problems.
588 questions
2
votes
3
answers
81
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
2
answers
129
views
Readability of inline fractions [closed]
In a markdown document, I need to express a 2nd order partial derivative inline. I have (afaik) two ways:
* $p_{ij}$ stands for $\frac{\partial^2 F}{\partial x_i \partial x_j}$
* $p_{ij}$ stands ...
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 ...
3
votes
5
answers
312
views
How do I center vertically a text in a table cell?
I'm having troubles on vertically centering a fraction in a table cell. I managed to make the cell bigger (thanks to ChatGPT), but my fractions still aren't at the center. Here's the code:
\begin{...
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 \...
2
votes
1
answer
185
views
How to make the forward slash in a fraction bigger?
I'm writing an inline math equation. But I find that the forward slash in the fraction is a bit small. How can I make it bigger?
The codes is the following:
\documentclass{article}
\begin{document}
...
2
votes
3
answers
281
views
Spacing when using \frac command
I have a litte problem with using the \frac command, because the text that is written before it, it will be spaced. How can i fix this? It is on purpuse that there is two lines of text one under the ...
2
votes
1
answer
63
views
How can I make the symbols in the last line of the formula appear in normal size?
Here is the compiled result
and the code is here
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{setspace}
\begin{document}
\begin{equation}
\begin{aligned}
\det(\boldsymbol \omega(\...
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 ...
4
votes
1
answer
129
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 ...
9
votes
3
answers
498
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 ...
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\...
2
votes
1
answer
477
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 \...
0
votes
0
answers
89
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
87
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 ...
1
vote
1
answer
123
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 ...
1
vote
1
answer
152
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 ...
3
votes
1
answer
270
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 ...
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{...
0
votes
1
answer
110
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
1
answer
151
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.
...
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.
...
1
vote
2
answers
98
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 ...