Belle II Software development
LatexFile Class Reference
Inheritance diagram for LatexFile:
LatexObject

Public Member Functions

def add (self, text='')
 
def __iadd__ (self, text)
 

Detailed Description

Convinience class implementing += operator, can be used instead of raw LatexObject to collect
all the latex code in your project which should go into a common file.

Definition at line 140 of file b2latex.py.

Member Function Documentation

◆ __iadd__()

def __iadd__ (   self,
  text 
)
Adds an object to the output
    @param text string or object with implicit string conversion (like LatexObject)

Definition at line 154 of file b2latex.py.

154 def __iadd__(self, text):
155 """
156 Adds an object to the output
157 @param text string or object with implicit string conversion (like LatexObject)
158 """
159 self.add(text)
160 return self
161
162

◆ add()

def add (   self,
  text = '' 
)
Adds an object to the output
    @param text string or object with implicit string conversion (like LatexObject)

Reimplemented from LatexObject.

Definition at line 146 of file b2latex.py.

146 def add(self, text=''):
147 """
148 Adds an object to the output
149 @param text string or object with implicit string conversion (like LatexObject)
150 """
151 self.output += str(text)
152 return self
153

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