galgebra.gprinter

Members

galgebra.gprinter.gFormat(Fmode: bool = True, Dmode: bool = True, inverse='full')[source]

Turns on latex printing with configurable options.

This redirects printer output so that latex compiler can capture it.

Format() is also required for printing from ipython notebook (note that xpdf() is not needed to print from ipython notebook).

Parameters:
  • Fmode – Value for the omit_function_args setting of GaLatexPrinter.

  • Dmode – Value for the omit_partial_derivative_fraction setting of GaLatexPrinter.

galgebra.gprinter.gprint(*xargs)[source]

Print latex or text from python script or latex from Jupyter Notebook/Lab

galgebra.gprinter.gxpdf(filename=None, paper=(14, 11), crop=False, png=False, prog=False, debug=False, pt='10pt', pdfprog='pdflatex', evince=True, rm=True, null=True, documentclass='book')[source]

Post processes LaTeX output (see comments below), adds preamble and postscript, generates tex file, inputs file to latex, displays resulting pdf file.

Arg Value Result pdfprog ‘pdflatex’ Use pdfprog to generate pdf output, only generate tex if pdfprog is None crop True Use “pdfcrop” to crop output file (pdfcrop must be installed, linux only) png True Use “convert” to produce png output (imagemagick must be installed, linux only)

We assume that if gxpdf() is called then gFormat() has been called at the beginning of the program.

galgebra.gprinter.gPrint_Function()[source]

Print out the source of the current function