Belle II Software light-2406-ragdoll
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)
 

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.

319 def __init__(self):
320 """
321 Calls super-class init and begins centered environment.
322 """
323 super().__init__()
324 self.output += r"\begin{center}" + '\n'
325

Member Function Documentation

◆ add()

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

Reimplemented from LatexObject.

Definition at line 326 of file b2latex.py.

326 def add(self, filename, width=0.7):
327 """
328 Include a image file.
329 @param filename containing the image
330 @param width texwidth argument of includegraphics
331 """
332 self.output += r"\includegraphics[width=" + str(width) + r"\textwidth]"
333 self.output += r"{" + str(filename) + r"}" + '\n'
334 return self
335

◆ finish()

def finish (   self)
Ends centered environment

Reimplemented from LatexObject.

Definition at line 336 of file b2latex.py.

336 def finish(self):
337 """
338 Ends centered environment
339 """
340 self.output += r"\end{center}" + '\n'
341 return self
342
343

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