What are their uses and are they even standard?
[Tex/LaTex] What do the pieces of LaTeX, \left and \right, respectively mean
delimitersmath-mode
Related Solutions
Apparently unicode-math doesn't assign a delimiter code to 〈
and 〉
(it should, in my opinion). Add the following magic code after having loaded unicode-math
\XeTeXdelcodenum`〈=\XeTeXdelcodenum`<
\XeTeXdelcodenum`〉=\XeTeXdelcodenum`>
Now \left〈
and \right〉
will work.
One has to pay attention to the characters used. For example the following are different:
‹〈
› 〉
In the first line we have U+2039 (SINGLE LEFT-POINTING ANGLE QUOTATION MARK) and U+3008 (LEFT ANGLE BRACKET); in the second line there are U+203A (SINGLE RIGHT-POINTING ANGLE QUOTATION MARK) and U+3009 (RIGHT ANGLE BRACKET). Only U+3008 and U+3009.
In your example you are confusing the two. However it's possible to use also U+2039 and U+203A for the angle brackets:
\documentclass{book}
\usepackage{amsmath}
\usepackage{unicode-math}
\unimathsetup{math-style=ISO}
\setmathfont{lmmath-regular.otf}
\XeTeXmathcodenum`‹=\XeTeXmathcodenum`〈 % make U+2039 the same as U+3008
\XeTeXmathcodenum`›=\XeTeXmathcodenum`〉 % make U+203A the same as U+3009
\XeTeXdelcodenum`〈=\XeTeXdelcodenum`< % use U+3008 after \left or \right
\XeTeXdelcodenum`〉=\XeTeXdelcodenum`> % use U+3009 after \left or \right
\XeTeXdelcodenum`‹=\XeTeXdelcodenum`< % use U+2039 after \left or \right
\XeTeXdelcodenum`›=\XeTeXdelcodenum`> % use U+203A after \left or \right
\begin{document}
bla bla bla bla
blabla blaaa
\begin{gather}
\left〈\dfrac{\frac{x+2}{y}+\frac{3}{4}}{x^2+y^2-5} \right 〉\\
\left‹\dfrac{\frac{x+2}{y}+\frac{3}{4}}{x^2+y^2-5} \right ›\\
\left\langle \dfrac{\frac{x+2}{y}+\frac{3}{4}}{x^2+y^2-5}\right\rangle\\
\left< \dfrac{\frac{x+2}{y}+\frac{3}{4}}{x^2+y^2-5}\right>\\
〈a〉\\
‹a›
\end{gather}
bla bla bla bla $< 〈 ‹$
\end{document}
I suggest pursuing a less-than-fully-automatic approach to sizing the outer curly braces. In the code below the default size of the outer curly braces is \big
, but this may be changed by specifying an optional sizing-related parameter, which may take on values Bigg
, bigg
, Big
(and, of course, big
). I favor a minimum size of big
(rather than normalsize) as IMNSHO, the curly braces simply need to "look" a bit more prominent.
In the following screenshot, the curly braces in the first example are of size \big
(the default); they are of size \bigg
in the second, where \displaystyle
is in effect for the second row.
\documentclass{article}
\usepackage{mathtools} % for '\DeclarePairedDelimiter' macro
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert} % "absolute value" macro
\newcommand\Setst[3][big]{\csname #1l\endcsname\{ #2 :
\begin{array}[t]{@{}l@{}}#3\csname #1r\endcsname \}\end{array}}
\begin{document}
\[
\Setst{f}{\text{$f(t)>0$ for all $t$ with $0<t<1$}\\
\text{and }\abs[\big]{\int_0^1 e^{-\frac{1}{2}t^2}\!f(t)\,dt}\leq1}
\]
\[ % use \displaystyle directive in second row; hence, use "bigg" curly braces
\Setst[bigg]{f}{\text{$f(t)>0$ for all $t$ with $0<t<1$}\\
\displaystyle \text{and }\abs[\bigg]{\int_0^1 e^{-\frac{1}{2}t^2}\!f(t)\,dt}\leq1}
\]
\end{document}
Best Answer
\left
and\right
are used for delimiters when they have to change the size dynamically depending on the content. Consider the following example:In this particular case, the
(\sqrt{2}+\sqrt{3})
with\left
and\right
gives bit bigger parenthesis making it to look ugly (to some extent) as noted by Enrico. In such cases, proper variant of delimiters (\bigl
and\bigr
in this case) may be used to get the appropriate height.For more details, refer to amsmath documentation - page 15, section 4.14 (
texdoc amsldoc
from command prompt). Here is a screen shot of the same: