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

I'd like to be able to feed an expression into Mathematica, and have Mathematica convert that expression to TeXForm WITHOUT ANY SIMPLIFICATION WHATSOEVER.

As a trivial example, currently, if I enter

6/9 //TeXForm

MM returns

\frac{2}{3}

I'd like to be able to feed it 6/9 and have it return

\frac{6}{9}

Obviously there are solutions that would effectively involve writing my own parser, but I'm specifically looking for relatively short and clean solutions, if there are any.

share|improve this question
1  
duplicate of tex.stackexchange.com/questions/61054/… –  Nasser Apr 25 at 22:39

1 Answer 1

up vote 5 down vote accepted

HoldForm is your friend:

6/9 // HoldForm // TeXForm

\frac{6}{9}

share|improve this answer
    
Lovely, thanks! –  Twiffy Apr 26 at 6:21

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.