# Revision history [back]

Here is a workaround, which allows me to paste latex commands into a computation cell, evaluate and display the results within the notebook.

First, in a separate input cell, load the latex packages that you need to deal with the latex code from the original document, e.g.:

# Setup latex to allow copy and paste from latex document, while showing the reference names

Then, in every input cell, I first enter the following code, followed by the copied and pasted latex code:

%hide %latex \renewcommand{\ref}[1] {\url{#1}} % to print names of references

Here is a workaround, which allows me to paste latex commands into a computation cell, evaluate and display the results within the notebook.

First, in a separate input cell, load the latex packages that you need to deal with the latex code from the original document, e.g.:

# Setup latex to allow copy and paste from latex document, while showing the reference names

latex.extra_macros('')

latex.extra_preamble('') 

latex.add_to_preamble('\usepackage{amssymb}')