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

learn more… | top users | synonyms

3
votes
0answers
194 views

Two fractions with the same size [closed]

Can anyone tell me how I can make $A=\frac{1}{a} \frac{1}{1+\frac{a}{b}}$ look the same? So I want $a$ to be on the same height as the other denominator. MWE \documentclass[11pt]{article} ...
2
votes
3answers
535 views

equality sign and fraction bar alignments in complex fractions around braces

When some math expressions such as complex fractions are around the braces which should be on the same baseline, besides, equality sign should be aligned with vinculum, how can we handle? For example, ...
2
votes
2answers
1k views

How to put several lines in the numerator of a fraction?

When I use \\ it breaks the frac layout. Now I come up with the following solution: $$\frac{{O\vdash e_1:T_1 \atop O[T_1/x]\vdash e_2:T_2}}{O\vdash (let\ ((x e_1))\ e_2):T_2}$$ But it gives two ...
2
votes
1answer
193 views

ConTeXt: How to create nice-looking fractions

Background Looking to create vulgar fractions in the current font such those in Unicode. LaTeX has the nicefrac package that provides, as the name implies, fractions where the dividing line is a ...
2
votes
2answers
308 views

Improve a fraction's appearance

I am using \documentclass[a4paper,11pt]{article} \usepackage{kerkis} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} \begin{document} \begin{equation} ...
2
votes
1answer
2k views

Fractions with `\dfrac` cause compile error

I'm new to LyX. I'm writing my next homework with it to give it a try. My example code is below: % Preview source code %% LyX 2.0.5.1 created this file. For more info, see http://www.lyx.org/. %% ...
2
votes
2answers
1k views

Line spacing with inline formula including fraction

I have a fraction in an inline formula as can be seen in the picture. \dfrac from the amsmath package was used. (This is article class with 14pts and linespread 0.9.) Though the space between the ...
2
votes
2answers
187 views

Can I not use the align & operator within a \frac?

This code is causing LaTeX to throw an error: Missing } inserted. It appears to be because I put a & inside a \frac command (on line 4). I feel as though it should be possible to accomplish my ...
2
votes
1answer
31 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 ...
2
votes
1answer
56 views

typing a straightline next to a dfrac? [duplicate]

I would like to type how do I do it? Thanks!
2
votes
0answers
27 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: ...
2
votes
0answers
35 views

In the output the denominator appears in front of the fraction [duplicate]

Command \frac works in strange way: Any suggestions? \documentclass{report} \usepackage{polski} \usepackage[cp1250]{inputenc} \usepackage{graphicx} \begin{document} \setcounter{secnumdepth}{3} ...
2
votes
1answer
533 views

Compound fractions (i.e., “mixed numbers”) look bad in displaystyle

I find that in display mode, fractions that represent simple rational numbers look way too big. For instance, consider this case: $$ a = \frac12(b+c) $$ The fraction gets inordinately large ...
2
votes
0answers
131 views

How to typeset a continued fraction in the following style? [duplicate]

Possible Duplicate: How do I typeset continued fractions in Pringsheim's concise notation? How to type a continued fraction in displaystyle as shown below? Source: Fischler, Stéfane, ...
1
vote
2answers
817 views

How can I embed \lvert and \rvert into the numerator ?

How can I embed \lvert and \rvert into the numerator? $1 - \frac{ \lvert 1 - t_2 \rvert}{y}$ The above line gives Undefined control sequence error.
1
vote
3answers
245 views

Fraction in brackets

I want to have a fraction in brackets. Something like: $${\log C \brack \log 2}$$, but with the line in the middle. I know this possibility: $$\left[\frac{\log C}{\log 2}\right]$$. Nonetheless, does ...
1
vote
1answer
183 views

Unsqueeze the fraction

For the LaTeX code below, \begin{equation} Fitness(\CS)= \begin{cases} 0.5 + 0.5 \cdot G(\CS) & if\ V(\CS)=0 \\ 0.5\cdot G(\CS)-\frac{V(\CS)}{V_{Tot}(\CS)} & ...
1
vote
1answer
214 views

Using \sqrt in the denominator of the \frac command [closed]

Below is the following code that I am trying to use in math mode. When I do this it distorts the sqrt line and blends into the fraction line. z=$\frac{ Estimate_{t} - Estimate_{t-1}} \sqrt{Var_{t} + ...
1
vote
1answer
4k views

How can I write a latex fraction without a bar? [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? I'm trying to write a math formula like this: \sum_{ \frac{n=0}{(n+k-i) \text{~even}} }^{k-i} This ...
1
vote
1answer
380 views

Bold fraction line

I would like to use a "bold style" for the fraction line in a math formula. I've seen it in some PDFs, but I do not know the proper command.
1
vote
1answer
35 views

Sequential \frac that aren't nested [duplicate]

I'm new to Latex and am having trouble troubleshooting an equation that I can't get to display correctly. The equation I am trying to create in Latex is: ...but I keep getting nested fractions ...
1
vote
1answer
146 views

Ways to show fractions

As I use TexMaths in LibreOffice and it has a problem with \frac and \over; are there other ways to show fractions in Tex? In LibreOffice with \frac the line is not shown:
1
vote
0answers
20 views

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

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 ...
1
vote
0answers
84 views

Spacing of fractions in TeX Gyre Pagella Math

Using TeX Gyre Pagella Math with xelatex, some objects like \frac12 just seem way too large compared to the rest of the equations. Have a look: In the first line, the numerator looks like it's ...
1
vote
0answers
182 views

Slanted fractions

I'm trying to develop a command to typeset slanted fractions. I know about nicefrac and xfrac packages, have tried both, and disliked both. At the moment, in text mode I use \nicefrac with a bit of ...
1
vote
2answers
207 views

Problems with fractions in a square root [closed]

whenever i have a fraction inside a square root, the square root symbol drops down below the line and intercepts whatever is on the next line. I think the package savetrees may be causing the ...
1
vote
0answers
61 views

Token not allowed in a PDF string: hyperref warning affecting the bookmarks in the PDF [duplicate]

I have written a text in documentclass book and I have quite a lot of maths into subsections titles. These titles are of course correctly rendered in the pdf page but are not in the bookmarks: for ...
1
vote
1answer
114 views

How to avoid a continuous fraction line going through the equals sign in MathJaX? [closed]

When I use Math.SE, and I type a equation such as: I get this continuous line. Is there a way to avoid this?
1
vote
0answers
125 views

How to keep alignment consistent with non-LaTeX contents? [closed]

I am using "almost LaTeX" from the JetPack plugin for my WordPress blog where I post course work. How do I get the generated formulae to centre on the line so the equals sign lines up with the normal ...
0
votes
1answer
37 views

`\center` and size of `\frac` in my code

\documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{fullpage} \usepackage{secdot} \usepackage{setspace} \setlength\parindent{0pt} \title{\vspace{-3em} Quantum Mechanics} ...
0
votes
1answer
125 views

Multline & Splitfrac

\documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{multline*} -\dfrac{1}{64\pi^2} \left[ \dfrac{ \splitfrac{ ...
0
votes
2answers
244 views

How to control the font size in complex fractions? [duplicate]

I am writing an equation and for part of that, I have the following fraction: \begin{eqnarray} \frac{u_{fe}\frac{\frac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}+ \frac{u_{i+1,j,k}^n+u_{i+1,j,k}^{*}}{2}}{2}- ...
0
votes
1answer
2k views

Using \frac within tabular [duplicate]

Possible Duplicate: Using \frac within a table I'm trying to do that within CodeCogs renderer, but it don't work: \begin{tabular}{cc} \hline \frac{x}{2} & \frac{2}{x} \\ \hline ...
0
votes
0answers
47 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
38 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.
0
votes
0answers
30 views

Cancelling in a Fraction [duplicate]

I am trying to create a step-by-step solution sheet for my homework and have discovered that I need to use "cancel" things in a fraction. For example, like in the following picture I would like to ...