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

Public Member Functions

def __init__ (self, title, authors, abstract, add_table_of_contents=True, clearpage=True)
 

Detailed Description

Creates a latex title-page and optionally abstract and table-of-contents.
You should include only one of these objects in your latex code.

Definition at line 427 of file b2latex.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  title,
  authors,
  abstract,
  add_table_of_contents = True,
  clearpage = True 
)
Sets author, date, title property, calls maketitle, optionalla adds abstract and table-of-contents.
    @param title of the latex file.
    @param authors of the latex file, so the person who write the corresponding python-code with this framework :-)
    @param abstract optional abstract placed on the title-page.
    @param add_table_of_contents bool indicating of table-of-contents should be included.

Reimplemented from LatexObject.

Definition at line 433 of file b2latex.py.

433 def __init__(self, title, authors, abstract, add_table_of_contents=True, clearpage=True):
434 """
435 Sets author, date, title property, calls maketitle, optionalla adds abstract and table-of-contents.
436 @param title of the latex file.
437 @param authors of the latex file, so the person who write the corresponding python-code with this framework :-)
438 @param abstract optional abstract placed on the title-page.
439 @param add_table_of_contents bool indicating of table-of-contents should be included.
440 """
441 super().__init__()
442 self.output += r"\author{"
443 for author in authors:
444 self.output += author + r"\\"
445 self.output += r"}" + '\n'
446 self.output += r"\date{\today}" + '\n'
447 self.output += r"\title{" + title + r"}" + '\n'
448 self.output += r"\maketitle" + '\n'
449 if abstract:
450 self.output += r"\begin{abstract}" + '\n'
451 self.output += abstract
452 self.output += '\n' + r'\end{abstract}' + '\n'
453
454 if clearpage:
455 self.output += r"\clearpage" + '\n'
456 if add_table_of_contents:
457 self.output += r"\tableofcontents" + '\n'
458 self.output += r"\FloatBarrier" + '\n'
459 if clearpage:
460 self.output += r"\clearpage" + '\n'
461
462

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