Re: [NTG-context] Lua script not registered
On Sat, Dec 3, 2011 at 04:56, John Kitzmiller wrote: I think I can get this setuptex.bat automated for random context runs but, for some reason(s) C:context somefile.tex will not work globally on my personal computer (Lenovo x100e) over which I have admin control (maybe I am not a good admin?) and I have added C:\context\tex\texmf-mswin\bin to my PATH I still get Lua script not registered complaint when I try to compile outside of C:\context directory I suppose I could live with keeping all binaries and docs in C:\context, but that is not so inviting compared to being able to pdfLaTeX a doc over Dropbox via MikTeX for example. You need to have C:\context\tex\texmf-mswin\bin in front of MikTeX's bin, else the command context will use LuaTeX from MikTeX and that one won't find ConTeXt scripts. However, you might stumble into some problems with LaTeX then, but it might be possible to remove pdfTeX (during installation of ConTeXt you can say --engines=luatex) and then it will be unlikely that you will want to use the same binary with ConTeXt and LaTeX (I have no idea how kpathsea would work in such a scenario). Mojca ___ 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] [ntg-context] beta
On 3 December 2011 Hans Hagen wrote: - concerning unicode celsuis and fahrenheit symbols: lm has only one of them hence the inconsistent rendering. I now check for both being present and fallback in case one of them is missing. I thought it might be a font thing - dB (A) : I've added that feature () sounds ok to me. Great! - Are succesive per's always to be collapsed? 10 a/b/c or 10 a/bc? Well, I was thinking about that last night. Technically, yes: one is only supposed to have one per or / in a unit, and any subsequent ones have no effect. But actually I now think that if an author wants that, there may be reasons, so let's leave it as it is. Then you can actually write \starttext It is correct that \unit{1 metre per second per second} is \unit{1 metre per second second} and is also \unit{1 metre per square second}. \stoptext - I'll see what I can do with multiple units. Thanks. Not an urgent one for me. I'm thinking about the numeric formatting capability now ... I will write something and send to the list for comment. Robin ___ 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] OT: Replying to messages from archive (was: Lua script not registered)
Dear John, Am Freitag, den 02.12.2011, 22:56 -0500 schrieb John Kitzmiller: Replying to the list in this manner--having to retype the subject--is unusual to me, and I hope it does not create problems for the list. Please help me on how to reply within the mail archive to make more efficient. Many thanks to those who have replied on the topic! are you subscribed to the list? If yes, have you set up to get the digest mode? In either way, when participating in a discussion it is a good thing to subscribe [1] and then configure the list to send you all messages. Then you can reply to the list like you are used to and the threading is kept. To get the reference you can also download the archive as a mbox file [3] and get the reference there or configure the correct message headers (In-Reply-To, References). Thanks, Paul [1] http://www.ntg.nl/mailman/listinfo/ntg-context [2] http://en.opensuse.org/openSUSE:Mailing_list_netiquette [3] http://www.ntg.nl/pipermail/ntg-context/ (last column) signature.asc Description: This is a digitally signed message part ___ 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] interaction?
On 3-12-2011 08:17, Wolfgang Schuster wrote: Am 03.12.2011 um 01:02 schrieb Hans Hagen: Hi, what was the example that went wrong? I can make a example but not today. No problem as today/tomorrow I'm a bit busy anyway. 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] Lua script not registered
On 3-12-2011 04:56, John Kitzmiller wrote: Replying to the list in this manner--having to retype the subject--is unusual to me, and I hope it does not create problems for the list. Please help me on how to reply within the mail archive to make more efficient. Many thanks to those who have replied on the topic! Thank you, Aditya-- I had run C:\context\tex\setuptex.bat and then tried C:\contextcontext firstfile.tex which worked (now down to 3+ secs from 11+ at first run--file = \starttext Hello World \stoptext) I think I can get this setuptex.bat automated for random context runs but, for some reason(s) C:context somefile.tex will not work globally on my personal computer (Lenovo x100e) over which I have admin control (maybe I am not a good admin?) and I have added C:\context\tex\texmf-mswin\bin to my PATH I still get Lua script not registered complaint when I try to compile outside of C:\context directory I suppose I could live with keeping all binaries and docs in C:\context, but that is not so inviting compared to being able to pdfLaTeX a doc over Dropbox via MikTeX for example. I use windows here and it works ok, so it should be possible to get it working. In principle the only thing needed is to add the tex bin path to the environment variable PATH (beware there are two of them). From an editor, you can best run 'mtxrun --script context ...'. Is the cache generated? Has there been an initial 'mtxrun --generate'? 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] [ntg-context] beta
On 3-12-2011 11:13, robin.kirk...@csiro.au wrote: - I'll see what I can do with multiple units. Thanks. Not an urgent one for me. That should work in the copy I sent you (at least minutes and seconds do). 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] Lua script not registered
On Sat, Dec 3, 2011 at 4:56 AM, John Kitzmiller jki...@gmail.com wrote: Replying to the list in this manner--having to retype the subject--is unusual to me, and I hope it does not create problems for the list. Please help me on how to reply within the mail archive to make more efficient. Many thanks to those who have replied on the topic! I use gmail --- I mean the web interface https://mail.google.com --- without any problem. -- luigi ___ 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] terrible png placement
Hi Hans, On Mac OS X 10.7.2, testing your file I get afile of 110 KB with mkii, and 72 KB with mkiv (from the minimals). You can find the outputs here: http://dl.dropbox.com/u/4316076/test-png-mkii.pdf http://dl.dropbox.com/u/4316076/test-png-mkiv.pdf All this with ConTeXt ver: 2011.11.29 23:11 MKIV fmt: 2011.12.2. Best regards: OK On 11 nov. 2011, at 11:13, Meer, H. van der wrote: Sofar I received 2 reactions. (1) Can't reproduce here; I get a 70KB pdf with your file and image. ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48. (2) I've encountered the same problem. The PDF is 1.8MB big. Compressed with qpdf (qpdf --stream-data=compress) its only 60KB! Latest beta on OS-X 10.7.2 Further search for the cause: My system is also OS-X 10.7.2 and latest beta. To find the culprit I reverted to an older version of ConTeXt. ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.11.11 int: english/english Now the filesize becomes 72KB instead of 1.8 MB. This one seems OK. CONCLUSION: This must have been introduced in one of the beta's later than 2011.10.14 and in or before the current one: ConTeXt ver: 2011.11.04 14:15 MKIV. I kindly suggest Hans takes a look into the matter. Hans van der Meer On 10 nov. 2011, at 21:22, Hans van der Meer wrote: Something terrible must be done to png pictures, either in ConTeXt or in luatex. I have the following minimal sample code and picture. I include the png for those who want to check. % Test png addition. \starttext Place png figure.\par \placefigure{Test figure}{\externalfigure[test.png]} \stoptext Without the png-picture it makes an 8KB pdf. But with the png-picture the pdf swells to 1.8MB. And that for a png-picture of only 48KB. Moreover making a zip of all this stuff brought the size back to 110KB. In the log: ConTeXt ver: 2011.11.04 14:15 MKIV fmt: 2011.11.10 int: english/english mkiv lua stats graphics processing time - 0.001 seconds including tex, 1 processed images ___ 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 ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] displaylines in textetxt?
Is it impossible to typeset displaylines in textext called inside metapost? The gives an error: \starttext \startMPpage label(textext($$\displaylines{a=b\cr}$$\strut),origin); \stopMPpage \stoptext metapost/context/base/metafun.mpiv ! Missing } inserted. -- inserted text } to be read again \halign \displaylines ...spl@y \tabskip \zeroskip \halign {\hbox to \displaywidth {$… Though for example, \matrix,\cases seems to work. I already have put \unexpanded in front of the definition of \displaylines in math-pln.mkiv Hans van der Meer ___ 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] Word-wrap/hyphenation with very large font size not working consistently
I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration. What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed, but if there is a better way please let me know. The trouble I am having is getting lines to break consistently. Sometimes they do, but as in this case the second word `through' continues beyond the frame width. You may also try to substitute the text ``Enter this way today'', another contrived example to see the effect. The symbol font that I am using is Symbol-Signs from: http://www.fontsquirrel.com/fonts/Symbol-Signs but I shouldn't think that is pertinent to the problem. Any guidance on what is the issue here? Or if there is a better way to go about doing this type of signage. I am also interested in learning how to do vertical centering of blocks of text, i.e., in a formal letter or in this case of setting text for signs. I have read and tried to understand Wolfgang's response to Jaroslav's earlier enquiry: http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html but I really don't understand it and how to make it work for my applications. Is there a simple template---say for a block of text---that someone might be able to offer for the ConTeXt challenged? advTHANKSance -- - - Pavneet Arora parking.pdf Description: Adobe PDF document \setuppapersize[legal,landscape] \setuplayout[header=0in,footer=0in,topspace=0.75in,bottomspace=0.75in,backspace=1in,width=12in] \setuppagenumbering[location=] \usemodule[simplefonts] \setmainfont[texgyreschola] \definebodyfont [10pt,11pt,12pt][rm] [tfe=Serif at 128pt, ite=SerifItalic at 128pt] \setupbodyfont[12pt] \setupinterlinespace[line=1.2\bodyfontsize] \starttext %\showlayout[pt,in] %\showbodyfont \dontleavehmode\framed[width=7in,align={flushright,nothyphenated,verytolerant},frame=on]{% \tfe Enter through here for parking } \dontleavehmode\framed[width=5in,frame=off]{% {\simplefont[symbol-signs][size=500pt] K} } \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Title page for diploma thesis
Dear ConTeXt folks, I am trying to format the title page for a diploma thesis. Looking at the Wiki most of the title or cover pages just have the title centered and maybe a subtitle right below [1]. \starttext \definemakeup[titlepage][align=middle] \starttitlepagemakeup {\definedfont[Serif at 20pt]University} \blank[big] {\definedfont[Serif at 20pt]\sc Institute} \vfill {\definedfont[Serif at 20pt]Diploma thesis} \blank[big] {\definedfont[Serif at 30pt] \setstrut \strut Interesting topic} \vfill by John Doe \stoptitlepagemakeup \stoptext 1. Is using `\blank` the recommended way to format the page? Or is using boxes and placing them manually “better”? 2. Looking at the output it is not centered exactly and a little bit to the left. Why is this the default? Does anyone know? Looking at the manual [2] in chapter page design (p. 29, screen version) this seems to be the backspace value. Is there an easy way to center it according to the whole paper width? Additionally I would have guessed it to be more on the right when glueing or trussing up(?) (German binden) the pages. Thanks and I am sorry for the sleight off-topic second question, Paul [1] http://wiki.contextgarden.net/Simple_Cover_Page [2] http://www.pragma-ade.com/general/manuals/cont-eni.pdf test.pdf Description: Adobe PDF document \starttext \definemakeup[titlepage][align=middle] \starttitlepagemakeup {\definedfont[Serif at 20pt]University} \blank[big] {\definedfont[Serif at 20pt]\sc Institute} \vfill {\definedfont[Serif at 20pt]Diploma thesis} \blank[big] {\definedfont[Serif at 30pt] \setstrut \strut Interesting topic} \vfill by John Doe \stoptitlepagemakeup \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Word-wrap/hyphenation with very large font size not working consistently
Am 03.12.2011 um 16:31 schrieb Pavneet Arora: I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration. What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed, but if there is a better way please let me know. The trouble I am having is getting lines to break consistently. Sometimes they do, but as in this case the second word `through' continues beyond the frame width. You may also try to substitute the text ``Enter this way today'', another contrived example to see the effect. The symbol font that I am using is Symbol-Signs from: http://www.fontsquirrel.com/fonts/Symbol-Signs but I shouldn't think that is pertinent to the problem. Any guidance on what is the issue here? Or if there is a better way to go about doing this type of signage. I am also interested in learning how to do vertical centering of blocks of text, i.e., in a formal letter or in this case of setting text for signs. I have read and tried to understand Wolfgang's response to Jaroslav's earlier enquiry: http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html but I really don't understand it and how to make it work for my applications. Is there a simple template---say for a block of text---that someone might be able to offer for the ConTeXt challenged? \setuppapersize[legal,landscape] \setuplayout [header=0in, footer=0in, topspace=0.75in, bottomspace=0.75in, backspace=1in, width=12in] \setuppagenumbering [location=] \usemodule[simplefonts] \setmainfont[TeX Gyre Schola] %\setupinterlinespace[line=1.2\bodyfontsize] \setupinterlinespace[line=2.2ex] \starttext \dontleavehmode \framed [width=7in,align={flushright,nothyphenated,broad},frame=on] {\definedfont[Serif at 128pt]\setupinterlinespace Enter through here for parking\par}% \framed [width=5in,frame=off] % {\definedfont[name:symbolsigns at 500pt]K} {\definedfont[Sans at 500pt]K} \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 ___
Re: [NTG-context] Lua script not registered
---Mojca wrote: On Sat, Dec 3, 2011 at 04:56, John Kitzmiller wrote: I think I can get this setuptex.bat automated for random context runs but, for some reason(s) C:context somefile.tex will not work globally on my personal computer (Lenovo x100e) over which I have admin control (maybe I am not a good admin?) and I have added C:\context\tex\texmf-mswin\bin to my PATH I still get Lua script not registered complaint when I try to compile outside of C:\context directory I suppose I could live with keeping all binaries and docs in C:\context, but that is not so inviting compared to being able to pdfLaTeX a doc over Dropbox via MikTeX for example. You need to have C:\context\tex\texmf-mswin\bin in front of MikTeX's bin, else the command context will use LuaTeX from MikTeX and that one won't find ConTeXt scripts. However, you might stumble into some problems with LaTeX then, but it might be possible to remove pdfTeX (during installation of ConTeXt you can say --engines=luatex) and then it will be unlikely that you will want to use the same binary with ConTeXt and LaTeX (I have no idea how kpathsea would work in such a scenario). Mojca end of quote --- Good thinking Mojca! Moving C:\context up in PATH has done the trick from the command line. Now I will fuss getting editor to work. I compiled a few of my standard docs through MiKTeX pdflatex and mpost docs with no conflict so far. Thank you so much for the suggestion and thanks to luigi and Hans for their help too. Then I will read and play with wonderful ConTeXt manuals and generate a million more questions ;) --johnk ___ 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] Word-wrap/hyphenation with very large font size not working consistently
Thanks Wolfgang, I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it is described? I see broad described in terms of width and height but not align under the description for framed. Thanks. On 11-12-03 10:43 AM, Wolfgang Schuster wrote: Am 03.12.2011 um 16:31 schrieb Pavneet Arora: I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration. What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed, but if there is a better way please let me know. The trouble I am having is getting lines to break consistently. Sometimes they do, but as in this case the second word `through' continues beyond the frame width. You may also try to substitute the text ``Enter this way today'', another contrived example to see the effect. The symbol font that I am using is Symbol-Signs from: http://www.fontsquirrel.com/fonts/Symbol-Signs but I shouldn't think that is pertinent to the problem. Any guidance on what is the issue here? Or if there is a better way to go about doing this type of signage. I am also interested in learning how to do vertical centering of blocks of text, i.e., in a formal letter or in this case of setting text for signs. I have read and tried to understand Wolfgang's response to Jaroslav's earlier enquiry: http://archive.contextgarden.net/message/20100702.112805.07aa71e2.en.html but I really don't understand it and how to make it work for my applications. Is there a simple template---say for a block of text---that someone might be able to offer for the ConTeXt challenged? \setuppapersize[legal,landscape] \setuplayout [header=0in, footer=0in, topspace=0.75in, bottomspace=0.75in, backspace=1in, width=12in] \setuppagenumbering [location=] \usemodule[simplefonts] \setmainfont[TeX Gyre Schola] %\setupinterlinespace[line=1.2\bodyfontsize] \setupinterlinespace[line=2.2ex] \starttext \dontleavehmode \framed [width=7in,align={flushright,nothyphenated,broad},frame=on] {\definedfont[Serif at 128pt]\setupinterlinespace Enter through here for parking\par}% \framed [width=5in,frame=off] % {\definedfont[name:symbolsigns at 500pt]K} {\definedfont[Sans at 500pt]K} \stoptext Wolfgang -- - - Pavneet Arora Waroc Fine Audio + Custom Home Cinema www.waroc.com 416.937.WAROC (9276) ___ 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] Word-wrap/hyphenation with very large font size not working consistently
Am 03.12.2011 um 17:55 schrieb Pavneet Arora: Thanks Wolfgang, I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it is described? I see broad described in terms of width and height but not align under the description for framed. With the “broad” key you can increase the tolerance for ragged (left, middle and right) text as you can see in the example below. \starttext \startalignment[flushleft] \input ward \stopalignment \blank \startalignment[flushleft,broad] \input ward \stopalignment \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 ___
[NTG-context] Define `\luatexversion` similar to `\contextversion`
Dear ConTeXt folks, thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found `\luaversion` to display the version of Lua. But I could not find `\luatexversion`. Is there something similar? Can this command be defined? Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] Define `\luatexversion` similar to `\contextversion`
Am 03.12.2011 um 19:23 schrieb Paul Menzel: Dear ConTeXt folks, thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found `\luaversion` to display the version of Lua. But I could not find `\luatexversion`. Is there something similar? Can this command be defined? \starttext \starttabulate \NC Engine \EQ \texenginename\NC\NR \NC Version \EQ \texengineversion \NC\NR \stoptabulate \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 ___
Re: [NTG-context] [solved – `\texengineversion`] Define `\luatexversion` similar to `\contextversion`
Am Samstag, den 03.12.2011, 19:28 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 19:23 schrieb Paul Menzel: thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found `\luaversion` to display the version of Lua. But I could not find `\luatexversion`. Is there something similar? Can this command be defined? \starttext \starttabulate \NC Engine \EQ \texenginename\NC\NR \NC Version \EQ \texengineversion \NC\NR \stoptabulate \stoptext As always thank you very much for the fast response with the solution. Thanks, Paul test.pdf Description: Adobe PDF document \starttext \starttabulate \NC Engine \EQ \texenginename\NC\NR \NC Version \EQ \texengineversion \NC\NR \stoptabulate \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
Dear ConTeXt folks, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext the parentheses of the binomial in the text or too short. I guess this is because the parentheses are not scaled when inlined and that this is also a TeX limitation and therefore expected? ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 Thanks, Paul choose.pdf Description: Adobe PDF document \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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] Parse error when using `\define`
Dear ConTeXt folks, could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1 \rvert} \define\Ew{{\mathbf E}} \define[1]\ew{\Ew \left[ #1 \right]} \starttext a \starttext I am using ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 and I have to insert `/end` manually. $ context 20111203--parse-error.tex mtx-context | run 1: luatex --fmt=/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en --lua=/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui --backend=pdf ./20111203--parse-error.tex \stoptext This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (20111203--parse-error.tex ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english system cont-new.mkiv loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system 20111203--parse-error.top loaded (20111203--parse-error.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ) *\end system don't use \end to finish a document backend xmp using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' […] Afterward changing anything in the file like removing the defines the error will still appear. Thanks, Paul (20111203--parse-error.tex ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english system cont-new.mkiv loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system 20111203--parse-error.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options } used options document.files={ used options 20111203--parse-error.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=20111203--parse-error.tex] used options \setupsystem[\c!n=2,\c!m=3] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (20111203--parse-error.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ) *\end system don't use \end to finish a document backend xmp using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 /opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf system files start used files used files 1: filename=mult-mps.lua | filetype=tex | format=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/mult-mps.lua | usedmethod=database used files 2: filename=20111203--parse-error.tex | foundname=20111203--parse-error.tex | usedmethod=direct used files 3
Re: [NTG-context] Parse error when using `\define`
Am 03.12.2011 um 20:06 schrieb Paul Menzel: Dear ConTeXt folks, could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1 \rvert} \define\Ew{{\mathbf E}} \define[1]\ew{\Ew \left[ #1 \right]} \starttext a \starttext End your document with \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 ___
[NTG-context] \lastpage is not set when using arranging
Hi, Consider the following example: \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \setupfootertexts[Page \currentpage\ of \lastpage] \starttext \dorecurse{10}{\input knuth} \stoptext Notice that the footer says Page 1 or 0, Page 2 of 0, etc. 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 ___
Re: [NTG-context] Word-wrap/hyphenation with very large font size not working consistently
Thanks for the clarification! I'll keep that in mind. On 11-12-03 12:14 PM, Wolfgang Schuster wrote: Am 03.12.2011 um 17:55 schrieb Pavneet Arora: Thanks Wolfgang, I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it is described? I see broad described in terms of width and height but not align under the description for framed. With the “broad” key you can increase the tolerance for ragged (left, middle and right) text as you can see in the example below. \starttext \startalignment[flushleft] \input ward \stopalignment \blank \startalignment[flushleft,broad] \input ward \stopalignment \stoptext Wolfgang -- - - Pavneet Arora Waroc Fine Audio + Custom Home Cinema www.waroc.com 416.937.WAROC (9276) ___ 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] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
Dear Paul, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. Please try $\displaystyle{n \choose \frac{n}2}$. It is working for me. I hope it is what you are looking for. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Saving module data in tuc file
Hi, How does one save and read third-party data in tuc file at the lua end? I am trying to write a module t-ifchanged that defines a \doiffilechanged macro that provides the functionality of mtxrun --ifchanged without calling an external program (This is meant to be a support module for t-vim, where the external calls to mtxrun are too time consuming). I can successfully write additional data to the tuc file, but cannot figure out how to initialize the data from tuc file. (See attached file). Any hints are welcome. Aditya\startmodule[ifchanged] \startluacode local collected = {} local tobesaved = {} local function initializer() -- this function is not called! -- print(,collected) collected = utilitydata.thirddata.ifchanged.collected end job.register('thirddata.ifchanged.collected', tobesaved, initializer) local function cachedmd5sum(filename) return collected[filename] or end function commands.doiffilechangedelse(filename) local md5sum = md5.HEX(io.loaddata(filename) or ) local cached = cachedmd5sum(filename) tobesaved[filename] = md5sum print(, md5sum) print(, cached) commands.testcase(md5sum == cached) end \stopluacode \def\doiffilechangedelse#1% {\ctxcommand{doiffilechangedelse(#1)}} \def\doiffilechanged#1% {\doiffilechangedelse{#1}\firstofoneargument\gobbleoneargument} \def\doiffilenotchanged#1% {\doiffilechangedelse{#1}\gobbleoneargument\firstofoneargument} \stopmodule \starttext \doiffilechanged{test.pdf}{\executesystemcommand{context test}} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Saving module data in tuc file
On Sun, Dec 4, 2011 at 1:20 AM, Aditya Mahajan adit...@umich.edu wrote: Hi, How does one save and read third-party data in tuc file at the lua end? You can read the data with loadfile or dofile: utilitydata=dofile('test.tuc') and then you have the table stored into utilitydata See for the difference with loadfile http://www.lua.org/pil/8.html -- luigi ___ 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] Saving module data in tuc file
On Sun, 4 Dec 2011, luigi scarso wrote: On Sun, Dec 4, 2011 at 1:20 AM, Aditya Mahajan adit...@umich.edu wrote: Hi, How does one save and read third-party data in tuc file at the lua end? You can read the data with loadfile or dofile: utilitydata=dofile('test.tuc') But doesn't ConTeXt already read the tuc file at \starttext? I don't want to load the file again. 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] Bug with caption
Hi, If I use \setupcaption[number=no] and include a float with no caption, then all subsequent floats do not have a caption! Here is an example (using 2011.11.29) \setupcaption[number=no] \startbuffer \startnotmode[bugfix] \startplacefigure[location=here] Figure with no caption \stopplacefigure \stopnotmode \startplacefigure[location=here, title={Test}] Still no caption! \stopplacefigure \stopbuffer \starttext %% The float is shown with a caption here \enablemode[bugfix] \getbuffer %% The second float does not have a caption now. \disablemode[bugfix] \getbuffer \stoptext Aditya test.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] [OT] Documentation
http://www.icanbarelydraw.com/comic/821 ___ 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 ___