Belle II Software  release-08-01-10
Graphics Class Reference
Inheritance diagram for Graphics:
Collaboration diagram for Graphics:

Public Member Functions

def __init__ (self)
 
def add (self, filename, width=0.7)
 
def finish (self)
 
def __str__ (self)
 
def add (self)
 
def save (self, filename, compile=False)
 

Public Attributes

 output
 Stores the outputted latex-code.
 

Detailed Description

Includes a series of image files into your latex code and centers them.

Definition at line 314 of file b2latex.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Calls super-class init and begins centered environment.

Reimplemented from LatexObject.

Definition at line 319 of file b2latex.py.

Member Function Documentation

◆ __str__()

def __str__ (   self)
inherited
Transform object to string, in this case, just returns .the generated latex-code

Definition at line 26 of file b2latex.py.

◆ add() [1/2]

def add (   self)
inherited
Add latex-code to the output string.
This method is usually overriden in the subclasses

Definition at line 32 of file b2latex.py.

◆ add() [2/2]

def add (   self,
  filename,
  width = 0.7 
)
Include a image file.
    @param filename containing the image
    @param width texwidth argument of includegraphics

Definition at line 326 of file b2latex.py.

◆ finish()

def finish (   self)
Ends centered environment

Reimplemented from LatexObject.

Definition at line 336 of file b2latex.py.

◆ save()

def save (   self,
  filename,
  compile = False 
)
inherited
Saves the latex-code into a file, adds preamble and end of document,
and compiles the code if requested.
    @param filename latex-code is stored in this file, should end on .tex
    @param compile compile the .tex file using pdflatex into a .pdf file

Definition at line 47 of file b2latex.py.


The documentation for this class was generated from the following file: