Linked Questions
102 questions linked to/from The mysteries of \mathpalette
6
votes
4
answers
474
views
Exempt portion of equation line from aligning?
I am using an array environment to get aligned portions of a series of equations to center (instead of left-justify), as shown below:
\usepackage{array,amsmath}
\[
\begin{array}{>{\displaystyle}c @...
9
votes
2
answers
213
views
Horizontal alignment of row vectors inside flalign and cases environments
I wrote this code
\begin{flalign*}
t\hphantom{^{\prime}}&=
\begin{cases}
\begin{pmatrix} 1 & 2 & ... & \frac{p}{2} & \frac{p}{2}+1 & ... & p \end{...
7
votes
2
answers
1k
views
Problem with \mathpalette and \mathchoice
When working on an additional answer to this question of mine, I stumbled across the following problem with \mathpalette. For simplicity I give an example where in practice it is ridiculous to use \...
5
votes
4
answers
302
views
How to create special math macros which preserve the current style?
The mathtools package provides a number of commands like \mathmbox which preserve the current math style. The process seems to involve a lot of \expandafters, \mathpalette and \m@th. The following ...
5
votes
2
answers
710
views
Minus-like sign with stuff on top
I want to create an operator that works like a minus sign (including the spacing), but has the characters res on top (in \textrm mode). The length of the minus sign should be adjusted to look like ...
4
votes
2
answers
963
views
How to place right brace next to table row
How do I put a right brace next to the table row as described by the picture?
Here is my MWE.
\documentclass[12pt]{article}
\usepackage{color, colortbl}
\begin{document}
\begin{tabular}{|l|l}
\hline
...
2
votes
1
answer
4k
views
Strike out an arrow with a small oblique segment like with \nrightarrow
I'm looking for a way to strike out an arrow in the same style (or idiscernible) as predefined struck arrows, with short, slightly-oblique segments, like for instance \nrightarrow. Using \not or \...
4
votes
2
answers
873
views
Using \newcommand to create a math symbol
I have seen some examples of using \newcommand to create a new math symbol, e.g.,
\newcommand\indep{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\...
4
votes
4
answers
975
views
Equal size underbraces at a lower position
I am writing a markdown document and I want to have underbraces of equal size under each term, like the one here:
I could only do it manually by adding a bunch of empty spaces (\ ) around the terms:
$...
3
votes
4
answers
330
views
How to right-align a line in align environment?
This LaTeX code
\begin{align*}
\int_{\R^n} (- \Delta)^s u \, \varphi &= \frac{1}{2} \int_{\R^n} (- \Delta)^s u(x) \, \varphi(x) \, dx
+ \frac{1}{2} \int_{\R^n} (- \Delta)^s u(z) \,...
4
votes
1
answer
2k
views
Hyphenation and words breaking not working
I have problem with words breaking. It's not working. I tried use \hyphenation{} but it's now working. There is no any errors. I tried use also \- in word that I want to break but it's not working too....
6
votes
2
answers
305
views
How can I align multiple times in the 'flalign' environment?
I am following the solution in How to additionally name equations in align environment? to name my own equations. I would now like to align them at the = sign and the text where, but I am not getting ...
6
votes
3
answers
284
views
Tabular like options in align environment
I am trying to display a table containing two columns.
The first displays an identifier and the second is an equation for that identifier.
The table would look like this (if equations were allowed in ...
5
votes
1
answer
521
views
How does one create a symbol that is an $\infty$, centred and superimposed on a $0$, with the appropriate width?
A MathStackExchange comment by pregunton pointed out a paper Brinsfield - The factoradic integers, and mentioned an unusual symbol used in Definition 19 on logical p. 29 (the 34th page of the document)...
4
votes
2
answers
826
views
Oriented harpoon equality
I would like to use a symbol that looks like an equality symbol, but with one arrow on one of the sides of the lines that indicates an orientation.
(for instance when manipulating possibly undefined ...