Math & Scienceincorrect size of parentheses in pmatrix environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
stpasha
Posts: 2
Joined: Mon Jan 10, 2011 1:20 am

incorrect size of parentheses in pmatrix environment

Post by stpasha »

I need to set the double inter-line spacing in the entire documents, so I just set the \baselinestretch variable appropriately. However this command seems to interfere with the *matrix environments: the braces surrounding the matrices become too large, with some extraneous spacing at the top and at the bottom. Does anybody have any suggestions how to fix this behavior? Ideally, I'd like the *matrix environment behave as if the \baselinestretch was 1.0-1.2.

Code: Select all

\documentclass{article}
\renewcommand{\baselinestretch}{1.5}
\usepackage{amsmath}
\begin{document}
  \[
  \begin{pmatrix} z \\ \bar{z} \end{pmatrix}
  \]
\end{document}
Last edited by stpasha on Mon Jan 10, 2011 11:11 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

incorrect size of parentheses in pmatrix environment

Post by localghost »

Read Section 1.4 (Changing inter-line space using \baselinestretch, p. 5) of the l2tabu document to learn why not to redefine this length. Use one of the introduced alternatives instead.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[onehalfspacing]{setspace}
\usepackage{amsmath}
\usepackage{blindtext}

\begin{document}
  \blindtext
  \[
    \begin{pmatrix}
      z \\
      \bar{z}
    \end{pmatrix}
  \]
\end{document}
The blindtext package is only for creating dummy text thus not part of the solution.


Best regards and welcome to the board
Thorsten
stpasha
Posts: 2
Joined: Mon Jan 10, 2011 1:20 am

Re: incorrect size of parentheses in pmatrix environment

Post by stpasha »

Thanks --- the {setspace} package helped.
Post Reply