From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43532 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: vertical position of framed sucks! Date: Fri, 29 Aug 2008 10:36:56 +0200 Message-ID: <0C71A21F-AFC8-45E0-8195-7B1960B3AF3E@st.estfiles.de> References: <19AACB4E-D682-49AF-B32C-4194AF04FC72@st.estfiles.de> <48B7ACFB.2020700@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219999599 6087 80.91.229.12 (29 Aug 2008 08:46:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 08:46:39 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 29 10:47:32 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 1KYzdb-00025W-Da for gctc-ntg-context-518@m.gmane.org; Fri, 29 Aug 2008 10:47:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97DAF1FDE3; Fri, 29 Aug 2008 10:46:20 +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 24095-07-28; Fri, 29 Aug 2008 10:45:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF5FE1FDE4; Fri, 29 Aug 2008 10:44:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5472E1FDDD for ; Fri, 29 Aug 2008 10:44:33 +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 29700-01 for ; Fri, 29 Aug 2008 10:43:48 +0200 (CEST) Original-Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [80.67.29.8]) by ronja.ntg.nl (Postfix) with ESMTP id EA1191FC1A for ; Fri, 29 Aug 2008 10:36:57 +0200 (CEST) Original-Received: from [89.247.34.177] (helo=[192.168.1.2]) by smtprelay08.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KYzTV-0001D7-88; Fri, 29 Aug 2008 10:36:57 +0200 In-Reply-To: <48B7ACFB.2020700@gmx.net> X-Mailer: Apple Mail (2.926) X-Df-Sender: 698580 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:43532 Hi, sorry for my foggy post last night (02:50h ...) Hopefully this example makes it clearer: -- \starttext \showframe \definehead[EbeneFuenf] [subsubsubsection] \setupsection[section-6][conversion=characters,previousnumber=yes] \def\FuenfCommand#1{#1.} \def\CurrentEbeneFuenfNumber#1#2% {\hbox to \hsize\bgroup% \tbox{\midaligned \framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth] {{\FuenfCommand{\convertnumber{characters} {\countervalue{@@sesection-6}}}}{\kern0.75em}#2}}% \egroup} \setuphead[EbeneFuenf][command=\CurrentEbeneFuenfNumber]% using this command moves the line 2mm down?! \EbeneFuenf{Test} \stoptext -- I wanted to define a command with a fixed width in order to determine a maximum width for a section. But using this command (i.e. the "framed") also moves the section down about 2mm! How can this be avoided? Steffen ___________________________________________________________________________________ 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 ___________________________________________________________________________________