From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82718 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: Centered title with numeration on the same line Date: Mon, 3 Jun 2013 19:29:43 +0200 Message-ID: <20130603172942.GA18664@homerow> References: <00b001ce607d$034030c0$09c09240$@tosovsky@email.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0826313054==" X-Trace: ger.gmane.org 1370280600 17648 80.91.229.3 (3 Jun 2013 17:30:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 17:30:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 03 19:30:01 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UjYa1-0005s3-Dy for gctc-ntg-context-518@m.gmane.org; Mon, 03 Jun 2013 19:30:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4D91101EA; Mon, 3 Jun 2013 19:30:00 +0200 (CEST) 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 jLbU+W6EruH4; Mon, 3 Jun 2013 19:29:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 60721101E7; Mon, 3 Jun 2013 19:29:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC92D101E7 for ; Mon, 3 Jun 2013 19:29:58 +0200 (CEST) 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 Izg9vS4XFwbH for ; Mon, 3 Jun 2013 19:29:58 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 344FB101E0 for ; Mon, 3 Jun 2013 19:29:48 +0200 (CEST) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r53HtJkh028744 for ; Mon, 3 Jun 2013 19:55:20 +0200 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id 717E211BC81 for ; Mon, 3 Jun 2013 12:29:45 -0500 (CDT) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id UOZRU73JRW8M for ; Mon, 03 Jun 2013 12:29:45 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=D41s+xeOmUOoh2spxAl+Vrg0jwQVPL6ozMPZ/3sdPOniOkHgUb8hAxJ9hlBIJoeftvcQDmpLr1LNn0XGYs9J0yUzclifjLKGj8oQmHr/7aiV2nrMt8J9RD+arcIuzYyfpfC8XYANpsobk/BiHjNwbDZdl0vEOE7w2j/ZSqyJkz0=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:X-PGP-Key:User-Agent; Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <00b001ce607d$034030c0$09c09240$@tosovsky@email.cz> X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB8CFCB65D4F08C27 User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01JHRTkLA - bb899e5431c2 - 20130603 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82718 Archived-At: --===============0826313054== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013=E2=80=9306=E2=80=9303 honyk wrote: > How can I keep numeration and title together? You can create a custom head alternative. The following code is copied from the source, I only replace the \par with \kern\headnumberdistance. Have a look at strc-ren.mkiv for other layouts. \setuphead [section] [alternative=3Dmiddle_nolinebreak] \defineheadalternative [middle_nolinebreak] [alternative=3Dvertical, renderingsetup=3Dheadrenderings:middle_nolinebreak] \startsetups[headrenderings:middle_nolinebreak] \vbox { \headsetupspacing \veryraggedcenter \let\\\endgraf \let\crlf\endgraf \ifconditional\headshownumber \strut \headnumbercontent \kern\headnumberdistance \fi \begstrut \headtextcontent \endstrut } \stopsetups \starttext \section{The First Section} \stoptext Marco --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRrNKGAAoJEPGqVaNSn0iKNoAH/RFahGUF3Wgndixrhad2t/Uq WDS3ZGA2J5gRSnaKMM25Vm9xGLrzJ1o2mlZvq2eVrJsycJ296jUOiKsbeG/6fH9d /0qRyNZUwU2s1ZW5afwbcILOzgMJsDWPZ609kgDMSZvEO4LPIwUSL7HIVj5ufQi1 Qfq9CwMbzBYQt1OR1l/XsS64eAguub4mVQi4cR5Yk0QmiKIzBN6Nnpy/7/x6nCNx RATpLN6ZEgOPQZsSvEr6nTS90sZmshNtQfAtem1d3pNDaOGfAsjuHaM/NLoF0caz Dpwj299LxzPNpArUbKuPdiJ+Id8O2w9Ap6xjDXEPMe8YqvGAj8SMNR+Q87HeWpE= =1OlT -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- --===============0826313054== 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 ___________________________________________________________________________________ --===============0826313054==--