Math & ScienceHorizontal square bracket

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Horizontal square bracket

Post by super_baros »

Hi all,

Sorry if this is a rather simple question, but I can't seem to find it on google anywhere.

I know about the \overbrace and \overline commands but instead of a brace or a line, I want a 'horizontal square bracket' instead. Is there any way to do this? :D

Many Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Horizontal square bracket

Post by localghost »

Use the mathtools package from the mh bundle.


Best regards and welcome to the board
Thorsten
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Re: Horizontal square bracket

Post by super_baros »

Thank you Thorsten! That worked brilliantly! :D

I have another question... :)

Is there anyway to modify the integral sign in a definite integral?
What I want is
b
[
a
so essentially if I wrote the "definite integral from a to b", I want to replace the integral sign by a square bracket or round bracket.

Many Thanks yet again!
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Horizontal square bracket

Post by frabjous »

With the amsmath packages, you can define anything to appear like a "large operator", so that superscripts are written on top, and subscripts below, using the \mathop{...} command. Consider, e.g.:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\mathop{\Bigg[}_a^b 
\]
\end{document}
(Use a different size command than \Bigg if need be.)

If it were me I'd define a new command for using this, but I suppose if you wanted to replace the integral sign, you could use

\renewcommand{\int}{\mathop{\Bigg[}}
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Re: Horizontal square bracket

Post by super_baros »

That's exactly what I wanted!... This forum is great! :D... Thanks!

Is there any way to make the a and b larger?...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Horizontal square bracket

Post by localghost »

super_baros wrote:[...]
Is there anyway to modify the integral sign in a definite integral?
What I want is
b
[
a
so essentially if I wrote the "definite integral from a to b", I want to replace the integral sign by a square bracket or round bracket. [...]
I never came across this notation. Perhaps you can direct me to a source with public access to see that. The common way to express a definite integral is to use the usual sign with its two limits [1]. But I know another notation.

Code: Select all

\int_a^b f(x)\,dx=F(b)-F(a)=[F(x)]_a^b
Perhaps you know this, too. It's the only alternative I'm familiar with.

[1] Integral - Wikipedia, the free encyclopedia
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Re: Horizontal square bracket

Post by super_baros »

Oh, it's not related to the integral. I'm looking at the Malcev conditions for embeddabilty and this notation is just a shorthand for me to express parts of the method.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Horizontal square bracket

Post by localghost »

Ah, I see. But next time you better open a new thread instead of mixing topics in an existing one.
Post Reply