wspr / breqn

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

bug: todonotes #27

Open ouboub opened 5 years ago

ouboub commented 5 years ago

Hi the following minimal example causes pdflatex/latex to hang \documentclass[11pt,reqno]{amsart} \usepackage{breqn} % experimental for better break of long equations \usepackage[colorinlistoftodos, textwidth=3cm, shadow]{todonotes} \newcommand{\setR}{{\mathord{\mathbb R}}}

\begin{document} Hi \todo{Change $G \in G^{k}\setR^{N},\setR^{N} $} % OK $G \in G^{k}\setR^{N};\setR^{N} $ %OK \todo{Change $G \in G^{k}\setR^{N};\setR^{N} $} %not OK because of the ; \end{document} Any ideas how to settle this?

henrikmidtiby commented 5 years ago

The same problem is triggered with the code below, which does not rely on todonotes.

\documentclass{article}
\usepackage{breqn}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0, 0) node{$G,N$}; % Ok
%\draw (0, 0) node{$G;N$}; % Problem caused by ;
\end{tikzpicture}
\end{document}
wspr commented 4 years ago

Using \tracingall shows an infinite loop:

\mg@OML ->1 {the character ;}

;->\tikz@nonactivesemicolon

\tikz@nonactivesemicolon ->; {the character ;}

;->\tikz@nonactivesemicolon

\tikz@nonactivesemicolon ->; {the character ;} ...

I'm not too sure whether this needs to be fixed within tikz or within breqn or both...