Featured Book

LaTeX Beginners Guide

Who is online

In total there are 11 users online :: 0 registered, 0 hidden and 11 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 11 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Fraction without Bar Topic is solved

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

Fraction without Bar

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 3604 times


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

Re: Fraction without Bar  Topic is solved

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 writeLaTeX
\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 writeLaTeX
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: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: Fraction without Bar

Postby andremelzi on Wed Aug 24th, 2011

Thank you!
Best regards,

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


Return to Math & Science

Who is online

Users browsing this forum: No registered users and 11 guests