Lino Website

Documentation · Modules · gendoc (Generate arbitrary documents) · Examples for gendoc

gendoc2.py

from lino.gendoc.maker import DocMaker

def body(doc):
    doc.h1("Second Example")
    doc.memo("""
    
lino.gendoc has its own paragraph parser which replaces ReportLab's parser.

    """)
    doc.pre("""\
A test is a test and not a final document.
A test is a test and not a final document.
A test is a test and not a final document.
""")
    doc.memo("""\
A test is a test and not a final document.
A test is a test and not a final document.
A test is a test and not a final document.
""")

    doc.memo("""
    
About character formatting:
emphasized is same as italic.

italic, bold and bold-italic
are implemented using separate fonts, while
superscript simply raises the baseline.

Now the same text in underlined:

italic, bold and bold-italic
are implemented using separate fonts, while
superscript simply raises the baseline.


    """)
    

DocMaker().main(body)    
    

Output: pdf html

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:24:07