0
$\begingroup$

This question already has an answer here:

I want to write some comments in Mathematica - which include LaTeX commands - using the form (* some comment *). Though I can manage to display some simple elements e.g. greek letters or some simple symbols e.g.\int using the respective LaTeX commands, I cannot display more complicated expressions, e.g. \int_{0}^{\infty}.

Is there any way to do so?

Example

enter image description here

$\endgroup$

marked as duplicate by Jens, Bob Hanlon, Sjoerd C. de Vries, Mr.Wizard Jun 28 '15 at 18:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Nothing is said in the documentation (link: reference.wolfram.com/language/tutorial/… ).Honestly I don't think this is possible: you could use TeXForm and add comments later. $\endgroup$ – mattiav27 Jun 28 '15 at 9:29
  • $\begingroup$ @mattiav27 Ok, thank you. I guess it is impossible to take advantage of LaTeX in Mathematica even in text mode, huh? $\endgroup$ – thanasissdr Jun 28 '15 at 9:38
  • $\begingroup$ I don't understand the question. What are "LaTeX comments"? You can write whatever text you want in a comment. $\endgroup$ – Szabolcs Jun 28 '15 at 9:44
  • $\begingroup$ In LaTeX you can write comments using % text: I think this is what the OP means. But if you try this in TeXForm you get an error or a wrong expression, since in mma % has another meaning. On the other side (* text *) is simply not read by mma. $\endgroup$ – mattiav27 Jun 28 '15 at 9:50
  • 4
    $\begingroup$ Mathematica does not have a TeX interpreter. Some symbols can be entered using their TeX equivalent but that's all. If you want to enter complex typesetting you have to use Mathematica's own typesetting methods (see this, especially the Learning Resources section). $\endgroup$ – Sjoerd C. de Vries Jun 28 '15 at 12:53

Browse other questions tagged or ask your own question.