Пример #1
0
def test_table():
    # Tabular
    t = Tabular(table_spec='|c|c|', data=None, pos=None)

    t.add_hline(start=None, end=None)

    t.add_row(cells=(1, 2), escape=False)

    t.add_multicolumn(size=2,
                      align='|c|',
                      content='Multicol',
                      cells=None,
                      escape=False)

    t.add_multirow(size=3,
                   align='*',
                   content='Multirow',
                   hlines=True,
                   cells=None,
                   escape=False)

    # MultiColumn/MultiRow.
    t.add_row((MultiColumn(size=2, align='|c|', data='MultiColumn'), ))

    t.add_row((MultiRow(size=2, width='*', data='MultiRow'), ))
Пример #2
0
def test_table():
    # Tabular
    t = Tabular(table_spec="|c|c|", data=None, pos=None)

    t.add_hline(start=None, end=None)

    t.add_row(cells=(1, 2), escape=False)

    t.add_multicolumn(size=2, align="|c|", content="Multicol", cells=None, escape=False)

    t.add_multirow(size=3, align="*", content="Multirow", hlines=True, cells=None, escape=False)

    # MultiColumn/MultiRow.
    t.add_row((MultiColumn(size=2, align="|c|", data="MultiColumn"),))

    t.add_row((MultiRow(size=2, width="*", data="MultiRow"),))
Пример #3
0
def test_table():
    # Tabular
    t = Tabular(table_spec='|c|c|', data=None, pos=None)

    t.add_hline(start=None, end=None)

    t.add_row(cells=(1, 2), escape=False)

    t.add_multicolumn(size=2, align='|c|', content='Multicol', cells=None,
                      escape=False)

    t.add_multirow(size=3, align='*', content='Multirow', hlines=True,
                   cells=None, escape=False)

    # MultiColumn/MultiRow.
    t.add_row((MultiColumn(size=2, align='|c|', data='MultiColumn'),))

    t.add_row((MultiRow(size=2, width='*', data='MultiRow'),))
Пример #4
0
# SectionBase
s = Section(title='', numbering=True, data=None)

# Math
m = Math(data=None, inline=False)

# Tabular
t = Tabular(table_spec='|c|c|', data=None, pos=None)

t.add_hline(start=None, end=None)

t.add_row(cells=(1, 2), escape=False)

t.add_multicolumn(size=2,
                  align='|c|',
                  content='Multicol',
                  cells=None,
                  escape=False)

t.add_multirow(size=3,
               align='*',
               content='Multirow',
               hlines=True,
               cells=None,
               escape=False)

# MultiColumn/MultiRow.
t.add_row((MultiColumn(size=2, align='|c|', data='MultiColumn'), ))

t.add_row((MultiRow(size=2, width='*', data='MultiRow'), ))
Пример #5
0
doc.generate_pdf(filepath='', clean=True)

# SectionBase
s = Section(title='', numbering=True, data=None)

# Math
m = Math(data=None, inline=False)

# Tabular
t = Tabular(table_spec='|c|c|', data=None, pos=None)

t.add_hline(start=None, end=None)

t.add_row(cells=(1, 2), escape=False)

t.add_multicolumn(size=2, align='|c|', content='Multicol', cells=None,
                  escape=False)


t.add_multirow(size=3, align='*', content='Multirow', hlines=True, cells=None,
               escape=False)

# MultiColumn/MultiRow.
t.add_row((MultiColumn(size=2, align='|c|', data='MultiColumn'),))

t.add_row((MultiRow(size=2, width='*', data='MultiRow'),))


# Command
c = Command(command='documentclass', arguments=None, options=None,
            packages=None)
# Figure