Hi You are to cool Peter :-). Some of this I have already figuret out myself. I simply skipped the .PP and just insertet the text after .START. Mom is real nice. Thanks Mikkel Den 04/09/2012 20.03 skrev "Peter Schaffter" <pe...@schaffter.ca>:
> Mikkel -- > > On Tue, Sep 04, 2012, mikkel meinike wrote: > > Basically, I want a square of text that fills a whole A4 sheet to the > > margin. As square as possible. So I need justified text but I guess > > that is default with mom. So I figured it's just to use. .PP and make > > a paragraph and then adjust the font size to fill the sheet out, but. > > .PP makes a paragraph indention per default so how do you make a > > paragraph without indention? > > Insert '.PARA_INDENT 0' after '.PRINTSTYLE'. > > > The second is that I would like to have this square of text in two > > versions. One a portrait A4 and one a landscape A4. How do I do a > > landscape A4 in mom? and from what I understand I will also need to > > find out how I do it in the possessing with groff after i have set > > this in the mom document. > > In the mom file, switch the normal dimensions for A4 after your > .PRINTSTYLE, like this > > .PRINTSTYLE TYPESET > .PAGEWIDTH 842p > .PAGELENGTH 595p > .PARA_INDENT 0 > > How you process the file with groff depends on whether you're > outputting to PostScript or PDF. > > PostScript > ---------- > This is the classical method for generating landscape format: > > groff [-Tps] -P-l [-P-pa4] -mom momdoc.mom > momdoc.ps > > PDF > --- > > The current cvs snapshot contains v2.0 of the mom macros, which > include PDF support, as well as an updated gropdf (-Tpdf) driver and > a wrapper script, pdfmom. Both permit setting the physical paper > size and dimensions from within a mom file without the need for > corresponding -P-l or -P-p<papersize> flags on the command line. > Thus: > > groff -Tpdf -mom momdoc.mom > momdoc.pdf > > or > > pdfmom momdoc.mom > momdoc.pdf > > Simplicity itself. Bear in mind, though, that regardless of the > output generated, you will still have to instruct your printer to > print the file in landscape. > > -- > Peter Schaffter > > Author of The Binbrook Caucus > http://www.schaffter.ca > >