Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
55 views

Same height for matrices regardless of fractions inside [closed]

How can I force matrices (bmatrix) with the same number of rows to be the same height when only some entries include fractions (\frac)? I would prefer to increase the size of matrices displayed ...
2
votes
2answers
198 views

\frac not working as expected in \newcommand

I'm trying to create some shortcut for the Leibniz notation for partial derivatives. Here the code \newcommand{\px}[1][]{\frac{\partial{#1}}{\partial x}} When I invoke this without arg, it's work ...
1
vote
0answers
53 views

How to display UNICODE fraction characters in verbatim?

I have the following snippet in my document, but the ⅔ is not displaying: \begin{verbatim} This is not displayed: ⅔ \end{verbatim} The rendered version looks like this: Is there any document ...
0
votes
0answers
34 views

Vertical spacing of \circ used for degree within \frac [duplicate]

I noticed the different vertical spacing of \circ used for degree within \frac command. MWE: \documentclass{article} \begin{document} \[ \frac{180^\circ}{180^\circ} \] \end{document} Output: ...
3
votes
1answer
92 views

How to use tikzmark to label steps in math mode with fractions?

I have an equality between to fractions in math mode and want to be able to show how we got from one to another. I want to use arrows and label them. Ideally, it should look like this: I have the ...
4
votes
1answer
76 views

Triangle Fraction Diagrams: Segments Instead of Gaps

I would like to modify Mark Wibrow's triangular fraction diagrams so that black segments are drawn, rather than leaving a blank white space between the triangles. As I do not understand how the code ...
3
votes
2answers
154 views

Generalize TikZ Fraction Diagrams to any n-sided Polygon

I would like to extend Mark Wibrow's answer in this question to general polygons. The user would be able to type something like \begin{tikzpicture} \pic {fraction={style=8-gon, segment=radius, color=...
2
votes
1answer
33 views

Font feature +frac not applied on EBGaramond italic

I'm running into a problem using the +frac feature in italic text, though it seems to me that it should work. The feature doesn't seem to be applied properly unless I force the text into \upshape. It ...
3
votes
3answers
81 views

Increase the vertical space in a fraction

I intend to create a vertical space between the number 39 and the horizontal bar of the fraction, so as not to get crowded. How can I create the vertical space? \documentclass[a4paper,11pt]{book} \...
3
votes
2answers
47 views

Circuitikz: incorrect position of displaystyle fraction in bipoles (e.g. inductors, capacitors)

I have met a problem when drawing a circuit. I want to draw a circuit with "fraction" in label such as L/2, R_1/4, etc. However, if I use \dfrac, the denominator will overlap with some part of the ...
1
vote
1answer
56 views

Medium sized fraction macro, instead of using the nccmath package

We could get good looking medium sized fractions using the nccmath package. However, there may be some incompatibilities with other packages and I would prefer to get rid of that package, since I ...
0
votes
1answer
72 views

Typesetting commas in bracket vector notation

This is my first post so please go easy on me. I am writing a vector using the bracket notation as shown below: \[ \vec{u} = \left\langle \frac{1}{10} , \frac{1}{3} \right\rangle \] The comma ...
1
vote
1answer
52 views

fraction format problems in automated answer of linear systems

I'm trying to make an automated answer of linear systems, but I have some problems with fraction format. \documentclass{article} \usepackage{xparse,xfp,xfrac,amsmath,amsfonts} \usepackage[nice]{...
1
vote
1answer
74 views

Fraction mode using LaTeX

I'm trying to automate my class lessons to gen "standard answer". My problem is related to fraction mode. Let's take the answer: 0.33333333..., I would like it appears like 1/3
0
votes
1answer
61 views

Numerator jumping outside fraction inside tcolorbox/hbox

What's going on with my fraction???? \documentclass[a4paper,12pt]{report} \usepackage[many]{tcolorbox} \tcbset{enhanced,boxrule=0.8pt,bottomrule=1.6pt,arc=0pt,auto outer arc,lifted shadow={1mm}{-1mm}...
4
votes
2answers
113 views

How to color a fraction bar in mathematical mode?

when I use the solution given here, this is what I get: \documentclass{article} \usepackage[output-decimal-marker={,}]{siunitx} \usepackage[right]{eurosym} % from https://tex.stackexchange.com/a/...
4
votes
2answers
104 views

How to use a forward slash to display a fraction?

Using $\frac{x + 5}{y - 4}$ can make equations very long and difficult to read. I'd prefer to be able to write $(x + 5)/(y - 4)$ and have it interpreted as $\frac{x + 5}{y - 4}$. How could I write a ...
2
votes
1answer
114 views

How do I write multiple exponents within a fraction (Anki and LaTeX)? [closed]

I'm using Anki and LaTeX to format my flash cards. This problem that I'm about to outline only occurs with the cloze card type. I basically want to express a fraction with multiple exponents like ...
1
vote
1answer
93 views

\nicefrac or \xfrac in \displaystyle

How do I get \nicefrac or \xfrac work in \displaystyle, i.e., without reducing the font size?
1
vote
2answers
52 views

How to have midbar be at proper height

Take these examples: $$5|\frac{a}{b}$$ $$\frac{f_r}{a+c}|x$$ $$\left[\frac{1}{2}|\lim_{x\to{}x_0}f\left(x^2\right):\frac{\sqrt{x}}{3}|\iiint_V \mu(u,v,w) \,du\,dv\,dw\right]$$ I want those mid ...
2
votes
1answer
90 views

\frac not working in align [duplicate]

I'm trying to write "T(n/3)" within an align block, but I'm not getting the behavior I expect. When I enter this: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{align} ...
1
vote
1answer
49 views

Different parenthesis sizes in frac, how to solve it

In the below equation $\Big(R - \left(\frac{D}{Q} \right) \Big) \Big( R - \left(\frac{D}{P} \right)\Big)$. the \frac{D}{Q} and \frac{D}{P} have different sized parenthesis. However, if we use $$\...
1
vote
4answers
39 views

fractions doesn't fit well in longtable cell

I want some fractions in longtable cells. I use this code: \documentclass{article} \usepackage{longtable,amsmath} \begin{document} \begin{longtable}{|c|c|} \hline \textbf{Function} & \textbf{...
2
votes
1answer
91 views

Fractions in equations along with normal variables

I have an equation to be written in latex with fraction and hat variable as follows For this, I have used the following code with package \usepackage{mathtools}. \begin{equation} \label{eq2} \begin{...
2
votes
0answers
67 views

How can i use subscripts and units with fractional powers in siunitx?

I have the following simple document \documentclass[a4paper,10pt]{article} \usepackage{siunitx} \begin{document} \si{\metre_{1}\tothe{1/2}} \bigskip % \si{\metre_{1}\tothe{-\frac{1}{2}}} \...
3
votes
0answers
48 views

Not usual vertical alignment between \partial symbol and command \frac

Starting from this MWE: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{newtxtext} \usepackage[lite]{mtpro2} %%%%%%%%%%%%%%%%%%%%%% New \partial \DeclareFontFamily{U}{...
8
votes
1answer
149 views

Why does \tag require braces while \frac doesn't?

I'm used to using \tag without braces like \tag3 instead of \tag{3} in Markdown+MathJax, where it works as fine as does \frac12 in normal LaTeX. But when I tried to do this in a real .tex source ...
4
votes
2answers
95 views

\left … \right make different sizes in numerator and denominator

I noticed that the commands \left\| ... \right\| don't always generate brackets of the same size, even when the content is the same. Example: The code \frac{\left\|A^{-1}\right\|}{\left\|A^{-1}\right\...
8
votes
5answers
1k views

Adding a vertical line at the right end of the horizontal line in \frac

I'd like to use a mathematical notation that looks like a fraction \frac{A}{B}, with an additional vertical line that extends from the right end of the horizontal line down towards the base line of ...
1
vote
2answers
38 views

Adjust argument of a function

How to adjust the position of an argument of a function in a fraction? For example, in my text I have this: \newcommand{\dd}{{\rm d}} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
2
votes
2answers
118 views

Shrink exponential fraction argument

Since the argument becomes too small when using \frac, is there an alternative way to reduce the size of the \exp argument? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
2
votes
0answers
53 views

Splitting fraction numerators in mathjax? [closed]

In standard latex, \splitfrac can be used to split a large numerator across two lines, and you can nest splitfrac to break up a numerator into three or more lines. But mathjax doesn't seem to support ...
3
votes
3answers
88 views

How to avoid overlap in the fractions of a table

Is there any proper way to avoid overlap in the fractions of a table (see the picture) The source code is : \[ \textbf{S} = \begin{Bmatrix} 0 \\ - g \rho \eta \partial_x Z + \dfrac{1}{2} g Z^2 \...
3
votes
1answer
91 views

Work of TeX infix operators

I check a work of TeX infix operators and have some questions. For example, it will be \over. The syntax is {<subformula1> \over <subformula2>}. It is ok, but i noticed that in this case \...
1
vote
2answers
220 views

Writing an equation in one line

\[ f(x)=\frac{\beta}{t} \]\[\frac{t}{\alpha} \] I'm trying to multiply two fractions (beta/t)(t/alpha), but for some reason it puts the second fraction in a line below the first and not in the same ...
3
votes
2answers
88 views

How can I display numbers like 2 over 2, but not have them as fractions?

I want to show how to simplify a fraction. Something like simplyfy 27/18 by dividing the top and bottom by 9. But I don't want to show the 9 on the top and bottom as the fraction 9/9. Is there a way?
0
votes
2answers
70 views

fraction of matrix

If we need an equation with matrix and fraction, the most evident code is L(z)= \frac{\bordermatrix{& & & i & & \cr & 0 & \dots & 1 & \dots & ...
4
votes
2answers
269 views

Keep at all times, the minus sign above aligned with minus sign below

How can I change the frg command such that I can create and maintain at all times the minus sign above aligned with minus sign below? PS: If you can show how to include a font setting for the whole ...
1
vote
1answer
117 views

A best solution for \frac using mtpro2 fonts

Starting from this old this question How to make fractions in powers look good, I'm searching a optimal solution to aesthetically define a fraction of the type \frac{...}{...}. For my book I've used ...
1
vote
1answer
36 views

Aligning fractions in a matrix diagram

The fractions at the top row of the first diagram below are not aligned (and the fractions of the bottom aren't either), as the expressions of the top rows are in the second diagram. How can I align ...
7
votes
2answers
264 views

Fractional alignment

So I have this basic code: But the fractional alignment looks awful, any tips to fix this? \documentclass[11pt, a4paper]{report} \usepackage{bm} \usepackage{amsfonts, graphicx, verbatim, amsmath,...
4
votes
1answer
71 views

pgfplotstable adding vertical space between fractions

MWE % stand-alone file to test writing a table in pgfplotstable \documentclass{book} \usepackage{booktabs,multirow} % required \usepackage{pgfplotstable} \pgfplotsset{compat=1.16} \begin{document} %\...
0
votes
0answers
22 views

inverting fraction comes out different size [duplicate]

I think I get why the two parentheses/fractions here are not the same size: \left(\frac{3}{p}\right)\left(\frac{p}{3}\right) Screenshot from Mathjax website: Presumably something about the baseline ...
0
votes
0answers
21 views

Using fraction in case makes small letters [duplicate]

I have wrote the following in LaTeX: \begin{align} & \tan(\Gamma_{4}) = \begin{cases} \frac{x_{T3} - x_{T2}}{y_{T3} - y_{T2}} & \text{if} \qquad x_{T3}>x_{T2} \\ \\ \frac{x_{T2}-x_{T3}}{...
6
votes
3answers
514 views

Increase the space between numerator and denominator

I have created two fractions (see example below), but the denominator is a little too close to the division bar. Can I change this somehow? \documentclass{article} \usepackage{amsmath} \begin{...
3
votes
3answers
2k views

Fraction within another fraction

Im using the code as shown below to write a step by step for a question but when i have a fraction in another fraction it becomes small and hard to read. i wish to make the faction inside the same ...
1
vote
1answer
72 views

Finite continued fraction with dots in-between

I found this link on how to typeset continued fractions. The form I want is the following: with dots in between as illustrated. Thanks in advance.
2
votes
1answer
181 views

Align sign with numerator

I have an equation for which I would like the sign to be aligned with the numerator without being a part of it. As a rough example, \[ - \frac{\sqrt{3q\times r^2}}{y \times z} \] produces but I ...
0
votes
1answer
84 views

Equal space between numerator and denominator in fraction

I'm working on a school book that requires spacing between numerator and denominator to be of equal size. Is it possible to achieve this in LaTeX.
0
votes
0answers
81 views

Units, units in fractions

I'm new to latex and trying to figure out the notation. I'm trying to type out conversions, like (for example) 5 lbf * (4.4482 N / 1 lbf)= etc etc. I'm not sure how to make the units show as units,...

1 2 3 4 5 8