# Tagged Questions

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

537 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 ...
376 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 ...
173 views

### Fraction at the same height

$$\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}}$$ How can I bring the first denominator at the ...
1k views

### Square root in fraction space problem

I'm having some troubles with the square root symbol within a fraction. This code \documentclass{book} \begin{document} $$h_4 = \frac{\sqrt{1.5 \gamma_4 -3.5}-1}{18}$$ \...
406 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 ...
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 ...
1k views

### Please critique this “intermediate size” fraction macro.

I often write a lot of mathematics where I multiply various quantities/operators/etc. by fractions. The fractions are important for bookkeeping, but usually not the most important thing in the ...
583 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 ...
427 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}
4k views

### equal size numerator and denominator

I am trying to size the numerator and denominator of the below equation so that they are equal in size. I have not had much luck suggestions are appreciated. \sum_{i=1}^{n} \frac{\...
194 views

### Can't make a fraction

I had been tried for a long time, but it had worked, I have this code, hope you can help me: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{pmatrix} m\\ n \end{pmatrix} = {\...
802 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 ...
487 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[ \frac{...
2k views

### Nested exponents look too small

When I type $e^{\frac{\ln(r)}{2^{j}}}$, the output is: In the exponent, the denominator looks like 2j (especially in normal font), but it is supposed to look like 2^j. How can I make the term 2^j ...
251 views

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 ...
446 views

### Create multiline fraction

How to create an equation like in the image below. I tried to use \cfraq and \hline but with no success. I am asking for the layout only, not the formulae.
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 ...
170 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 ...
144 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} \usepackage{...
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 ...
358 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 ...
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 ...
533 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?
228 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?
354 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 ...
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 ...
549 views

### Dante Monotype typeface and fractions

I am handling a text which is natively written in a proprietary LaTeX documentclass which implements Dante Monotype fontface. In this text there is a lot of maths and I would say that it works, ...
236 views

### Improper display of parentheses in fraction of fraction

The following code: $\dfrac{\left( \dfrac{\left( \dfrac{1}{2}\right) }{2}\right) }{2}$ gives a nasty output: It seems that the $\left( \right)$ command doesn't do the job. Any idea how to solve ...
4k 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 ...
156 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} ...
572 views

### Convert hours (as decimals) to fractions for billable-time invoice

I'm creating an invoice in LaTeX and I've entered the hours I've worked as decimals (for example, 1, 1.5, 0.75, 2.25), but I want to display those decimals as fractions (1, 1½, ¾, 2¼). (The reason I'...
622 views

### How to reduce the size of fractions typed in align environment?

When digit fractions align environment, this goes with a size \displaystyle. But I want the size is like the one shown in a paragraph. I tried with \scriptstyle but I get letters too small and the \...
431 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? \documentclass[a4paper,...
57 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 ...
132 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 ...
224 views

### Multiple lines in equation environment

I have to put an two equations inside one equation environment. I could do it with this piece o code: \begin{array}{ccl} \nabla \cdot F & = & \left(\frac{\partial}{\partial ...
2k views

### Aligned numerator and denominator in \frac or any other variant

Is there a way to align the numerator and the denominator of a fraction? Consider two fractions (from a SIAM paper) The denominator (k!) is nicely centred in the first fraction. However in 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) \\ &= \frac{2}{\...
88 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} \...
483 views

### \frac{1-z^{n+1}}{1-z} doesn't look very good and how to leave space equal to the size of a given text

When we write it by hand we usually align the 1's in numerator and denominator. Should I change it manually, i.e. defining a command for typing the sum of the geometric progression or is there a ...
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{\...
311 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?
3k views

### New to TeX; issue with compiling

I keep getting the compiling error >file ended while scanning use of \frac. I can't see any missing {}, so I'm not sure what to do. \documentclass[]{scrreprt} \usepackage{geometry} \begin{document}...
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 ...
2k views

### Breaking the equation inside a fraction

I am trying to write this equation using the help provided in the link below How to break a long expression in the denominator of a fraction? Still the equation goes outside the margin. I using \...
353 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 you....
243 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 ...
2k 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 ...