TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to translate my LaTeX italian sources into english, using e.g. "google translate". I must "extract" italian text, leaving LaTeX keywords and formulas unchanged.



\EXE{Calcolare con uno scarto relativo minore o uguale a $\erelmax$
i valori $\xi$ t.c.
  \sin(\xi) = \cos(\xi) % \label{eq:ln=cos}
} % end EXE

Should be converted into:


\EXE{Compute with a relative gap less than or equal to $\erelmax$
the values $\xi$ s.t.
  \sin(\xi) = \cos(\xi) % \label{eq:ln=cos}
} % end EXE

Any hint?

share|improve this question

closed as off topic by egreg, Joseph Wright Sep 3 '11 at 6:43

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Ciao Flavio! The question might be interesting, but has nothing to do with TeX and LaTeX, I'm afraid. – egreg Jul 22 '11 at 15:31
unless any of the macro names happen to be italian words, google translate should just ignore them, shouldn't it? – Seamus Jul 22 '11 at 15:39
Compile it to a PDF and use pdftotext to get it as text version which can be used for translation. You will still have some other things in it I'm afraid. You could ignored these using the comment package or \long\def\beq#1\eeq{} etc. If you however want to extract and then automatically reinsert the translation then you are out of luck I think. – Martin Scharrer Jul 22 '11 at 15:41
@Martin: Wouldn't detex be easier, if the purpose is to extract text? – You Jul 22 '11 at 15:52
@You: Oh, I assume so. I didn't remember that one. – Martin Scharrer Jul 22 '11 at 15:57