LaTeX shortcuts in iPython Notebook

asked 6 years ago

lrfinotti gravatar image

Is there a way to load a file containing many LaTeX shortcuts (like \newcommand{...}{...}) into an iPython notebook, so that these can be used throughout?

Or is it possible to add to a (hopefully hidden) cell? If so, what would be the syntax?

Preview: (hide)

Comments

Does latex.add_to_preamble(r"\newcommand{...}{...}") do what you want?

John Palmieri gravatar imageJohn Palmieri ( 6 years ago )

No, it does not work. (Assuming you run that command in a cell or load it from a file.) But thanks for the suggestion!

lrfinotti gravatar imagelrfinotti ( 6 years ago )