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

Public Member Functions

def __init__ (self)
 
def add (self, item)
 
def finish (self)
 

Public Attributes

 amount
 number of items
 

Detailed Description

Creates a itemized list in latex.

Definition at line 344 of file b2latex.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Calls super-class init and begins itemize

Reimplemented from LatexObject.

Definition at line 349 of file b2latex.py.

349 def __init__(self):
350 """
351 Calls super-class init and begins itemize
352 """
353 super().__init__()
354
355 self.amount = 0
356 self.output += r"\begin{itemize}"
357

Member Function Documentation

◆ add()

def add (   self,
  item 
)
Adds another item.
    @param item string or object with implicit string conversion used as item

Reimplemented from LatexObject.

Definition at line 358 of file b2latex.py.

358 def add(self, item):
359 """
360 Adds another item.
361 @param item string or object with implicit string conversion used as item
362 """
363 self.amount += 1
364 self.output += r"\item " + str(item) + '\n'
365 return self
366

◆ finish()

def finish (   self)
Finishes the generation of latex-code.

Reimplemented from LatexObject.

Definition at line 367 of file b2latex.py.

367 def finish(self):
368 """
369 Finishes the generation of latex-code.
370 """
371 if self.amount == 0:
372 return ''
373 self.output += r"\end{itemize}"
374 return self
375
376

Member Data Documentation

◆ amount

amount

number of items

Definition at line 355 of file b2latex.py.


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