From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43535 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 11:33:31 +0200 Message-ID: <44006145-C3AB-4216-9B77-130257EA1087@st.estfiles.de> References: <19AACB4E-D682-49AF-B32C-4194AF04FC72@st.estfiles.de> <48B7ACFB.2020700@gmx.net> <0C71A21F-AFC8-45E0-8195-7B1960B3AF3E@st.estfiles.de> <48B7BED9.90404@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 1220002721 14154 80.91.229.12 (29 Aug 2008 09:38:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 09:38:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 29 11:39:34 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 1KZ0S4-00048d-Lz for gctc-ntg-context-518@m.gmane.org; Fri, 29 Aug 2008 11:39:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 053061FDE9; Fri, 29 Aug 2008 11:38:29 +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 05632-01; Fri, 29 Aug 2008 11:38:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA1671FD62; Fri, 29 Aug 2008 11:34:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFBBA1FD4A for ; Fri, 29 Aug 2008 11:34:13 +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 02453-01-18 for ; Fri, 29 Aug 2008 11:33:35 +0200 (CEST) Original-Received: from smtprelay11.ispgateway.de (smtprelay11.ispgateway.de [80.67.29.28]) by ronja.ntg.nl (Postfix) with ESMTP id F0A171FDD4 for ; Fri, 29 Aug 2008 11:33:32 +0200 (CEST) Original-Received: from [89.247.34.177] (helo=[192.168.1.2]) by smtprelay11.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KZ0MG-0002t7-MG for ntg-context@ntg.nl; Fri, 29 Aug 2008 11:33:32 +0200 In-Reply-To: <48B7BED9.90404@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:43535 Am 29.08.2008 um 11:18 schrieb Peter Rolf: > Steffen Wolfrum schrieb: >> 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?! >> > > % insert here > \showboxes % see differences between \tbox and \hbox > >> \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? >> > > have you tried my solution? yes, thank you, it just didn't work as expected: there still was a small vertical skip. this (provided by Wolfgang) is what i wanted to achieve: \def\CurrentEbeneFuenfNumber#1#2% {\midaligned{\inframed[width=.85\textwidth,align=middle] {#1\kern0.75em#2}}} thanks again for your efforts, 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 ___________________________________________________________________________________