cover.html#TOPNext   
headfootpage.html#TOPPrev   
toc.htmlBack to Table of Contents 	
RECTO/VERSO PRINTING and COLLATING
	
Recto/verso and collating
	
#RECTOVERSO_INTROIntroduction to recto/verso 	
		
#RECTOVERSO_LISTMacro list 	
	
#COLLATE_INTROIntroduction to collating 	
		
#COLLATEThe COLLATE macro 	
	
Introduction to recto/verso
Recto/verso printing allows you to set up a 
momdocument in such a way that it can be printed on both sides of a
printer sheet and subsequently bound.
With recto/verso, 
mom automatically takes control
of the following aspects of alternating page layout:
	
switching left and right margins (if they're not equal)
	
switching the left and right parts of the default 3-part
		
definitions.html#TERMS_HEADERheaders 		or
		
definitions.html#TERMS_FOOTERfooters 		(see the
		
headfootpage.html#DESCRIPTION_GENERALGeneral description of headers )
	
switching
		
headfootpage.html#HDRFTR_RECTOVERSOHEADER_RECTO 		and
		
headfootpage.html#HDRFTR_RECTOVERSOHEADER_VERSO 		if user-defined, single string recto/verso headers
		or footers are used in place of the default 3-part
		headers or footers
	
switching the page number position (if page numbers are not centered)
It is beyond the scope of this documentation to cover the different
ways in which you can make your printer print on both sides of a sheet.
A simple but effective method for those of us with "dumb"
printers is to open the document (after it's been processed into
PostScript by groff -- see
using.html#USING_INVOKINGHow to invoke groff with mom )
in 
gv (ghostview),
click the "odd pages" icon, then click "Print
Marked".  After printing is complete, rearrange the sheets
appropriately, put them back in your printer, and have
gv print the "even pages".  If you prefer to
work from the command line, check out the man pages for
pstops and psbook.  There are other
programs out there as well to help with two-sided printing.
	
Recto/verso macros list
	
#RECTO_VERSORECTO_VERSO 	
#SWITCH_HDRFTRSWITCH_HEADERS (also FOOTERS) 	
Recto/verso printing
Macro: 
RECTO_VERSOIf you want 
mom to set up alternating pages for
recto/verso printing, simply invoke 
RECTO_VERSOwith no argument.
NOTE:Recto/verso always switches the left and right parts of
definitions.html#TERMS_HEADERheaders or
definitions.html#TERMS_FOOTERfooters on odd/even pages.  However, it only switches the left and right
margins if the margins aren't equal.  Consequently, it is your
responsibility to set the appropriate differing left and right
margins with
typesetting.html#L_MARGINL_MARGIN and
typesetting.html#R_MARGINR_MARGIN (prior to
docprocessing.html#STARTSTART )
or with
docprocessing.html#DOC_LEFT_MARGINDOC_LEFT_MARGIN and
docprocessing.html#DOC_RIGHT_MARGINDOC_RIGHT_MARGIN (before or after 
START).
Equally, recto/verso only switches the page number position if page
numbers aren't centered, which means you have to set the page
number position with
headfootpage.html#PAGENUM_POSPAGENUM_POS (before or after 
START).
	
Switch header left part/right part
Macro: 
SWITCH_HEADERSSWITCH_HEADERS switches the location of the
header left string (by default, the author) and the header right
string (by default, the document title).  If you don't like
mom's default placement of author and title, use
SWITCH_HEADERS to reverse it.
SWITCH_HEADERS can also be useful in conjuction
with
#RECTO_VERSORECTO_VERSO .
The assumption of 
RECTO_VERSO is that the first
page of a document (recto/odd) represents the norm for header-left
and header-right, meaning that the second (and all subsequent even)
page(s) of the document exchange header-left and header-right.
If 
mom's behaviour in this matter is not what
you want, simply invoke 
SWITCH_HEADERS on the
first page of your recto/verso document to reverse her default
treatment of header parts.  The remainder of your document (with
respect to headers) will come out as you want.
NOTE: Replace _HEADERS, above,
with 
_FOOTERS if your document uses footers.
	
Introduction to collating
The macro 
COLLATE lets you join documents together.
Primarily, it's a convenience for printing long documents that
comprise several chapters, although it could be used for any
document type (except 
LETTER).
Personally, I prefer to keep chapters in separate files and print
them out as needed.  However, that means keeping track of the correct
starting page number for each chapter, a problem circumvented by the
use of 
COLLATE.
When collating chapters, you need only put 
.COLLATEat the end of a chapter, follow it with any
docprocessing.html#REFERENCE_MACROSreference macros needed for the new chapter, e.g.
docprocessing.html#CHAPTERCHAPTER or
docprocessing.html#CHAPTER_STRINGCHAPTER_STRING (have a look at the
#CHAPTER_NOTESpecial Note on CHAPTER )
make any pertinent style changes to the document (unlikely, but
possible), and re-invoke the
docprocessing.html#STARTSTART macro.  Your new chapter will begin on a fresh page and behave
as expected.
COLLATE assumes you are collating documents/files
with similar type-style parameters hence there's no need for
PRINTSTYLE to appear after COLLATE,
although if you're collating documents that were created as separate
files, chances are the 
PRINTSTYLE's already there.
Two words of caution:	
Do not collate documents of differing
		
PRINTSTYLES (i.e. don't try to
		collate a TYPESET document and TYPEWRITE document --
		why would you want to do that anyway?)
	
Use DOC_FAMILY instead of
		
FAMILY if, for some reason, you want
		to change the family of all the document elements after
		
COLLATE.  FAMILY, by
		itself, will change the family of paragraph text only.
	
Collate document files
Macro: 
COLLATEThe most basic (and most likely) collating situation looks like
this:
	.COLLATE
	.CHAPTER 17
	.START
A slightly more complex version of the same thing, for chapters
that require their own titles, looks like this:
	.COLLATE
	.CHAPTER_STRING "Geek Fatigue: Symptoms and Causes"
	.START
NOTE: See the
#CAUTIONtwo words of caution ,
above.
cover.html#TOPNext   
headfootpage.html#TOPPrev   
#TOPTop   
toc.htmlBack to Table of Contents 