Re: [NTG-context] Equivalent of os.resultof(...) in LaTeX
On Mon, 3 Nov 2014 14:31:17 +0100 Xan ha escrit: > It does not work:> \documentclass{article} > > \begin{document} > > \directlua{ > > local handle = io.popen("sha256sum \jobname.tex | cut -c -5","r") > > if handle then > >local result = handle:read("*all") or "" > >handle:close() > >tex.print(result) > > end > > } > > \end{document} > > Neither this: > > > \directlua{ > > require "lualibs-os" > > tex.sprint(os.resultof("sha256sum \jobname.tex | cut -c -5")) > > } > > > Blank. Nothing displayed. ___ 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 ___
[NTG-context] beta
Hi, I reorganized some list code so if something fails in the new beta ... nothing drastic that can't be fixed fast (a few more criteria were needed for the new bibliographic support). 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?
BTW, searching for "merge" at the wiki, I found http://wiki.contextgarden.net/An_Update_On_Essential_Elements_In_how_can_i_merge_google_plus_and_facebook, which seems spam to me. Thanks. Deleted. There have been quite a few such pages created recently. Perhaps, our spam detection algorithm when registering for a new account needs an update. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] position of qed symbol in proofs
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 qed.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] mail merge in mkiv?
Dear list, I would like to be able to use ConTeXt at work for mail merging. The issue here is that I don’t have any clue on how to do it with MKIV. I don’t even know whehter this is possible at all. BTW, searching for "merge" at the wiki, I found http://wiki.contextgarden.net/An_Update_On_Essential_Elements_In_how_can_i_merge_google_plus_and_facebook, which seems spam to me. Is there any way to do mail merge with mkiv? 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] (again) bug in index sorting?
On 11/03/2014 02:50 PM, Alan BRASLAU wrote: > [...] > When indexing items containing several words, the sorting should go > word by word, thus > tipografía digital > before > tipografías > > This amounts to making whitespace higher precedence than anything else, > which I believe was not the case but now is fixed. This was fixed in beta from yesterday. 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] (again) bug in index sorting?
On Mon, 3 Nov 2014 13:22:28 +0100 Robert Blackstone wrote: > > On 3 Nov 2014, at 10:01 , Alan BRASLAU wrote > > > > On Sun, 2 Nov 2014 12:45:25 +0100 > > Robert Blackstone wrote: > > > >> > >> On 2 Nov 2014, at 12:00 , Pablo Rodriguez wrote > >>> > >>> I > > Alphabetize letter by letter. When alphabetizing surnames, remember > > that “nothing precedes something”: Brown, J. R., precedes Browning, > > A. R., even though i precedes j in the alphabet. > > > > Singh, Y., precedes Singh Siddhu, N. > > López, M. E., precedes López de Molina, G. > > Ibn Abdulaziz, T., precedes Ibn Nidal, A. K. M. > > Girard, J.-B., precedes Girard-Perregaux, A. S. > > Villafuerte, S. A., precedes Villa-Lobos, J. > > Benjamin, A. S., precedes ben Yaakov, D. > > Hi Alan, > This still puzzles me a bit. > You write: “Brown, J. R., precedes Browning, A.R., even though i > precedes j in the alphabet.” But isn’t that because “," precedes “i" ? > Likewise, when sorting these names (with TeX-Edit Plus), Singh > Siddhu, N. comes out before Singh, Y., not the reverse, precisely > because, as you say, “nothing precedes something”, or the space > between Singh and Siddhu precedes the comma between Singh and Y. > Same with López de Molina, G. and López, M. E. > > Or does ConTeXt, or TeX, have its own sorting order? Please do not forget the \startquotation\stopquotation. I am citing the APA rules, not stating anything on how ConTeXt (or TeX-Edit or anything else) sorts lists in general. Brown precedes Browning because APA sorts on last names. Singh precedes Singh Siddhu because "nothing precedes something"( Siddhu) López precedes López de Molina for precisely the same reason. Ibn Abdulaziz precedes Ibn Nidal because Ibn is not to be taken into account. Laue, M. von precedes Röntgen, W. C, as well as Van der Waals, J. D. but here things start to get tricky! My point is that sorting lists of course depends on what you are listing. Indexing author names, for example, needs to sort on last names, then first names. Indexing on several levels needs to sort first by the first level, then by the second level, ... When indexing items containing several words, the sorting should go word by word, thus tipografía digital before tipografías This amounts to making whitespace higher precedence than anything else, which I believe was not the case but now is fixed. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Natural tables introduces spaces in \type
On 11/2/2014 2:54 PM, Hans Hagen wrote: > On 11/2/2014 2:27 PM, Christoph Reller wrote: > > Hi, > > > > Why does \type{...} introduce spaces when used inside natural tables? > > > > MWE: > > > > \starttext > > \type{\test\test} %<- no space introduced > > \bTABLE > > \bTR \bTD \typ{\test\test} \eTD \eTR %<- space introduced > > \eTABLE > > \stoptext > > it's the way tex works (when passing arguments) .. you can use this (and > wikify it): > > \definetype[ctype][compact=absolute] > > \bTABLE > \bTR \bTD \ctype{\test\test} \eTD \eTR > \eTABLE Thank you very much Hans! Maybe you could tell me why the following still produces a space in front of the full stop: \definetype[ctype][compact=absolute] \starttext \bTABLE \bTR \bTD \ctype{\test.txt} \eTD \eTR \eTABLE \stoptext Any feedback is welcome. Regards, Christoph ___ 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] Equivalent of os.resultof(...) in LaTeX
Am 03.11.2014 um 12:42 schrieb Xan: > Just short question: what's the equivalent in latex of > \ctxlua{context(os.resultof("sha256sum \jobname.conTeXt | cut -c -5"))} \documentclass{article} \begin{document} \directlua{ local handle = io.popen("sha256sum \jobname.tex | cut -c -5","r") if handle then local result = handle:read("*all") or "" handle:close() tex.print(result) end } \end{document} or load l-os.lua, then the command os.resultof is available. Herbert ___ 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] (again) bug in index sorting?
On 3 Nov 2014, at 10:01 , Alan BRASLAU wrote > > On Sun, 2 Nov 2014 12:45:25 +0100 > Robert Blackstone wrote: > >> >> On 2 Nov 2014, at 12:00 , Pablo Rodriguez wrote >>> >>> I > Alphabetize letter by letter. When alphabetizing surnames, remember > that “nothing precedes something”: Brown, J. R., precedes Browning, A. > R., even though i precedes j in the alphabet. > > Singh, Y., precedes Singh Siddhu, N. > López, M. E., precedes López de Molina, G. > Ibn Abdulaziz, T., precedes Ibn Nidal, A. K. M. > Girard, J.-B., precedes Girard-Perregaux, A. S. > Villafuerte, S. A., precedes Villa-Lobos, J. > Benjamin, A. S., precedes ben Yaakov, D. Hi Alan, This still puzzles me a bit. You write: “Brown, J. R., precedes Browning, A.R., even though i precedes j in the alphabet.” But isn’t that because “," precedes “i" ? Likewise, when sorting these names (with TeX-Edit Plus), Singh Siddhu, N. comes out before Singh, Y., not the reverse, precisely because, as you say, “nothing precedes something”, or the space between Singh and Siddhu precedes the comma between Singh and Y. Same with López de Molina, G. and López, M. E. Or does ConTeXt, or TeX, have its own sorting order? Best regards, Robert Blackstone ___ 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 ___
[NTG-context] Equivalent of os.resultof(...) in LaTeX
Hi, Just short question: what's the equivalent in latex of \ctxlua{context(os.resultof("sha256sum \jobname.conTeXt | cut -c -5"))} ? Thanks in advance, Xan ___ 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] OT: of interest for inter-European travel
On Sun, 2 Nov 2014 18:05:44 +0100 Hans Hagen wrote: > I can understand it for the Netherlands as they cannot get their high > speed tracks and trains up and running (instead of outsourcing in > europe they should have hired Japanese companies instead). > > (A few days ago I passed by train the tracks where these > non-functional italian high speed trains are stalled ... overpainted > by graffity in the meantime. It's always fun to drive by car along > the dedicated expensive track for container-trains ... that track > kind of stops at the german border.) We are talking about "traditional" overnight trains, not high-speed trains. But it is indeed investment in high-speed trains that is killing lower-cost, traditional rail. > ps. Texies travel to BT by bus. I know, I tried seeing about getting there by train and concluded that it was faster and cheaper to carpool with Taco, driving first to the Netherlands! 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___