From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85897 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: setuphead for in-paragraph head ? Date: Sun, 12 Jan 2014 20:29:40 +0100 Message-ID: <52D2ED24.2010007@gyza.cz> 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> <6EAA74A6-9DDF-4FF2-8020-958E37EB7209@gmail.com> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389555002 16268 80.91.229.3 (12 Jan 2014 19:30:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2014 19:30:02 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 12 20:30:07 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 1W2QjV-0002Dg-AQ for gctc-ntg-context-518@m.gmane.org; Sun, 12 Jan 2014 20:30:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B13E101E9; Sun, 12 Jan 2014 20:30:04 +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 oucZSPPUaYTp; Sun, 12 Jan 2014 20:30:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1D7E6101E2; Sun, 12 Jan 2014 20:30:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE5AB101E2 for ; Sun, 12 Jan 2014 20:30:00 +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 uax5wwhtJjXe for ; Sun, 12 Jan 2014 20:29:59 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 8DEBE101DE for ; Sun, 12 Jan 2014 20:29:59 +0100 (CET) Original-Received: from h1.cmg1.smtp.forpsi.com (h1.cmg1.smtp.forpsi.com [81.2.195.162]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0CJTvpB001904 for ; Sun, 12 Jan 2014 20:29:58 +0100 Original-Received: from [192.168.20.100] ([88.103.230.14]) by cmg1.smtp.forpsi.com with bizsmtp id D7Vw1n0010KHK60017Vwgk; Sun, 12 Jan 2014 20:29:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <6EAA74A6-9DDF-4FF2-8020-958E37EB7209@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.162; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VLd7tVtk - af0f362f1fae - 20140112 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:85897 Archived-At: OK. Thanx very much - for me it is a useful thing... Jaroslav Hajtmar Dne 12.1.2014 17:08, Otared Kavian napsal(a): > Hi Jaroslav, > > Actually the formatting of what you put in the block determined for examp= le by > \beginanswer > The answer is=85 > \endanswer > is independent of the block mechanism: you can use whatever structure you= want. In the example we exchanged on, an enumeration such as > \startanswer > \stopanswer > where this \start \stop has been defined by \defineenumeration[answer], b= ut 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 (mo= re columns, one paragraph, etc) like in any textbooks? I tried experimentin= g, 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 t= o the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext >> 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 ___________________________________________________________________________= ________