Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fractions]

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

0
votes
0answers
17 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}}{...
4
votes
2answers
273 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
263 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
34 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
164 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
39 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
40 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,...
8
votes
2answers
320 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
41 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
53 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
101 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
103 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
54 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
53 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
178 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
183 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
57 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
26 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
64 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
141 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
85 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
203 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}=$ $\...
8
votes
4answers
473 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,...
10
votes
2answers
303 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
56 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
475 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
46 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
32 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
71 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
51 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
234 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
77 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
50 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}{} \ &...
2
votes
1answer
276 views

I'm getting an error with the $\frac$ function and can't seem to figure out what the issue is

I am trying to get a fraction to show up that has multiple terms in the numerator and only one term in the denominator. I would like the numerator to be "2pi(12,500mi)" and the denominator to be "2pi....
1
vote
0answers
55 views

Simplifying fractions in SageTEX

I'm new to SageTex. Here's my code: \documentclass[10pt]{article} \usepackage{sagetex} \begin{document} \begin{sageblock} var('a,b') a = 3 \end{sageblock}\\ $\sage{(a-6)/(b-1)}$ \end{...
1
vote
2answers
89 views

Fractions and counters in a \foreach list of pairs

I'm trying to create a macro that will take a list of pairs as an argument in order to draw a pie chart. I'm trying to make it so that portions of the pie are specified as a fraction less than 1. Here'...
2
votes
1answer
90 views

How to make Fractions in \array environment from being tiny and squishing up? [duplicate]

I am a new Latex user who's having problems when writing fractions in the \array environment. The text becomes compressed to where reading what I wrote becomes a challenge, and I have so far spent ...
3
votes
3answers
198 views

How to display fraction, integral in more height?

I have \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} 1st period. Year 2011 Time: 3 hours \...
0
votes
1answer
51 views

Adding text to fractions raises error

I'm new to LaTeX. I searched for a while and since I couldn't find any answers, decided to ask it here. I'm trying to create a multi-line fraction that has text for my thesis. When I compile the ...
6
votes
3answers
625 views

Is there a simpler Macro for fraction

Is there a way to define a macro like {#1}/{#2} to abbreviate the command \frac{#1}{#2}?
1
vote
1answer
88 views

Fractions work individually but not in table

I am trying to create a table with some equations inside but with no success. I use the following code: \begin{center} \begin{tabular}{ m{8em} | m{7cm}} \hline Index & ...
1
vote
1answer
77 views

I can't write \dfrac or \tfrac in the curly brackets

I want to write a fraction for a point on an axis. node at (1,0) {$\dfrac{1}{2}$}; I'm able to do it with \frac but not the other two types of fraction code like \dfrac or \tfrac. Is there a reason ...
7
votes
2answers
392 views

how to make a balanced fraction

Consider: \begin{equation*} \frac{x}{\left\Vert x \right\Vert_1} \end{equation*} produces: Yet, what I actually want is to have both xs symmetrical to the fraction: or even with a larger fraction ...
1
vote
2answers
56 views

Too much space between the last line of the splitted fraction and the fraction line

Does someone know how to remove the space between the last line and the fraction line when using \splifrc in the following code? \documentclass[12pt,a4paper]{scrartcl} \usepackage{amsmath,amssymb,...
2
votes
4answers
244 views

How to break the fraction

How to write the below fraction in two lines? \begin{align} a = \sqrt{\frac{(20,1-20,06)^2 + (20-20,06)^2+(20-20,06)^2+(20-20,06)^2+(20,2-20,06)^2}{5}} = 0,0289 \end{align} I tried using ...
0
votes
1answer
190 views

Using sfrac with normal font size

I want to use the \sfrac command from the xfrac package, but I want the font size in nominator in denominator to be normal, not smaller. I read the accompanying PDF for xfrac but do not understand how ...
1
vote
0answers
67 views

mathpartir: ottalt puts mathpartir premises each on their own line

I'm using the Ott tool to generate LaTeX for some inference rules in a Programming Language paper. To make the output look good, I'm using the OttAlt library. OttAlt is based on mathpartir, and one ...
1
vote
2answers
102 views

How can I align certain elements of the numerator and denominator in a fraction?

I have a large fraction containing very similar parts in both the numerator and denominator, but since the denominator has additional variables, the similar parts are not aligned together. Here is the ...
0
votes
1answer
40 views

There's some sort of error within this code which I am unable to identify

\begin{gather} \begin{align} F&=mg \[F&=\frac{-GMm}{r^2}\]\\ mg&= \[\frac{-GMm}{r^2}\]\\ g&=\[\frac{-GM}{r^2}\]\\ \end{align} \end{gather}