breqn icon indicating copy to clipboard operation
breqn copied to clipboard

bug: todonotes

Open ouboub opened this issue 5 years ago • 3 comments

ouboub avatar Jun 18 '19 16:06 ouboub

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?

ouboub avatar Jun 18 '19 16:06 ouboub

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}

henrikmidtiby avatar Jun 21 '19 10:06 henrikmidtiby

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...

wspr avatar Feb 16 '20 03:02 wspr