Convert MDOC to TEX
Turn MDOC files into LaTeX. A complete LaTeX article with headings, lists, tables and links; text outside Latin scripts needs a Unicode TeX engine.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MDOC files on the dialor turn it to pick what to do
A LaTeX article from a man page.Headings, lists, tables and links come across as LaTeX source.
What you get
One TEX file holding a complete LaTeX article. Sections become headings, and tag lists become definition lists.
Flags, arguments and command names are set as code. Column lists become tables, and the first row of such a table is not a header.
What changes
Macros that stand for whole sentences, such as .Ex -std, are written out as those sentences in the text. The section number is dropped.
Text outside Latin scripts needs a Unicode TeX engine to compile.
MDOC and TEX.What each format is.
The formats
BSD mdoc Manual
Manual pages written in the semantic mdoc macros of BSD systems and macOS.
- Extensions
- .mdoc
- MIME type
- text
/x -mdoc - Kind
- Text and data
LaTeX
LaTeX source, the typesetting language of academic papers and theses.
- Extensions
- .tex .latex
- MIME type
- application
/x -tex - Kind
- Text and data
In your code.The same MDOC to TEX conversion through the API, for your app or your agent.
$ cv convert report.mdoc report.tex$ cv convert report.mdoc report.texQuestions.What people ask about MDOC to TEX.
The output is a complete LaTeX article, not a fragment. For text outside Latin scripts, use a Unicode TeX engine.
They become definition lists. The tag is the term and the text under it is the description.
No. The section number is dropped.
It is written out as the sentence the macro stands for. The same holds for other macros of that kind.