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

learn more… | top users | synonyms

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
134 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
42 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 ...
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} ...
7
votes
2answers
142 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 ...
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
103 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
192 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 ...
4
votes
1answer
85 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
40 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 ...
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 ...
6
votes
2answers
102 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 ...
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 ...
10
votes
1answer
186 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
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 ...
1
vote
0answers
30 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 ...
6
votes
2answers
377 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
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?
10
votes
4answers
593 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
211 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
282 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 ...
1
vote
1answer
140 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 ...
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
472 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} ...
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 ...
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?
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
224 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} = ...
2
votes
2answers
210 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
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
2
votes
4answers
63 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
72 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 ...
4
votes
2answers
126 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
214 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 ...
2
votes
3answers
162 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} ...
1
vote
2answers
68 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 ...
4
votes
4answers
263 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?
0
votes
1answer
71 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 ...
1
vote
2answers
91 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 ...
2
votes
1answer
86 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
141 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} ...