Questions tagged [fractions]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
36 views

How to fix an ugly fraction with exponent?

Here's a simple fraction that I find extremely ugly. What could I do to get a better looking result (without using a negative exponent) ? \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]...
0
votes
1answer
34 views

Align in a fraction, arbitrary part of denominator with part of the numerator

I am trying to align the bottom part of a "fraction" with the top part, but since I am new to this, I am not sure the right way. The goal is for the q in the "denominator" to line ...
4
votes
1answer
48 views

Polynomial long division with fractions

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} &&&&&&&&&&&&&&x&&+&&\frac{x^3}{3}&&+&&...
2
votes
2answers
30 views

Big floor brackets size around fraction with small denominator

i'm having issues with bracket formatting around fractions. For example, this code : \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter\floor{\lfloor}{\rfloor} \begin{document} ...
1
vote
1answer
46 views

Typeset a fraction without the fraction bar

I would like to typeset a fraction without the fraction bar. In the following MWE, I try to do this using substack command from the mathtools package. But, as you can see in the output, the spacing is ...
4
votes
4answers
167 views

Arrays with non-inline style formulas in rows in KaTeX

I'm having a hard time trying to get a properly aligned inequations involving fractions in KaTeX. The best output I have got is with the array environment: \begin{array}{crccclc} z\in\Bbb R^+, & 0 ...
1
vote
1answer
65 views

How does \over work?

I don't mean this necessarily in the sense of diving into code, but \over seems to function differently to other commands, which scoop up only following arguments. Instead, 11\over2 gobbles up the ...
1
vote
1answer
23 views

Issue with fraction multiplication, everything being considered as being the denominator

I am working in the Overleaf IDE, and simply trying to write down some fraction multiplications. As a simple example, let's consider the expression to be (a/b)(c/d). Within my \begin{displaymath} ...
3
votes
1answer
26 views

Selective coloration of polynomial parts of rational expressions

I'm teaching high school students how to simplify rational expressions by cancelling factors. The cancelled expressions should be colored red (incl. L /R parenthesis), but not the fraction bar. The ...
3
votes
1answer
41 views

Added whitespace when putting brackets around fractions with splitfrac

I'm using splitfrac from mathtools to break up a particularly long line in the numerator of a fraction. When I put brackets around the fraction, however, they leave a line of whitespace in the ...
2
votes
0answers
34 views

More aesthetic norms, absolute values, parentheses, etc

This is nothing too important, and I've decided to make all three questions into one because they are more or less related. Sometimes when I type math equations, I find them not as beautiful as I ...
1
vote
1answer
34 views

Shifted fractions representing refutational computation trees in LaTeX

I would like to draw a deduction tree in the fractional form shown in the picture, unfortunately I had no luck with frac and over and I was not able to find better images in the literature.  &...
0
votes
2answers
55 views

How to prevent bleeding with fractions in solution environment

I'm generating math worksheets dynamically with pyLaTeX, and stumbled upon a weird behaviour that I don't quite find how to correct. I have a code that puts all the answers for an exercise into a ...
4
votes
3answers
425 views

fraction inside fraction

While using \frac gives me smaller characters, \cfrac almost get what I want, except there is quite large space above the denumerator. I follow this but right now without the $\displaystyle$ because I ...
1
vote
1answer
61 views

Why is a simple fraction not displaying properly? [closed]

This should be pretty basic, but I can't work out what I'm doing wrong here. I'm trying to just write a = 1/6 with the fraction displayed the normal way, 1 over 6. I've tried both a = \frac{1}{6} and ...
5
votes
2answers
492 views

Reason of variation in sizes of fractions?

\sqrt{1 + \left( \tfrac{\partial z}{\partial x} \right)^2 + \left(\tfrac{\partial z}{\partial y} \right)^2} The code above resulted in the second fraction being bigger than the first. Why?
3
votes
2answers
121 views

\cramped in fraction denominator doesn’t line up with regular fraction

In a display, the denominator of a fraction is set in “cramped” \textstyle, which can be emulated with \cramped[\textstyle]{...} from the mathtools package. But sometimes the emulation is perfect, ...
1
vote
1answer
68 views

Why fraction spacing changes and how to get uniform spacing?

I noticed the space between \frac{}{} changes depending on where it shows up in the expression. And also depending on font used. Why does this happen? It does not look very good. Here is an example, ...
3
votes
4answers
235 views

Line spacing in table without using booktabs

I'm having a problem with a table I'm trying to do. This is the code I currently have : \documentclass[12pt,letterpaper,french]{extarticle} \usepackage[margin=.75in]{geometry} \renewcommand{\l}{\left}...
0
votes
1answer
44 views

Problem with numerator on a fraction

When i write the following line of code: $\frac{$\alpha_{n}$}{2}$ = $\frac{\pi}{n}$ , It displays me this: What can I do do have the numerator above the line ? when I remove the "n" index ...
2
votes
3answers
60 views

How to put the numerator in same size as denominator while using brackets [closed]

I would like to know how to put the numerator of a fraction of the same size or at least proportional to the denominator when I use square brackets and fractions, as in the following example: \begin{...
1
vote
1answer
28 views

Size of fractions and spaces in arrays

I have the following code: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} $$\hat{x}_n(t)=\left\{ \begin{array}{cc} 1 & -1\leq t \leq -\frac{1}{n+1} \\ -(n+1) t &...
1
vote
0answers
58 views

! File ended while scanning use of \frac

I did not change anything since last time, but I am getting the error message: ! File ended while scanning use of \frac Btw I am a total noob when it comes to LATEX! I've already checked the questions ...
3
votes
1answer
35 views

Increase and decrease horizontal overline and the vertical distance

If I have this MWE, \documentclass[12pt]{article} \usepackage{amsmath,amssymb} \begin{document} \[\overline{\left(\frac{a}{b}\right)}\] \end{document} it is possible increase (without to use a rule-...
0
votes
0answers
53 views

How to display overline above a fraction?

I'd like to add a bar / overline above a fractional statement, such as the one in this image: I am using tasks package and this inside a \subparagraph inside a \paragraph.I have tried in some manners:...
5
votes
2answers
121 views

How to add space between variables and fraction lines

In this \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{...
5
votes
5answers
1k views

How to reduce the number “0” size to fit fraction “1/2”?

\documentclass{article} \usepackage{amsmath} \usepackage{array} \usepackage{mathtools} \begin{document} \renewcommand{\arraystretch}{1.2} \newcommand{\minus}{\scalebox{0.4}[1.0]{$-$}} \[ \begin{...
1
vote
2answers
34 views

equation environment and large fractions

Hello i am currently using the equation environment and trying to "prettily" write down the probability distribution function of the chi-distribution (https://en.wikipedia.org/wiki/...
9
votes
2answers
541 views

Combinatorial notation (\choose) not working with \frac

I want to display the following $p_N= \frac{{200 \choose 11}{ 200 \choose {N-189}}}{200 \choose N}$ However, texmaker gives me this error: Does anybody know why is that? I have tried replacing the ...
4
votes
2answers
206 views

How to type a formula as below? [duplicate]

The plus operator is not center aligned. Please help.
4
votes
1answer
260 views

Minus sign and fraction line perfectly aligned

The minus sign and the fraction line aren't perfectly aligned, probably due to the presence of brackets. So I've found a way to make them be, using \parbox \documentclass[12pt]{article} \usepackage{...
1
vote
2answers
57 views

Make all fraction bars have the same lenght in a set of equations

I am a begginer at LaTex Bassically i want every fraction bar to have the same lenght as the natural lenght of the biggest one I dont know if it would be better to use other command instead of ...
2
votes
2answers
367 views

How to split this into two lines

This is my code: \begin{equation} \text{Diluted EPS}=\frac{\text{Net Income}}{\text{Weighted average number of shares outstanding + New common shares that would have been issued at conversion}} \end{...
10
votes
2answers
851 views

Interpret a/(b+c) as \frac{a}{b+c}

Is it possible to make LaTeX, or a similar software, interpret a/b as \frac{a}{b}? Writing out (x+1)/((x)(x+2)) seems much easier than writing \frac{x+1}{(x)(x+2)}.
3
votes
2answers
80 views

Continued fraction

I am currently working on my bachelor thesis. I want to visualize a general continued fraction. I concatenate the fractions with the command \cfrac. The result is okay, but I rather want the last link ...
16
votes
2answers
553 views

Interesting recursive behaviour with \frac error

I have this code below. Obviously it's not actually valid code because there's no second argument to \frac, but nonetheless I'm curious why it produces what it does. \[ \text{abc$\frac{123}$} \] ...
0
votes
1answer
43 views

Graph a function with \frac

I need to graph the function f(s)=\frac{s^3+7s^2+9s-128} {s^2+15s+24} ,where s greater than zero, please help me...
0
votes
1answer
106 views

How do you end the “over” command?

I am trying to write something similar to $\frac{a}{b} more words$ but using over (it must be with over) but when writing $a\over b more words$ the "more words" appear in the denominator. ...
0
votes
0answers
26 views

Properly formatting a big fractional equation [Line won't change]

On solving a boundary value problem I have attained two coefficients which are huge even after simplification. I have the Latex code from Mathematica which I tried copy pasting in Overleaf and a ...
0
votes
0answers
37 views

dfrac/frac keeps repeating [duplicate]

I want to create this equation in overleaf: Here is my code trying to do so: \begin{equation} \textit{S = \dfrac{R - U}{1 - U}} \end{equation} However, I get this: It seems to be some sort of ...
2
votes
2answers
74 views

How to vertically align a math fraction inside table cell?

Consider the following minimal working example \documentclass[10pt]{article} \usepackage{amsmath} \usepackage{booktabs} \begin{document} \begin{table} \begin{center} \begin{tabular}{p{3cm}p{4cm}} \...
1
vote
1answer
50 views

Horizontal spacing in fraction

Followed is a small fraction code. As you can see, the spacing around "+" is too small. We can add \: or \; around "+" to increase the spacing. But, if the equation is complex, adding \: for where it ...
0
votes
2answers
206 views

Math: How to typeset a fraction that is part of a fraction?

Kindly help me to typeset this equation using latex
0
votes
0answers
11 views

Enforce TeX math font size [duplicate]

I want to stop the math size from automatically shrinking in math mode. Usually when, for example, having a lot of nested fractions, the size automatically shrinks to make it all fit. But I want to ...
1
vote
1answer
89 views

How to write a horizontal partial derivative rather than vertical form in text?

I want to write below: (How can I write horizontally, rather than vertically)? My MWE: The partial derivative $\frac{\partial J}{\partial x_1}$ is car Output:
2
votes
1answer
66 views

Better dots for infinite continued fraction

My question is related to the out put of following code. I want the \ddots to start from the center of the plus sign and continue diagonally. The way it is right now is bit odd. Any help is much ...
1
vote
1answer
36 views

Overline and subscripts interfere with the fraction horizontal rule if I use small text

I am trying to typeset headings in a small tabular environment. I get interference with the horizontal rule in the fractional sign. I managed to fix it in a crude way. Is there a better solution? ...
4
votes
2answers
200 views

latex summation notation getting compressed

I have this code in latex \begin{equation} \hat{k}=\dfrac{1}{\Delta t}\ln{\left(\dfrac{n\sum_{t=0}^{n-\Delta t}r_t^2- \left(\sum_{t=0}^{n-\Delta t}r_t\right)^2}{n\sum_{t=0}^{n-\Delta t}r_{t+\...
0
votes
1answer
83 views

simplifying fractions/greatest common divisor

I'm pretty new to using LaTeX as a teacher and I'm experimenting with fractions. Most things seem to work fine, but I'm just not able to simplify these fractions. I guess I'd need to find the greatest ...
2
votes
1answer
76 views

Writing enlarged fractional exponents

I'm not able to write enlarged fractional exponents. For that purpose, '\frac' gives too small exponents, and '\dfrac' gives too large ones. $x^{\dfrac{12}{7}}-x^{\dfrac{5}{7}}$ This yields: But I ...

1
2 3 4 5
9