I started to assimilate TeXMacs and I have some questions. As for me, it is a very important tool is to convert to Latex. I’m familiar with Latex since 1995, I use TexMaker and TexWorks, but I found TeXMacs very useful. To assimilate TeXMacs I started to write a new paper by using TeXMacs.
I created a sample to explain my question. I started a simple file and converted it to Latex:
\documentclass{article}
\usepackage[english]{babel}
\begin{document}
blah bla $\omega$ and $\Omega$
\end{document}
Then I changed color (format->color) to red and converted to Latex and obtained:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{xcolor}
%%%%%%%%%% Start TeXmacs macros
\newcommand{\tmcolor}[2]{{\color{#1}{#2}}}
%%%%%%%%%% End TeXmacs macros
\begin{document}
blah bla \tmcolor{red}{$\omega$} and $\Omega$
\end{document}
Then I decided to return to the initial black color changed color to black (format->color) and converted to Latex:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{xcolor}
%%%%%%%%%% Start TeXmacs macros
\newcommand{\tmcolor}[2]{{\color{#1}{#2}}}
%%%%%%%%%% End TeXmacs macros
\begin{document}
blah bla \tmcolor{red}{$\tmcolor{black}{\omega}$} and $\Omega$
\end{document}
In Latex file some long structure appears: \tmcolor{red}{$\tmcolor{black}{\omega}$}
instead of simple $\omega$
as in the initial file. Maybe there is some special menu to refuse modification? If I change color once more, the more long structure appears.