From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66708 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: structure head alignment nullifies spaceskip Date: Sun, 6 Mar 2011 22:41:35 +0100 Message-ID: <20110306214135.GB15013@aides> References: <20110306163311.GA12422@orcus> <544DE72B-7FF1-4164-8B86-B5487580576A@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1738086281==" X-Trace: dough.gmane.org 1299447716 9582 80.91.229.12 (6 Mar 2011 21:41:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 21:41:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 06 22:41:51 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 1PwLi3-0004tZ-Hc for gctc-ntg-context-518@m.gmane.org; Sun, 06 Mar 2011 22:41:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7A22CAABC; Sun, 6 Mar 2011 22:41:50 +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 eoM0GTeCNaAL; Sun, 6 Mar 2011 22:41:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4647CCAAB2; Sun, 6 Mar 2011 22:41:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D75C4CAAB2 for ; Sun, 6 Mar 2011 22:41:46 +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 rFulIquHfH2q for ; Sun, 6 Mar 2011 22:41:35 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 565DECAAAC for ; Sun, 6 Mar 2011 22:41:35 +0100 (CET) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p26LfYex018227 for ; Sun, 6 Mar 2011 22:41:34 +0100 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p26LfXi1019360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 6 Mar 2011 22:41:33 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p26LfWfx008638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 6 Mar 2011 22:41:32 +0100 Original-Received: from localhost (dslb-188-104-153-096.pools.arcor-ip.net [188.104.153.96]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id p26LfVst025896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 6 Mar 2011 22:41:32 +0100 In-Reply-To: <544DE72B-7FF1-4164-8B86-B5487580576A@gmail.com> X-Operating-System: Linux aides 2.6.37-ARCH X-Polite-Request: "Please try to be nice, don't send html mail." User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.210.211; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xEfVFySo - 5b67407ce277 - 20110306 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:66708 Archived-At: --===============1738086281== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WYTEVAkct0FjGQmd" Content-Disposition: inline --WYTEVAkct0FjGQmd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-03-06 <21:15:44>, Wolfgang Schuster wrote: >=20 > Am 06.03.2011 um 17:33 schrieb Philipp Gesang: >=20 > > Hi, > >=20 > > is there a way to have \spaceskip working in a centered section > > head? > >=20 > > I have something similar to these exaggerated values: > >=20 > > =C2=B7=C2=B78<=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7 > >=20 > > \def\broadspacing{% > > \dontleavehmode% > > \spaceskip 1em plus .5em minus .5em% > > } > > \starttext > >=20 > > \setuphead[section][% > > style=3D{\WORD\broadspacing}, > > ] > >=20 > > % This one is left aligned but correctly spaced. > > \section{test test test} > >=20 > > \setuphead[section][% > > style=3D{\WORD\broadspacing}, > > align=3Dmiddle, > > ] > >=20 > > % This one is centered but spaced too tightly. > > \section{test test test} > >=20 > > \stoptext > >=20 > > =C2=B7=C2=B78<=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7 > >=20 > > As you can see, adding =E2=80=9Calign=3Dmiddle=E2=80=9D to the section = setup leads > > to the \spaceskip setting being ignored. Any idea how to space my > > capitalized words in section heads? >=20 > \setuphead > [section] > [ style=3DWORD, > align=3Dmiddle, > textcommand=3D{\setuptolerance[space]}] >=20 > Maybe better is =E2=80=9Ctextcommand=3D\SectionCommand=E2=80=9D with >=20 > \define[1]\SectionCommand > {\setuptolerance[space]#1} >=20 > Wolfgang Thanks a lot, Wolfgang, I hadn=E2=80=99t thought of =E2=80=9Ctextcommand=E2= =80=9D. Headings work (and look) like a charm now. Best regards, Philipp --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk1z/44ACgkQ02lYlJYWs9Kc7gCgqrbDtgxTk8M4erJ8hVfeEIH7 h+4AoI7af9qCd/FhqSflo2Fd++85NZQr =kAuS -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd-- --===============1738086281== 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 ___________________________________________________________________________________ --===============1738086281==--