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

learn more… | top users | synonyms

3
votes
1answer
18 views

How can I use a large solidus in a display fraction in LyX?

I would like to use the equivalent of the latex \middle/ in a display equation in LyX. I have a fraction with a large left hand side, and I want the solidus (/) to be automatically sized to match the ...
1
vote
1answer
40 views

Continued Fraction Expansions

I am a newbie at LaTex. I would like to know how to perform the following on native tex. Pls help me out. Thanks
6
votes
1answer
46 views

Fraction in \pmod bracket

I want to put a fraction into the \pmod brackets in math mode, i.e \documentclass{article} \usepackage{amsmath} \begin{document} \[x\equiv y\pmod{\frac{a}{b}}\] \end{document} However, the ...
4
votes
2answers
196 views

Using braces with equations - how to make fractional terms 'bigger'

I have some equations which display perfectly until I put them inside a brace and they become 'squashed'. Example: \begin{alignat}{2} u = \frac{\partial\tilde{X}}{\partial x}, v = \frac{\...
5
votes
1answer
56 views

Substitute \frac for a slash (/) only on inline math mode

I was wondering if there is a way to have LaTeX interpret $\frac{a}{b}$ as $a/b$, but \[\frac{a}{b}\] as \[\frac{a}{b}\]. It is a little tedious to change a inline equation $a/b$ to a display ...
0
votes
1answer
80 views

How to multiply a fraction

I have an equation in which inside I have a fraction. I want to put a number (3.3) that indicates multiplication. \begin{eqnarray} \phantom{0}LOD = \frac{\phantom{0}S}{N} = 0.1\phantom{0} \si{\ng/\...
7
votes
1answer
172 views

Fraction at the same height

\begin{equation} \label{eq:pressure3} \cfrac{P_2}{P_0} = \cfrac{C_2}{C_2 + S^*_2}\cdot\cfrac{C_1}{C_1+S^*_1+\cfrac{C_2 S^*_2}{C_2+S^*_2}} \end{equation} How can I bring the first denominator at the ...
7
votes
1answer
93 views

Horizontal alignment of numerator and denominator in a \frac expression

I need to typeset the derivative of l by z_a. Normally I would do \frac{\diff l} {\diff z_a} with \newcommand{\diff} {\mathop{}\!\mathrm{d}}. This gives: which does not look very good imho due to ...
0
votes
0answers
64 views

Large space between fraction bar and numerator containing \sum with subscript in display style

EDIT: I updated the picture to highlight what I meant. Notice the extra space between the two red lines in the left-most fraction. I'm not sure if that extra space was reserved for letters with a ...
1
vote
1answer
37 views

Make numerator and denominator terms of \frac bigger

Is there a way to make \frac{}{} bigger? By default looks like all equations keep the same size. That means if I write x=\frac{a}{b} x has the right size, while frac is a little bit smaller. I want ...
0
votes
0answers
54 views

Write in an easy way $\frac{a}{b}$. Shortcuts to output the fractions

Is there any way to create automatically fractions without writing every time \frac{a}{b}. Is there any easy method to write this?
3
votes
1answer
127 views

Mixed numbers (fractions) with big ''integer part'' size

In some math textbooks for primary level, the mixed numbers are written with the integer almost the same height as the fraction. For example: I want to write in LaTeX mixed numbers like the above ...
1
vote
1answer
29 views

Change the behavior of subscript \frac in inline math

I am writing a document which contains a lot of half-integer indices. In display mode, x_{i + \frac {1} {2}} looks fine. However, in inline mode, having several x_{i + \frac {1} {2}} messes up the ...
3
votes
1answer
123 views

Cancel out factorial fractions

I have the following fraction: How can I use a line and cross off the 3, 2, and 1s in the numerator and denominator? I need a line crossing off the 3s in the numerator and denominator - one line. ...
0
votes
0answers
18 views

How to change the size of fractions [duplicate]

Here's the code for the query: \documentclass[12pt,twoside]{article} \usepackage{amsmath} \usepackage[makeroom]{cancel} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsfonts} \begin{document} ...
5
votes
1answer
200 views

\frac not working

I'm new here so bear with me if I don't catch on to something immediately. I'm trying to write some script for some copyediting I'm doing and it automatically converts the code into the format once ...
1
vote
1answer
58 views

How to type the '3/2' in Latex with different height as shown in the picture? [duplicate]

how to type the fraction 3/2 with different height in Latex as show in the picute
0
votes
1answer
47 views

word spacing in fraction [duplicate]

I want to have 2 separate words in a fraction (numerator & denominator), however, LaTeX would keep them together with no space. I'm using the amsmath package. And this is the line of the code: \...
1
vote
2answers
49 views

Move horizontal bar in fraction lower

In the picture I have below, the numerator is dense with terms but the denominator only has one term. Thus, it would be nice to shift the horizontal bar lower to save space and look nice. I have no ...
1
vote
0answers
46 views

How do you typeset a fraction of vectors?

I have my latex document setup as follows: % UniversalHyperbolicGeometry.tex \documentclass[12pt]{book} \usepackage{imakeidx} \usepackage{xcolor} \usepackage{setspace} \usepackage{lipsum} \usepackage[...
1
vote
1answer
37 views

Globally change the size of \frac in align environment

I use the empheq package to display my equations, but I would like to change the size of fractions displayed inside the align or align* environment, from display style to text style. I know I can ...
1
vote
1answer
37 views

How to align column of mixed fractions (after whole number) in tabular?

I have a table that has a column with mixed fractions (that is, whole number plus fraction part) as entries which I need to reproduce in latex. The problem is that the fraction part of the mixed ...
2
votes
0answers
53 views

Latex Fraction Paranthesis/Bracket Format

How would I get the Paranthesis/Bracket to go around the entire fraction, instead of appearing at the height of a normal one
16
votes
5answers
11k views

How to print \frac{1}{2} by a single Unicode character?

I am looking for a command which would print simple fractions like 1/2, 1/3 etc using glyphs available in modern TTF/OTF fonts. Ideally, I want this command to output ordinary \frac{1}{2}, \frac{1}{3} ...
4
votes
3answers
110 views

Nested fraction parenthesis visualisation

Is there a way to adjust the size of the parentheses in such a way that they automatically adjust to the height of the formula? This seems easy but I cannot find anything on this. With \left( .. \...
1
vote
0answers
58 views

Space in fraction

See distance from/to fractionline...How can i lower little bit \partial W? \documentclass[10pt,a4paper]{letter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
2
votes
0answers
54 views

How to make an extensible double-fraction bar

I want to express a certain kind of quotient with a double-bar. The solution to the question this is a duplicate of (Fraction with doubled line) works for me, but I'd like to tinker with it a bit ...
4
votes
1answer
38 views

Recurring decimal with letter (aligning 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 \usepackage{amsmath,...
12
votes
6answers
3k views

How to typeset a continued fraction in the following format?

How does one typeset the following continued fraction as shown below? Source: Notes on continued fractions and recurrence sequences by Alfred van der Poorten. Note: Alf van der Poorten's style is ...
3
votes
1answer
57 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
21 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! \documentclass[...
2
votes
1answer
157 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: \documentclass{...
1
vote
0answers
53 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 ...
8
votes
2answers
183 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
48 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
54 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
125 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
49 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\ b_{i}(k)\gamma_{i}(k)}{2^{...
2
votes
2answers
225 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
75 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
471 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? \begin{...
4
votes
1answer
158 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} \end{...
5
votes
1answer
131 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
68 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
169 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
43 views

Problem with too long numerator/denominator in fraction [duplicate]

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
191 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
286 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
414 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
426 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}