# Tagged Questions

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

2k views

### Changing fraction style in LaTeX as generated by Matlab

A= [0.7577 0.7060 0.8235 0.4387 0.4898 0.7431 0.0318 0.6948 0.3816 0.4456 0.3922 0.2769 0.3171 0.7655 0.6463 0.6555 0.0462 0.9502 0.7952 ...
474 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} ...
2k views

### Align denominator of fraction to left

The highlighted part has the equation centred, which looks rather imbalance with the top equation, is it possible to align the highlighted part to the left? Below is the code I am using. ...
337 views

### Expanding line height when equations have displaystyle fractions

In my document, I have got a lot of equations in inline mode, like: \documentclass{article} \begin{document} Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod ...
1k views

### Fraction whose items are words

I have troubles writing a fraction whose items are words not numbers. In a nutshell I should write: minaccia/vulnerabilità --> this is the numerator ---------------------- contromisure ...
220 views

### Unsqueeze the fraction

For the LaTeX code below, 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)} & ...
402 views

### Multiple horizontal line separators? Multiple \over-s?

How to code the syntax like fraction, but with more than 2 components? Fractions consist of numerator and denominator while I need more. In other words: how to code column-matrix with horizontal lines ...
530 views

### Displaying numbers above each other (like a fraction), but without horizontal line and with less vertical space between them

I want to have a 2x2 matrix of arrows (\uparrow and \downarrow) to illustrate electronic spins. I've managed to get a fraction without the horizontal line using \genfrac, but I can't figure out how to ...
513 views

### how to place text on fraction for accounting formulas?

Sorry for the bad grammar. English is not my native language. I want to have text on a fraction type line to show up in an accounting formula, here's an example of what I want: So, I've tried ...
4k views

### How to increase row height while using booktabs?

I'm making a table using booktabs. One of the columns contains a series of fractions. \documentclass[12pt, letterpaper]{article} \usepackage{nag} \usepackage[margin=1.0in]{geometry} ...
1k views

### How can you change the width of a fraction bar?

I have an equation using fractions of fractions - much like \frac{\frac{a}{b}}{\frac{c}{d}} However, all of the fraction bars are the same width. I'd like to make the central bar wider than the ...
2k views

### issues with fractions

I have: \usepackage{nicefrac } \begin{align*} &= \frac{2}{\sqrt{2y+1}\sqrt{2 \pi}} \exp \left( -y-\nicefrac{1}{2} \right) &&\forall y \in [-\frac{1}{2} , \infty) \\ &= ...
136 views

### Keep numerator inline with rest of equation

In the following example, I would like to to keep the Q''(p) on the same line as the rest of the equation, and put the vinculum and 2 underneath. \documentclass[12pt,reqno]{amsart} ...
678 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.
301 views

### How to improve the looks of a fraction?

We may notice that the numerator and denominator in the following fraction are not aligned. And, to me it does not look good. How to align the numerator and denominator? \documentclass{article} ...
139 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, ...
21k 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?
3k views

### How to make slash (/) paste with correct Unicode codepoint depending on context?

Unicode offers different characters for the slash: U+002F (/) for the ordinary slash U+2215 (∕) for the mathematical division operator U+2044 (⁄) to designate vulgar fractions How can I have these ...
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 ...
135 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?
37k views

### Vertical spacing between numerator and division symbol in \dfrac

How can I fix the vertical spacing between the numerator and the division symbol when entering fractions. Eg. in the following code, the spacing between a and the division symbol is greater than one ...
7k views

### displaystyle, dfrac, dcases

Am I correct in saying that the dcases environment replaces \frac with \dfrac? The replacement only occurs at the outer-most level of \frac, so if I have \documentclass{article} ...
8k 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 ...
594 views

### How do I typeset continued fractions in Pringsheim's concise notation?

I would like to obtain the following formatting so as to write continued fractions in my equations without wasting vertical space. What I need is one command named \cFrac which writes one fraction ...
2k views

### \text{} in a fraction but spread over two lines

Rather than try to describe in words or by way of a MWE, I have uploaded a picture of the desired result. I know how to create all the components (e.g. \frac{}{} \text{}, ^{}) of this fraction, except ...
242 views

### About shorthand \frac

It is possible to write \frac 2 4 or \frac \pi 4 to get 2/4 and \pi/4, respectively. However, it is not possible to write \frac \sqrt{2} 2 to get \sqrt{2}/2. Are there consistent rules on how to ...
2k views

### Reformat \frac depending on numerator/denominator size difference

Is it possible to detect cases where the second argument of \frac is much smaller than the first argument, and split it? Namely (I'm using a new macro name \wfrac to simplify things), \wfrac{x}{2} % ...
722 views

### array within frac, using nath package

I use the nath package to get automatically-sized delimiters, but it breaks having a \begin{array}{…}…\end{array} within a \frac{}{} (simply removing the \usepackage{nath} below fixes the example, but ...
12k 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 ...
836 views

### Fraction with doubled line

Is there a way to make the fraction line look like the equality (=) sign, i.e., to have two parallel horizontal lines with a little gap in between? Many thanks!
14k 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 ...
2k views

### Fraction in Superscript

\documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{fontspec} \setmainfont[Script=Devanagari]{Sanskrit 2003} \newcommand\sufr[2]{\textsuperscript{$\frac{#1}{#2}$}} \begin{document} ...
224 views

### how to lower last term in a continued fraction after a diagonal row of dots?

How can I lower the last term of a continued fraction when it follows a diagonal row of dots?
719 views

### How would you name these fraction macros?

I've got four macros now for typesetting fractions in text mode. The first writes them horizontally (shilling style, with a hyphen), the second writes them diagonally, the third writes them ...
1k views

### Improved kerning in fractions?

Question How can I apply selective kerning within the numerator and denominator of an inline fraction? Specifically, I'd like to: Tighten kerning after the numerator if it ends in 7 Loosen kerning ...
398 views

### How to add quotation marks to fractions?

As the title says I want to add quotation marks around a fraction in \displaystyle mode. My first try looks very unnatural, as you can see ^{}\frac{1}{0^-}^" The problem is with the first ...
529 views

### How to automatically add parentheses around fractions?

Is there any way to make LaTeX automatically put parentheses around a \frac if it is followed by a superscript expression?
795 views

### Suggestions for splitting a large fractional equation?

I have seen a number of questions detailing specific means for how to break down a given equation, however I am more interested in the design at this point. That is, I'm not sure what part of this ...
12k views

### commath, \dfrac and \tfrac

I'm using the commath package for its nice \od and \pd functions, but I find it uses \tfrac internally. It seems to have an 'if-then' clause to sometimes use \dfrac but it never does so in my tests: ...
256 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 ...
567 views

### Define my own xfrac command?

Is it possible to create my own xfrac command - without using that package (it is giving me too much trouble)? I know you can do superscript, subscript to make a fraction look. Can I do something ...
133 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 ...
4k views

### Annotating individual math terms with braces

I am trying to annotate individual terms of a mathematical expression, as depicted below. The problem I get is that the comment seems to be taken as part of the fraction, which unnecessarily extends ...
3k views

### too little space between the bar on the denominator and the horizontal line

Please see below: There is too little space between the horizontal line from \frac and the bar from \bar{h_1}. So, it is a little hard to read. Any alternative way to represent the upper bar? And, ...
369 views

### How to stop fractions in display equations from running into each other?

Is there some standard way to create multiple display equations like the following without having to use: \renewcommand*{\arraystretch}{2} (so that the two rows in the second equation don't get ...
480 views

### Converting text math to TeX math (e.g. automatically filling in \left(, \right), \frac, etc)

At some point, it occurred to me that another level of abstraction may be possible on top of LaTeX. For example, why should I type \left( \frac{\frac{a}{b + c} \frac{w + \lambda}{z}}{x\left[ ...
10k 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} ...
10k views

### How to properly subscript in a superscripted fraction?

the title says it all. It attached a MWE to display the different relative sizes of a subscript within a normal fraction and a superscripted fraction. As you can see, in the superscripted fraction the ...