From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85906 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: setuphead for in-paragraph head ? Date: Mon, 13 Jan 2014 11:07:32 +0100 Message-ID: References: <52CEB6B4.7070308@gyza.cz> <133B935F-59FF-4C57-9A37-00B42BCAB67F@gmail.com> <3BA99063-FA3F-449B-B022-1A2109B25A59@gmail.com> <8E7ED7B8-29C0-4865-B7A8-DD1BD09709E3@gmail.com> <759FE779-328A-4726-8D77-779D83EA097E@gmail.com> <7528AB5C-EF48-4393-869C-8DD3AA6D8C38@gmail.com> <1CEEA7A0-3472-47A6-9AE9-C7D14CB379D4@gmail.com> <86D737E4-2891-4C79-BB04-CDCFA2BD9BB2@gmail.com> <2CFAA317-CA82-4CBF-A9B8-E71C2DC49BC1@gmail.com> <9F71771F-0932-4BFC-A444-646AFA0AE81C@gmail.com> <0ADAF659-B4E5-4D41-84DA-15075C338393@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/mixed; boundary="===============1330952333==" X-Trace: ger.gmane.org 1389607663 8485 80.91.229.3 (13 Jan 2014 10:07:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 10:07:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 13 11:07:51 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W2eQw-0004nr-Mg for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jan 2014 11:07:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8B4D101E9; Mon, 13 Jan 2014 11:07: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 BOS6nCkHViYj; Mon, 13 Jan 2014 11:07:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3A9C0101E2; Mon, 13 Jan 2014 11:07:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B147101E2 for ; Mon, 13 Jan 2014 11:07:37 +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 BD+8-LQlbACe for ; Mon, 13 Jan 2014 11:07:35 +0100 (CET) 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 CE10B101DE for ; Mon, 13 Jan 2014 11:07:35 +0100 (CET) Original-Received: from mail-bk0-x22c.google.com (mail-bk0-x22c.google.com [IPv6:2a00:1450:4008:c01::22c]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0DAJStO012545 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jan 2014 11:19:28 +0100 Original-Received: by mail-bk0-f44.google.com with SMTP id ej10so1271597bkb.3 for ; Mon, 13 Jan 2014 02:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=FzTsb95U8KLvzvEFu6y3XcQWAzyQMM5aDDfc3zv3rR8=; b=WgVKWhCXqRC6XXg+qoO1wgwehv+wahC+3tP25Xt1Vg0RRTkBYJo08/Si8tfd9jw1wB eBl0HvhRRFWnXYBnX3VN0Xy5iq5D4qH5/74OO6g6I1NSed8rDfXQGPOMrs/NovxZBCcw yj0OkVkTP4YGxEl4yKMo1+Fa/dKT8SDHCWx0UEZP3kz+7oWJ/Fy1Rq0ddxC46+poso9i b+YrTYy2xYkU6Q4/M914Nu6CcvXIFvbMAuZujtULZdvjLcHLixZ6K1lAEII5o5XCBZSj +KLtS+GZE71Fx1GZndP1y1kESdAdAD8/nDC1LBy8cxmuGhyowhg+ePcknGVFcNxitV+t LnNw== X-Received: by 10.204.122.137 with SMTP id l9mr9097515bkr.23.1389607653976; Mon, 13 Jan 2014 02:07:33 -0800 (PST) Original-Received: from keima.localdomain (x2f23d5d.dyn.telefonica.de. [2.242.61.93]) by mx.google.com with ESMTPSA id np8sm15363828bkb.11.2014.01.13.02.07.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Jan 2014 02:07:33 -0800 (PST) In-Reply-To: <0ADAF659-B4E5-4D41-84DA-15075C338393@gmail.com> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22c; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LdmjsUy - 2aac96163682 - 20140113 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85906 Archived-At: --===============1330952333== Content-Type: multipart/alternative; boundary="Apple-Mail=_EAEB6490-A08D-416E-9348-7E6E720D37DC" --Apple-Mail=_EAEB6490-A08D-416E-9348-7E6E720D37DC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 13.01.2014 um 04:41 schrieb Otared Kavian : > Hi Wolfgang, >=20 > Thanks for the tip: I=92ll try to adapt what you suggest to the case = of blocks and question-hint-answer, and then let you know if I succeed. > Out of curiosity, how can one access the counter associated to an = enumeration or an item? You can use \rawcountervalue[] or = \convertedcounter[]. > Also, if I understand correctly, the command > \increment\QuestionCounter > creates first a counter named QuestionCounter, if it does not exist = yet, and then increments its value: so one does not need anymore = commands such as > \newcounter\QuestionCounter > before incrementing it. Am I right? No, you don=92t need \newcounter because \increment checks if the = counter exists because it tries to increase the value. The \newcounter = command which creates the counter can also be used to reset the value = and not only to create the counter. Wolfgang= --Apple-Mail=_EAEB6490-A08D-416E-9348-7E6E720D37DC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 13.01.2014 um 04:41 schrieb Otared = Kavian <otared@gmail.com>:

Hi Wolfgang,

Thanks for the tip: = I=92ll try to adapt what you suggest to the case of blocks and = question-hint-answer, and then let you know if I succeed.
Out of = curiosity, how can one access the counter associated to an enumeration = or an item?

You can use = \rawcountervalue[<name of the enumeration environment>] or = \convertedcounter[<name of the environment>].

Also, if I understand correctly, = the command
\increment\QuestionCounter
creates first a counter = named QuestionCounter, if it does not exist yet, and then increments its = value: so one does not need anymore commands such as
= \newcounter\QuestionCounter
before incrementing it. Am I = right?

No, you don=92t need = \newcounter because \increment checks if the counter exists because it = tries to increase the value. The \newcounter command which creates the = counter can also be used to reset the value and not only to create the = counter.

Wolfgang
= --Apple-Mail=_EAEB6490-A08D-416E-9348-7E6E720D37DC-- --===============1330952333== 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 ___________________________________________________________________________________ --===============1330952333==--