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

learn more… | top users | synonyms

1
vote
1answer
84 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
18 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?
22
votes
3answers
6k 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
360 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
121 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
214 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 ...
19
votes
3answers
11k 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
107 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
85 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
39 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
61 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} ...
57
votes
3answers
17k 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
34 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 ...
37
votes
7answers
9k 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
31 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?
10
votes
5answers
8k 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
141 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
111 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
39 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
35 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
160 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
54 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
109 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
89 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
34 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
2
votes
4answers
58 views

I want to write letters before a numerator like shown below

I'm learning Tex and i have this command but i want the following output, Thanks in advance for the help. my code; \documentclass{article} \begin{document} $$ M_{extra} = \frac ...
3
votes
1answer
52 views

How can I improve alignment of the numerator and denominator when vector norm bars along with subscripts throw things off?

Here's the really bad case: With a red bar to show what is bothering me in particular: Here's a simpler case where the issue is a non-issue, but perhaps one can get a hint of why it starts to ...
3
votes
3answers
286 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
2answers
70 views

Augmented matrix with fractions

I need to typeset some augmented matrices, but some of them contain fractions. I also need to do that with gmatrix, as I need its features. The following code is used to create the line in between ...
2
votes
1answer
85 views

Fraction Brackets size

I wanted to write the following equation but somehow my first bracket before the fraction is shorter, last one is fine. but I have no clue what happened to the first one, also is it possible to ...
0
votes
1answer
62 views

having problems with \frac command [closed]

in my formula I have typed , the first term , SF1 ,doesn't go above the nominator line, A11 = \frac{ \frac{\sum SF_{1_{i}}}{E}}{\epsilon_{11}} could you please help me spot the problem? I hope ...
2
votes
3answers
136 views

Help on typesetting an equation with fraction in numerator and denominator

I have the following equation: \documentclass{report} \begin{document} \begin{equation} T_e=\frac{T_{disch}\cdot e^{\frac{T_{ahe}-T_{disch}}{LMTD}}-T_{ahe}}{e^{\frac{T_{ahe}-T_{disch}}{LMTD}}-1} ...
4
votes
4answers
189 views

Numbers are very small in numerator and denominator using \frac

When I use the \frac command, I notice that the characters used for the fraction terms become smaller than those which are not in the \frac command. Is there a way to correct it?
2
votes
1answer
72 views

How to add additional numbers in simple fraction cancellation example

\documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{shapes.misc} \newcommand{\strikeout}[1]{% \ifmmode% \tikz[inner sep=0.5pt,baseline] \node [strike ...
5
votes
1answer
117 views

How to remove the space before and after fraction line of \frac command

I find the \frac command add a space of 1.2 pt before and after a fraction. See the figure below \documentclass{article} \usepackage{amsmath} \def\abc{\genfrac{}{}{0pt}{0}{0}{0}} \def\Abc{\frac00} ...
2
votes
2answers
113 views

typesetting addition of fractions

I was wondering what the most efficient way is to typset this: My first thought was doing this with tabular but seems quite messy to me.
3
votes
3answers
149 views

Make big fractions look nicer

I've got a few lines of calculation that involve large fractions and it is looking horrible on Latex. Does anyone have any suggestions as to how to make the fractions bigger with more space so that ...
4
votes
1answer
63 views

Left justifying in \genfrac

Is there an easy way to left-justify the "numerator" and "denominator" in \genfrac? By default it centers the "numerator" and "denominator." I am using it for a custom \atop command, per suggestion ...
5
votes
3answers
326 views

Can this kind of “variant fraction notation” be created in latex?

I'd like to be able to write math that looks a little like this: So it is a bit like a fraction, but there's a also a top line, and there's an arbitrary symbol or formula immediately left of where ...
2
votes
0answers
101 views

Argument of \genfrac has an extra } [closed]

Can't figure out what is wrong with the syntax below, for which I get the error mentioned in the title: \documentclass[11pt]{report} \usepackage{amsmath} \begin{document} $k = \frac{\omega M}{2 ...
3
votes
1answer
127 views

How do I make fractions automatically displayed in lines properly?

I would like to know how to make code of fractions in article class more easy to handle. Usually, if I type ${a \over b}$ then LaTeX does not display $a/b$, which is what I want. So I have to say ...
4
votes
2answers
218 views

How to get a vertical bar which is the exact size of the object?

I wish to use two vertical bars to sandwich a whole object: What I found is that (Failure 1) if I use usual \mid or \rvert or |, it is too small. (Failure 2) if I use usual \left| or ...
2
votes
1answer
74 views

Bigger rows with fractions in pseudocode

I had previous question how to write pseudocode in latex. I would like to use fractions in pseudocode, but rows with fractions are a little small. Anybody know how to make rows with fractions a little ...
1
vote
0answers
47 views

adjust vertical space between horizontal line of the radix in denominator and the horizontal line of the fraction [closed]

Even in display math I guess that there is too little space between the top horizontal line of the radix symbol and the horizontal line of a \frac. How can I control that vertical space? I have a ...
0
votes
0answers
66 views

Fractions in Latex

I typed instruction below into a tex document and the fraction came out smaller than the rest of the equation. Is there any way of making the b, c and d the same size as the a? $a = \frac{b}{c+d}$
0
votes
0answers
75 views

the numerator and denominator is not aligned well?

Here is the my code: $\sup_{v\neq 0}\frac{|Av|}{\|v\|^2}$ it displays as follow: But it doesn't look very well. I want the subscript to be under the sup and the fraction to aligned well.
2
votes
0answers
33 views

Issues with fractions and align [closed]

I'm really new to LaTeX, I only started last week and I'm having an issue with trying to align equations involving fractions. I want to align at the '=' but I am getting errors: ...
3
votes
2answers
132 views

Should superscripts be carried out of a fraction?

I can't help stumbling upon the usual way LaTeX renders fractions with superscripts: I think that the asterisk has a lower "weight" then the symbol and should not be treated as equal. I find ...
5
votes
2answers
396 views

Matrix doesn't shrink when put in fraction.

This is my minimal example, the problem is the different size of the two x. I would expect the matrix to be shrunken too, but it isn't. Why is this and how is it corrected? ...
4
votes
1answer
181 views

TeX, LaTeX and fractions

I just stumbled upon a Math SE answer which used {num \over den} for fractions. This seems perfectly equivalent to \frac{num}{den}. I'm guessing the former is TeX syntax and the latter is the LaTeX ...