Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
7
votes
5answers
439 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
32 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{...
-1
votes
0answers
56 views

\frac isn't working in this scenario

I am writing a mathematical report and throughout the entire time, the \frac command has worked until I wrote $$\nabla F = \frac{\delta}{\delta x}$$ For some reason, I get an "Undefined control ...
2
votes
2answers
68 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{...
1
vote
0answers
15 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
53 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
60 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
71 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
68 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
48 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
260 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
89 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
30 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
261 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
37 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
16 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
20 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
346 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
442 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
47 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
173 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
47 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
49 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,...
7
votes
2answers
379 views

How to give the exponent terms in the denominator part of a \frac expression more vertical space?

How can I give one line in LaTeX more vertical height so that something like $\frac{n^n}{{2}^{2n} * {n^n}^{2}}$ displays correctly? I mean, how to give the {2} term more vertical displacement, so ...
0
votes
1answer
43 views

Vertical spacing inside \equation

I am writing my master's thesis and noticed that the spacing when using fractions is very small. T \begin{equation} \label{ASF} f_{ij}^{t}=\dfrac{\sum_{d=1}^{365}(Unique\; daily-user\; searches\; ...
2
votes
2answers
80 views

How to get uneven size/space of numerator and denominator in fraction enclosed by \left\{ and \right} brackets

The following code gives a large amount of space under the denominator, enclosed by the left and right brackets, \left{ and \right}: U_{ij}^{\mathrm{tor}}(\mathbf{\hat{r}}_{ij},\mathbf{\Omega}_i,\...
2
votes
2answers
103 views

How to break apart a huge fraction resulting from a symbolic calculation?

I'm trying to use a Computer Algebra System to learn something about an algebraic expression, and this is what it gives me as a result in LaTex: \documentclass{article} \usepackage{breqn} \begin{...
2
votes
2answers
130 views

How do I fix the parentheses and division bar spacing in this quotient of partial derivatives?

With this code: $\frac{\left(\ffrac{\partial \left[\frac{P}{T}\right]}{\partialV}\right)_T }{\left(\ffrac{\partial V}{\partial T}\right)_V}$ And where: \newcommand{\ffrac}[2]{\ensuremath{\frac{\...
2
votes
1answer
58 views

Advanced Fraction with several Level

I would like to ask, how could I use LaTex to create following tools refer to the uploaded graph. Do you have some idea to mock such tool in following graph? Some descriptions: The Tool is for ...
0
votes
1answer
68 views

sizing of fractions in limits

How can i write the fractions in 1) so the numerator and denominator have the same height as the non-fraction in 2) I'm using: $1.\; \displaystyle{\lim_{x \to 1}}$ $\frac{x^2}{x-2}$ \\ $2.\; \...
0
votes
3answers
430 views

How to make fractions and exponents larger?

In an align environment in the amsmath package, sometimes an exponent like e^{...} is too small and a fraction like \frac{1}{2} is too small. I can use \tfrac to make fractions smaller, but for some ...
0
votes
0answers
26 views

Integral limits in frac command [duplicate]

I am trying to display the fraction of two integrals as follows: \begin{equation} E_{sym} = \frac{\iint\displaylimits_{A_{sym}}\sqrt{(u + u_r)^2 + (v + v_r)^2 + (w - w_r)^2}dA}{{\iint\displaylimits_{...
3
votes
3answers
254 views

Integral with fraction and square root produces wrong vertical alignment

This code produces an ankward vertical alignment which involves the integral symbol and the fraction with the square root at the denominator. Why? How can I fix this? \documentclass[a4paper]{article} ...
4
votes
1answer
68 views

Summing numbers like paper with decimal separator

Here is my previous thread. I want to make the same calculations with number with decimal separator. Summing 2, 3 numbers or more. This is my current code. I want to make 57208 - 57,208; 6207 - 6,...
2
votes
3answers
31 views

Ignoring spacing in commands

I am using setspace, \spacing. I have many functions which are making arrays and when i have \begin{spacing} {1.5} i am getting spacing in those special functions, w \documentclass{article} \...
3
votes
1answer
68 views

Dividing canceled number

I want to have this look. for example $\dfrac{cancelNewCommandTop{1}{5}} {\cancelNewCommandBottom{2}{4}} . \dfrac{\cancelNewCommandTop{1}{2}{cancelNewCommandBottom{1}{5}=$ I can't make the ...
3
votes
2answers
147 views

How to properly align Tikz pictures in Latex fraction environment

How to properly align Tikz pictures in Latex environment to get the following picture? My trial code does not compile, \documentclass[preview]{standalone} \usepackage{tikz} \usepackage{amsmath} \...
2
votes
2answers
116 views

How do I make my nicefrac fraction line larger?

I am trying to replicate this formula with LaTeX: However, I am struggling to make the fraction look the same. This is my attempt: \begin{equation} \label{eq:alphaK} \alpha(k) = \frac{1}{(N-k)} \...
0
votes
1answer
483 views

Mixed numbers with 'normal' size

I want to achieve look like this: I tried some packages but there is big size difference. some clean code: \documentclass{article} \usepackage{amsmath} \begin{document} $7$ $\dfrac{1}{6}=$ $\...
7
votes
4answers
501 views

Fractions common denominator

I am trying to receive this look of fractions I need the red numbers, which are over the fractions. *They need to be normal, not handwritten-like. Here is my code \documentclass[10pt,oneside,...
9
votes
2answers
328 views

Shorten fraction line

I understand that this request may sound stupid, but my eyes are just bleeding when I see how $\frac{x^-}{2}$ is rendered: I'm wondering if there's a moderately simple way to make it look like this? ...
2
votes
1answer
62 views

Trouble with complex fractions and parentheses [duplicate]

I'm having trouble finding a way to express this fraction with the amsmath package. The result I'm getting isn't quite nice. Are there alternative ways to write this fraction? \documentclass[10pt,...
7
votes
2answers
533 views

How can I get a fraction with a matrix in the numerator and denominator?

The above fraction is what I would like to achieve What I have so far is $ \begin{bmatrix} 0 \\ 0 \\ 1 \\ 1 \end{bmatrix} - \frac{ \begin{bmatrix} 0 & 0 & 1 & 1 \end{bmatrix} \...
0
votes
4answers
58 views

brackets in equations

How do I make the fraction in this equation sit in the middle of the big brackets? \documentclass{article} \usepackage{amsmath} \begin{document} \[ T = \ln \left (\frac{\displaystyle\frac{\...
2
votes
0answers
39 views

Separated Pie Slice Styles

I refer to the question discussed: Fractions inside the pieces Now, I could not find out two more things: (1): How to label selected pie slices? The option /tikz/nodes={text opacity=0, overlay} ...
2
votes
1answer
78 views

Fractions inside the pieces

I am wondering if it is possible to create a pie chart with fractions instead of the default numbers inside the pie pieces (for one piece or for all pieces)? Thank you for your help. Code: \...
1
vote
1answer
57 views

Why can I not put a fraction inside of a pmatrix? [closed]

So I'm trying to typeset a formula that contains a vector with two values that are fractions. This, unfortunately, is not working. Here is what I wrote: \documentclass{article} \usepackage{amsmath}...
4
votes
4answers
245 views

How to typeset an invisible paired delimiter, preferably using MathTools?

I'm trying to typeset the simplification/expansion of a fraction using the notation below, but I would like the numerator to be centered and the 5\cdot 4) to be to the left and above of the entire ...
4
votes
1answer
85 views

LuaTeX: \fontfeature{Fractions=On} turns first digits into superscripts

With LuaTeX, all of a sudden the first digits of any numbers outside $math$ (and siunitx's \num) are turned into superscripts if I set \defaultfontfeatures[\rmfamily,\sffamily]{Fractions=On} -- ...
1
vote
1answer
55 views

I'm trying to write the Dictionary - Simplex Method - as in the image. Could someone help me?

I am trying to write something like that (as shown in the image) but I don't know how... I'm using this notation: \begin{equation} \begin{array}{rrc1c1} \multicolumn{4}{1}{} \ &...