LaTeX shortcuts in iPython Notebook

asked 2018-08-21 15:43:46 -0600

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 16:41:20 -0600 )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 10:51:51 -0600 )edit