F
fouzi
Hi,
I'm newbie in Perl and I need some help to modify a .tex file;
My file, Toto.tex contains something like :
....
$ a+b$\\ $a$
$\alpha$
\begin{equation}
a+b
\end{equation}
....
And I want to have equations in red. Then, I want :
$\textcolor{red} {a+b}$ $\textcolor{red} {a}$ ~\\
$\textcolor{red} {\alpha}$
\begin{equation}
\textcolor{red} {a+b}
\end{equation}
ie. Transform any $ XXX $ to $\textcolor{red} { XXX }$
any $$ XXX $$ to $$\textcolor{red} { XXX }$$
and any \begin{equation} XXX \end{equation} to \begin{equation}
\textcolor{red} {XXX} \end{equation}
Thank's for any help.
Fawzi.
I'm newbie in Perl and I need some help to modify a .tex file;
My file, Toto.tex contains something like :
....
$ a+b$\\ $a$
$\alpha$
\begin{equation}
a+b
\end{equation}
....
And I want to have equations in red. Then, I want :
$\textcolor{red} {a+b}$ $\textcolor{red} {a}$ ~\\
$\textcolor{red} {\alpha}$
\begin{equation}
\textcolor{red} {a+b}
\end{equation}
ie. Transform any $ XXX $ to $\textcolor{red} { XXX }$
any $$ XXX $$ to $$\textcolor{red} { XXX }$$
and any \begin{equation} XXX \end{equation} to \begin{equation}
\textcolor{red} {XXX} \end{equation}
Thank's for any help.
Fawzi.