LaTeX forum ⇒ Text FormattingUsing nath package and \Brack command gives error Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Using nath package and \Brack command gives error

Postby juliette » Sat Jan 23, 2010 3:39 pm

Has anyone used the package \usepackage{nath}?

I tried using this package only for the \Brack command,
without even using that command,

If I add \usepackage{nath} to the preamble of a document with absolutely no errors, I end up getting thousands of compile-time errors ... and I have no clue why.

I'm using revtex4 and TeXnicCenter..

Any help, suggestions or discussions are greatly appreciated

Tags:

juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Postby juliette » Sat Jan 23, 2010 3:57 pm

In fact, just this:
  1. \documentclass{article}
  2. \usepackage{nath}
  3. \begin{document}
  4. a
  5. \end{document}


works,

but if I add

  1. \usepackage{graphicx}


I get a thousand error messages.

I'm not sure what the problem is here.

If I can't get the nath package working, does anyone know an alternative way to get the symbol \triple[ ??

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Postby phi » Sat Jan 23, 2010 4:41 pm

You must load the nath package after the graphicx package. However, keep in mind that the nath package completely changes everything related to mathematics, so you should never include it in a document that already contains some text.
For double brackets similar to those provided by the nath package (which depend on the heavy infrastructure of the nath package and are thus hard to isolate), see the stmaryrd package.

juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Postby juliette » Sat Jan 23, 2010 6:30 pm

Thank you phi,

is it not possible for me to use the nath package for just some equations and not for others ??

The stmaryrd package looks like it only has double brackets, but doesn't have the triple brackets that I want from nath.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Postby phi » Sat Jan 23, 2010 6:58 pm

juliette wrote:is it not possible for me to use the nath package for just some equations and not for others ??

No, that's impossible. As I said before, the nath package overwrites nearly all of LaTeX's math functionality. Once you've loaded it, you cannot revert to "normal" mathematics.

The stmaryrd package looks like it only has double brackets, but doesn't have the triple brackets that I want from nath.

You can try to fake the brackets (nath does something similar, but more sophisticated):
  1. \documentclass{article}
  2.  
  3. \newcommand*{\ltbrack}{\left[\mkern-6mu\left[\mkern-6mu\left[}
  4. \newcommand*{\rtbrack}{\right]\mkern-6mu\right]\mkern-6mu\right]}
  5.  
  6. \begin{document}
  7.  
  8. \[ \ltbrack \frac12 \rtbrack \]
  9.  
  10. \end{document}

juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Postby juliette » Wed Jan 27, 2010 5:42 pm

That alternative is pretty good!

Thanks phi!


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 2 guests