doctoc_lang_cmdref(3tcl)
β¨ doctoc_lang_cmdref β the doctoc language command reference β¨
okay bestie so this is doctoc_lang_cmdref, from the 3tcl manual, and it's basically the master list of every single command in the doctoc markup language. every one. no skips. let's go π
π 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 document does two things at once (multitasking queen π): it tells you the names of every command in the doctoc markup language, and the syntax of each one. version 1, specifically. π
because this is a reference and not a tutorial, the commands are listed in alphabetical order and the descriptions are pretty short β like, snack-sized. if you're a beginner, pls pls pls go read the way more informally written doctoc language introduction first, fr fr. this page is not the vibe for learning from scratch. π«Ά
π COMMANDS
comment plaintextβ toc markup, bestie. the argumenttextgets marked up as a comment that stands outside the actual text of the document. main use case is in free-form text. π¬division_endβ toc structure. this one closes the division that was opened by the lastdivision_begincommand coming before it and not yet closed. it's the closer. the periodt of divisions. πͺdivision_start text ?symfile?β toc structure. this one opens a division in the table of contents. its counterpart isdivision_endβ they're a duo, a package deal. together they let a user give a table of contents some extra structure. β¨
the title of the new division comes from the argument text.
and if the symbolic filename symfile is present, then the section title should link to the referenced document β if links are supported by the output format. (if not, well. π)
include filenameβ templating. the contents of the named file get interpreted as text written in doctoc markup, and processed right in the place of theincludecommand. important: the markup in that file has to be self-contained. a markup command cannot cross the file boundaries. no hopping fences. π§item file text descβ toc structure. adds one individual element to the table of contents. each such element refers to a document, and that document is specified through the symbolic namefile. thetextargument labels the reference, whiledescgives a short descriptive text of that document. π
the symbolic names are there to 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 β based on a mapping from symbolic to actual names that you give to the engine. iykyk. π₯
lbβ text. gets replaced with a left bracket. use it in free-form text. it's required to avoid a left bracket being interpreted as the start of a markup command. β οΈ its usage is restricted to the arguments of other markup commands.rbβ text. gets replaced with a right bracket. use it in free-form text. required to avoid a right bracket being interpreted as the end of a markup command. β οΈ its usage is restricted to the arguments of other commands.toc_begin text titleβ document structure. the command that starts 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. π
the label is often the name of the package (or extension) that the documents belong to.
toc_endβ document structure. the command that ends a table of contents. π
anything in the document coming after this command is in error. so like. don't. π
vset varname valueβ templating. in this form, the command sets the named document variable to the specified value. it does not generate output β i.e. the command is replaced by the empty string. silent but powerful. π€«vset varnameβ templating. in this form, the command is replaced by the value of the named document variable. πͺ
π BUGS, IDEAS, FEEDBACK
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. it's giving humble but also realistic. pls report such things in the category doctools of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. and while you're there, also report any ideas for enhancements you may have for either the package and/or the documentation. we love a glow-up suggestion. π
when proposing code changes, pls provide unified diffs, i.e. the output of diff -u. no cap.
also note further that 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. that's the one. π
π SEE ALSO
doctoc_intro, doctoc_lang_faq, doctoc_lang_intro, doctoc_lang_syntax
go read those too bestie, they're all part of the family π
π 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!! this came from tcllib, version 1.0, and it's the doctoc_lang_cmdref(3tcl) page. ty for reading, you absolutely ate this π
β¨π π¦
π¦ where this page comes from
- debian bookworm: tcllib 1.21+dfsg-1 Β· BSD
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu jammy: tcllib 1.20+dfsg-1 Β· BSD
- ubuntu noble: tcllib 1.21+dfsg-1 Β· BSD
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· 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