On 01/17/2017 06:06 PM, חיים רוזנר wrote: > Hi, > I upgraded lyx 2.1 to lyx 2.2 (Win 10). I have a file with lots of > tikz environments and some math macros. The convertor took the -- line > command of tikz in the math macro and converted it to \twohyphens. > This conversion made me errors. > > Attached are a minimal example from LyX 2.1 and its automatic > conversion to LyX 2.2. > > Thanks for all your effort.
I've fixed this for 2.2.3, but it's very easy to fix it for yourself now. Find the file lyx_2_2.py and open it with a text editor. At line 622, in the convert_dashes routine, you will see: if len(words) > 1 and words[0] == "\\begin_inset" and \ words[1] in ["CommandInset", "ERT", "External", "Formula", "Graphics", "IPA", "listings"]: # must not replace anything in insets that store LaTeX contents in .lyx files This is a list of places not to convert --. Add "FormulaMacro" to the list. Richard