[NTG-context] Grid typesetting: aligning section to top of textarea

Sietse Brouwer sbbrouwer at gmail.com
Tue May 14 02:51:52 CEST 2013

Dear list,

I am making a foray into grid typesetting, and would like to align the
top of my (possibly multi-line) section titles with the top of the
textarea. I thought I could do that with
\setuphead[subject][grid={broad,high}], but this is not working. I
have tried nearly every other combination of grid keywords, and then
tried them again with the subject wrapped in a framed.

The "It's in the details" manual didn't provide help. I found an old
e-mail by Honza, but that never got a reply.

I put an MWE below, and I have attached its output. If anybody has any
clues for me, (or 'not currently available, you can stop trying'), I
would be most grateful.




%% Activate grid
    width=middle, topspace=2\lineheight, height=31\lineheight,
    header=2\lineheight, footer=0\lineheight,]

\definefont[AntykwaChapter][antykwatorunskaregular at 18pt]%

%% If wrapping the subject in a framed is needed, this command does it
        %% strut=no does not work
        %% so cancel out lineheight-fontsize diff with -toffset
        %% This *should* mean:
        %% * take topmost line in framed as reference line
        %% * align top of reference line with external baseline.
        %% but grid=yes may disable that.
        location={top, hanging},
    ]{\AntykwaChapter #1}}

%% The head-specific grid setup comes here
   [header=high,   % no header; extend textarea into header area
    %% Take the box, assume it is a snug fit of its contents, and align
    %% its top with the grid line above it?
    %% Seems to do nothing
    %% A tweak like '-3pt' ditto
    % textstyle=\AntykwaChapter,


%% Example text

\subject{The hoard of the gibbelins}

The Gibbelins eat, as is well known, nothing less good than man.

        title={How Nyth would have worked his art upon the gnoles},
        marking=How Nuth would have worked his art,

Despite the advertisements of rival firms, it is probable that every
tradesman knows that nobody in business at the present time has a
position equal to that of Mr. Nuth.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwe-placesubject.pdf
Type: application/pdf
Size: 18145 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130514/d348f3ee/attachment.pdf>

More information about the ntg-context mailing list