Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/doc/groff-base/html/mom/ drwxr-xr-x |
Viewing file: Select action/file-type:
Version 2.0 notes1. Prefatory commentsVersion 2.0 comes about as a result of Deri James’ contribution of gropdf to groff, and his subsequent work integrating the device with mom. Whereas the 1.x releases were oriented toward PostScript output, 2.0 focuses on PDF output, a bias reflected throughout this documentation. Users are strongly encouraged to process their files with pdfmom, a wrapper around groff -Tpdf, in order to take full advantage of all PDF has to offer. While portions of mom have been rewritten, and new features introduced, 2.0 is backwardly compatible with 1.x releases. Changes are either transparent, or accompanied by notifications on stderr. The implementation of nested heads has been completely rethought, as has the manner of styling of them. There are no limits on how deep the nesting can go. The 1.x macros HEAD, SUBHEAD, and SUBSUHEAD may still be used, but must be re-designed with the new HEADING_STYLE macro if their 1.x defaults are not desired. In conjunction with the changes to nested heads, Table of Contents generation has also been rethought. Greater flexibility in the inclusion of toc entry numbering been added. Like nested heads, there’s a new macro TOC_ENTRY_STYLE that permits styling of each level in the toc hierarchy separately. The default overall layout has also been significantly improved, achieving a level of typographical elegance formerly lacking. Best of all, the Table of Contents can now be repositioned to the correct spot at the top of a document from within the mom source file. When mom files are processed with pdfmom, a PDF outline for the Contents panel of PDF viewers is automatically generated. In addition, entries in the Table of Contents are clickable links when a document is viewed at the screen. pdfmom also permits setting a document’s papersize within the source file without the corresponding need for -P-p<papersize> on the command line. Lastly, while not strictly part of mom, a bash script, install-font.sh, has been posted at the mom site. The script significantly eases the installation of new groff families and fonts, with conversion to .pfa and .t42 being performed by fontforge. 2. Differences between v2.0 and v1.x2.1. PDF supportPDF support has been added, with features including the automatic generation of PDF outlines, embedding of images in PDF format (via the PDF_IMAGE macro) and PDF linking (internal and external). 2.1.1. Producing PDFs with groff and mom
A manual in PDF format,
Producing PDFs with groff and mom,
has been added to the documentation. The file,
mom-pdf.pdf can be found in
2.1.2. PDF_IMAGEA new macro for embedding PDF images has been added, PDF_IMAGE. PDF_IMAGE functions similarly to PSPIC and accepts the same arguments. Differences in implementation are that PDF_IMAGE requires the image dimensions (the bounding box) to be supplied. Instructions for getting the bounding box are included in the documentation entry for PDF_IMAGE. Two additional options, SCALE and ADJUST, allow scaling of the image and optical centering. 2.2. CoversArguments to COVER and DOC_COVER may now be given in any order. 2.3. Headings
The 1.x macros
Styling of headings is managed by a single macro
PARAHEAD is no longer valid. Paragraph heads in 2.0 are created by passing the PARAHEAD argument to .HEADING. Mom will abort with an informational message whenever she encounters .PARAHEAD. 2.4. Margin notes
The macro for setting margin note parameters,
MN_INIT,
has been re-written such that each parameter now has the form
2.5. FloatsA FLOAT macro has been added, which functions similarly to the ms macros’ .KF/.KE, ie the contents of the float are output immediately if there’s room on the page; otherwise, normal text processing continues and the contents are output at the top of the next page. An ADJUST argument to FLOAT allows for optical centering. 2.6. Tables of contents
The default look of the Table of Contents has been overhauled to
produce a more typographically pleasing result. All control macros
for TOC title and entry styles have been removed, replaced by the
macros
Two new TOC control macros have been added,
3. Version 2.1 changesVersion 2.1 adds these features:
The following changes have been made:
3. Version 2.2 changesVersion 2.2 adds these features:
4. pdfmomDeri James has provided pdfmom, a wrapper around groff that processes mom source files with all the PDF bells and whistles. Its use is highly recommended. Usage is explained in the manual, Producing PDFs with groff and mom. A significant convenience of pdfmom is that it can, with the -Tps flag, be used to pass processing over to Keith Marshall’s pdfroff. This is useful when processing files that contain PostScript images embedded with PSPIC. pdfmom, without the flag, uses groff’s PDF device (gropdf), which only recognizes PDF images that have been embedded with PDF_IMAGE. 5. install-font.shA bash script, install-font.sh, has been posted at the mom site. There’s nothing mom-specific about the script, and it is not an official part of groff. Installing groff fonts is a multi-step procedure, which, while not difficult, can be a nuisance. install-font.sh takes care of all the details, including converting fonts to formats acceptable to grops and gropdf, creating and installing the groff fonts in the appropriate directories, updating the download files, and installing the original fonts in a system-wide directory, if desired.
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]-- |