From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44716 Path: news.gmane.org!not-for-mail From: Alexandros Frantzis Newsgroups: gmane.comp.tex.context Subject: Re: Enumeration after section heading in margin Date: Mon, 13 Oct 2008 17:29:26 +0300 Message-ID: <20081013142926.GA4749@skynet> References: <20081010074130.GA5005@skynet> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223915632 25804 80.91.229.12 (13 Oct 2008 16:33:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2008 16:33:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 13 18:34:50 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KpQNe-0006AY-1q for gctc-ntg-context-518@m.gmane.org; Mon, 13 Oct 2008 18:34:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C06CD1FD9B; Mon, 13 Oct 2008 18:33:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29162-02-38; Mon, 13 Oct 2008 18:32:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B4E671FDD2; Mon, 13 Oct 2008 17:43:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 544481FDCC for ; Mon, 13 Oct 2008 17:43:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15176-09-58 for ; Mon, 13 Oct 2008 17:43:06 +0200 (CEST) Original-Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by ronja.ntg.nl (Postfix) with ESMTP id 343941FEA3 for ; Mon, 13 Oct 2008 16:29:28 +0200 (CEST) Original-Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id m9DETRag006184 for ; Mon, 13 Oct 2008 17:29:27 +0300 Original-Received: from MX-IN-05.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.32]) by mx-av-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id m9DETRlN031218 for ; Mon, 13 Oct 2008 17:29:27 +0300 Original-Received: from localhost (adsl96-37.ath.forthnet.gr [194.219.240.37]) by MX-IN-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id m9DETQvC014470 for ; Mon, 13 Oct 2008 17:29:27 +0300 Authentication-Results: MX-IN-05.forthnet.gr smtp.mail=alfius@freemail.gr; spf=softfail Authentication-Results: MX-IN-05.forthnet.gr header.from=alfius@freemail.gr; sender-id=softfail Content-Disposition: inline In-Reply-To: <20081010074130.GA5005@skynet> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44716 Archived-At: > Hello, > I am trying to use ConTeXt to create my CV. I have succesfully placed the > subject headings in the margin by using: > > \setuphead > [subject] > [alternative=text,distance=0pt,command=\MyHead] > > \def\MyHead#1#2{\inmargin{#1 #2}} > > When the text that follows the heading is a simple paragraph everything > works as expected: > > Subject Text Text... > Text Text... > > However when the first thing after the heading is an enumeration (or a > table, for that matter) the enumeration is not aligned with the heading > (it's lower than the heading): > > Subject > * Item1 > * Item2 > > > I have tried to remove whitespace around the enumeration with the > 'nowhite,joinedup' options but it is still not aligned. > > Is there a way to align the enumeration (and other non-inline objects) > with the heading? Any thoughts on this? I have tried examining the source to find why the extra vertical space exists and how I can suppress it but I am still stuck... A minimal example that shows the issue is: ------------START CODE----------------- \def\mysubject#1#2{\inmargin{#1#2}} \setuphead[subject][alternative=text, after=, command=\mysubject, distance=0pt, textstyle=\ss] \starttext \subject{Subject1} This is the text of subject1. This is the text of subject1. This is the text of subject1. This is the text of subject1. This is the text of subject1. This is the text of subject1. This is the text of subject1. \subject{Subject2} \startitemize[packed,nowhite,joinedup] \item First item \item Second item \item Third item \stopitemize \stoptext --------------END CODE---------------- Thanks, Alexandros ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________