Ask Your Question
1

how to render a latex string in a notebook cell

asked 2020-07-06 10:03:24 -0500

jbaxter gravatar image

updated 2020-07-11 19:58:34 -0500

slelievre gravatar image

Say we have a string variable s = "some context: $x = 3$". The string s is rather simple latex, but is not just an equation. I would like to display the typeset version of s in a notebook cell, without having to retype the string by hand in the cell. Thanks for any help.

edit retag flag offensive close merge delete

Comments

You may be interested in answers to similar questions like this one, this one, this one or this one.

Juanjo gravatar imageJuanjo ( 2020-07-08 05:33:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2020-07-06 15:51:08 -0500

rburing gravatar image

You can do:

html(s)
edit flag offensive delete link more

Comments

that worked! thank you much!

jbaxter gravatar imagejbaxter ( 2020-07-08 18:14:43 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-07-06 10:03:24 -0500

Seen: 78 times

Last updated: Jul 11