Math & Sciencebad math environment delimiter in lof/lot due to breqn

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
dishka
Posts: 3
Joined: Sat Aug 14, 2010 4:59 am

bad math environment delimiter in lof/lot due to breqn

Post by dishka »

Hi,
I'm new to this forum and tried to search already for any posts relating to a similar problem, but to no avail.
I'm writing a thesis and using the breqn and flexisym packages to deal with multi-line equations. However I get an Latex error: bad math environment delimiter, and the original captions for both tables and figures containing greek math symbols are incorrectly reproduced in the list of tables/list of figures.
Has anybody else come across this conflict?
Kind thanks,

The minimal code reproducing the error is here:

Code: Select all

\documentclass[12pt,english, oneside]{book}
\usepackage{babel}
\usepackage{mathpazo}
\usepackage[mathpazo]{flexisym}
\usepackage{breqn}

\begin{document}

\frontmatter
\listoftables

\mainmatter

\begin{table*} [!ht]
	\centering
	\caption{\footnotesize Coefficients calculated for limits of agreement regression lines with n=36 and $t_{\alpha/{2,n-1}}$ = 2.03}
		\begin{tabular}{l r r}
 		\hline\hline
		 & Resistance & Compliance\\
		\hline 
	
		 
		$b_{0}$ & 0.053 & 2.544\\
		 
		$b_{1}$ & -0.0005 & -0.085\\
		 
		$c_{0}$ & -0.557 & -1.294\\
		 
		$c_{1}$ & 0.280 & 0.095\\
		\hline 
		\end{tabular}
	
	\label{tab:LOAcoefficients}
\end{table*}

\end{document}

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: bad math environment delimiter in lof/lot due to breqn

Post by Stefan Kottwitz »

Hi dishka,

welcome to the board!
I can compile this minimal example without error or warning. Further the captions in the list of tables are correct, there's the greek symbol alpha as well.

Perhaps post your log file here as attachment.

Stefan
LaTeX.org admin
dishka
Posts: 3
Joined: Sat Aug 14, 2010 4:59 am

Re: bad math environment delimiter in lof/lot due to breqn

Post by dishka »

Thanks Stefan for having a look!
Interesting that you have no errors, but a good sanity check I guess.
I'm using Miktex on windows and have attached the log file. It seems like there are some issues coming from the psnfss package???

Thanks again,
dishka
Attachments
loterror.log
(15.67 KiB) Downloaded 316 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

bad math environment delimiter in lof/lot due to breqn

Post by Stefan Kottwitz »

In you log file I can see:

Code: Select all

! LaTeX Error: Bad math environment delimiter.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.2 ...math _char:NNn 71{0B}/{2,n-1}}$ = 2.03}}{1}
I guess this corressponds to your file loterror.lot, line 2. It might look like:

Code: Select all

\select@language {english}
\contentsline {table}{\numberline {1}{\ignorespaces \relax \fontsize {10}{12}\selectfont \abovedisplayskip 10\p@ plus2\p@ minus5\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdisplayshortskip 6\p@ plus3\p@ minus3\p@ \def \leftmargin \leftmargini \parsep 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.5\p@ minus\p@ {\leftmargin \leftmargini \topsep 6\p@ plus2\p@ minus2\p@ \parsep 3\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip Coefficients calculated for limits of agreement regression lines with n=36 and $t_{\MathChar "710B /{2,n-1}}$ = 2.03}}{1}
Check this file, espeacially at the point \MathChar "710B. Or post the file here, if it's different.

It could already help to write \protect in the caption argument before \alpha:

Code: Select all

\caption{\footnotesize Coefficients ... and $t_{\protect\alpha/{2,n-1}}$ = 2.03}
This way the .lot file would contain $t_{\alpha /{2,n-1}}$ instead of $t_{\MathChar "710B /{2,n-1}}$.

Stefan
LaTeX.org admin
dishka
Posts: 3
Joined: Sat Aug 14, 2010 4:59 am

Re: bad math environment delimiter in lof/lot due to breqn

Post by dishka »

Wonderful, thanks very much Stefan! That's worked.
I'd been trying \protect before the $ without success but didn't take the next logical step.
Best regards,
dishka
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

bad math environment delimiter in lof/lot due to breqn

Post by localghost »

Now that the problem is solved, please mark the topic exactly as described in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply