post_process_table_of_contents: Insert the table of contents into TeX code

View source: R/post-process-table-of-contents.R

post_process_table_of_contentsR Documentation

Insert the table of contents into TeX code

Description

Insert the table of contents into TeX code

Usage

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,
  ...
)

Arguments

x

Tex code, as a vector of lines read in from a TeX file by readLines()

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

Value

The modified Tex code, as a vector


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.