Math & ScienceParenthesis

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
pjsantib
Posts: 3
Joined: Sun Mar 11, 2012 6:37 am

Parenthesis

Post by pjsantib »

Hi. I need write a big parenthesis when I evaluate a function. I'm using \left( and \right), but the result is wear.

$P\left( 1 + \dfrac{1}{2+\dfrac{1}{3+\dfrac{1}{ \begin{array}{c}{\ddots} \\ n-2 + \dfrac{1}{ n-1 + \dfrac{1}{n}} \end{array} }}}\right)$

How I can reduce the space in the top of the parenthesis?

Beforehand, thank you.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Parenthesis

Post by Stefan Kottwitz »

You could use \vcenter with \hbox, take care of the inner $...$:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$P\left(\vcenter{\hbox{$ 1 + \dfrac{1}{2+\dfrac{1}{3+\dfrac{1}{
\begin{array}{c}{\ddots} \\ n-2 + \dfrac{1}{ n-1 + \dfrac{1}{n}}
\end{array} }}}$}}\right)$
\end{document}
matrix.png
matrix.png (4.51 KiB) Viewed 2736 times
Stefan
LaTeX.org admin
Post Reply