Additions to quadwriter page model: verso/recto, header, footer, margin
#9
Open
opened 6 years ago by otherjoel
·
4 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Some thoughts around layout in quadwriter
At various points in a quadwriter doc you could specify q-expressions to be used as the content of header/footer from that page onwards, since these most often have repeating content.
For marginal notes, a q-expression that would go into "the margin" (side of which would vary on even/odd pages), horizontally aligned with its neighboring content. Maybe with a "push" attribute to nudge it up or down.
Verso- and recto-aware sizing of page header, footer, margins, that could change within a document. For reference, from the memoir class manual:
I agree, though I’m guessing it should be tied to a notion of a logical separation (in word-processor parlance a “section”) So in addition to headers and footers, each section could have its own page size, etc.
What kind of guarantees does LaTeX make about margin notes? For instance, if the note is too long to fit on the page, what happens?
I agree. Also makes me think that
inner
andouter
should be line-alignment options (as opposed to justleft
andright
)This is a tricky question to answer. Most generally, LaTeX considers marginal paragraphs, figures, tables and footnotes (maybe other things too) to fall under a "Floats" rubric. You can suggest where a Float should go but the ultimate position is left to the typesetting engine. Section 10.4 of the
memoir
class manual (PDF) talks about (some of) the details.For side/marginal notes and paragraphs, LaTeX offers different commands that make different guarantees, such as allowing them to run to more than one page, or having LaTeX keep track of the height of the notes to prevent them from overlapping. Section 12 of the manual linked above describes this and contains some hints as to how LaTeX tries to handle things internally:
Ugh, I’m getting dizzy.
\parnopar
? Who can remember all this?IMO the right way to do footnotes and margin notes and other types of “parallel flows” is to hand them off to a constraint solver. Yes, I wrote one already for Quad. But I’m probably some distance away from plugging it in, because consistent with Gall’s Law, I want to make the simpler stuff work first.
The other things in the layout — header, verso, recto — are easier.
Yes, I’m definitely not a fan of the whole scheme. I just thought I could better answer your question of what LaTeX “guarantees” by pointing out some of these ugly edge-(?) cases.
As to margin notes, it may be worth beginning with an expression that places a marginal box, always at the same vertical offset as its surrounding content, which may overlap with other such boxes and will not break across pages if overfull (avoids constraint solving?).
Footnotes are another animal altogether since they may advance up into the body text area, there’s no hard-and-fast “reserved area” for them.