SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-09-05 23:02:56

coffeeandmeat
Member
Registered: 2011-08-21
Posts: 21

Horizontal Equation Bars in Latex (now with 25% less plastic!)

Hi!

Who out there knows how to make a horizontal bar in the align environment? I have tried \rule and \hline but they look just awful. I need the pretty, math textbook style (without the full space before the bar):

                                                                        1
                                                                      - 1
                                                                      -----
                                                                        0

Please and thank you.
Coffeeandmeat

Offline

Be excellent to each other!

#2 2011-09-06 08:52:53

luc
#! Die Hard
From: Munich, Germany
Registered: 2010-03-21
Posts: 597

Re: Horizontal Equation Bars in Latex (now with 25% less plastic!)

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
1\\
-1\\[-7pt]
\cline{1-1}
0
\end{align}
\end{document}

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo