2022.2

Table Of Contents
duplexpagesasinacalendar,andFacing pagestohavethemarginsofthesectionswitch
alternately,sothatpagesareprintedasifinamagazineorbook.
3. IftheoptionSame for all positionsischecked,thesameMediawillbeappliedtoeverypagein
theprintsection.Uncheckthisoption.
4. DecidewhichMediashouldbelinkedtoeachsheetposition:clickthedownwardpointingarrow
afterMediaandselectaMedia.
5. Optionally,decidewhichMasterPageshouldbelinkedtoeachsheet;see"MasterPages"on
page141.
Note: WhenbothMediaandaMasterPageareusedonacertainpage,theywillbothbe
displayedonthePreviewtaboftheworkspace,theMasterPagebeing'infront'ofthe
MediaandthePrintsectionontop.ToopenthePreviewtab,clickitatthebottomofthe
WorkspaceorselectView > Preview Viewonthemenu.
Note: MasterPages,MediaandDuplexprintingoptionscanalsobesetinaControlScript(see
"ControlScripts"onpage398and"ControlScriptAPI"onpage815).Thisisespeciallyuseful
whenyouneedidenticalsectionswithdifferentsettings.
Dynamically switching the Media
InadditiontoapplyingMediatosheetsviathesettings,itispossibletochangeMediadynamically,
basedonavalueinadatafield,inascript.Thescripthasalreadybeenmade;youonlyhavetochange
thenameoftheMediaandthesectioninthescript,andwritetheconditiononwhichtheMediahasto
bereplaced.
1. OntheResourcespane,expandtheContextsfolder,expandthePrintcontext,right-clickthe
printsectionandclickSheet configuration.
2. Decidewhichpagesshouldhavedynamicallyswitchingmedia:everyfirstpageinthePrintsec-
tion,everylastpage,oneofthepagesinbetween(a'middlepage'),orasinglepage.(Uncheck
theoptionSame for all positions,toseeallpagepositions.)
3. Intheareafortherespectivesheetposition,clicktheEdit scriptbuttonnexttoMedia.The
ScriptWizardappearswithastandardscript:
results.attr("content","Media 1");
Media1willhavebeenreplacedwiththenameofthemediaselectedforthechosensheetpos-
ition.
Page 148