🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2615

Re: Problem with Maths mode and Captions

#2615
From: C.E. Thompson
Date: Fri, 11 Sep 1992 23:11
32 lines
1426 bytes
In article <1992Sep11.101904.1@matai.vuw.ac.nz>, andrew@matai.vuw.ac.nz
(Andrew Greer) writes:
|>     
|> The included latex input produces an error that there is an extra }
|> in the argument of caption. The problem is associated with having the
|> sqrt function in there - it goes away if I remove the sqrt{}. 
|>     
|> **************************************************************
|>     
|> \documentstyle[12pt,ncs]{article}  
|>     
|> \begin{document}
|> \[ \sqrt{xyz}\]
|>     
|> \begin{figure}
|> \vspace{5cm}
|> \caption{Leaky bucket solutions, $\sqrt{xyz} $  }  
|> \end{figure}
|>     
|> \end{document}

\sqrt is fragile (LaTeX book, C.6.2, page 170). Use

   \caption{Leaky bucket solutions, $\protect\sqrt{xyz} $  }

This is an easy one to forget, as so many of the math mode control
sequences are robust.

Chris Thompson
Cambridge University Computing Service
JANET:    cet1@uk.ac.cam.phx
Internet: cet1@phx.cam.ac.uk
Technical Details
Message-ID: <1992Sep11.231142.23604@infodev.cam.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!pavo.csi.cam.ac.uk!camcus!cet1
References: <1992Sep11.101904.1@matai.vuw.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!pavo.csi.cam.ac.uk!camcus!cet1
From: cet1@cus.cam.ac.uk (C.E. Thompson)
Newsgroups: comp.text.tex
Subject: Re: Problem with Maths mode and Captions
Message-ID: <1992Sep11.231142.23604@infodev.cam.ac.uk>
Date: 11 Sep 92 23:11:42 GMT
References: <1992Sep11.101904.1@matai.vuw.ac.nz>
Sender: news@infodev.cam.ac.uk (USENET news)
Organization: U of Cambridge, England
Lines: 32
Nntp-Posting-Host: grus.cus.cam.ac.uk