Math & Sciencelength of value bars

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
michael_b
Posts: 15
Joined: Fri Nov 06, 2009 11:20 am

length of value bars

Post by michael_b »

Hi all!

Does anybody know how i can vary the value bar?

e.g. on the picture you can see the value bar includes the text "grenzwert a=0!". i only want the value bar to be as long as the fraction.

Image

my code looks like:

Code: Select all

\documentclass{article}
\usepackage[sumlimits,intlimits]{amsmath}
\begin{document}
\[\left|\frac{1}{n} - \underbrace{0}_{\text{Grenzwert }a=0!}\right| < \frac{1}{100} \hspace{5mm} \Leftrightarrow \hspace{5mm} n>100\]
\[\left|\frac{1}{n}\right| < 10^{-8} \hspace{5mm} \Leftrightarrow \hspace{5mm} n>10^8.\]
\end{document}

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
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

length of value bars

Post by gmedina »

Hi,

instead of the \left...\right construct you could use one of the commands \big, \Big, \bigg or \Bigg:

Code: Select all

\[\bigg|\frac{1}{n} - \underbrace{0}_{\text{Grenzwert }a=0!}\bigg| < \frac{1}{100} \hspace{5mm} \Leftrightarrow \hspace{5mm} n>100\]
1,1,2,3,5,8,13,21,34,55,89,144,233,...
michael_b
Posts: 15
Joined: Fri Nov 06, 2009 11:20 am

Re: length of value bars

Post by michael_b »

thanks
Post Reply