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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
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 2777 times
Stefan
LaTeX.org admin
Post Reply