Re: [NTG-context] general suggestion for ConTeXt documentation
Hi Hraban, On 08.08.2018 08:50, Henning Hraban Ramm wrote: > I’m also writing a (beginners) book on ConTeXt in German, and I find it > really hard to decide what I should include. It can’t become a reference, a > complete one is impossible anyway. You can’t do serious work with ConTeXt > without using manuals, wiki, mailing list and the sources. There are just too > many possibilities and different needs. if I can be of any help, let me know. I wrote books about the Python Documentation System Sphinx and Pandoc. And I would really love to see a beginners book of ConTeXt in German. juh -- Hostsharing eG – die Hosting-Genossenschaft Souveränität – Nachhaltigkeit – Exzellenz https://www.hostsharing.net ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using \dorecheckindentation inside a group
On Fri, 10 Aug 2018, Wolfgang Schuster wrote: Aditya Mahajan schrieb am 10.08.18 um 19:41: Hi, In t-filter module, I use a group inside \startfilter ... \stopfilter to keep various definitions local. However, as reported on [1], this breaks the `indentnext` option. The following minimal example illustrates the issue: \unprotect \definenamespace [whatever] [ name=whatever, command=yes, setup=list, parent=whatever, ] \appendtoks \setuevalue{\e!start\currentwhatever}{\start_whatever[\currentwhatever]}% \setuvalue {\e!stop\currentwhatever}{\stop_whatever}% \to \everydefinewhatever \starttexdefinition start_whatever \dodoubleargument\start_whatever_indeed \stoptexdefinition \starttexdefinition start_whatever_indeed[#1][#2] \begingroup % to keep assignments local \edef\currentwhatever{#1} \setupwhatever[#1][#2] \stoptexdefinition \starttexdefinition stop_whatever \useindentnextparameter\whateverparameter \dorechecknextindentation \endgroup \stoptexdefinition Move \dorechecknextindentation after \endgroup. \starttexdefinition stop_whatever \useindentnextparameter\whateverparameter \endgroup \dorechecknextindentation \stoptexdefinition Thanks! I didn't realize that \useindentnextparameter was "global". Aditya ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using \dorecheckindentation inside a group
Aditya Mahajan schrieb am 10.08.18 um 19:41: Hi, In t-filter module, I use a group inside \startfilter ... \stopfilter to keep various definitions local. However, as reported on [1], this breaks the `indentnext` option. The following minimal example illustrates the issue: \unprotect \definenamespace [whatever] [ name=whatever, command=yes, setup=list, parent=whatever, ] \appendtoks \setuevalue{\e!start\currentwhatever}{\start_whatever[\currentwhatever]}% \setuvalue {\e!stop\currentwhatever}{\stop_whatever}% \to \everydefinewhatever \starttexdefinition start_whatever \dodoubleargument\start_whatever_indeed \stoptexdefinition \starttexdefinition start_whatever_indeed[#1][#2] \begingroup % to keep assignments local \edef\currentwhatever{#1} \setupwhatever[#1][#2] \stoptexdefinition \starttexdefinition stop_whatever \useindentnextparameter\whateverparameter \dorechecknextindentation \endgroup \stoptexdefinition Move \dorechecknextindentation after \endgroup. \starttexdefinition stop_whatever \useindentnextparameter\whateverparameter \endgroup \dorechecknextindentation \stoptexdefinition Wolfgang ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Using \dorecheckindentation inside a group
Hi, In t-filter module, I use a group inside \startfilter ... \stopfilter to keep various definitions local. However, as reported on [1], this breaks the `indentnext` option. The following minimal example illustrates the issue: \unprotect \definenamespace [whatever] [ name=whatever, command=yes, setup=list, parent=whatever, ] \appendtoks \setuevalue{\e!start\currentwhatever}{\start_whatever[\currentwhatever]}% \setuvalue {\e!stop\currentwhatever}{\stop_whatever}% \to \everydefinewhatever \starttexdefinition start_whatever \dodoubleargument\start_whatever_indeed \stoptexdefinition \starttexdefinition start_whatever_indeed[#1][#2] \begingroup % to keep assignments local \edef\currentwhatever{#1} \setupwhatever[#1][#2] \stoptexdefinition \starttexdefinition stop_whatever \useindentnextparameter\whateverparameter \dorechecknextindentation \endgroup \stoptexdefinition \protect \definewhatever[whatever] \setupindenting[big,yes] \startbuffer \input ward \startwhatever \input tufte \stopwhatever \input ward \stopbuffer \starttext \section{With indentnext=yes} \setupwhatever[indentnext=yes] \getbuffer \section{with indentnext=no} \setupwhatever[indentnext=no] \getbuffer \section{with indentnext=auto} \setupwhatever[indentnext=auto] \getbuffer \stoptext I use a \begingroup inside \start_whatever to keep the definitions local (otherwise \setupwhatever[#1][#2] will change the global setup). This means that I have to use \dorecheckindentation \endgroup. As a result, when I use `indentnext=auto`, the check for \par fails (see the third case in the above example). How can I fix this? Thanks, Aditya [1]: https://tex.stackexchange.com/questions/445198/context-break-paragraph-after-t-vim-code-block ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On Fri, 10 Aug 2018 18:38:19 +0200 Hans Hagen wrote: > On 8/10/2018 5:50 PM, Henning Hraban Ramm wrote: > > > And I still could smash my primary school teacher: When I asked "what > > happens if we subtract a bigger number from a smaller?", she answered > > "that’s not possible". :( > > She could have easily told me "you will learn that later" or just show me > > at the thermometer "look, we will get below zero"... > > But noo, better keep children dumb, otherwise they could outwit you. > > > > Sorry for ranting ;) > but with your thermometer example young Alan (who watches discovery > channel on a daily basis and later becomes a low temperature expert) > would outwit you as he would challenge you to subtract 300 from zero No, - 273.15 ;-) Alan ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
Am 2018-08-10 um 18:38 schrieb Hans Hagen : > On 8/10/2018 5:50 PM, Henning Hraban Ramm wrote: > >> And I still could smash my primary school teacher: When I asked "what >> happens if we subtract a bigger number from a smaller?", she answered >> "that’s not possible". :( >> She could have easily told me "you will learn that later" or just show me at >> the thermometer "look, we will get below zero"... >> But noo, better keep children dumb, otherwise they could outwit you. >> Sorry for ranting ;) > but with your thermometer example young Alan (who watches discovery channel > on a daily basis and later becomes a low temperature expert) would outwit you > as he would challenge you to subtract 300 from zero There are a lot of people who can outwit my easily. So what? Adult Alan won’t need my book, because he can understand the source code of ConTeXt. Greetlings, Hraban ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On 8/10/2018 5:50 PM, Henning Hraban Ramm wrote: And I still could smash my primary school teacher: When I asked "what happens if we subtract a bigger number from a smaller?", she answered "that’s not possible". :( She could have easily told me "you will learn that later" or just show me at the thermometer "look, we will get below zero"... But noo, better keep children dumb, otherwise they could outwit you. Sorry for ranting ;) but with your thermometer example young Alan (who watches discovery channel on a daily basis and later becomes a low temperature expert) would outwit you as he would challenge you to subtract 300 from zero Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
Am 2018-08-08 um 18:31 schrieb Pablo Rodriguez : > Hi Hraban, > your book will be an important reference, althought it won’t be “the > reference” (I doubt such a thing might exist). Thank you for the encouragement! >> E.g. I wanted margin notes. Like footnotes, but in the margin. No >> problem if you want them at the bottom. Very hard if you want them like >> marginals, starting in the line of the marker... Is this common enough >> to include it in my book? > > I would say this is too specific. But I would provide the explanation in > the wiki. They are, even if not exactly in the same way as I’m using them, because this is influenced by other design choices (not even mine; I must adhere to the somewhat strange ideas of a designer). Nearly everything that appears in my book is somewhere in the wiki, also since I often add things that were missing. But sometimes the order matters or you can find things on the wiki only if you know where to look for what. >> As a media designer, who’s also working with InDesign, my focus is of >> course different from a scientist who just wants her thesis >> readable... > > I think it is essential to have a wider range of explanations on how to > do things with ConTeXt (or even with computers, but this is a different > topic). > I’m not saying that other approaches are wrong. Just only not everyone > may understand things the same way. Of course. Everyone needs a different approach to things – I often experienced teachers who knew only one approach, e.g. in math, and couldn’t explain their stuff so that at least a few more students could understand the matter. Probably because they didn’t really understood themselves what they were teaching. In engineering school I coached a few colleagues who had difficulties with math, and I like to remember the one (who "only" had a CSE, Hauptschulabschluss, and used to work as a printer) who looked astonished at me in one session and said "It’s really that simple!?", when I managed to find an approach to functions that worked for him. :) And I still could smash my primary school teacher: When I asked "what happens if we subtract a bigger number from a smaller?", she answered "that’s not possible". :( She could have easily told me "you will learn that later" or just show me at the thermometer "look, we will get below zero"... But noo, better keep children dumb, otherwise they could outwit you. Sorry for ranting ;) Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to do an inline itemization?
Dear Wolfgang, > > \starttext > \startitemize[n,packed][stopper=)]% [stopper=,right=)] > \item This is a test for the referencing the formula like\par > \item This is a test for the referencing the formula like\par > \item This is a test for the referencing the formula like. > \stopitemize > \stoptext > It is good in general case. Sometimes I need to have an output as following: Solution 1) This is the solution of the first question. 2) This is the solution of the second question. 3) … It is done by \startitemize[n, text][stopper=,lefttext=] which works well in my text. However, in the following example, there is no difference at all. strange! %%% \defineenumeration[Solution] [text={\ss\bf Solution}, number=no, after=\blank] \starttext \startSolution \startitemize[n,packed][stopper=)] \item This is a test for the referencing the formula like \item This is a test for the referencing the formula like \item This is a test for the referencing the formula like. \stopitemize \stopSolution \startSolution \startitemize[n, text][stopper=, lefttext=] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \stopSolution \stoptext %%% Thank you for your concern. Best regards, Dalyoung ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Buffer within a \def
Procházka Lukáš Ing. schrieb am 10.08.18 um 13:31: Hello, I'm not very familiar with using buffers, so a basic question: Is it possible to use buffers within a \def? No. The following sample doesn't compile: \def\T{ \startbuffer[Buf] a b ccc d e f \stopbuffer \getbuffer[Buf] } \def\T {\setbuffer[Buf]a b ccc d e f\endbuffer \getbuffer[Buf]} Wolfgang ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Buffer within a \def
Hello, I'm not very familiar with using buffers, so a basic question: Is it possible to use buffers within a \def? The following sample doesn't compile: \def\T{ \startbuffer[Buf] a b ccc d e f \stopbuffer \getbuffer[Buf] } \starttext \T A \stoptext What's wrong? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 t2.mkiv Description: Binary data ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to do an inline itemization?
\starttext \startitemize[n,packed][stopper=)]% [stopper=,right=)] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \stoptext Wolfgang Jeong Dal schrieb am 10.08.18 um 10:53: Dear Hans, Thank you for the solution. It works perfectly. Have a nice weekend. Best regards, Dalyoung % \setupinteraction[state=start] \starttext \startitemize[n,text][stopper=,lefttext=,] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \stoptext % ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to do an inline itemization?
Dear Hans, Thank you for the solution. It works perfectly. Have a nice weekend. Best regards, Dalyoung % \setupinteraction[state=start] \starttext \startitemize[n,text][stopper=,lefttext=,] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \stoptext % ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to do an inline itemization?
On 8/10/2018 8:09 AM, Jeong Dal wrote: Dear Thomas, Using your example, \starttext \startitemize[n,text] \startitem One \stopitem \startitem Two \stopitem \stopitemize \stoptext I tested the following example and it is working well. % \starttext \startitemize[n,text] \item This is the first sentence. \par \item This is the second sentence. \par \item This is the third sentence. \par \stopitemize \stoptext % The numbers are always in the () by default like (1) (2)… I’d like to ask one thing more. Is it possible to make the output 1), 2), 3)? \startitemize[n,text][stopper=,left=,right=)] just add one more ) like (1)),… lefttext= - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to do an inline itemization?
Dear Thomas, Using your example, > \starttext > > \startitemize[n,text] > \startitem > One > \stopitem > \startitem > Two > \stopitem > \stopitemize > > \stoptext > I tested the following example and it is working well. % \starttext \startitemize[n,text] \item This is the first sentence. \par \item This is the second sentence. \par \item This is the third sentence. \par \stopitemize \stoptext % The numbers are always in the () by default like (1) (2)… I’d like to ask one thing more. Is it possible to make the output 1), 2), 3)? \startitemize[n,text][stopper=,left=,right=)] just add one more ) like (1)),… Thank you for reading. Best regards, Dalyoung ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___