Hello Peter, I have tried the new mom version and it works great. However, I have found an issue with the new heading macros. The documentation states the parameters are position independent, but that doesn't seem to be so for NUMBER and COLOR. Following produces as expected numbers and colors the heading:
.HEADING_STYLE 1 \ FAMILY GSCE \ FONT B \ QUAD LEFT \ NO_CAPS \ COLOR ECBBLUE \ NUMBER \ SPACE OFF \ UNDERLINE OFF \ SIZE +2 \ BASELINE_ADJUST 3p When I move NUMBER one line down, I lose the numbering at this heading level, every line further I move it, I lose next heading. Pretty much same goes for COLOR, the further down I move it, I lose color. Also, the TOC will print all the headings with the same color as I have specified in HEADING_STYLE. Previously mom has done this as well, but I added a setting in my version. Could you add configurable colors to TOC? Petr On Sat, Sep 1, 2012 at 8:39 AM, Peter Schaffter <pe...@schaffter.ca> wrote: > Hi. > > Deri James and I have been working on integrating the mom macros > with the gropdf driver. The results are now in the repository. > > Deri's contributions to om.tmac add key PDF features to mom > documents when they're processed with -Tpdf: internal and external > targets, clickable links, and a PDF outline for document viewers. > In addition, there's automatic, intelligent repositioning of the > Table of Contents to the top of a document (yea!), and the ability > to set page dimensions within a document without the need for a > -P-p<papersize> flag on the command line. > > Deri's work encouraged me to attack version 2.0 of mom, which had > been stuck in the pipeline for a while. Version 2.0 includes > massive code cleanup, improved handling of vertical spacing, > new FLOAT and PDF_IMAGE macros, a typographically improved Table of > Contents, and completely new macros for the management of nested > heads, replacing the now-deprecated HEAD/SUBHEAD/SUBSUBHEAD. > > As of version 2.0, the primary thrust of mom will be toward the > generation of PDF documents, a bias that is reflected throughout > the documentation. Deri has written a flexible wrapper script, > pdfmom (akin to pdfroff), which handles forward references in mom > documents, and is now the preferred way to process mom files. > > Version 2.0 changes are covered in full in the html documentation > > doc/groff-1.21/html/mom/version-2.html > > and in a new manual, _Producing PDFs with groff and mom,_ which > documents mom/pdf usage. The manual lives at > > doc/groff-1.21/pdf/mom-pdf.pdf > > -- > Peter Schaffter > > Author of The Binbrook Caucus > http://www.schaffter.ca >