8
votes
3answers
214 views

Inline math or \textit for author defined math constants?

Wondering if people here have a thought on what the best practice is here (if it matters). I used to use baskerville (well, the baskervald package) as my main font and charter as my math font (since ...
6
votes
1answer
155 views

How to format mathematical and programming variables in text?

I am describing an algorithm in a journal paper. In this algorithm I have a few variables. I gave them the same names as in my source code (C++ source of the algorithm, not LaTeX source). So I have ...
6
votes
1answer
107 views

Math mode horizontal space difference between \ (backslash) and \; (backslash semicolon) and what to use for multiplication

In this code: \documentclass{article} \begin{document} \begin{equation} c = a b \end{equation} \end{document} I would like to insert a space between 'a' and 'b' (as opposed to \cdot or \times). ...
18
votes
4answers
560 views

Is there any difference between quad in math mode and text mode?

Is there any difference between $a \text{\quad text\quad} b$ and $a \quad \text{text} \quad b$? I cannot see the difference as shown in the following figure. If there is no difference, which one ...
4
votes
1answer
151 views

Is there another style to make an \underbrace in big braces look elegant?

I don't think the following equation looks good because of the existence of the \underbrace. \documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath} \begin{document} \[ ...
12
votes
4answers
385 views

How to properly typeset multiletter quantities, e.g. Re or Nu (Reynolds, Nusselt numbers)

Is there a canonical way to typeset such quantities in equations and inline math? \documentclass{article} \begin{document} $Re$, $Nu$ are clearly not an option. $\mathit{Re}$, $\mathit{Nu}$ appear ok ...
4
votes
1answer
158 views

What are the generally accepted guidelines for adjusting \linespread to avoid extra spreading from inline math?

General Background I am just starting to think about typesetting and LaTeX in anything close to a serious manner, and am getting lots of questions that perhaps are appropriate for this site, but ...
6
votes
2answers
245 views

Using a negative space \! to differentiate between functions and products

In Physics, I often have functions like f(x), but also multiplications like y(-x). I would like my math to be easy to understand, so I am looking for a way to suggest function calls and ...
2
votes
1answer
284 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 ...
15
votes
4answers
793 views

Good typesetting practice for long equations

I have the following (quite horrible) equation in my thesis: \begin{align*} \frac{\partial^2}{\partial t_1^2} f(t_0,t_1) = ( \delta+2t_0+2t_1)^{\alpha( w-t_0+t_1 )-1} \cdot \bigl( ...
45
votes
1answer
442 views

Is it always best practice to not include text punctuation in inline math mode?

It has been pointed out on this site, e.g. here by egreg, that text punctuation doesn't belong to the formula in inline math. I've been following this practice for a long time, so I write for all ...
7
votes
1answer
403 views

When should we use \DeclareMathSizes, \xxxstyle and font size changing macros (\tiny, \small, etc)?

Could you give me a complete overview when we should use \DeclareMathSizes, \xxxstyle (such as \scriptstyle, etc), and font size changing macros (\tiny, \small, etc)? I want this answer to be CW so ...
16
votes
1answer
472 views

Which command should I use for textual subscripts in math mode?

Textual subscripts like in W_{total} should be typeset in an upright text font (so that code isn't good practice), as has been discussed in various questions here. Now there are several ways to ...
40
votes
1answer
2k views

What is the advantage of using $f^\prime$ instead of $f'$?

Although the two outputs look quite similar, what is the advantage of using $f^\prime$ instead of $f'$? By the way, here is my code: \documentclass‎{article‎}‎ \begin{document}‎‎‎ \[‎ ‎f^‎\prime ...
35
votes
6answers
3k views

Writing readable LaTeX

Lets say I have the following LaTeX code \subsection{Convex sets} A set \( \mathcal{S} \) in \( \mathbb{R}^n \) is said to be convex if \[ \mathbf{x}_1, \mathbf{x}_2 \in \mathcal{S} \implies \lambda ...
3
votes
1answer
588 views

Tag placement in split equation within alignment block

Whenever I have an equation that does not fit on a single line, I am using \begin{equation}\begin{split}...\end{split}\end{equation} as recommended in the AMS math guide. This gives me an equation ...
0
votes
1answer
1k views

How should I write arctanh? [duplicate]

Possible Duplicate: Define additional math operators to be typeset in roman If I want to use the function sin in LaTeX, I write $\sin x$ or $\sin(x+1)$. If I want to use the function ...
10
votes
1answer
739 views

What is the best practice for typesetting set-builder notation with a large number of membership criteria?

That is, I have something akin to the following right now: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} We must have $(a^i,b^i,c^i) \in X^i(d) = \bigg\{(a,b,c) ...
9
votes
1answer
448 views

Alternative ways to format the cases environment in display math-mode

The cases environment of amsmath package is useful for defining a function that takes different values in different regions. For example: \documentclass{article} \usepackage{amsmath} \begin{document} ...
31
votes
4answers
4k views

Should I \mathrm the d in my integrals?

When writing an integral, it seems like something should be done to separate the "d", as in \int f(x) dx, so as not to confuse it with a variable. I've seen it left as-is, bolded, and straightened. ...
25
votes
5answers
8k views

How to best typeset “special” constants (complex unit i, Euler's number e,…)?

I'm trying to come up with a typographically appealing way to express "special" numbers such as the complex unit i = sqrt(-1) or Euler's number e. It has to be such that it cannot be confused with ...
9
votes
1answer
175 views

Best and recommended way to write prime on i in $i^{th}$

I have two $i^{th}$ and $i^{\prime th}$ and it is hard to see prime in $i^{\prime th}$. I would like to know the opinion of expert LaTeX users about this. I wonder what is the best and recommend way ...
16
votes
1answer
773 views

Vertical position of punctuation following fractions in display-style equations

Assuming that one wants punctuation in equations, what is the best way to adjusting the vertical position of the punctuation if it follows a fraction? I am using Palatino and Euler here (which I ...
9
votes
5answers
1k views

How do I get function argument parenthesis to position correctly?

I'm having trouble with the appearance of parentheses representing function arguments. They appear to far away from the function name. For example the code ...
16
votes
1answer
7k views

typesetting modulus operator, as in remainder

Is there a standard way to typeset the modulus operator (as in arithmetic remainder)? The percent sign (%) is often used by programming languages and mathematicians tend to use mod, but because of the ...
27
votes
4answers
2k views

When to use math mode?

In my document, the numbers inside math mode appear differently than those numbers out. Sometimes, I have numbers like "10 squared" within a paragraph, so it seems useful to use $10^2$. However, maybe ...
48
votes
4answers
10k views

When not to use \ensuremath for math macro?

I have gotten into the habit of using \ensuremath around math components in every macro that I define, so that I can use the same macro inside and outside of math mode. But egreg's comments in ...
3
votes
1answer
7k views

Best way to typeset the identity operator, or unit? [duplicate]

Possible Duplicate: Blackboard bold characters I have seen the unit (or identity operator) typeset via \newcommand{\unit}{1\!\!1} Is this really the best way to get a double-stroke 1? ...
10
votes
3answers
2k views

Using ] and [ as math symbols, not delimiters

I'm writing some topology up, and I prefer to use the notation ]a,b[ to denote an open interval as opposed to (a,b), since the ( and ) symbols tend to be over used in this subject. Is there a ...
8
votes
4answers
1k views

Can my LaTeX (maths) code be improved?

I feel that my code isn't written very efficiently. \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usepackage{wasysym} ...
53
votes
4answers
40k views

“(” or “\left(” parentheses?

What is the difference between ( and \left( in LaTeX? Sometimes, when the content is small, it does not seem to matter which pair I use. What is the best practice when it comes to which parentheses ...
141
votes
8answers
6k views

Are \( and \) preferable to dollar signs for math mode?

Along the lines of Why is \[ ... \] preferable to $$?, what reasons are there (if any) to favor \( ... \) over $ ... $?