Articles of math mode

How to properly write long logical formulas?

I need to write many mathematical statements written as first order logical formulas. Usually I can’t have them on a single line because they tend to be too long. The following one is an example of what I managed to accomplish: \begin{gather} \begin{split} & \forall G\left(\phi_1\leftrightarrow\phi_2\right) \\ & \qquad G\text{ is a group} \\ & […]

Mismatching symbol size in cases environment with acronym package

I’m running into trouble using the acronym package when I set math formulas in the cases environment. Looking at the following MWE, you will notice that inside the arccot “gamma” and “p” are smaller than the clickable “a” and “y” whereas outside, y and gamma are sized correctly. I’ve traced the problem down to the […]

Proper way to use greek letters in an English document

I typically use LaTeX to write chemistry & physics documents with a lot of equations. I often will reference terms and variables and such in the text of my document. Typically I just do this by writing $\gamma$, but someone just pointed out to me that this prevents such characters from being copied out of […]

Passing an argument with the alignment operator (&) to a macro within another aligned environment

I am trying to write macros for quickly formatting matrices in math mode. Here is a simple, working example: \documentclass{article} \usepackage{amsmath} \newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}} \begin{document} \begin{displaymath} M = \pmat{1&0\\0&1} \end{displaymath} \end{document} This also works if used within an aligned environment (a table, align environment, cases environment, etc.): \documentclass{article} \usepackage{amsmath} \newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}} \begin{document} \begin{align} M &= \pmat{1&0\\0&1} \end{align} \end{document} […]

Using Cambria Math in XeLaTeX

Take a look at the following images, XeLaTeX typeset formula: Word generated formula: Note specifically the difference of the \hat implementations at g_i and g_i^2 in XeLaTeX. In Word the two implementations are the same. Also note that the hats in XeLaTeX are both larger than Word’s. A minimum working example is the following: \documentclass{book} […]

typesetting according to the German traditions/standards for mathematical content

There are German standards documents for typesetting of math and science. As far as I can tell, of particular interest are DIN 1304 (symbols in formulas) and especially DIN 1338 (typesetting of formulas). As there are packages for citing according to German citation rules (DIN 1505), namely din1505 and dinat, I was wondering whether there […]

How can I strikethrough a character in an equation?

I’m trying to create an equation where the letter “I” has a horizontal line through it. The only name I know for this action is “strikethrough” but I’m not sure if this would be correct when dealing with equations specifically; I don’t want the line to be too long. I’ve tried the ulem, soul, sout […]

Comma not working inside \bm when using babel

When I try to compile this simple document \documentclass{article} \usepackage[italian]{babel} \usepackage{bm} \begin{document} $\bm{,}$ \end{document} I receive the following complaint: ! Undefined control sequence. \it@comma@def ->\futurelet \let@token \@@math@comma l.7 $\bm{,} $ and a strange number (25915) is printed on the resulting pdf instead of the comma. Something odd is going on with the babel package, because […]

Is it OK to use a macro for an operator, or a macro defined by `\DeclareMathOperator`, as a non-operator?

Macros like \det, I believe, is intended to be used before some expression, but sometimes I wish to use them as in \det \in \mathbf{VP}. Is it acceptable to use them like this instead of using \mathrm? Likewise, I sometimes define a macro \perm by \DeclareMathOperator and use it as in \perm \in \mathbf{VNP}. Is […]

Is there a \bigcdot symbol in LaTeX

In my diploma thesis I need to LaTeX a concatenation over a set of sets. I use the \cdot symbol for concatenation of two sets as in A \cdot B. (Please correct me if this is a wrong symbol for concatenation). I would need to type a concatenation over a set of sets, using a […]