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.

  1. 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.

  2. 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

From · MDOC

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
To · JATS

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.

terminal
$ cv convert report.mdoc report.nxml
$ cv convert report.mdoc report.nxml

Questions.What people ask about MDOC to JATS.

01OF 04

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.

More conversions.Other ways in and out of MDOC and JATS.