plasTeX — A Python Framework for Processing LaTeX Documents
plasTeX — A Python Framework for Processing LaTeX Documents
Kevin D. Smith
7 February 2008
1 Introduction
2
plastex
— The Command-Line Interface
2.1 Command-Line and Configuration Options
2.1.1 General Options
2.1.2 Document Properties
2.1.3 Counters
2.1.4 Document Links
2.1.5 Input and Output Files
2.1.6 Image Options
3 The plasT
e
X Document
3.1 Sections
3.1.1 Navigation and Links
3.1.2 Table of Contents
3.2 Paragraphs
3.3 Complex Structures
3.3.1 Lists
3.3.2 Bibliography
3.3.3 Arrays and Tabular Environments
3.3.4 Indexes
4 Understanding Macros and Packages
4.1 Defining Macros in L
a
T
e
X
4.2 Defining Macros in Python
4.2.1 Python Classes
4.2.2 INI Files
4.2.3 The Document Context
4.3 Packages
5 Renderers
5.1 Simple Renderer Example
5.1.1 Extending the Simple Renderer
5.2 Renderable Objects
5.2.1 Determining the Correct Rendering Method
5.2.2 Generating Files
5.2.3 Generating Images
5.2.4 Generating Vector Images
5.2.5 Static Images
5.3 Page Template Renderer
5.3.1 Defining and Using Templates
5.3.2 Defining and Using Themes
5.3.3 Zope Page Template Tutorial
5.4 XHTML Renderer
5.4.1 Themes
5.5 DocBook Renderer
5.6 ManPage and Text Renderers
6 plasT
e
X Frameworks and APIs
6.1
plasTeX
— The Python Macro and Document Interfaces
6.1.1 Macro Objects
6.2
plasTeX.ConfigManager
— plasT
e
X Configuration
6.2.1 ConfigManager Objects
6.2.2 ConfigSection Objects
6.2.3 Configuration Option Types
6.3
plasTeX.DOM
— The plasT
e
X Document Object Model (DOM)
6.3.1 plasT
e
X vs. XML
6.3.2 Node Objects
6.3.3 DocumentFragment Objects
6.3.4 Element Objects
6.3.5 Text Objects
6.3.6 Document Objects
6.3.7 Command Objects
6.3.8 Environment Objects
6.3.9 TeXFragment Objects
6.3.10 TeXDocument Objects
6.4
plasTeX.TeX
— The T
e
X Stream
6.4.1 TeX Objects
6.5
plasTeX.Context
— The T
e
X Context
6.5.1 Context Objects
6.6
plasTeX.Renderers
— The plasT
e
X Rendering Framework
6.6.1 Renderer Objects
6.6.2 Renderable MixIn
6.7
plasTeX.Imagers
— The plasT
e
X Imaging Framework
6.7.1 Imager Objects
6.7.2 Image Objects
A About This Document
B Frequently Asked Questions
B.1 Parsing L
a
T
e
X
B.1.1 How can I make plasT
e
X work with my complicated macros?
B.1.2 How can I get plasT
e
X to find my L
a
T
e
X packages?
C Index
plasTeX — A Python Framework for Processing LaTeX Documents