Declared in module PyLaTeX
class LaTeXError(Exception) class LaTeXIOError(IOError) class _LaTeX_ def open(file=None) string BibTeX_Command = 'bibtex %s' string LaTeX_Command = "latex '\\nonstopmode\\input{%s}'" string __author__ = 'Berthold H\366llmann, bhoel@starship.python.net' string __file__ = '../PyLaTeX/LaTeX.pyc' string __version__ = '1.11' list article = ['article', 'aguplus', 'amsart', 'ltugboat', 'ltugproc', 'ltxdoc', ...] list book = ['book', 'amsbook', 'amsdtx', 'amsldoc', 'scrbook'] string endl = '\012' list letter = ['letter', 'akletter', 'dinbrief', 'iletter', 'myletter', 'script_l', ...] list misc = ['amsproc', 'exam', 'foils', 'ieeetrans', 'journal', 'minimal', ...] list report = ['report', 'scrrep', 'refrep', 'scrreprt']
LaTeX mode for python:
Write a LaTeX2e file and compile it with makeindex and bibtex.
_LaTeX_, which is usually instantiated
using the PyLaTeX.LaTeX.open(...) command. open returns an instance of
_LaTeX_ which has the following methods:open(file = None)
file as output file. If no name
is given for file, a temporary filename is generated.
close()
doc_class(name, option=None)
option.
package(name, option=None)
\usepackage line for name and add
the options named by option. Multiple calls of package with
different options are allowed, but only the options from the last call
are used.
preamble(data = "")
data to the LaTeX preamble (the part before
\begin{dcoument}). This is usefull for \newcommands and similar.
Calls of package or preamble may occur at any position in the
python command order. They are moved to the top of the LaTeX file.
toc
lof
lot
part(full, short=None, label=None)
full.
Optionally you can insert a short name a label.
chapter(full, short=None, label=None)
section(full, short=None, label=None)
subsection(full, short=None, label=None)
subsubsection(full, short=None, label=None)
paragraph(full, short=None, label=None)
subparagraph(full, short=None, label=None)
compile()
close method is not called yet, compile calls it to genereate the
LaTeX file.
dvips()
write(data = "")
data will be put
between \begin{document} and \end{document} in the order of the write
calls.
equation(content, label=None)
content
and generate the label label.
image(file, options=None, caption=None, shortcap=None, label=None)
eps image using thze graphicx package. Qne can add an option
string using options, a caption caption with a short caption
shortcap and a label label for crossreference.
ref(label)
label.
file()
close.
BoxedPics
BoxedPics is true, a \fbox is generated
around each included image.
LaTeX_Command
%s to be replaced by the name of the generated
file.
BibTeX_Command
%s to be replaced by the name of the .aux file
for the generated file.
.cls files on
my system and checked all files for a \LoadClass{X} statement. If I found one,
I added this class to X else to misc:article like classes.
report like classes.
book like classes.
letter like classes.