# Ticket #6591: trac_6591-doc2.patch

File trac_6591-doc2.patch, 1.7 KB (added by John Palmieri, 13 years ago)

apply on top of the other patch

• ## sage/misc/latex.py

# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1248392916 25200
# Node ID 5993e35c24bf9d24df53d1f037fef4f8062a2dfd
diff -r 0dfe6ae7b8ed -r 5993e35c24bf sage/misc/latex.py
 a This function behaves differently depending on whether in notebook mode or not. If note in notebook mode, the output is displayed in a separate If not in notebook mode, the output is displayed in a separate viewer displaying a dvi (or pdf) file, with the following: the title string is printed, centered, at the top. Beneath that, each object in objects is typeset on its own line, with the string large pictures (like graphs) generated with tikz. This only works when using a separate viewer. Note that the object are currently typeset in plain math mode rather than displaymath, because the later imposes a limit on the width of the picture. Technically, tightpage adds latter imposes a limit on the width of the picture. Technically, tightpage adds :: \\usepackage[tightpage,active]{preview} \\PreviewEnvironment{page} to the \LaTeX preamble, and replaces the \$ and \$ around to the LaTeX preamble, and replaces the \$ and \$ around each object by \\begin{page}$ and $\\end{page}. If in notebook mode with viewer equal to None, this usually uses jsMath -- see the next paragraph for the exception -- to display the output in the notebook. Only the first argument,