Text FormattingAMS Book Conflict with \jot

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
PSNYLaTexUser
Posts: 4
Joined: Fri Dec 31, 2010 4:32 am

AMS Book Conflict with \jot

Post by PSNYLaTexUser »

I need some help with an odd problem. I want to control the spacing between lines in multi-line equations and extensive research finally uncovered the command \setlength{\jot}{12pt}. This works perfectly, as shown below in the following test:

Code: Select all

\documentclass{book}
\usepackage{amsmath}
\setlength{\jot}{20pt}
\begin{document}
\begin{align*}
x &= 1 \\
y &= 2
\end{align*}
\end{document}
Using that, I get exactly the results I want. I changed the spacing to 20pt and it gives more space. I changed it to 6pt and it gives less.

However, even though this is an AMSMATH package command that works correctly when NOT using AMSART or AMSBOOK document classes, it gets completely ignored when using those. No error occurs, the command is just ignored.

The nearly identical document below contains only an edit to the document class, and yet the \setlength{\jot}{} command does nothing.

Code: Select all

\documentclass{book}
\usepackage{amsmath}
\setlength{\jot}{50pt}
\begin{document}
\begin{align*}
x &= 1 \\
y &= 2
\end{align*}
\end{document}
Any ideas? I know an obvious option is to not use the AMSBOOK class, but for some reason other things go wrong with my TOC when I do not use AMSBOOK, so I don't want to go down that path.

Thanks in advance!
Last edited by PSNYLaTexUser on Wed Jan 12, 2011 6:07 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

AMS Book Conflict with \jot

Post by frabjous »

The \begin{document} command in the amsbook class is what sets the jot, so it's undoing what you did when \begin{document} is used. You can get around this just by setting the length after \begin{document}.

Code: Select all

\documentclass{amsbook}
\begin{document}
\setlength{\jot}{50pt}
\begin{align*}
x &= 1 \\
y &= 2
\end{align*}
\end{document}
(I assume that example is close to what you intended with your second example: you accidentally posted the same one twice.)
PSNYLaTexUser
Posts: 4
Joined: Fri Dec 31, 2010 4:32 am

Re: AMS Book Conflict with \jot

Post by PSNYLaTexUser »

THANKS!!

Sorry for copying the same text twice. Glad to see it was clear what I intended.

Where can I see a list of lengths that are set by the \begin{document} command? Is it safe to always put my \setlength commands after \begin{document} or is that not necessary. I have all of them in the preamble, but now I think I recall struggling with others that didn't seem to work too.

Again, thanks for the quick and very helpful reply.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

AMS Book Conflict with \jot

Post by localghost »

If the problem is solved with that, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Otherwise please tell us what is missing. Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
Post Reply