1. Ivan Andrus
  2. sage-mode
  3. Issues
Issue #24 wontfix

sage-view should not have inline view when latex() is called on an object.

Anonymous created an issue

If you are using sage-mode to simplify expressions that you want to include in a LaTeX document, you need to be able to copy and paste code. However, in sage-view, if f is some object, then f.latex() typesets the latex code, which means you can't copy and paste it. Instead, you have to disable inline output whenever you want to copy the code and renabel it whenever you want sage-view to compile when repr is called.

Comments (7)

  1. Ivan Andrus repo owner

    That's something that annoys me also. I'll see what I can come up with, but I remember looking at it before and thinking it wasn't an easy fix, but I would be happy to be wrong.

  2. Ivan Andrus repo owner

    Actually, if you right click on the image there is an option to "Copy Text". This will actually copy the LaTeX (whether or not you used latex(f)). I have changed the name to "Copy LaTeX" since that's what it does. I would like to improve it so that you can also copy the text that would be output normally (which you can often paste back into Sage), but that will likely require some changes to Sage.

  3. Log in to comment