“You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell
Andres Conrado Montoya schrieb am 27.06.2019 um 19:22:
\startsetups [chapter:before]Hi List, it seems my message went unnoticed, if you can help me out, please do. I'm an struggling with this layout.I'm trying to make something using bits and examples found here and elsewhere, but I'm hitting a wall. I know there's a flawed logic in my approach, but I can't figure it out. Any help is appreciated.Expected behavior of the following MWE:When starting a new chapter, check if the page is even (left page), if so, fill it with color, and start the chapter in the next odd page (right page), removing the header but leaving the footer in that start-chapter page; and if this is a start-chapter page, use a specific graphic overlay for the page, but if if not (if its a regular page), use another graphic.Result:The header still appears in the start-chapter page, if it comes after the color filled page. But, if the start-chapter page comes after a regular (even) page, everything works as expected (no color-filled page, no header in the start-chapter page).MWE:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% START MWE[...]
\startsetups [chapter:before]
\doifoddpageelse
{}
{\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
\popbackground}
\stopsetups
\page
\doifoddpageelse
{}
{\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,header,footer,right]
\popbackground}
\stopsetups
Apply the above setup with\setuphead[chapter]
[width=20em,
before=\directsetup{chapter:before},
beforesection=\directsetup{chapter:before},
Wolfgang