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

learn more… | top users | synonyms

15
votes
2answers
8k 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 ...
4
votes
1answer
1k 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} ...
5
votes
2answers
199 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?
15
votes
3answers
617 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 ...
37
votes
2answers
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 ...
6
votes
1answer
280 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 ...
5
votes
1answer
454 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?
6
votes
3answers
628 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 ...
4
votes
1answer
9k 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: ...
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 ...
6
votes
3answers
436 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 ...
1
vote
0answers
123 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 ...
10
votes
1answer
2k 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 ...
8
votes
5answers
1k 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, ...
7
votes
2answers
275 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 ...
5
votes
1answer
413 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[ ...
11
votes
4answers
3k 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} ...
8
votes
5answers
6k 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 ...
9
votes
1answer
495 views

Automatically add fractions and reduce the result (if neccessary)

I'm trying to figure out how to reduce fractions. Adding fractions is no problem, see this example: \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} ...
8
votes
4answers
2k views

Fraction with longer line

I'm trying to display some axioms and operational rules with LaTeX. Those are basically . They work quite well when used with frac, but it's not really nice, I'd like the fraction line to be a bit ...
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 ...
3
votes
2answers
1k views

How to change / to be horizontal?

I like to change a/b to be a - b how to do that?
9
votes
3answers
2k views

Legendre symbol in theory of numbers

How can I get a Legendre symbol , which just used the dashed line instead of the fractional rule?
5
votes
2answers
368 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? ...
1
vote
2answers
782 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.
2
votes
3answers
515 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, ...
4
votes
4answers
436 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 ...
7
votes
2answers
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 ...
26
votes
1answer
14k views

How to get a little frac

I am wondering how to make a fraction in LaTeX small enough to fit on a line, or at least just a little larger. I could have sworn I had seen this before but I just cannot find it. In particular, I ...
30
votes
5answers
6k views

How do I typeset arbitrary fractions like the standard symbol for .5 = ½?

I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't ...