wspr / breqn

Automatic line breaking in LaTeX equations
18 stars 2 forks source link

incompatible bug with 'revtex' class concerning the active comma #18

Open beckhamwjc opened 7 years ago

beckhamwjc commented 7 years ago

The problem is explicitly described in https://tex.stackexchange.com/questions/168382/error-occurs-when-comma-separated-affiliation-in-revtex4-1-if-breqn-is-loaded I encountered a problem with breqn in revtex4-1, when I tried to use affiliation with comma. It seems the affiliation without comma is OK:

`\documentclass[aps,prl,twocolumn,floatfix]{revtex4-1} \usepackage{breqn} \begin{document}

\title[]{Title} \author{Name~GivenName} \affiliation{Department} \maketitle ABC \end{document}`

But I had to add more than one term in affiliation and that's when the error "missing $ inserted" occurred:

`\documentclass[aps,prl,twocolumn,floatfix]{revtex4-1} \usepackage{breqn} \begin{document}

\title[]{Title} \author{Name~GivenName} \affiliation{Department 1, Department 2, Department 3} \maketitle ABC \end{document} The error reads: ! Missing $ inserted.

$ l.95 \maketitle ? ` I was wondering if I'm using breqn in the right way, or it is really a bug here?
drscotthawley commented 5 years ago

I am seeing the same problem using the JASANew.cls file (which probably borrows from revtex).

As described in the comments of the StackExchange post you linked to, if I just add the 3 lines...

\makeatletter
\let\cat@comma@active\@empty
\makeatother

...before my \begin{document}, then I can use breqn without any errors at \maketitle. :-)

beckhamwjc commented 5 years ago

Thanks😁

Scott Hawley notifications@github.com 于2018年9月13日周四 上午8:03写道:

I am seeing the same problem using the JASANew.cls https://acousticalsociety.org/preparing-latex-manuscripts/ file (which probably borrows from revtex).

As described in the comments of the StackExchange post you linked to, if I just add the 3 lines...

\makeatletter \let\cat@comma@active\@empty \makeatother

...before my \begin{document}, then I can use breqn without any errors at \maketitle. :-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wspr/breqn/issues/18#issuecomment-420838281, or mute the thread https://github.com/notifications/unsubscribe-auth/ARxfmsCbAOvBk5EfiKAXVtPKDJEaaSZSks5uaaDrgaJpZM4NCbUn .