Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What options exist for doing something like this? I'm particularly interested in LaTeX that describes mathematics.

share|improve this question
3  
How would you want to represent mathematics in plain text? –  Caramdir Dec 2 '10 at 19:13
1  
@Caramdir: Well, $x^2y$ should be $\exp(2\ln(x))y$ and ... –  Charles Stewart Dec 3 '10 at 10:15
    
@Caramdir unicode.org/notes/tn28 is an example (for an alternate format, which is not just plain text). Using Unicode as plain text output, one could convert $\alpha^5\in{\mathbb R}^+$ into the plain text `α⁵∈ℝ⁺. Of course, tuch formatting is not as general as TeX, but is useful. –  Frédéric Grosshans Apr 1 '11 at 16:31
add comment

3 Answers

The only tool I'm aware of (there are probably more) that tries to remove LaTeX markup is the command line tool detex. No idea what it does with math, but I'm certain that it wouldn't transform $x^2y$ to $\exp(2\ln(x))y$. You could use Mathematica to do something like that for you, however (provided you were happy with CForm or whatever form you wanted the maths in).

share|improve this answer
1  
I'm pretty sure Charles meant that example as a joke (he in not the OP). –  Caramdir Dec 7 '10 at 16:05
    
detex also doesn't work all that well. See tex.stackexchange.com/questions/534/… –  Willie Wong Dec 7 '10 at 19:16
add comment

tex2mail might be an option; from the ctan catalogue:

Tex2mail is a perl script to convert TeX files into plain text files: various mathematical symbols (sums, products, integrals, sub/superscripts, fractions, square roots, ...) are replaced by “ascii art” that spreads over multiple lines if necessary. This is helpful for people who can’t read TeX fluently.

never used it

share|improve this answer
add comment

pandoc does a pretty good job as far as I am concerned. I convert markdown documents to latex and back again. I'm pretty sure it also supports plain text. Check it out.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.