Convert MDOC to JATS
Turn MDOC files into JATS. A JATS article with sections, lists, tables, links and footnotes; the title, authors, date and abstract go into its front matter.
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 man page as a JATS article.Sections, lists, tables and links come across, and the title goes into the front matter.
What you get
One JATS file with the manual's content as an article. The title, authors, date and abstract go into the front matter. The body keeps sections, lists, tables, links and footnotes.
Sections become headings. Tag lists become definition lists. Flags, arguments and command names are marked as code.
What changes
Column lists become tables, and the first row of each table is not treated as a header.
Some macros stand for whole sentences. A macro such as .Ex -std is written out as the sentence it stands for, so the text is in the article.
The section number is dropped.
MDOC and JATS.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
JATS Article
Journal Article Tag Suite XML, the format of journal articles in PubMed Central and many publishers' archives.
- Extensions
- .nxml .jats
- MIME type
- application
/jats +xml - Kind
- Text and data
In your code.The same MDOC to JATS conversion through the API, for your app or your agent.
$ cv convert report.mdoc report.nxml$ cv convert report.mdoc report.nxmlQuestions.What people ask about MDOC to JATS.
They go into the front matter of the JATS article, along with the date and the abstract.
Flags, arguments and command names are marked as code in the output.
No. Column lists become tables whose first row is not a header.
No. The section number is dropped.