Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In the notebook, you can display text using HTML instead of LaTeX:

text = """
Late at night, guards on the battlements of Denmark's Elsinore castle<br>
are met by Horatio, Prince <strong>Hamlet</strong>'s friend from school.<br>
The guards describe a ghost they have seen that resembles <strong>Hamlet</strong>'s father,<br>
the recently-deceased king. At that moment, the Ghost reappears,<br>
and the guards and Horatio decide to tell <strong>Hamlet</strong>.
"""
show(html(text))

This allows a better formatting using HTML and CSS. Note, for example, in the above text, that each instance of "Hamlet" is displayed in boldface.