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} \\ & […]

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 […]

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 […]

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} […]

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} […]

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 […]

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 […]

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 […]

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 […]

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 […]

Intereting Posts

Declaring layers causes tikzpicture to disappear
Introducing LaTeX
Empty set symbols confused
Refer to the current page number, but not \thepage, but the real absolute
Is there an easy way to hide comma (,) from the end of the indexed words?
How can I have a subpicture in a tikzpicture?
How to start new chapters on the right hand side
Alternate text style for odd and even line
Writing specific versions of an operator for display and inline modes
Is it necessary to escape underscores in \href with dollar signs or \?
typographically is ragged-right better than fully-justified text?
How do I write $\notin$ backwards?
Equivalent to graphicx draft/demo option for tables
Can we extract the points making the character from the font file?
The badness value is always 10000