View source: R/post-process-table-of-contents.R
post_process_table_of_contents | R Documentation |
Insert the table of contents into TeX code
post_process_table_of_contents(
x,
toc_depth = NULL,
toc_section_indent_inch = NULL,
toc_section_num_width_inch = NULL,
toc_subsection_indent_inch = NULL,
toc_subsection_num_width_inch = NULL,
toc_subsubsection_indent_inch = NULL,
toc_subsubsection_num_width_inch = NULL,
...
)
x |
Tex code, as a vector of lines read in from a TeX file by
|
toc_depth |
The depth of the entries in the table of contents: 2 means 1.2, 3 means 1.2.3, 4 means 1.2.3.4, etc |
toc_section_indent_inch |
Indent value in inches for section headers in the TOC |
toc_section_num_width_inch |
Width of section numbers in inches in the TOC |
toc_subsection_indent_inch |
Indent value in inches for subsection headers in the TOC |
toc_subsection_num_width_inch |
Width of subsection numbers in inches in the TOC |
toc_subsubsection_indent_inch |
Indent value in inches for subsubsection headers in the TOC |
toc_subsubsection_num_width_inch |
Width of subsubsection numbers in inches in the TOC |
... |
Absorb arguments meant for other functions |
The modified Tex code, as a vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.