ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Titles - dimensions and grid after
@ 2011-09-14 15:23 Honza Hejzl
  0 siblings, 0 replies; only message in thread
From: Honza Hejzl @ 2011-09-14 15:23 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1107 bytes --]

Hello,
I simply need to have chapter title exactly placed, not on grid (25mm from
left, top of all letters on the edge of the whole grid). I have tried:

\setupbodyfont[termes,11pt]

\setupinterlinespace[line=14pt]

\definefont[nadpisy][SansBold at 22pt]

\setuphead[chapter][%

before={\dontleavehmode\blank[-0.26cm]\hskip 25mm},

number=yes,

style=\nadpisy

after={\blank[11*line]},

]


This works fine but the text after is NOT on grid (don't know how to).

The second thing is it is NOT skipped 25mm but so cca 30mm.


%\def\mychapterstyle#1#2{\framed[frame=on,location=top,

offset=0pt,width=\textwidth,height=57mm,align=top]{{\hskip 25mm#1 #2}}}

\setuphead[chapter][%

number=yes,

style=\nadpisy

command=\mychapterstyle,

after={\blank[11*line]},

]


This works fine but the problem is that in case of some

charons or other diacritics the whole title is due to it slightly moved
down.


What could solve my problem? (How to get the text after on grid and have
exactly 25mm \hskip OR How to have a framed titles where the diacritical
marks are above the top of the frame?)


Thanks, Honza Hejzl

[-- Attachment #1.2: Type: text/html, Size: 6073 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-14 15:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-14 15:23 Titles - dimensions and grid after Honza Hejzl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).