I'm writing the next formula:
Code: Select all
\[ \left\{ \left[ \frac{ab}{b} \right] , \left[ \frac{aa}{a} \right] \right\} \]
How can I make the second pair of brackets be as high as the first pair?
Thank you very much!
Code: Select all
\[ \left\{ \left[ \frac{ab}{b} \right] , \left[ \frac{aa}{a} \right] \right\} \]
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass[11pt,a4paper]{article}
\begin{document}
\[ \left\{ \left[ \frac{ab}{b} \right] , \left[ \frac{aa}{a} \right] \right\} \]
\end{document}
Code: Select all
\[
\left\{\left[\frac{ab}{b}\right] ,\left[\frac{aa\vphantom{b}}{a\vphantom{b}}\right]\right\}
\]
\[
\left\{\left[\frac{\smash{ab}}{\smash{b}}\right] ,\left[\frac{aa}{a}\right]\right\}
\]
Here's an example where it's not working.php1ic wrote:[...] This produces equal size brackets for me. [...]
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\begin{document}
\[
\left\{\left[\frac{ab}{b}\right],\left[\frac{aa}{a}\right]\right\}
\]
\end{document}
Very interesting. I've done a bit of research, but was unable to find out why this happens. Initializing the math fonts before loading amsmath prevents this, but I'm not sure what exactly happens here.localghost wrote: Here's an example where it's not working.Code: Select all
\documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} \begin{document} \[ \left\{\left[\frac{ab}{b}\right],\left[\frac{aa}{a}\right]\right\} \] \end{document}
Code: Select all
\documentclass[11pt]{article}
\makeatletter
\csname S@10.95\endcsname
% {\escapechar\m@ne\mv@normal}% Uncomment this line
\makeatother
\usepackage{amsmath}
\begin{document}
$\displaystyle\left[\frac ba\right]\left[\frac aa\right]$
\end{document}
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\begin{document}
\[\delimiterfactor=1020
\left\{\left[\frac{ab}{b}\right],\left[\frac{aa}{a}\right]\right\}
\]
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis