Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!udel!brahms.udel.edu!anita From: anita@brahms.udel.edu (Anita Marie Hoover) Newsgroups: comp.text.tex Subject: Re: Formulas in captions Message-ID: <20582@brahms.udel.edu> Date: 19 Apr 91 12:26:49 GMT References: <3B22F630B801102A@Post-Office.UH.EDU> Organization: University of Delaware Lines: 47 In article <3B22F630B801102A@Post-Office.UH.EDU> BRONWEN@SBCCVM.BITNET (Bronwen Heuer) writes: =>I am helping a user who is using LaTeX and has a lot of mathematical =>characters in his captions. Regardless of how many `protects' he =>inserts, there are some characters that will always bomb, eg. square =>root, cube root and two mathematical characters (curly brackets, etc) =>abutting each other. =>Has anyone figured out a way around this fragile environment? =>Somethings will still crack even if you manually edit the LOF file. => =>Any suggestions? Well my understanding is that any fragile command that is used as an argument to another command must be protected. If you get an error and are unsure what should be protected -- look up the command and go to its explaination in Appendix C. There is will say whether or not a command is fragile and must be protected when used as an argument to another command (like caption). Here is an example that works. --------------------------------- \documentstyle [12pt] {report} \begin{document} \listoffigures \chapter{Testing Math in Captions} \begin{figure} \caption{Testing with $\protect\sqrt[3]{2}\cdot\protect\sqrt{5}$ as mathematics $z = \left\{\frac{x}{y}\right.$} \end{figure} \begin{figure} \caption{More Testing with $\protect\sqrt[3]{2}\cdot\protect\sqrt{5}$ as mathematics $z = \left\{\frac{x}{y}\right.$} \end{figure} \begin{figure} \caption{More Testing with $\protect\sqrt[3]{2}\cdot\protect\sqrt{5}$ as mathematics $z = \left\{\frac{x}{y}\right.$} \end{figure} \end{document} -------------------------------- If I didn't cover a specific problem let me know. anita