eelbrain.fmtxt.Section

class eelbrain.fmtxt.Section(heading, content=None)

Document section containing a title and content

Parameters:
  • heading (FMTextLike) – Section heading.

  • content (FMTextLike) – Section content. Can also be constructed dynamically through the different .add_… methods.

Methods

add_figure(caption[, content, options])

Add a figure frame to the section

add_image_figure(image, caption[, alt])

Add an image in a figure frame to the section

add_paragraph([content])

add_section(heading[, content])

Add a new subordinate section

append(content)

Append content to the FMText item

copy_pdf()

Copy PDF to clipboard

copy_tex()

Copy TeX to clipboard

get_html([env])

Complete HTML representation

get_rtf([env])

get_str([env])

String representation

get_tex(env)

TeX representation

save_html([path, embed_images, meta])

Save in HTML format

save_pdf([path])

Save in PDF format

save_rtf([path])

Save in Rich Text format

save_tex([path])

Save in TeX format

save_txt([path])

Save as plain text file