tedoc.tes(1)
tedoc.tes(1) β hiii bestie, welcome to the General Commands Manual, this one's the page for tedoc.tes and it is genuinely so useful, trust π
πΈ NAME πΈ
tedoc β the source code documentation tool for SciTECO. that's the whole vibe, no cap.
β¨ SYNOPSIS β¨
tedoc.tes [-C] [--] output template sources...
π¦ DESCRIPTION π¦
okay so tedoc is a tool for extracting documentation from SciTECO macros and from C/C++ code, which is honestly iconic of it. it's used to document SciTECO's internal commands as well as macro packages β¨
the way it works: it processes special SciTECO comment blocks out of the sources, generates troff man-page markup, and inserts that markup into a man-page template right at the position of the TEDOC pseudo-request π then the result gets written to an output file. so lowkey tedoc can be understood as a troff preprocessor β that's the whole personality π«Ά
π OPTIONS π
-Cβ instructstedocto extract C/C++ comments instead of SciTECO comments. the C comments begin with/*$and end with*/. the SciTECO comments, in contrast, begin with!*$and end with*!π (yes, different delimiters, keep up bestie)outputβ the resulting man-page file πtemplateβ a man-page template, i.e. a man-page with theTEDOCrequest in it πsources...β an arbitrary number of source code files to scan through. ngl, the comments are extracted in document order, i.e. from the first comment in the first source file to the last comment in the last source file specified π
π§ TEDOC COMMENTS π§
the tedoc source code comments support a small but powerful semantic markup for documenting SciTECO commands and macros, and it's giving main character energy:
- comments start with
!*$(or/*$in C/C++ mode) β - the first line (immediately after the starting comment) may contain topic keywords for SciTECO's online help system that will point to the beginning of the section generated for this tedoc comment. this generates
SCITECO_TOPICmacro calls defined insciteco.tmac(seegrosciteco.tes(1)). π₯ - all lines until first empty line are syntax descriptions βοΈ
- text followed by
--is a short description π©· - variable values and characters of syntactic significance should be detected automatically π€
- alternatives are denoted by
|β pick a lane, or don't π - every line is an alternative (e.g. different calling forms of the same command or macro) π
- return values may be specified after
->π― - the remaining text is the verbose command description π
<name>denotes a variable from the syntax description π·οΈ- empty lines introduce paragraphs π
- lines beginning with
-are unordered lists π - lines beginning with numbers and dot (
1.,2., etc.) are ordered lists π’ - these transformations are only preprocessing, so that troff requests, macros and escapes may also be used freely π (yes, freely, go off)
π SEE ALSO π
- SciTECO invocation and help on its environment variables:
sciteco(1) - a GNU roff post-processor for rendering troff markup into βwomanpagesβ for SciTECO's online help system β also documents special troff macros in
sciteco.tmac:grosciteco.tes(1)π - the GNU roff βmanβ macros for writing man pages:
groff_man(7)π
π AUTHOR π
this manpage and the SciTECO program was written by Robin Haberkorn. absolute legend fr fr π
and that's the page!! π¦ this was SciTECO Version 2.5.2, dated 30 Apr 2026 β slay, go document something, ily bye πβ¨
π¦ where this page comes from
- alpine 3.24: sciteco-doc 2.5.2-r0 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms