Re: [NTG-context] ConTeXt gobble my mind
Hello Wolfgang, thank you very much for all these solutions. Do you have any recommendations about using one over the others ? Currently, the conditional selection of my slides works pretty good : I have created the following macros : \courseSlideList[resavi][1-10,20-30,34,37-40], this macro allows me to activate all the slides given by their number in a list defined in the current file ; \includeSelectionFrom{adressage_groupe_utf8}{1-100} this macro allows me to include some slides given by a list of number from an external file ; \skipSlide that can suppress the process of the following slide. Of course, all of theses macros work beautifully recursively with files using them (the numbering macro work nicely on currently defined slides as included slides). This is why I use only ConTeXt for all my work ! Cheers ! Pierre-François. On 08 Nov 2014, at 12:08, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.11.2014 um 00:00 schrieb Pierre-François Bonnefoi bonne...@unilim.fr: Just before going to bed, I've found a solution with all your help and the help of Taco Hoekwater through the ntg mail archive : \def\startSlide% {\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}% \dostartbuffer[Slide][startSlide][stopSlide]} Let me know if it's my philosopher's stone... I've tried it and it works so far. No more ugly gobbling, my mind is free. Below are two other methods. Method 1 === \newconditional\SkipSlide \setfalse\SkipSlide \definebuffer[Slide] \def\stopSlide {\ifconditional\SkipSlide \else \page \getbuffer[\thedefinedbuffer{Slide}]% \fi \setfalse\SkipSlide} \starttext \startSlide First Slide \stopSlide \settrue\SkipSlide \startSlide Second Slide \stopSlide \startSlide Third Slide \stopSlide \stoptext Method 2 === \def\startSlide {\dosingleempty\dostartSlide} \def\dostartSlide[#1]% {\doifelse{#1}{-} {\let\stopSlide\stopSlideNop} {\let\stopSlide\stopSlideYes}% \grabbufferdata[Slide][startSlide][stopSlide]} \let\stopSlideNop\relax \def\stopSlideYes {\page \getbuffer[Slide]} \starttext \startSlide First Slide \stopSlide \startSlide[-] Second Slide \stopSlide \startSlide Third Slide \stopSlide \stoptext 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr http://libpfb.so/ Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 123 av Albert Thomas| Mrs. Peel, we're needed... 87060 Limoges CEDEX - FRANCE| The Avengers. ___ 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 ___
Re: [NTG-context] ConTeXt gobble my mind
On 11/9/2014 2:34 PM, Pierre-François Bonnefoi wrote: Hello Wolfgang, thank you very much for all these solutions. Do you have any recommendations about using one over the others ? Currently, the conditional selection of my slides works pretty good : I have created the following macros : \courseSlideList[resavi][1-10,20-30,34,37-40], this macro allows me to activate all the slides given by their number in a list defined in the current file ; \includeSelectionFrom{adressage_groupe_utf8}{1-100} this macro allows me to include some slides given by a list of number from an external file ; \skipSlide that can suppress the process of the following slide. Of course, all of theses macros work beautifully recursively with files using them (the numbering macro work nicely on currently defined slides as included slides). This is why I use only ConTeXt for all my work ! there is also a block mechanism, see blocks in test suite ... originally that was made for a mix of (parallel) questions, answers, anything (numbered and unnumbered), selective filtering by tag etc Hans Cheers ! Pierre-François. On 08 Nov 2014, at 12:08, Wolfgang Schuster schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote: Am 08.11.2014 um 00:00 schrieb Pierre-François Bonnefoi bonne...@unilim.fr mailto:bonne...@unilim.fr: Just before going to bed, I've found a solution with all your help and the help of Taco Hoekwater through the ntg mail archive : \def\startSlide% {\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}% \dostartbuffer[Slide][startSlide][stopSlide]} Let me know if it's my philosopher's stone... I've tried it and it works so far. No more ugly gobbling, my mind is free. Below are two other methods. Method 1 === \newconditional\SkipSlide \setfalse\SkipSlide \definebuffer[Slide] \def\stopSlide {\ifconditional\SkipSlide \else \page \getbuffer[\thedefinedbuffer{Slide}]% \fi \setfalse\SkipSlide} \starttext \startSlide First Slide \stopSlide \settrue\SkipSlide \startSlide Second Slide \stopSlide \startSlide Third Slide \stopSlide \stoptext Method 2 === \def\startSlide {\dosingleempty\dostartSlide} \def\dostartSlide[#1]% {\doifelse{#1}{-} {\let\stopSlide\stopSlideNop} {\let\stopSlide\stopSlideYes}% \grabbufferdata[Slide][startSlide][stopSlide]} \let\stopSlideNop\relax \def\stopSlideYes {\page \getbuffer[Slide]} \starttext \startSlide First Slide \stopSlide \startSlide[-] Second Slide \stopSlide \startSlide Third Slide \stopSlide \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl mailto: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 ___ -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr mailto:bonne...@unilim.fr http://libpfb.so/ Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 123 av Albert Thomas| Mrs. Peel, we're needed... 87060 Limoges CEDEX - FRANCE| The Avengers. ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] still buggy TOC generation
On 11/8/2014 9:19 PM, Pablo Rodriguez wrote: Sorry, but isn’t this caused by the changes introduced in beta from 2014.11.06 14:55? yes, and there may be more issues left ... new beta (don't use criterium=all for such cases) Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mail merge in mkiv?
Hello Pablo. The module I created about before 4 years ago, when I wanted to learn to program in Lua. Therefore, I think that my module is too rudimentary and not quite optimized. Unfortunately, since I do not now use much Lua, so I dare not reasonably somehow finish. Before inclusion in third party modules that would probably have to take some experienced Lua expert and redo the whole module. For my needs it is enough. I use this module very often for my practise (I am teacher). Perhaps it helped a little. Greetings Jaroslav Hajtmar Dne 8.11.2014 11:09, Pablo Rodriguez napsal(a): On 11/07/2014 12:44 PM, Jaroslav Hajtmar wrote: Hello Pablo. Here is the solution of your minimal example: http://public.hajtmar.com/?cesta=JRsVFQdsJhwoWyAdFwQROwZWBFkwERgeFzAEJjMbLSYcKAAcHxYUAS8XVkIkIhAVHyYsFgsZEzYXAw Examples of more complex and comprehensive application of my t-scancsv.lua mudule are available at: http://public.hajtmar.com/?cesta=JRsVFQdsJhwoWyAdFwQROwZWBFkwERgeFzAEJjMbLSYcKAAcHxYUAS8X I zip the entire folder and you can download it at: http://public.hajtmar.com/files/TeX/context/t-scancsv_ConTeXt_module/t-scancsv_ConTeXt_module.zip Perhaps those that serve well. Many thanks for your reply, Jaroslav. Since this feature may be useful to other users, how about including it as a third-party module in the ConTeXt Suite? Many thanks for your help again, Pablo ___ 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 ___
Re: [NTG-context] still buggy TOC generation
On 11/09/2014 03:20 PM, Hans Hagen wrote: On 11/8/2014 9:19 PM, Pablo Rodriguez wrote: Sorry, but isn’t this caused by the changes introduced in beta from 2014.11.06 14:55? yes, and there may be more issues left ... new beta (don't use criterium=all for such cases) Many thanks for the fix, Hans. TOC is generated fine now. Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] position of qed symbol in proofs
On Sat, Nov 8, 2014 at 5:43 PM, Otared Kavian ota...@gmail.com wrote: Hi Mikael, In my files I have the following which used to work, but it doesn’t work as expected anymore, as you point out \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \stoptext I don’t know when the change occurred, but at least it worked last year (which for ConTeXt means pregistoric times… :—). As a temporary hack one can always say: \startformula 1+1=2. \eqno{\square} \stopformula Best regards: OK On 08 Nov 2014, at 14:40, Mikael P. Sundqvist mic...@gmail.com wrote: On Mon, Nov 3, 2014 at 9:15 PM, Mikael P. Sundqvist mic...@gmail.com wrote: Hi, I once used \defineenumeration[proof][ text=Proof, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi, ] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \stoptext to get the \square at the end of proofs, and it worked out well. But with the latest beta (and some previous one(s)), the \square is not placed at the same line as the formula in the second example. Is it broken? Or is there a new syntax? PDF with my result is attached. Best regards, Mikael I don't like to bump, but... Noone else has this problem? @Hans: Is it easily fixed? /Mikael ___ 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 ___ ___ 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 ___ Hi Otared, thank you for looking at this. It feels good that it is not only me who has this problem. As far as I remember, this issue was not present 3-4 weeks ago. /Mikael ___ 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 ___
Re: [NTG-context] mail merge in mkiv?
On 11/09/2014 03:59 PM, Jaroslav Hajtmar wrote: Hello Pablo. The module I created about before 4 years ago, when I wanted to learn to program in Lua. Therefore, I think that my module is too rudimentary and not quite optimized. Unfortunately, since I do not now use much Lua, so I dare not reasonably somehow finish. Before inclusion in third party modules that would probably have to take some experienced Lua expert and redo the whole module. For my needs it is enough. I use this module very often for my practise (I am teacher). Perhaps it helped a little. Greetings Jaroslav Hajtmar Many thanks for the module, Jaroslav. BTW, wouldn’t you know how can I set a \date using Lua that adds x working days to the current date? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] mail merge in mkiv?
Hello Pablo. Here is example of add days in Lua: \startluacode x=5 -- add five days tex.print ('Actual date is :'..os.date('%d.%m.%Y')..'\\crlf') tex.print ( 'And x days added date is :'.. os.date('%d.%m.%Y',os.time()+ x * 24 * 3600)) \stopluacode Jaroslav Hajtmar Dne 9.11.2014 22:49, Pablo Rodriguez napsal(a): On 11/09/2014 03:59 PM, Jaroslav Hajtmar wrote: Hello Pablo. The module I created about before 4 years ago, when I wanted to learn to program in Lua. Therefore, I think that my module is too rudimentary and not quite optimized. Unfortunately, since I do not now use much Lua, so I dare not reasonably somehow finish. Before inclusion in third party modules that would probably have to take some experienced Lua expert and redo the whole module. For my needs it is enough. I use this module very often for my practise (I am teacher). Perhaps it helped a little. Greetings Jaroslav Hajtmar Many thanks for the module, Jaroslav. BTW, wouldn’t you know how can I set a \date using Lua that adds x working days to the current date? Many thanks for your help, Pablo ___ 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 ___
Re: [NTG-context] position of qed symbol in proofs
Hi Mikael, Actually I just tried your example with the ConTeXt version on TeX Live, as well as with a copy dating back to 2014-02-14, and both behaved in the same wrong way regarding the closesymbol and closecommand. So in \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] the \ifmmode is not honoured, and the change must have happened quite earlier than a few weeks. Maybe we should open a new thread as a bug in closecommand? Best regards: OK On 09 Nov 2014, at 21:29, Mikael P. Sundqvist mic...@gmail.com wrote: […] Hi Otared, thank you for looking at this. It feels good that it is not only me who has this problem. As far as I remember, this issue was not present 3-4 weeks ago. /Mikael ___ 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 ___
Re: [NTG-context] Natural tables introduces spaces in \type
hello all, i do not have nfts, but there are assume users that do not live in western countries and use characters that are not in ascii!! just a thought. regards Keith. Am 07.11.2014 um 14:44 schrieb Christoph Reller christoph.rel...@gmail.com: On Fri, 7 Nov 2014 09:11:09 +0100 Alan Braslau alan.bras...@cea.fr mailto:alan.bras...@cea.fr wrote On Thu, 6 Nov 2014 16:15:36 +0100 Christoph Reller christoph.rel...@gmail.com mailto:christoph.rel...@gmail.com wrote: Of the above characters the following are disallowed on NTFS Not everyone uses NTFS. Another reason for not making a file-name cleaner as such, but rather restricting the characters to ascii. ___ 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 ___
Re: [NTG-context] mail merge in mkiv?
Hello Jaraslav, You might be willing to wikify it. I would be helpful for others. regards Keith Am 09.11.2014 um 15:59 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello Pablo. The module I created about before 4 years ago, when I wanted to learn to program in Lua. Therefore, I think that my module is too rudimentary and not quite optimized. Unfortunately, since I do not now use much Lua, so I dare not reasonably somehow finish. Before inclusion in third party modules that would probably have to take some experienced Lua expert and redo the whole module. For my needs it is enough. I use this module very often for my practise (I am teacher). Perhaps it helped a little. Greetings Jaroslav Hajtmar Dne 8.11.2014 11:09, Pablo Rodriguez napsal(a): On 11/07/2014 12:44 PM, Jaroslav Hajtmar wrote: Hello Pablo. Here is the solution of your minimal example: http://public.hajtmar.com/?cesta=JRsVFQdsJhwoWyAdFwQROwZWBFkwERgeFzAEJjMbLSYcKAAcHxYUAS8XVkIkIhAVHyYsFgsZEzYXAw Examples of more complex and comprehensive application of my t-scancsv.lua mudule are available at: http://public.hajtmar.com/?cesta=JRsVFQdsJhwoWyAdFwQROwZWBFkwERgeFzAEJjMbLSYcKAAcHxYUAS8X I zip the entire folder and you can download it at: http://public.hajtmar.com/files/TeX/context/t-scancsv_ConTeXt_module/t-scancsv_ConTeXt_module.zip Perhaps those that serve well. Many thanks for your reply, Jaroslav. Since this feature may be useful to other users, how about including it as a third-party module in the ConTeXt Suite? Many thanks for your help again, ___ 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 ___