HP Forums
CAS: force latex to write unevaluated expression? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: CAS: force latex to write unevaluated expression? (/thread-9177.html)



CAS: force latex to write unevaluated expression? - Arno K - 09-27-2017 07:00 PM

As I currently am looking inside Latex a little bit, I stumbled upon writing a comment here using nice looking format and the prime refused to give me \[\int_a^1 \! \frac{1}{x^{n}} \, \mathrm{d}x\] instead it evaluated the integral. Is there a possibility to make it provide the integral without evaluation, perhaps a second parameter of the latex command (0:evaluate, may be default value and 1: don't)?
Arno


RE: CAS: force latex to write unevaluated expression? - Joe Horn - 09-27-2017 09:15 PM

Try putting the argument in single-quote marks:

latex(2^3) --> "8"
latex('2^3') --> "2^{3}"


RE: CAS: force latex to write unevaluated expression? - Arno K - 09-27-2017 09:50 PM

Thank you.
Arno