0
votes
1answer
23 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} ...
5
votes
2answers
136 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} \begin{equation} h_4 = \frac{\sqrt{1.5 \gamma_4 -3.5}-1}{18} \end{equation} ...
1
vote
1answer
34 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 ...
4
votes
2answers
220 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, ...
1
vote
0answers
51 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 ...
3
votes
2answers
245 views

Displaying fractions nicely

I'd like the following to look nicer: $\frac{1 - \left(\frac{r-3}{r-1} \right)^{k-(p+q)+1}}{1 - \left(\frac{r-3}{r-1} \right)}$ As of now, the horizontal line is way too long.
4
votes
2answers
160 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} ...
3
votes
1answer
480 views

Schrodinger's equation [duplicate]

Trying to get Schrodinger's equation to format better. The first term is -\dfrac{\hslash^2}{2m} \, \dfrac{\mathrm{d}^2 \psi}{\mathrm{d} x^2} However, because of the exponent in the denominator, ...
9
votes
1answer
141 views

How and whether to fine-tune the vertical placement of a fraction line

This is a question about the aesthetics of mathematical typesetting, as well as a technical question about LaTeX. I'm writing a lot of expressions like this: (\log\frac{p_{i\to j}}{p_{j\to i}} in ...
8
votes
2answers
217 views

How to change horizontal alignment of \frac?

Typing \frac{W+W^*}{2} gives a fraction in which the denominator appears to the eye to be in the wrong position. Is there a way to correct this, i.e. place the 2 in under the + (without using ...
3
votes
1answer
103 views

How to properly display a product within a fraction?

I have product inside a fraction, like this: \[ \phi_n(t)=\frac{t^n-1}{\prod_{\substack{ d \mid n,\\ d<n.}} \phi_d(t)} \] And that places the "limits" of the product on it's side, not ...
7
votes
2answers
220 views

Color fraction bar

What would be the easiest way to create a fraction whose bar can be coloured as desired? I know one can use the \genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator} command ...
9
votes
2answers
189 views

Underbrace in denominator with () [] {} (howto)

I would like to put an underbrace correctly under the denominator of a expression but what I get is wrong because of the (). Alternatively I create another line in the text ...
9
votes
1answer
111 views

If fractions are Inner atoms, why don't they have thin spaces on either side?

The TeXbook says that fractions are Inner atoms. But if so, they don't seem to have thin spaces on either side when Inner atoms have them. For instance, in \documentclass{article} ...
6
votes
1answer
325 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 ...
16
votes
3answers
1k views

Guidelines for typesetting fractions

I realize that this question is to some extent subjective. However, I suspect that there are some common standards regarding how fractions ought to be typeset in mathematics. The guide Mathematical ...
5
votes
3answers
117 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 ...
5
votes
2answers
2k views

Elegant fractions in one line

What solution do you think is more elegant for a simple fraction that should be displayed in just one line? My examples are $x_F \equiv \frac{p_z}{p^{\rm MAX}_{z}} = \frac{p_z}{\sqrt{s}/2}$ $x_F ...
8
votes
1answer
336 views

How to vertically center the fraction line?

I feel a bit weird because this is a really simple issue that apparently nobody has brought up so far but I find that very simple fractions produce output that looks vertically unbalanced. The ...
8
votes
2answers
267 views

A special fraction macro with raised fraction bar

I need to create a macro which allows me to get a fraction with a raised fraction bar. In a first approach, I mean to create two boxes (numerator and denominator), separated by a fixed horizontal rule ...
2
votes
1answer
347 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 ...
3
votes
2answers
404 views

Bigger fractions without using \dfrac

Is there any way to make fractions bigger? I know one can use \dfrac but is there any code I can use in the document preamble to make all fractions bigger?
4
votes
1answer
261 views

Underlining fractions

I need to be able to underline equations involving fractions, which are aligned using the alignedat environment from amsmath. To be able to underline at all, I'm using the solution from this question ...
4
votes
3answers
2k views

Text-mode in fractions?

I want to have written words in a fraction but to have them in correct fraction form and not crude-looking. So, I have; $\displaystyle\frac{Actual Value of Production}{Demand}$ x $100$ But it ...
4
votes
1answer
176 views

Bracing fraction numerator or denominator to the left or right

I have a fraction with further fractions in both the numerator and denominator. I wish to label the fractions in the numerator and denominator with braces to the right. I would like these braces to ...
3
votes
4answers
6k views

Subscripts in partial derivatives

I would like to print the partial derivative operator $\frac{\partial}{\partial k_x}$, but the spacing and the length of the bar bug me a little. I would really like the fraction to be typeset as ...
2
votes
2answers
930 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 ...
5
votes
1answer
570 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 ...
2
votes
2answers
246 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} ...
3
votes
1answer
363 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 ...
1
vote
1answer
169 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
306 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.
9
votes
1answer
4k 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} ...
1
vote
1answer
3k 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 ...
8
votes
3answers
552 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 ...
7
votes
4answers
4k 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 ...
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: ...
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 ...
5
votes
1answer
382 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
2k 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} ...
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?
1
vote
2answers
745 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.
7
votes
2answers
961 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 ...
24
votes
1answer
12k 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 ...