From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64531 Path: news.gmane.org!not-for-mail From: "Philipp A." Newsgroups: gmane.comp.tex.context Subject: how to redefine section headers Date: Tue, 14 Dec 2010 21:34:44 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1096191343==" X-Trace: dough.gmane.org 1292358899 7979 80.91.229.12 (14 Dec 2010 20:34:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 20:34:59 +0000 (UTC) To: ConTeXt Mainling List Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 21:34:55 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 1PSbaI-0001hm-I4 for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 21:34:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53B76CA8ED; Tue, 14 Dec 2010 21:34:54 +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 mRUwaDV2Oaq5; Tue, 14 Dec 2010 21:34:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21D0ECA8E5; Tue, 14 Dec 2010 21:34:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F20F0CA8E5 for ; Tue, 14 Dec 2010 21:34:49 +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 pWuagRrR3iNt for ; Tue, 14 Dec 2010 21:34:47 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 7ECE9CA8DA for ; Tue, 14 Dec 2010 21:34:47 +0100 (CET) Original-Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBEKYjbU017985 for ; Tue, 14 Dec 2010 21:34:46 +0100 Original-Received: by bwz15 with SMTP id 15so1320093bwz.5 for ; Tue, 14 Dec 2010 12:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=YLnpciaVTrvNi+kj93dsgAEQKWCRK5UpEwI3g1m+yeU=; b=ohpfrTHC2DLnOOih+DGRum6KHqaC7TKfHKVUNcjtxaLqsRCrPwzLY54YYY1bvXkWpW KnxK5vlTWTZ1zsfE+A762Ssdw1LrCSIweYP+RGMRjDoecKdsiriijCHAoaxykU3Tzmph KrqIcsVBdb2jnDtt4kpk0oKkdPxUR1v47ZVHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=e7Jgz5im6fXASXH+1OirGqVG/8lpIkBeW66ug/XsiAV8dsoguslhvKzpij7dWi6CHj 9tVxBVhJ9CofsRRssW2yHvwwtQ3+VNFJZ+/Z0EJSlyoAtcIqiLZN5VFoEDSnpkXL7/zX dCYJNdnpRrmsf8ydjU5gi2MhhUZCyRgJJTmm4= Original-Received: by 10.204.81.7 with SMTP id v7mr2351833bkk.129.1292358884839; Tue, 14 Dec 2010 12:34:44 -0800 (PST) Original-Received: by 10.204.71.13 with HTTP; Tue, 14 Dec 2010 12:34:44 -0800 (PST) X-Google-Sender-Auth: Vxu6-lTJNfd0bTxx58BreRq-Bow 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: 04DH8yJas - 51bfb16c6a1a - 20101214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:64531 Archived-At: --===============1096191343== Content-Type: multipart/alternative; boundary=0016e6d7e36940d2fd049764c007 --0016e6d7e36940d2fd049764c007 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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) \setuphead[section][numbercommand=3D\headtext{section}~] \setupheadtext[de][section=3DAufgabe] \def\task{\section{}} so if my document looks like \starttext \task \task \stoptext this should render to: Aufgabe 1 Aufgabe 2 (i hope the mailing list delivers html mail) 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 thank you! --0016e6d7e36940d2fd049764c007 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

hi!

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

\setuphead[section][numbercommand=3D\headtext{section}~]
\setupheadtext[de][section=3DAufgabe]
\def\task{\section{}}

so if my document looks like

\starttext
\task
\task
\stoptext

this should render to:

Aufgabe 1

Aufgabe 2

(i hope the mailing list delivers html mail)

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

thank you!

--0016e6d7e36940d2fd049764c007-- --===============1096191343== 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 ___________________________________________________________________________________ --===============1096191343==--