From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85896 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: setuphead for in-paragraph head ? Date: Sun, 12 Jan 2014 17:08:27 +0100 Message-ID: <6EAA74A6-9DDF-4FF2-8020-958E37EB7209@gmail.com> 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> <52D27256.90000@gyza.cz> 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: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389542914 19210 80.91.229.3 (12 Jan 2014 16:08:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2014 16:08:34 +0000 (UTC) To: hajtmar@gyza.cz, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 12 17:08:42 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 1W2Nab-0007N0-9G for gctc-ntg-context-518@m.gmane.org; Sun, 12 Jan 2014 17:08:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 593EB101DE; Sun, 12 Jan 2014 17:08:40 +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 hVr-hBZygq0s; Sun, 12 Jan 2014 17:08:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E7A71101E2; Sun, 12 Jan 2014 17:08:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4242101E2 for ; Sun, 12 Jan 2014 17:08:36 +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 p9RHyEM2YOQl for ; Sun, 12 Jan 2014 17:08:33 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 4A0BF101DE for ; Sun, 12 Jan 2014 17:08:33 +0100 (CET) Original-Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0CG8Wsp032539 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 12 Jan 2014 17:08:32 +0100 Original-Received: by mail-we0-f175.google.com with SMTP id p61so544100wes.34 for ; Sun, 12 Jan 2014 08:08:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=zW016HcIId9mO8B19v2hGpJQgvoDIRZg7yIx5dyNYYo=; b=Y9jHJZGcplzfH2VhqUAhDHabVoabPHRrY+YcGZMdPAIVCglEU9QJ+WLgqo5lfJJNPI 2c28Jr8Sp065N2WbZo5K07TY3Zh6CCvHK1aKaVza9uHCbFtO6ufVQNpAfsDG7U2ePvM6 T2CZnPVM6YTLydXSWtIvFNzjffl0NOt30wh97oGKNVLLkIkvgsxSHmcUwnjHGlJJSCMB UGiafUYQ+Z7HAmtvveTSy4KWjsq4e3NsTM3SUfPRGvKVfT7zuxUC9bg2ClUubMpAIUhL s00/USqAqiJrLd+GqMSo3KADHyRj8Az6oRGp0VT4V3sCKn8sJle1TDT75cNt3sD8aT2c 3zsA== X-Received: by 10.194.90.144 with SMTP id bw16mr17626289wjb.1.1389542912229; Sun, 12 Jan 2014 08:08:32 -0800 (PST) Original-Received: from [192.168.0.20] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPSA id z2sm13181106wiy.11.2014.01.12.08.08.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 08:08:31 -0800 (PST) In-Reply-To: <52D27256.90000@gyza.cz> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Ld48wck - e0901ec4db11 - 20140112 (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:85896 Archived-At: Hi Jaroslav, Actually the formatting of what you put in the block determined for example= by \beginanswer The answer is=85 \endanswer is independent of the block mechanism: you can use whatever structure you w= ant. In the example we exchanged on, an enumeration such as \startanswer \stopanswer where this \start \stop has been defined by \defineenumeration[answer], but= you can use your own compact formatting instead of this. Best regards: OK On 12 janv. 2014, at 11:45, Jaroslav Hajtmar wrote: > Hello Otared and Wolfgang. > = > Thanks for launching this example. > Is there a possibility to write the answers into a more compact form (mor= e columns, one paragraph, etc) like in any textbooks? I tried experimenting= , but I was unable to put answers into a compact form. > Thanks Jaroslav Hajtmar > = > Here is my modification of answer enumeration (not working): > = > %%%% begin question-hint-answer-blocks.tex > \defineblock[question] > \defineblock[hint] > \defineblock[answer] > = > \defineenumeration[question] > [alternative=3Dhanging, > width=3D2.5cm, > text=3D{Question}, > headstyle=3D{\bi}, > stopper=3D{.}] > = > \defineenumeration[hint] > [alternative=3Dhanging, > width=3D4cm, > text=3D{Hint for question}, > headstyle=3D{\bi}, > stopper=3D{.}] > = > \defineenumeration[answer] > [alternative=3Dhanging, > beforehead=3D, > afterhead=3D, > before=3D{\startcolumns[n=3D4]}, > after=3D\stopcolumns, > width=3D0.5em, > text=3D{}, > headstyle=3D{}, > stopper=3D{.}] > = > \setupblock[question][before=3D{\startquestion},after=3D{\stopquestion}] > \setupblock[hint][before=3D{\starthint},after=3D{\stophint}] > \setupblock[answer][before=3D{\startanswer},after=3D{\stopanswer}] > = > \keepblocks[question] > \hideblocks[hint] > \hideblocks[answer] > = > \starttext > = > \section{Questions} > = > \beginquestion > Compute $4\times 5$. > \endquestion > = > \beginhint > Use the fact that $2\times 5 =3D 10$. > \endhint > = > \beginanswer > $20$. > \endanswer > = > \beginquestion > What is the value of $100 / 10$? > \endquestion > = > \beginhint > Remember that $10\times 10 =3D 100$. > \endhint > = > \beginanswer > $10$ > \endanswer > = > \beginquestion > Compute $4\times 5$. > \endquestion > = > \beginhint > Use the fact that $2\times 5 =3D 10$. > \endhint > = > \beginanswer > $20$. > \endanswer > = > \beginquestion > What is the value of $100 / 10$? > \endquestion > = > \beginhint > Remember that $10\times 10 =3D 100$. > \endhint > = > \beginanswer > $10$ > \endanswer > = > \beginquestion > Compute $4\times 5$. > \endquestion > = > \beginhint > Use the fact that $2\times 5 =3D 10$. > \endhint > = > \beginanswer > $20$. > \endanswer > = > \beginquestion > What is the value of $100 / 10$? > \endquestion > = > \beginhint > Remember that $10\times 10 =3D 100$. > \endhint > = > \beginanswer > $10$ > \endanswer > \beginquestion > Compute $4\times 5$. > \endquestion > = > \beginhint > Use the fact that $2\times 5 =3D 10$. > \endhint > = > \beginanswer > $20$. > \endanswer > = > \beginquestion > What is the value of $100 / 10$? > \endquestion > = > \beginhint > Remember that $10\times 10 =3D 100$. > \endhint > = > \beginanswer > $10$ > \endanswer > = > = > \section{Hints to all questions} > = > \useblocks[hint] > = > \section{Answers to all questions} > = > \useblocks[answer] > = > \stoptext > %%%% end question-hint-answer-blocks.tex > = > = > = > Dne 11.1.2014 20:01, Otared Kavian napsal(a): >> %%%% begin question-hint-answer-blocks.tex >> \defineblock[question] >> \defineblock[hint] >> \defineblock[answer] >> = >> \defineenumeration[question] >> [alternative=3Dhanging, >> width=3D2.5cm, >> text=3D{Question}, >> headstyle=3D{\bi}, >> stopper=3D{.}] >> = >> \defineenumeration[hint] >> [alternative=3Dhanging, >> width=3D4cm, >> text=3D{Hint for question}, >> headstyle=3D{\bi}, >> stopper=3D{.}] >> = >> \defineenumeration[answer] >> [alternative=3Dhanging, >> width=3D4.5cm, >> text=3D{Answer to question}, >> headstyle=3D{\bi}, >> stopper=3D{.}] >> = >> \setupblock[question][before=3D{\startquestion},after=3D{\stopquestion}] >> \setupblock[hint][before=3D{\starthint},after=3D{\stophint}] >> \setupblock[answer][before=3D{\startanswer},after=3D{\stopanswer}] >> = >> \keepblocks[question] >> \hideblocks[hint] >> \hideblocks[answer] >> = >> \starttext >> = >> \section{Questions} >> = >> \beginquestion >> Compute $4\times 5$. >> \endquestion >> = >> \beginhint >> Use the fact that $2\times 5 =3D 10$. >> \endhint >> = >> \beginanswer >> $20$. >> \endanswer >> = >> \beginquestion >> What is the value of $100 / 10$? >> \endquestion >> = >> \beginhint >> Remember that $10\times 10 =3D 100$. >> \endhint >> = >> \beginanswer >> $10$ >> \endanswer >> = >> \section{Hints to all questions} >> = >> \useblocks[hint] >> = >> \section{Answers to all questions} >> = >> \useblocks[answer] >> = >> \stoptext >> %%%% end question-hint-answer-blocks.tex > = > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________