GeneralChange brackets or delimiter size within normal text

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
iperten
Posts: 40
Joined: Thu Jul 12, 2007 1:53 pm

Change brackets or delimiter size within normal text

Post by iperten »

In mathematical formulae, if you put the command \left in front of an opening delimiter or \right in front of a closing delimiter, TEX will automatically determine the correct size of the delimiter (usually brackets).

Is it possible to use the same commands in the body text, for example when one has to write something bigger than the normal letter, indise brackets?

Because I tried but I got some errors: I don't know if it's due to the wrong commands or to something.

Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change brackets or delimiter size within normal text

Post by localghost »

iperten wrote: […] Because I tried but I got some errors: I don't know if it's due to the wrong commands or to something. […]

Why don't you post the affected code? And maybe some error messages could explain what's going wrong. It would be better for a possible solution to have that code here.
iperten
Posts: 40
Joined: Thu Jul 12, 2007 1:53 pm

Change brackets or delimiter size within normal text

Post by iperten »

Sorry! :oops:

Anyway, this is what I'm writing:

Code: Select all

...where $\gamma$ denotes the specific weight $\left[$ N/$m^3$ $\right]$ and $\Delta$\emph{p} the pressure difference...
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This is what I get:

Code: Select all

Code, edit and compile here:
! Missing \right. inserted.
<inserted text>
\right .
l.1273 ...ma$ denotes the specific weight $\left[$
N/$m^3$ $\right]$ and $\...
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Extra \right.
l.1273 ...pecific weight $\left[$ N/$m^3$ $\right]
$ and $\Delta$\emph{p} th...
I'm ignoring a \right that had no matching \left.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Change brackets or delimiter size within normal text

Post by pumpkinegan »

Be careful how you create math environments in the body text (you had multiple $):

Code: Select all

where $\gamma$ denotes the specific weight $\left[ N/m^3 \right]$ and $\Delta p$ the pressure difference
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And if you want to keep the units (newton and meter) in roman, use the \text command from the amsmath package.

Code: Select all

where $\gamma$ denotes the specific weight $\left[ \text{N/m}^3 \right]$ and $\Delta p$ the pressure difference
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Also note that $\Delta p$ is more elegant than $\Delta$\emph{p}.

In this particular example the \left and \right have no effect. If you wanted to force bracket sizing, there are the commands \bigl, \Bigl, \biggl, and \Biggl (with corresponding \bigr, and so on), but I would very rarely recommend it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change brackets or delimiter size within normal text

Post by localghost »

You do make a fundamental mistake. You write the \leftsymbol command separately in mathmode. LaTeX expects always the \rightsymbol command in the same environment. I don't know where you got this kind of writing, but this is completely wrong. Don't interrupt the math environment. More details are given by pumpkinegan. For easier writing of units you can use the units or the siunits package.
iperten
Posts: 40
Joined: Thu Jul 12, 2007 1:53 pm

Re: Brackets size

Post by iperten »

Thank you!

Cheers!
Post Reply