Stack Exchange Network

Stack Exchange network consists of 174 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.

2
votes
1answer
30 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
44 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
72 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
169 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
50 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
61 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
136 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
73 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
66 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
457 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
287 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
47 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
450 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
43 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
29 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
68 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
46 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
227 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
68 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
37 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
261 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
49 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
77 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
55 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
190 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
46 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
570 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
77 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
64 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
385 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
53 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
194 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
144 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
48 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
76 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
39 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}
0
votes
0answers
45 views

Inference Rules (a la semantic) with automatic linebreaks

I'm in a position where I have a large number of automatically generated inference rules (like you'd see in the Semantic package), several of which contain very long premises or conclusions. As they ...
3
votes
3answers
134 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 ...
7
votes
2answers
311 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 ...
5
votes
2answers
196 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{...
6
votes
4answers
629 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} ...
2
votes
2answers
56 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 ...
1
vote
1answer
235 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 ...
0
votes
1answer
52 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 ...
0
votes
1answer
141 views

Increase the size of derivative

\documentclass{article} \usepackage[utf8]{inputenc} \begin{document} The vertical differential velocity is $\delta v_2 = v_{2C} - v_{2A} = v_2(x + \delta x , y) - v_2(x,y) \approx \delta x \frac{\...
3
votes
2answers
145 views

Using \bgroup \egroup with \frac

I understand from this post that \bgroup is equivalent to { and \egroup is equivalent to } (Edit: turns out that my understanding was wrong, see @david-carlisle comments for details). I have a ...
0
votes
1answer
64 views

How do I typeset fractions that include variables with both superscripts and subscripts?

I need to typeset the following equation. I am using Lyx, but I can't find anything in its math menu that can handle it. I think I will need to typeset the whole equation using ERT.
7
votes
0answers
120 views

Using mt2pro with times: \PARENS{…} vs \left(…\right)

If I use the command \PARENS{.....} with mtpro2 (green color into the figure in attachment) for to obtain a perfect brace curve (round bracket) I have 1 (one) problem: the first and the second line of ...