LaTeX shortcuts in iPython Notebook
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?
Does
latex.add_to_preamble(r"\newcommand{...}{...}")
do what you want?No, it does not work. (Assuming you run that command in a cell or load it from a file.) But thanks for the suggestion!