Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
7 votes
2 answers
792 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 ...
Pro Q's user avatar
  • 287
0 votes
1 answer
50 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\; ...
Philip's user avatar
  • 411
3 votes
2 answers
486 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,\...
JohnB's user avatar
  • 33
2 votes
2 answers
147 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{...
tmaric's user avatar
  • 911
2 votes
2 answers
524 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{\...
theorist's user avatar
  • 143
2 votes
1 answer
131 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 ...
Jigao's user avatar
  • 23
0 votes
1 answer
524 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.\; \...
buffalo's user avatar
2 votes
3 answers
7k 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 ...
user14554's user avatar
  • 155
0 votes
0 answers
35 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_{...
Louis Steytler's user avatar
3 votes
3 answers
551 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} ...
Lele99_DD's user avatar
  • 568
4 votes
1 answer
141 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,...
Simeon Simeonov's user avatar
2 votes
3 answers
146 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} \...
Simeon Simeonov's user avatar
3 votes
1 answer
307 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 ...
Simeon Simeonov's user avatar
3 votes
2 answers
233 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} \...
Kevin Powell's user avatar
2 votes
2 answers
986 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)} \...
David Scott's user avatar
0 votes
1 answer
6k 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}=$ $\...
Simeon Simeonov's user avatar
7 votes
4 answers
834 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,...
Simeon Simeonov's user avatar
9 votes
2 answers
590 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? ...
mavzolej's user avatar
  • 488
2 votes
1 answer
228 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,...
E. l4d3's user avatar
  • 677
7 votes
2 answers
1k 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} \...
user130306's user avatar
1 vote
4 answers
141 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{\...
user141013's user avatar
3 votes
1 answer
278 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} ...
Kilian Hof's user avatar
3 votes
1 answer
249 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: \...
Kilian Hof's user avatar
1 vote
1 answer
128 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}...
Jodast's user avatar
  • 113
4 votes
4 answers
379 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 ...
SeSodesa's user avatar
  • 693
4 votes
1 answer
169 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} -- ...
Alexander Wittmann's user avatar
1 vote
1 answer
253 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}{} \ &...
Jo Olive's user avatar
2 votes
1 answer
1k 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....
Alex Adinolfi's user avatar
1 vote
0 answers
140 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{...
dienhosp3's user avatar
  • 111
1 vote
2 answers
275 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'...
Arrow M's user avatar
  • 45
2 votes
1 answer
2k 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 ...
James1998's user avatar
3 votes
2 answers
1k 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 \...
Raphaël Colantonio's user avatar
0 votes
1 answer
187 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 ...
nerald's user avatar
  • 1
7 votes
3 answers
1k 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}?
Subhajit Paul's user avatar
1 vote
1 answer
374 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 & ...
geo_dd's user avatar
  • 215
1 vote
1 answer
521 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 ...
ömer koçhan's user avatar
7 votes
2 answers
636 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 ...
Frames Catherine White's user avatar
1 vote
2 answers
133 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,...
Sandra 's user avatar
2 votes
4 answers
3k 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 ...
latexBeginner's user avatar
1 vote
1 answer
946 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 ...
Make42's user avatar
  • 1,732
1 vote
0 answers
247 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 ...
jmite's user avatar
  • 1,509
2 votes
2 answers
414 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 ...
Al-Motasem Aldaoudeyeh's user avatar
0 votes
1 answer
54 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}
Zhan Hui Soo's user avatar
3 votes
3 answers
398 views

Infinitely shrinking continued fraction - how to improve design?

To create a continued fraction that truly symbolizes the endless, ever-ongoing nature of an infinite continued fraction, I have taken up this following "notation," where the font size shrinks with ...
Robert Zhang's user avatar
7 votes
2 answers
852 views

Subscript to fractions

How do I write this in Latex. I've looked everywhere and to be honest I don't even know how to describe it in google search bar. I have $$(\frac{\partial u}{\partial t})_(t=0)$$ but it's the last ...
Jerry's user avatar
  • 71
5 votes
2 answers
747 views

how to make the fraction appear in the middle of the big bracket?

\documentclass{report} \usepackage{natbib} \usepackage{amsmath} \makeatletter \newcommand{\vast}{\bBigg@{9}} \makeatother \citestyle{apa} \begin{document} \pagenumbering{arabic} \chapter{\textbf{...
yap's user avatar
  • 175
6 votes
4 answers
4k views

Fractions seem too large in a column vector

The fractions in my column vector look too large: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} -4 \\ - \frac{5}{2} \\ \frac{9}{2} \end{bmatrix} \] \end{document} ...
Bruce Bartlett's user avatar
2 votes
2 answers
122 views

Fitting row space in an array

I have a simple array and some fractions are lying in under \displaystyle. The problem is that they collide with the upper and lower \hline, i.e. they lack of horizontal space. I know there might be a ...
Cryme's user avatar
  • 653
1 vote
1 answer
3k views

Why fraction (with power) in fraction doesn't work?

$$\lim_{x\to 0^{+}} \frac{e^{-\frac{1}{x}}{x^{10}}$$ here is my code. It said, Emergency stop. <*> Worksheet2_main ! ==> Fatal error occurred, no output PDF file produced! Transcript ...
Yuchen Zhang's user avatar
0 votes
1 answer
299 views

fraction in latex with long items [duplicate]

$$\frac{\partial \mathcal{L}}{\partial \eta_1}= -\sum_{i=1}^{n}\frac{\frac{\eta_1}{c}-\cos(y_i-\beta_i X_i)}{c-\eta_1\cos(y_i-\beta_i X_i)-\eta_2\sin(y_i-\beta_i X_i)} $$ I need a big denominator and ...
Rita ana's user avatar

1
3 4
5
6 7
11