Description Usage Arguments Details Examples
Provides the code to start a new section, chapter, or subsection.
1 2 3 4 5 6 |
heading |
The name of the section or subsection |
type |
Type of section. |
ordered |
Logical. Determines if the section is numbered |
counter |
Name of a the counter to be used for this section.
When |
counterSet |
Value to which |
label |
The label to be used with |
font |
Font to be used in HTML files |
family |
Font family to be used in HTML files |
size |
Font size. I'm pretty sure this doesn't actually get used, but haven't gotten around to verifying this. Heading sizes are set using the HTML <H ... > tags |
leadspace |
For HTML reports, should several lines of white space be placed before the section header. This helps to create a visual break between sections |
floatBarrier |
Figures and tables in LaTeX are floating objects
that LaTeX may choose to place somewhere other than where specified in
order to optimize appearance. This is not always desirable.
|
For HTML, Sections titles are printed using the <Hx ...>
tags,
where x
is the heading number. H1
is the largest heading
size and H6
is the smallest. Chapter headings use <H2>
;
sections use <H3>
; subsections use <H4>
; and subsubsections
use <H5>
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
lazy.write(
lazy.file.start(),
lazy.section("Section A", ordered=TRUE),
lazy.text("Notice that Section A is numbered"),
lazy.section("Subsection", type="sub", ordered=FALSE),
lazy.text("But the subsection is not numbered"),
lazy.file.end(),
OutFile="Example-1.tex")
unlink("Example-1.tex")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.