LaTeX users online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 6 guests

Fraction without Bar Topic is solved

LaTeX Forum: Math & Science

Add tags Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).

Postby andremelzi on Wed Aug 24th, 2011

Hi. How can I write a fraction without the bar? Like this:
helmholtz.png
helmholtz.png (3.99 KiB) Viewed 6982 times


Thanks!
Last edited by andremelzi on Wed Aug 24th, 2011, edited 2 times in total.
andremelzi
 
Posts: 4
Joined: Wed Aug 24th, 2011

Postby localghost on Wed Aug 24th, 2011

The amsmath package provides the \genfrac command which allows to create your own fractional structures. So you can build an own fraction very easy.
Code: Select all  •  Open in online LaTeX editor
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools
}   % loads »amsmath«

\newcommand*{\bfrac}[2]{\genfrac{\lbrace}{\rbrace}{0pt}{}{#1}{#2}}

\begin{document}
  \[
    \left(\nabla^2+n^2(x)\,k^2\right)\bfrac{E}{K}=0
  \
]
\end{document
}

The package manual has the details. For instant access open a command line.
Code: Select all  •  Open in online LaTeX editor
texdoc amsmath

Your example has probably been done with an array environment enclosed by curly braces. For more about math typesetting refer to the excellent »Math mode« document.


Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9218
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Postby andremelzi on Wed Aug 24th, 2011

Thank you!
Best regards,

André
andremelzi
 
Posts: 4
Joined: Wed Aug 24th, 2011


Return to Math & Science

LaTeX users online

Users browsing this forum: No registered users and 6 guests