From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71146 Path: news.gmane.org!not-for-mail From: Honza Hejzl Newsgroups: gmane.comp.tex.context Subject: Titles - dimensions and grid after Date: Wed, 14 Sep 2011 17:23:02 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1270829942==" X-Trace: dough.gmane.org 1316013806 5253 80.91.229.12 (14 Sep 2011 15:23:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2011 15:23:26 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 14 17:23:22 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3rJ3-00074a-FI for gctc-ntg-context-518@m.gmane.org; Wed, 14 Sep 2011 17:23:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7ED3CAF90; Wed, 14 Sep 2011 17:23:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4wah6DkFtEwV; Wed, 14 Sep 2011 17:23:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6034FCAF8C; Wed, 14 Sep 2011 17:23:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DE02CAF8C for ; Wed, 14 Sep 2011 17:23:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BBiCBP5t6b2n for ; Wed, 14 Sep 2011 17:23:04 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 37665CAF87 for ; Wed, 14 Sep 2011 17:23:04 +0200 (CEST) Original-Received: from mail-gw0-f41.google.com (mail-gw0-f41.google.com [74.125.83.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8EFN203007330 for ; Wed, 14 Sep 2011 17:23:03 +0200 Original-Received: by gwaa12 with SMTP id a12so2063805gwa.14 for ; Wed, 14 Sep 2011 08:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=PNXLmnt5mJuXvVuBXivgrjQ0W0uGRXYqnKf0+15BoL0=; b=aI2wqd3+/wMwdUWe8KEFpfLoXkTzv4IfpVsIAjDAe2gpM5o+Ud7nzeIj6gTx+Ynu7C ykraChoixkmpCFItM19eNvAkwL0AmdXY4ERDMv9dg7V033NiVw6qJNYp+UZHkqAQY/bB AcsMsmldxhQ9Rf+e1L10OisLyJv2stn6h+7bk= Original-Received: by 10.52.75.41 with SMTP id z9mr991312vdv.93.1316013782157; Wed, 14 Sep 2011 08:23:02 -0700 (PDT) Original-Received: by 10.52.188.134 with HTTP; Wed, 14 Sep 2011 08:23:02 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFwDn3HU - 459119a7998e - 20110914 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71146 Archived-At: --===============1270829942== Content-Type: multipart/alternative; boundary=20cf3071d052014a1304ace8562d --20cf3071d052014a1304ace8562d Content-Type: text/plain; charset=ISO-8859-1 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 --20cf3071d052014a1304ace8562d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:

p, li { white-space: pre-wrap; }

\setupbodyfont[termes,11pt]

\setupinterlinespace[line=3D1= 4pt]

\definefont[nadpisy][SansBold= at 22pt]


\setuphead[chapter][%

befo= re=3D{\dontleavehmode\blank[-0.26cm]\hskip 25mm},

number=3Dyes,

style=3D\nad= pisy

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

]


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

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


%\def\mychapterstyle#1#2{= \framed[frame=3Don,location=3Dtop,

offset=3D0pt,width=3D\textwidth,height=3D57mm,align=3Dtop]{{\hskip 25mm#1 #= 2}}}

\setuphead[cha= pter][%

number=3Dyes,

st= yle=3D\nadpisy

command=3D\mychapterstyle,

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

]


This works fine but t= he problem is that in case of some=A0

charons or other diacritics the whole title is due to it slightly moved dow= n.


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


Thanks, Honza Hejzl







--20cf3071d052014a1304ace8562d-- --===============1270829942== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1270829942==--