From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55403 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: smaller inter line space for headings (on a grid) Date: Wed, 30 Dec 2009 17:13:00 +0100 Message-ID: <929C1EE9-DF3F-4DA5-BE53-E48AC024C112@rz-online.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/mixed; boundary=Apple-Mail-1-414539500 X-Trace: ger.gmane.org 1262189608 2452 80.91.229.12 (30 Dec 2009 16:13:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 16:13:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 30 17:13:19 2009 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.50) id 1NQ1Ai-0006CV-F7 for gctc-ntg-context-518@m.gmane.org; Wed, 30 Dec 2009 17:13:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EAF6BC9B4F; Wed, 30 Dec 2009 17:13:13 +0100 (CET) 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 IXbgFu-a6VqO; Wed, 30 Dec 2009 17:13:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA88AC9CD4; Wed, 30 Dec 2009 17:13:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7480CC9CD4 for ; Wed, 30 Dec 2009 17:13:04 +0100 (CET) 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 SUE8AaCNHMyc for ; Wed, 30 Dec 2009 17:13:02 +0100 (CET) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by balder.ntg.nl (Postfix) with ESMTP id 30547C9B4F for ; Wed, 30 Dec 2009 17:13:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id E9B3078A31B9 for ; Wed, 30 Dec 2009 17:13:01 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02361-06 for ; Wed, 30 Dec 2009 17:13:01 +0100 (CET) X-CHKRCPT: Envelopesender noch andreas.harder@rz-online.de Original-Received: from [192.168.1.112] (77-23-29-238-dynip.superkabel.de [77.23.29.238]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 74A7C78A3257 for ; Wed, 30 Dec 2009 17:13:01 +0100 (CET) X-Mailer: Apple Mail (2.1077) X-Virus-Scanned: amavisd-new at uni-koblenz.de 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:55403 Archived-At: --Apple-Mail-1-414539500 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi all, I have three questions: 1) Is there a convenient way to reduce the inter line space for an head = on a grid? First I tried = \setuphead[section][style=3D{\ssb\setupinterlinespace[line=3D1ex]}]=97no = effect. Finally I defined three commands to get it work. Perhaps someone = knows a better way. 2) In a manual I found an example \setuphead[section][grid=3D{line,-5pt}],= but it doesn=92t seem to work. Is it outdated? Is there an MkIV = alternative? 3) Is there a MkIV pendant for \showgridboxes? --Apple-Mail-1-414539500 Content-Disposition: attachment; filename=test-head-interlinespace.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="test-head-interlinespace.tex" Content-Transfer-Encoding: 7bit \setuplayout[grid=yes] \setupframed[offset=none,align=right] \def\mySecTxtCmd#1% {\framed [width=\dimexpr\textwidth-2em\relax,location=top] {\switchtointerlinespace[line=1ex,distance=0pt]#1\endgraf}} \def\mySecNumCmd#1% {\framed[width=2em,location=high]{#1}} \def\mySecCmd#1#2% {\framed [framecolor=blue,offset=overlay,align=top] {\mySecNumCmd{#1}\mySecTxtCmd{#2}}} \setuphead [section] [% style={\ssb\setupinterlinespace[line=1ex]}, % -> wrong effect! style=\ssb, numberwidth=2em, command=\mySecCmd, numbercommand=\mySecNumCmd, textcommand=\mySecTxtCmd] \setuphead [subsection] [textcommand=, numbercommand=, command=\normalplacehead, grid={line,-5pt}] % -> no effect! \starttext \showgrid \section{\input tufte} \input tufte \par \subsection{Test} \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: t %%% End: --Apple-Mail-1-414539500 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Thank you in advance Andreas --Apple-Mail-1-414539500 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 ___________________________________________________________________________________ --Apple-Mail-1-414539500--