From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64534 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: how to redefine section headers Date: Tue, 14 Dec 2010 23:17:35 +0100 Message-ID: <03D44923-190D-451F-A0AB-BBAFA48C01E4@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary="===============2116462019==" X-Trace: dough.gmane.org 1292365228 7348 80.91.229.12 (14 Dec 2010 22:20:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 22:20:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 23:20:23 2010 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 1PSdEM-0002Mu-NU for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 23:20:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00618CA8EF; Tue, 14 Dec 2010 23:20:22 +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 6qx3zIPnkMLo; Tue, 14 Dec 2010 23:20:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C468CA8E9; Tue, 14 Dec 2010 23:20:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B048ECA8E9 for ; Tue, 14 Dec 2010 23:20:17 +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 aTN4nQ6aR83u for ; Tue, 14 Dec 2010 23:20:06 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 05583CA8DA for ; Tue, 14 Dec 2010 23:20:06 +0100 (CET) Original-Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBEMK4hC008490 for ; Tue, 14 Dec 2010 23:20:05 +0100 Original-Received: by bwz15 with SMTP id 15so1455907bwz.5 for ; Tue, 14 Dec 2010 14:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=zNLHxHa7RTT3SzDAZB0SZrdZ/G0PZE//feLlY0Zx/uY=; b=TGdEvMmXKbdxh6x9M57YRcToG67QFoz9NXT5l6ISV+RgSF3BuK/blv98I7s7BYBL6K W2wCVekMQSaxkTo0mc9DI9fSXjXHgpy99aUeq/nlUVsxY5EhZfKe218HPYWn804BpmKB mhOQZCVmCTmTBEa+BmprHDy/GkklPdwAe3Zwk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=c0TdOrCqd66SBdlyGAwu+2Ik7enPQrP6WjQP+Y7s9yUf5altC1ThhV4mtTTDI/jzg8 3gRFcvkd0VhLeXqVGTQ9fGeaCdPLDcYrn41NHOd0jVlnypR/Q+PejNHELGiwNNTKaowG xNmv0+56sw1aV8Hb4GEU2Oy4L4NsBbDMVUZAI= Original-Received: by 10.204.66.65 with SMTP id m1mr5972019bki.71.1292365201253; Tue, 14 Dec 2010 14:20:01 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294EE0.dip.t-dialin.net [91.41.78.224]) by mx.google.com with ESMTPS id p22sm136438bkp.9.2010.12.14.14.19.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Dec 2010 14:20:00 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.46; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDHak5b8 - 5a8459744b12 - 20101214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:64534 Archived-At: --===============2116462019== Content-Type: multipart/alternative; boundary=Apple-Mail-2-525243015 --Apple-Mail-2-525243015 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Am 14.12.2010 um 21:34 schrieb Philipp A.: > hi! >=20 > i want to achieve the effect i see when using the following code, only = in a semantically correct way (and without defining a \MyHeader macro = like in some examples) >=20 > [=E2=80=A6] > And maybe somebody knows a cool way to do this: >=20 > \starttext > \task > \task[Graphs] > \stoptext > =E2=86=93=E2=86=93=E2=86=93=E2=86=93 >=20 > Aufgabe 1 >=20 > Aufgabe 2: Graphs >=20 \setuplabeltext[de][aufgabe=3D{Aufgabe ,}] \define[1]\TaskCommand {\doifsomething{#1}{: #1}} \definehead[thetask][section] \setuphead [thetask] [style=3Dsansbold, bodypartlabel=3Daufgabe, distance=3D0pt, deeptextcommand=3D\TaskCommand] \definecomplexorsimpleempty\task \def\complextask[#1]{\thetask{#1}} \mainlanguage[de] \starttext \task \task[Graphs] \stoptext Wolfgang --Apple-Mail-2-525243015 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

hi!

i want to achieve the effect i see when using = the following code, only in a semantically correct way (and without = defining a \MyHeader macro like in some examples)

[=E2=80=A6]

And maybe somebody knows a cool = way to do this:

\starttext
\task
\task[Graphs]
\stoptext

=E2=86=93=E2=86=93=E2=86=93=E2=86=93

Aufgabe 1

Aufgabe 2: = Graphs


\setuplabeltext[de][aufg= abe=3D{Aufgabe = ,}]

\define[1]\TaskCommand
  = {\doifsomething{#1}{: = #1}}

\definehead[thetask][section]

=
\setuphead
  [thetask]
 &nbs= p;[style=3Dsansbold,
   = bodypartlabel=3Daufgabe,
   = distance=3D0pt,
   = deeptextcommand=3D\TaskCommand]

\definecomplexors= impleempty\task

\def\complextask[#1]{\thetask{#1}= }

\mainlanguage[de]

\sta= rttext
\task
\task[Graphs]
\stoptext

Wolfgang

= --Apple-Mail-2-525243015-- --===============2116462019== 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 ___________________________________________________________________________________ --===============2116462019==--