Groff
Man pages
man groffman groff_msman groff_charman eqnman tblman picman refer
Groff is a document formatting system. It is a typesetting system that creates formatted output when given plain text mixed with formatting commands.
All the instructions on this page are targeted to the ms macros. You can find the man pages by typing man groff_ms.
Conversions
From .ms to .pdf
groff -ms test.ms -T pdf > test.pdf
Mathematical from .ms to .pdf
groff -ms -e test.ms -T pdf > test.pdf
It uses the eqn preprocessor
Example
.TLMy Document Title.AUThe author of the document.NHThis is a numbered Header.NH 2This is a numbered sub header.NH 3This is a numbered sub sub header.SHThis is a non numbered Header.PPThis is an indented parapraph.LPThis is an un-indented paragraph.PPThis is another paragraph, but.B "this text is in bold".In addition,.I "this text is in italics",and.BI "this is bold italic".
Tables
.TStab(#);c c c .Name#Surname#PositionJohn#Doe#ProgrammerAlice#Doe#Publisher.TE
To compile, you must use the tbl preprocessor:
groff -ms -t test.ms -T pdf > test.pdf
More info at man tbl
8 Bit Characters
If you want to convert a .ms document that uses non common 8 bit characters (basically all languages except English), you must use this command:
preconv test.ms | groff -ms -T pdf > test.pdf
For the full list of characters, visit man groff_char