43
I think that there are two most sensible options:
increase the first space and make it symmetric: $\langle\,,\rangle$
put \cdots in place of the arguments: $\langle\cdot,\cdot\rangle$ (this is what I prefer).
Typeset versions:
In the second one, if you don't like the space after the comma: $\langle\cdot{,}\cdot\rangle$
34
In the past few days, I have been caught by a sudden passion for virtual fonts, and I feel that, without mention of a solution that employs them, the discussion on this question is somewhat incomplete. After all, this is almost surely what Hagen von Eitzen had originally in mind (see other answers). Of course, the solutions that have already been presented ...
33
You mean \frac{d}{dx}\Bigr|_{\substack{x=1\\y=2}} from the package \usepackage{amsmath} ?
32
As has already been pointed out in the other answers, using l ("ell") immediately following \Bigg, \bigg, \Big, and \Big informs TeX that the subsequent "fence symbol" -- (, [, \{, etc -- is to be given math-class "Math Open" rather than "Math Ordinary".
The consequences of this difference in the math class status of the fence symbol ("Open" vs "Ordinary) ...
32
I assume you're familiar with the most common use case for \left and \right, which is to provide automatic sizing of visual delimiters or "fences" -- round parentheses, square brackets, curly braces, angle-brackets, vertical bars, etc -- so that the "fences" may visually enclose the material they surround. Example:
\[ \left( \frac{a}{b} \right) \]
Well, ...
31
You should use \bigm| to make a relation symbol, so that the three consecutive bars are distinguishable from each other. If you want to make them slightly bigger, here's a way:
\documentclass{article}
\usepackage{amssymb}
\newcommand{\divides}{\bigm|}
\newcommand{\ndivides}{%
\mathrel{\mkern.5mu % small adjustment
% superimpose \nmid to \big|
\...
answered May 31 '13 at 17:09
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
26
\documentclass{amsart}
\usepackage[charter]{mathdesign}
\delimitershortfall=10pt
\delimiterfactor=750
\begin{document}
It would be nice if these were the same size:
\[ \left|x\right| \quad \left|y\right| \]
It would be even better if
\[\left|x^{2^3}\right| \quad \text{ looked like } \quad \bigl| x^{2^3}\bigr|\]
\end{document}
answered Mar 12 '13 at 18:37
David Carlisle
589k5151 gold badges13361336 silver badges21252125 bronze badges
24
The end-of-line character is not available to be used in the main input stream, under the standard setting which is
\endlinechar=`\^^M
\catcode`\^^M=5
(see The ^^ notation in various engines for information about the ^^ notation).
When TeX sees a character with category code 5, it immediately converts it either to a space or to a \par token if another ...
answered Jul 26 '13 at 13:55
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
22
"As result of the newsgroup thread", which was mentioned in Mateus Araújo' answer, Heiko Oberdiek wrote the mleftright package. "It also adds some error checks (group nesting levels)." (both cited from Heiko's comment to Mateus Araújo' answer)
\mleft and \mright from that package can be used instead of \left and \right and do not insert additional ...
22
The commands \bigl\vert, \bigm\vert, and \bigr\vert are semantically symmetric. Incidentally, the triplets of commands \bigl\lvert \bigl\vert \big\lvert and \bigr\rvert \bigr\vert \big\rvert, respectively, produce the same output.
It's the command \mid that's a bit of an outlier, semantically speaking. As @egreg has noted in a comment, \mid is constructed as ...
19
The simplest way is
\newcommand{\redub}{} % make sure it's definable
\def\redub#1_#2{%
\colorlet{currentcolor}{.}%
\color{red}%
\underbrace{\color{currentcolor}#1}_{\color{red}#2}%
\color{currentcolor}%
}
using lower level features.
You might want to add a check for a missing _:
\makeatletter
\newcommand{\redub}{} % make sure it's ...
answered Mar 20 '13 at 0:04
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
19
Scott Pakin's Comprehensive LaTeX Symbol List identifies the structure of extensible delimiters in section 8.2 Resizing symbols (p 100-102):
All variable-sized delimiters are defined (by the corresponding .tfm file) in terms of up to five segments, as illustrated by Figure 1 on page 102. The top, middle, and bottom segments are of a fixed size. The top-...
18
OK, you really want to know how to create your own tfm file with new extensible symbols? Then here are some explanations. I only give some toy example, working with the standard Computer Modern fonts. Here's the output I can produce; I don't claim that it's nice or useful:
Here's the LaTeX code:
\documentclass[12pt]{article}
\usepackage{amsmath}
\...
answered May 1 '13 at 18:00
Hendrik Vogt
34.6k66 gold badges118118 silver badges204204 bronze badges
18
This is a problem in how lmodern sets up the math extensions font, by saying
\DeclareFontShape{OMX}{lmex}{m}{n}{%
<->sfixed*lmex10%
}{}
which is utterly wrong, in my opinion, because it destroys the settings made by amsmath which would solve the problem. The fonts, unfortunately, do not provide for optical sizes different from 10pt, so you have ...
answered Oct 9 '13 at 15:07
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
18
For historical reasons a fixed size is used for the scalable delimiters, even for cm that's not clearly a good idea (see exscale package), but here it's not good at all, if you use the font at its natural scaled size then....
\documentclass[12pt]{article}
\DeclareFontFamily{OMX}{lmex}{}
\DeclareFontShape{OMX}{lmex}{m}{n}{%
<->lmex10%
}{}
\...
answered Nov 15 '16 at 13:18
David Carlisle
589k5151 gold badges13361336 silver badges21252125 bronze badges
17
This is the expected behavior, as the braces are placed symmetrically with respect to the formula axis (running at the vertical center of the summation sign).
Use \Bigl\{ and \Bigr\} or, if too small, \biggl\{ and \biggr\} instead of \left\{ and \right\}:
\documentclass{article}
\begin{document}
\[
\mathcal{F}\Bigl\{\sum_{j}e^{-2i\pi\nu_j t}\Bigr\}
\]
\[
\...
answered Jul 13 '13 at 18:24
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
17
It occured to me, yesterday, that there does exist (at least) one font which includes glyphs for building a truly extensible integral sign: it is the PostScript Symbol font (psyr), which has such glyphs in positions 243 (octal '363, hexadecimal "F3), 244 (octal '364, hexadecimal "F4) and 245 (octal '365, hexadecimal "F5). Thus an approach along these lines ...
17
Since \big is the minimum requested size anyway, it's better to use a simpler approach:
\documentclass{article}
\usepackage{amsmath,mleftright}
\usepackage{xparse}
\NewDocumentCommand{\evalat}{sO{\big}mm}{%
\IfBooleanTF{#1}
{\mleft. #3 \mright|_{#4}}
{#3#2|_{#4}}%
}
\begin{document}
\begin{align}
& \evalat{f(x)}{x=0} \\
& \evalat[\big]{f(...
answered Feb 17 '16 at 23:23
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
16
The package mathtools already provides the necessary features; you just have to add the possibility of using numbers instead of the commands \big and siblings.
\documentclass{article}
\usepackage{mathtools}
\DeclarePairedDelimiterX{\innset}[2]{\lbrace}{\rbrace}{%
#1\;\delimsize\vert\;#2}
\newcommand{\set}[3][0]{%
\ifcase#1\relax
\innset{#2}{#3}\or ...
answered Mar 17 '13 at 13:47
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
16
Here are some possible choices
\documentclass{article}
\usepackage{mleftright}
\begin{document}
\[
L = \sup \mleft\{\, \sum_{x \in F} a(x) \;\middle|\; F \subset X,\, |F| < \infty \,\mright\},
\]
\[
L = \sup \biggl\{\, \sum_{x \in F} a(x) \mathrel{\bigg|} F \subset X,\, |F| < \infty \,\biggr\},
\]
\[
L = \sup \biggl\{\, \sum_{x \in F} a(x) \mathrel{\...
answered Apr 13 '13 at 10:29
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
16
The following example uses package zref to remember the size of the math formula in labels. Package mleftright is used to reduce the additional horizontal spacing by \left and \right.
Inside a complex math block, the following macros can be used:
\mzleft{<label>}{<left delimiter>}{<math formula>}
\mzright{<label>}{<math formula&...
answered Jul 15 '13 at 20:10
Heiko Oberdiek
249k2020 gold badges630630 silver badges989989 bronze badges
16
It's quite easy with LaTeX3 macros.
\documentclass{article}
\usepackage{xparse,amsmath}
\ExplSyntaxOn
\NewDocumentCommand{\matlabmatrix}{ O{b} m }
{
\strategy_matlabmatrix:nn { #1 } { #2 }
}
\seq_new:N \l_strategy_rows_seq
\seq_new:N \l_strategy_a_row_seq
\tl_new:N \l_strategy_matrix_tl
\cs_new_protected:Npn \strategy_matlabmatrix:nn #1 #2
{
\...
answered Aug 26 '13 at 15:18
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
16
This is a problem that shows up also in different situations. Consider
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\sqrt{\sin x}\sqrt{\cos x}
\]
\end{document}
gives
which is horrible.
If we correct the definitions performed in amsopn.sty in the following way,
\documentclass{article}
\usepackage{amsmath}
\protected\def\arccos{\...
answered May 2 '15 at 12:28
egreg
881k108108 gold badges22572257 silver badges36863686 bronze badges
16
\DeclarePairedDelimiter is a very specific command in the mathtools package for opening and closing delimiters (e.g. parentheses, brackets, braces) where you want the option to automatically resize them.
For example, it allows you to replace \lfloor...\rfloor with \floor{...} and \left\lfloor...\right\rfloor with \floor*{...}.
Other common examples are:
\...
15
This is a version of \big that's a bit smaller at 10pt size, but scales with em and with \scriptsize.
\documentclass{article}
%\def\big#1{{\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}}
%\def\bigl{\mathopen\big}
%\def\bigr{\mathclose\big}
\makeatletter
\def\myl{\mathopen\mybig}
\def\myr{\mathclose\mybig}
\def\mybigx#1{\dimen@#1\relax
\mathchoice
{\vbox ...
answered Dec 18 '12 at 9:31
David Carlisle
589k5151 gold badges13361336 silver badges21252125 bronze badges
15
Is this what you mean? If so, here are three possibilities:
\documentclass{article}
\usepackage{stackengine}
\begin{document}
\(
\left. {\frac{\partial x}{\partial t}}%
\right|_{%
\stackunder[1pt]{$\scriptscriptstyle t=0$}{$\scriptscriptstyle t=1$}}
\)
~~
\(
\left. {\frac{\partial x}{\partial t}}%
_{\stackunder[1pt]{}{}}%
\right|_{%
\stackon[1pt]{$\...
answered Jul 3 '13 at 20:36
Steven B. Segletes
195k1010 gold badges261261 silver badges506506 bronze badges
15
You cannot split \left...\right across alignment tabs. One solution is to use the \big-delimiters (which don't require pairwise usage):
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{align}
a \bigl( b &= c \biggr) \\
d \Bigl( e &= f \Biggr)
\end{align}
\end{document}
The above example is ...
answered Feb 12 '14 at 18:40
Werner
519k9797 gold badges12121212 silver badges20022002 bronze badges
14
OK, the short answer is in the comments; here is the looong one.
Please note: This answer applies to the original TeX by Knuth, to eTeX, and to pdfTeX. I don’t know how character input in math mode and math fonts are managed in other typesetting engines, e.g., in XeTeX. Moreover, in principle the inputenc package could interfere in the processes ...
14
Just use \left\{ and \right\} for the braces as well:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Original equation:
\begin{equation*}
\pi(X) = \mathbf{N}_4 \Bigg\{ \left(
\begin{matrix}
1 \\ 2 \\ 1 \\ 3
\end{matrix}
\right), \left(
\begin{matrix}
2 & 1 & 2 & 3 \\
1 & 2 & 1 & 3 \\
2 &...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
delimiters × 410math-mode × 119
brackets × 39
symbols × 30
amsmath × 29
macros × 28
spacing × 27
equations × 27
mathtools × 23
listings × 16
matrices × 16
tables × 12
biblatex × 11
errors × 11
unicode-math × 11
tikz-pgf × 10
tex-core × 10
xetex × 8
align × 8
arrays × 8
math-operators × 8
fonts × 7
luatex × 7
environments × 6
subscripts × 6