TEXI2MDOC(1)
π TEXI2MDOC(1) π
okay so bestie, welcome to the General Commands Manual for texi2mdoc β she's giving "tiny utility, very specific job" energy and honestly? we stan. π
β¨ NAME β¨
texi2mdoc β convert texinfo documents to mdoc, no cap π
β¨ SYNOPSIS β¨
texi2mdoc [-I dirs] [file]
β¨ DESCRIPTION β¨
So the texi2mdoc utility does the thing: it converts GNU Texinfo documents into mdoc(7), mixed with tbl(7) when it applies. πΈ By default, texi2mdoc reads from standard input β very demure, very mindful. π§
Here's what her arguments look like:
-I dirsβ colon-separated directories to search for@includefiles. literally a little breadcrumb trail of places to look. πfileβ a Texinfo input file. if you specify it, the directory of file gets prepended to the list of-Idirectories. main character behavior. π
texi2mdoc can understand a significant subset of the texinfo language β she's not fluent in all of it, but she knows enough to hold a conversation. π¦ She recognises herself as a plaintext formatter. The produced document's title is set to the filename of the file, and the description is set to the contents of the @settitle command. periodt. π
β¨ EXIT STATUS β¨
The texi2mdoc utility exits 0 on success, and >0 if an error occurs. so like, zero means we ate, anything above zero means something went off. ππ₯
β¨ SEE ALSO β¨
β¨ AUTHORS β¨
The texi2mdoc utility was written by Kristaps Dzonsons <kristaps@bsd.lv>. king behavior, we love to see it. ππ
β¨ CAVEATS β¨
ngl, there's some stuff you should know before you get too comfortable:
- The output consists of superfluous β
Ppβ that cause
% mandoc -Tlint
to complain. she's a little messy, it's part of the charm. π
- Many commands that might contain useful information (such as
@footnote) are thrown away. gone. reduced to atoms. π - The comma in Texinfo macro arguments may at times be escaped with a backslash. This is not supported. so like, don't come for her about that one. π
β¨ SECURITY CONSIDERATIONS β¨
As a security precaution, texi2mdoc does not allow the inclusion (via @include or @verbatiminclude) of absolute paths or paths with .. as directory components. π«Ά so no sneaky escapes β she said "not on my watch". π₯
π written with love by the Debian crew, dated February 25, 2015 β yeah she's been iconic for a minute. stay hydrated, read your man pages, and slay. π
β¨π
π¦ where this page comes from
- nixos 26.05: texi2mdoc 0.1.2
- nixpkgs unstable: texi2mdoc 0.1.2
- Copyright (c) 2015 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms