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

learn more… | top users | synonyms

3
votes
1answer
19 views

Recurring decimal with letter (alignning at top)

A picture is more than 100 words. How do I align the dotts (automatically) and properly at the top? Code currently in use is from here: \documentclass[12pt]{article} %% packages ...
3
votes
1answer
42 views

Numerators and denominators in fractions at different height

I'm trying to write a rather lengthy equation with a fraction multiplied by another fraction that has several \left( and \right) brackets. The height of the symbols above the fraction line is two high ...
0
votes
0answers
19 views

Diffrent size of a fraction [duplicate]

Is there someone who can explain me, why the fraction in align-mode looks bigger than the one in the math-mode? I would like to have the same size in both modes, hehe...Thank you! ...
1
vote
1answer
140 views

some text below fraction

I am trying to place some text below the fraction but I am getting the following error: ! Missing $ inserted. $ l.5 ...ac{1}{\alpha_{ideal}}}{\text{\leq r{i-1}} }$ Code: ...
1
vote
0answers
43 views

Numerator of three fractions combining when they shouldn't. Latex

I'm writing a latex thing where three individual fractions are combining numerators I'm presuming because they're all num of 1. for example i want 1/2 (1/5 - 1/4), but it just puts 1 in the ...
7
votes
2answers
146 views

Modifying fraction macro for in-line text and exponents

There's an amazing fraction macro here* for FontSpec with LuaLaTeX (*: that would be the second macro in that answer, called \unifrac, which I like better than the first "macro"/ using the frac ...
4
votes
1answer
32 views

How to get display style in both numerator/denominator in a fraction?

Test code: \documentclass{article} \usepackage[english]{babel} \usepackage{amsmath} \begin{document} \begin{equation} z = \frac{\sum_{i=1}^N{x_i}}{\sum_{i=1}^N{y_i}} \end{equation} \begin{equation} ...
2
votes
1answer
46 views

Mathematical fraction of text descriptions

I know exactly how to generate it, but I want a more efficient way. Anybody can help? \begin{equation} \nonumber n=\frac{\mathrm{maximum \ fraction \ of \ the \ river \ that \ a \ boat \ can ...
3
votes
2answers
104 views

How to get a horizontal line that is aligned at the bottom of a fraction?

$\frac{18e-12}{10}=\rule{5cm}{1pt}$ gives How do I get something that likes this Thanks.
2
votes
1answer
39 views

Fraction As Power: Alignment Problem (With Subscript)

I am trying to write an equation with the following code: \begin{align} p_{e,i}(k)=\frac{4}{b_{i}(k)} \left(1-2^-\frac{b_{i}(k)}{2}\right)Q \left( \sqrt{\frac{3\ ...
2
votes
2answers
193 views

Writing fraction in matrix

I am trying to write a fraction in a matrix. I am doing it using the following code: \[ \begin{bmatrix} \frac{1}{6} & \frac{5}{6} & 0 & 0 \\ 0 & 0 & 1 & 0 \\ ...
2
votes
1answer
33 views

Horizontal spacing for function arguments in fractions

I'm writing with collegues on a document that heavily uses one kind of custom operator (here: a probability density function). We have not decided finally what symbols to use. Consequently, we use a ...
3
votes
3answers
380 views

Problem with \frac macro

I am using this code for a mathematics problem. The code works but the lower fraction looks really dull, the parenthesis is doing something it isn't supposed to. What I can do about this? ...
4
votes
1answer
88 views

How can I improve my partial derivative in latex?

I am writint notes with a lot of partial derivatives. When the function to be differentiated is long the variable am differentiating with respect to (say t), \begin{equation*} \pd[2]{}{t} ...
5
votes
1answer
89 views

Simpler way to add color to equations in math mode?

I was looking for a simpler way to add color to math mode. Specifically, I wanted different parts of an equation to have different colors in order to better correlate with colors in a figure. The ...
2
votes
0answers
41 views

Increase margin between tilde and line of fraction [closed]

I've written a document with some complex formulars in it. I find the distance or the margin between a decoration of a variable, in this case a tilde and the line of the fraction, in which it stands ...
6
votes
2answers
106 views

vertical spacing in nested fraction

I have complicated math expression: Vertical spacing between text and fraction line is too small. I tried to define new \frac command (with amsmath package) with adjustable vertical spaces. As you ...
0
votes
0answers
34 views

Problem with too long numerator/denominator in fraction

I am using Texmaker for a math document. My problem is that sometimes I encounter certain fractions whose numerator or denominator is too long to be accommodated in a single line. Therefore I don't ...
10
votes
1answer
187 views

Correct typesetting of a formula with a long fraction

I have a two-column document and as you can see a long mathematical formula, consisting of a fraction, can't fit in the column width. What I don't know is what is the right way to typeset such kind ...
5
votes
3answers
257 views

Placing the arrow up higher than the fraction bar

I want to have an arrow as the below image upper than the fraction bar and have it cover part of the fraction bar so I can change its position(preferably without appealing to a package). Also is ...
5
votes
4answers
395 views

How can I fix the excessively large subscripts inside a complex nested fraction?

I have an fraction equation; under the denomination, the subscript looks larger than the variables. For example, for a_{GL}, GL looks larger than a. It looks weird. How can I handle this and make the ...
6
votes
2answers
378 views

How to replace all “slash” division expressions with \frac{}{}?

Is there a way to autoreplace .../... with \frac{...}{...}? For example, 143/23 should be rendered as \frac{143}{23}
1
vote
0answers
32 views

Raising denominator up in frac

I want to raise a denominator bit up in \frac{}{} but I cannot do it with \raisebox while I can push it down with it: $\frac{AAAAAAA}{\raisebox{-3mm}{$AAAA$}}$ % pushes down ...
1
vote
1answer
93 views

dfrac no larger than frac

I'm making a compound fraction for a review worksheet. I currently have this: \begin{multicols}{2} \begin{enumerate} \item Simplify \[ \dfrac{\frac{3}{5} + \frac{5}{5x}}{1 - \frac{1}{10x}} \] The ...
1
vote
2answers
92 views

Normal numbers are superscripted when using \fontspec{<font name>}[Fractions=On]

This MWE produces superscripted numbers on my Windows machine. \documentclass{article} \usepackage{fontspec} \begin{document} \noindent \fontspec{Times New Roman}[Fractions=On] Should not be ...
1
vote
1answer
144 views

Why is the space below the numerator different to the space above the denominator?

I've never noticed it before, but LaTeX puts a lot more space between the numerator and the bar than it puts between the bar and the denominator. Now maybe this makes sense for more complicated ...
1
vote
0answers
29 views

Fraction macro in lyx

I want to create a macro for word-like fraction sign in lyx. Namely, when I write 1/2 I want it to be \frac{1}{2} Any Ideas?
24
votes
3answers
8k views

Guidelines for typesetting fractions

I realize that this question is to some extent subjective. However, I suspect that there are some common standards regarding how fractions ought to be typeset in mathematics. The guide Mathematical ...
10
votes
4answers
604 views

TikZ Fill for Fraction Diagram

I'm trying to shade in one third of this circle. Obviously, it's not working. What did I do wrong? I got no error messages for either of my attempts in the code below, but neither filled anything ...
4
votes
2answers
214 views

TikZ: Intersection for Fraction Diagram

I am trying to create fraction diagrams for children using TikZ. Is there an elegant way to fix the top of this diagram of 1/2 in a way that will scale when I want to show, say 29/6 with triangles... ...
4
votes
3answers
285 views

Amplifying fractions

I want to make myself a math portofolio (as a quick reference) and I have a part where I have to 'amplify' a fraction like here: But I don't know how can I do this thing, can you help me? Thank ...
20
votes
3answers
13k views

Smaller fractions in displayed formulae?

How do you make script-sized fractions in display mode? In certain cases, I find that \frac-based fractions are too large for my tastes in displayed formulae. For example, I feel that the fractions ...
2
votes
2answers
148 views

Align numerator and denominator of a fraction

How do I align the numerator and denominator of a fraction? I am looking for something that achieves the following psuedocode: \frac{a^2 & b}{c & d} (The b and d should be aligned ...
4
votes
1answer
483 views

Formatting a fractional exponent in display math

Typographically, what is the correct way to display a fractional exponent in display math mode? There was a post regarding inline math, but consider this example. \documentclass{article} ...
3
votes
2answers
58 views

Display fractional formula nicely

I've tried using the split environment as well as dfrac, however, I can't seem to be able to make this equation look nice at all. \documentclass{article} \usepackage{amsmath} \begin{document} ...
5
votes
0answers
83 views

Whitespace in fractions in XITS

I am using XITS to typeset math, but I have noticed that whitespace in fractions gets larger due to subscripts. The minimal example (typesetted with XeLaTex): \documentclass[11pt]{article} ...
58
votes
3answers
20k views

What is the difference between \over and \frac?

What is the difference between {some-expression}\over{another-expression} and \frac{some-expression}{another-expression} ? Which is preferable?
4
votes
1answer
38 views

Fake math sizing using tokens assignment

I'd like to implement sizing functions like \Huge in a way that makes them work in math mode as well. Essentially I want to create a command myHuge which maps {foo \myHuge bar} to {foo \mbox{\Huge ...
40
votes
7answers
12k views

How do I typeset arbitrary fractions like the standard symbol for .5 = ½?

I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't ...
0
votes
0answers
32 views

writing simple fractions (1/2, 1/4) in social science text [duplicate]

As part of a social science text, in one place I need to write fractions like 1/2, 1/4, 1/3. How can I write these fractions in an elegant way without using mathematical packages?
12
votes
5answers
10k views

Proper display of fractions

Have a look at the following code: \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \begin{document} $2-\frac{2}{1-\left(\frac{2}{2-\frac{2}{x^2}}\right)}$\quad ...
8
votes
2answers
158 views

Increase size of fractions on multiple lines

Inside a matrix, I have some very loaded (subscripts, greek letters, \breve) fractions: \begin{equation} Q_r = \begin{bmatrix} \frac{\partial \breve{y}_r}{\partial \theta_1}\bigg|_{t_1} & ...
2
votes
2answers
230 views

fractions in table

I have a table with three columns, in the second and third sometimes appear fractions: \documentclass{scrartcl} \usepackage{array} \newcolumntype{C}{>{$}c<{$}} \begin{document} ...
0
votes
0answers
60 views

Bad vertical spacing in simple fraction

How can I even out the spacing in these fractions? I have tried \frac vs \dfrac along with \strut and I get similar results: \[ \bar{x} = \frac{0+1+2+5}{4} = \frac{8}{4} = 2 \] \[ \bar{x} = ...
1
vote
0answers
36 views

How to change horizontal alignment for \frac? [duplicate]

Typing \frac{W+W^*}{2} gives $\frac{W+W^*}{2}$ in which the denominator appears to the eye to be in the wrong position. Is there a way to correct this, ie place the 2 in under the + (without using ...
2
votes
2answers
212 views

How to make this simple expression $f(\dfrac{r}{h})$ look nice?

How to make this very simple expression nice? I am not convinced by the parenthesis and the vertical spaces among the fraction. Feel free to share how you would have written it. ...
1
vote
2answers
69 views

Double subscript not coming with product in this formula

I am not able to write this in latex with the subscript p|n (maybe more than one line) under the product and above the product sign also I need something to be written( say k). Moreover it would be ...
1
vote
3answers
170 views

Getting a fraction in the middle of the sentence

I am trying to enter a sentence that contains a fraction in between it using Latex. My code looks like this: Which of the following fractions is smaller than $\frac{1}{5}$ It looks like this: . ...
3
votes
3answers
143 views

How can I uncover the fraction line in beamer?

I would like to uncover elements of an equation one at a time. This is easy enough usually, but in this case I'd like to progressively reveal a fraction. The problem with the way I'm doing it is that ...
0
votes
0answers
38 views

How do I write the partial derivatives without partitioning?

I have this code: D_{1}\equiv - \frac{\partial^2 EU }{\partial \alpha \partial \widebar{d}} which yields I want to write this expression differently. Like this for example