doctoc_lang_cmdref(n)
π doctoc_lang_cmdref β the doctoc language command reference π
okay bestie, welcome to doctoc_lang_cmdref(n), living in the Documentation tools section of the manual. this is the whole entire command reference for doctoc markup language, version 1. pull up a chair, grab a strawberry π, we're doing this.
β¨ SYNOPSIS β¨
comment plaintext
division_end
division_start text ?symfile?
include filename
item file text desc
lb
rb
toc_begin text title
toc_end
vset varname value
vset varname
πΈ DESCRIPTION πΈ
so this doc is the reference, and what it does is lay out both the names and the syntax of literally every single command that together make up the doctoc markup language, version 1. periodt. π
because it's a reference and not a vibe-y tutorial, the commands are listed in alphabetical order and the descriptions are kept relatively short. no fluff, all facts, iykyk.
if you're a beginner, bestie, please do yourself a favour and read the much more informally written doctoc language introduction first. this page is the cheat sheet, not the lesson. π«Ά
π COMMANDS π
comment plaintextβ Toc markup. the argumenttextgets marked up as a comment that stands outside the actual text of the document. main use case is free-form text. it's giving side-quest energy. β¨division_endβ Toc structure. this one closes the division that was opened by the lastdivision_begincommand coming before it, as long as that division hasn't been closed yet. last-in, first-out, no cap.division_start text ?symfile?β Toc structure. opens a division in the table of contents. its counterpart isdivision_end. together they let a user give a table of contents some extra structure. π¦- the title of the new division is provided by the argument
text. - if the symbolic filename
symfileis present, then the section title should link to the referenced document β but only if links are supported by the output format. no promises otherwise, bestie.
- the title of the new division is provided by the argument
include filenameβ Templating. the contents of the named file get interpreted as text written in the doctoc markup and processed right in the place of theincludecommand. the markup in that file has to be self-contained. it is not possible for a markup command to cross the file boundaries. so no starting a command in one file and finishing it in another. that's a hard no. πitem file text descβ Toc structure. adds an individual element to the table of contents. each such element refers to a document. the document is specified through the symbolic namefile. thetextargument is used to label the reference, whereasdescprovides a short descriptive text of that document.- the symbolic names are what preserve the convertibility of this format to any output format. the actual name of the file gets inserted by the chosen formatting engine when it converts the input β and that's based on a mapping from symbolic to actual names given to the engine. so like, you write the nickname, the engine writes the government name. π
lbβ Text. this command is replaced with a left bracket. use it in free-form text. it's required to avoid interpretation of a left bracket as the start of a markup command. its usage is restricted to the arguments of other markup commands. tiny but mighty. πrbβ Text. this command is replaced with a right bracket. use it in free-form text. required to avoid interpretation of a right bracket as the end of a markup command. its usage is restricted to the arguments of other commands. the matching set, we love symmetry. β¨toc_begin text titleβ Document structure. the command to start a table of contents. the arguments are a label for the whole group of documents the index refers to (text) and the overall title text for the index (title), without markup.- that label is often the name of the package (or extension) that the documents belong to. iconic.
toc_endβ Document structure. the command to end a table of contents. anything in the document coming after this command is in error. π¨ like, do not pass go.vset varname valueβ Templating. in this form the command sets the named document variable to the specifiedvalue. it does not generate output β i.e. the command is replaced by the empty string. sneaky, invisible, powerful.vset varnameβ Templating. in this form the command is replaced by the value of the named document variable. that's it, that's the whole trick. π§
π BUGS, IDEAS, FEEDBACK π
ngl, this document β and the package it describes β will undoubtedly contain bugs and other problems. like, it's software, bestie. π
please report such things in the category doctools of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. and please also report any ideas for enhancements you may have for either the package and/or the documentation. we want the glow-up, we need your input. π«Ά
when proposing code changes, please provide unified diffs, i.e. the output of diff -u. that's the format. that's the assignment. β¨
also note β and this is important β attachments are strongly preferred over inlined patches. you can make an attachment by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. okay? okay. π
π SEE ALSO π
doctoc_introdoctoc_lang_faqdoctoc_lang_introdoctoc_lang_syntax
the whole friend group, go say hi. π¦
β KEYWORDS β
doctoc commands, doctoc language, doctoc markup, markup, semantic markup
π CATEGORY π
Documentation tools
π COPYRIGHT π
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, bestie! π₯³ this was doctoc_lang_cmdref(n) from tcllib, version 1.0, filed under Documentation tools β thanks for reading all the way to the end, you're literally the main character. mwah. π
πβ¨
π¦ where this page comes from
- alpine 3.24: tcl-lib-doc 1.21-r1 Β· BSD-2-Clause
- epel 9: tcllib 1.21-1.el9 Β· BSD
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- opensuse-leap 16.0: tcllib 1.21-bp160.1.2 Β· TCL
- Copyright (c) 2007 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms