[Groff] for amusement only

2016-01-29 Thread Doug McIlroy
I was surprised to see atomic physics arise on this mailing list. It took a while to realize that spdf, engraved in memory as the energy-level sequence in a Bohr atom, has an alternate parsing of general interest to groffers. Doug

Re: [Groff] pdfroff: does spdf work well with RP?

2016-01-29 Thread Anton Shterenlikht
>> How can I make the title page be the >> very first page in the final PDF file? > >Use the '--stylesheet' option to pdfroff; see the manpage for details, >and the build procedure for pdfmark.pdf, in the groff source distribution. ok, got it. I have to hack my own cover page, because ms' default

Re: [Groff] pdfroff: does spdf work well with RP?

2016-01-29 Thread Keith Marshall
On 29/01/16 12:50, Anton Shterenlikht wrote: > With pdfroff I get > > macro error: RP is not allowed after the first page has started > > even when RP is used before TL, AU, etc. > > If I don't use RP, then the title info appears > after TOC and references, which is not great. > How can I make

Re: [Groff] pdfroff 1.22 calls groff 1.19 -help

2016-01-29 Thread Steffen Nurpmeso
Anton Shterenlikht wrote: |>This script will prefer environment variables GROFF_BIN_DIR then |>GROFF_BIN_PATH (why is all that, btw.? ph!) falling back to |>PATH as a last option only. So doing |> |> $ ( GROFF_BIN_PATH=/usr/local/bin/; $GROFF_BIN_PATH/pdfroff ) |> |>should do it, no?

[Groff] pdfroff: does spdf work well with RP?

2016-01-29 Thread Anton Shterenlikht
With pdfroff I get macro error: RP is not allowed after the first page has started even when RP is used before TL, AU, etc. If I don't use RP, then the title info appears after TOC and references, which is not great. How can I make the title page be the very first page in the final PDF file? T

Re: [Groff] pdfroff 1.22 calls groff 1.19 -help

2016-01-29 Thread Anton Shterenlikht
>This script will prefer environment variables GROFF_BIN_DIR then >GROFF_BIN_PATH (why is all that, btw.? ph!) falling back to >PATH as a last option only. So doing > > $ ( GROFF_BIN_PATH=/usr/local/bin/; $GROFF_BIN_PATH/pdfroff ) > >should do it, no? Not seldom the quality of packages is r

Re: [Groff] pdfroff 1.22 calls groff 1.19 -help

2016-01-29 Thread Steffen Nurpmeso
Anton Shterenlikht wrote: |This is on FreeBSD 10.2-RELEASE-p9, |with base OS groff, /usr/bin/groff at 1.19.2, |and groff-1.22.2_3 istalled via packages |under /usr/local/bin. | |When I try to run pdfroff 1.22, it pulls |groff 1.19: | |$ /usr/local/bin/pdfroff --version |GNU pdfroff (grof

[Groff] pdfroff 1.22 calls groff 1.19 -help

2016-01-29 Thread Anton Shterenlikht
This is on FreeBSD 10.2-RELEASE-p9, with base OS groff, /usr/bin/groff at 1.19.2, and groff-1.22.2_3 istalled via packages under /usr/local/bin. When I try to run pdfroff 1.22, it pulls groff 1.19: $ /usr/local/bin/pdfroff --version GNU pdfroff (groff) version 1.22.2 GNU groff version 1.19.2 Cop

Re: [Groff] pdfmark XN help

2016-01-29 Thread Anton Shterenlikht
Hi Keith, spdf is a very useful macro, thank you. I get good results with it: http://eis.bris.ac.uk/~mexas/cgpack/doc.pdf (except for pdfroff errors reported in the prev. mail). However, I get errors using both XN macros with .pdfhref L requests. Is such mixed use allowed? If not, how can I comb

Re: [Groff] pdfmark XN help

2016-01-29 Thread Anton Shterenlikht
>No, pdfmark doesn't, but if you use pdfroff rather than groff, then it >will take care of TOC relocation for you; you will also need to use >pdfroff, (or Deri's "-Tpdf" capability), to properly format active cross >references within the document body. > >Finally, if you are using pdfroff, and you