Re: code review and strategy for macros set?

2020-08-11 Thread Dave Kemper
On 8/11/20, Robert Thorsby wrote: > The CLI to create the file is: > > groff -p -Tps -dpaper=a4 -P-pa4 model_details.gr | ps2pdf -sPAPERSIZE=a4 \ >-sColorModel=Gray -dPDFSETTINGS=/prepress -dEmbedAllFonts=true - > model_details.pdf When I generate a PDF through a "groff -Tps | ps2pdf" pipeli

Re: bug or my ignorance?

2020-08-11 Thread Tadziu Hoffmann
> When I use a macro instead of a diversion, the formatting > seems to take place not until the macro is called. Right? Correct. And you had an empty line after calling the macro, which functions like a ".br" that additionally outputs an empty line.

Re: bug or my ignorance?

2020-08-11 Thread Ulrich Lauther
On Tue, Aug 11, 2020 at 10:31:56AM +0200, Tadziu Hoffmann wrote: > > > So, why behaves the diversion (for me) unexpected, or what > > am I doing wrong? > > Diversions contain text that has been formatted and output. > The partially collected line that exists when you terminate the > diversion has

Re: bug or my ignorance?

2020-08-11 Thread Tadziu Hoffmann
> So, why behaves the diversion (for me) unexpected, or what > am I doing wrong? Diversions contain text that has been formatted and output. The partially collected line that exists when you terminate the diversion has not been output, so it does not become part of the diversion. To achieve wha

code review and strategy for macros set?

2020-08-11 Thread Marc Chantreux
hello people, i finally took some time to write some roff without the help of existing macros set so i could figure out how hard it would maintain my own page layout and macros set. i got this document: http://mc.aude.re/tmp/r.pdf from this code : https://github.com/eiro/roff-experience Now