LyXProblem with amsbook and normalsize

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
TXLogicTA
Posts: 3
Joined: Thu Apr 23, 2009 4:36 pm

Problem with amsbook and normalsize

Post by TXLogicTA »

I'm getting an annoying error message when I try to change the text size of my chapter headings to the default text size when using amsbook. The resulting LaTeX source code is:

\chapter{{\normalsize INTRODUCTION: WHAT SOME THINK}}

Here's the error message:

---------------
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
--------------

The problem does not arise for other document classes. What's wrong with amsbook? Is there a simple fix? This is the last thing I need to resolve to be done with my thesis!

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem with amsbook and normalsize

Post by Stefan Kottwitz »

Hi,

welcome to the board!
You could fix it by \protect:

Code: Select all

\chapter{{\protect\normalsize INTRODUCTION: WHAT SOME THINK}}
Stefan
LaTeX.org admin
TXLogicTA
Posts: 3
Joined: Thu Apr 23, 2009 4:36 pm

Re: Problem with amsbook and normalsize

Post by TXLogicTA »

Thanks, Stefan! That got rid of the error.

However, it created a new problem. This is not a problem for my purposes, but it might not be acceptable for others who try this fix.

For some reason, even though I have the font set at 11pt, everything went to 10pt, throughout the entire document. Should this be happening?

md
TXLogicTA
Posts: 3
Joined: Thu Apr 23, 2009 4:36 pm

Re: Problem with amsbook and normalsize

Post by TXLogicTA »

oh no wait... that was a mistake i made. everything's perfect now! :D
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with amsbook and normalsize

Post by Stefan Kottwitz »

It depends on how you've set the font size. A document class option 11pt should work.

Stefan
LaTeX.org admin
Post Reply