Math & ScienceFraction without Bar

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
andremelzi
Posts: 4
Joined: Wed Aug 24, 2011 7:59 pm

Fraction without Bar

Post by andremelzi »

Hi. How can I write a fraction without the bar? Like this:
helmholtz.png
helmholtz.png (3.99 KiB) Viewed 26107 times
Thanks!
Last edited by andremelzi on Wed Aug 24, 2011 9:37 pm, edited 2 times in total.

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Fraction without Bar

Post by localghost »

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

\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

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
andremelzi
Posts: 4
Joined: Wed Aug 24, 2011 7:59 pm

Re: Fraction without Bar

Post by andremelzi »

Thank you!
Best regards,

André
Post Reply