First time here? Check out the FAQ!

Ask Your Question
1

how to render a latex string in a notebook cell

asked 4 years ago

jbaxter gravatar image

updated 4 years ago

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.

Preview: (hide)

Comments

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

Juanjo gravatar imageJuanjo ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

rburing gravatar image

You can do:

html(s)
Preview: (hide)
link

Comments

that worked! thank you much!

jbaxter gravatar imagejbaxter ( 4 years ago )

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: 4 years ago

Seen: 913 times

Last updated: Jul 12 '20