LaTeX shortcuts in iPython Notebook

asked 2018-08-21 22:43:46 +0200

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?

edit retag flag offensive close merge delete


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

John Palmieri gravatar imageJohn Palmieri ( 2018-08-21 23:41:20 +0200 )edit

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 ( 2018-08-22 17:51:51 +0200 )edit