color conversion causes error with MPgraphic
Hi, when I run this example ... \setupcolors[state=stop,conversion=never]%needed for specific reason in project \startuseMPgraphic{Test} z1 = (-233,0) ; z2 = (-220,22) ; fill z1 for i=2 upto 2: .. z[i] endfor .. z1 & cycle ; \stopuseMPgraphic \defineoverlay[TTest] [\leftaligned {\scale[height=\overlayheight]{\useMPgraphic{Test}}}] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background=TTest]{\input knuth\par} \setupTABLE[frame=off,offset=1ex] \setupTABLE[row][each][align={middle,lohi}] \bTABLE \bTR \bTD[nr=3,background=TTest] drei \eTD \eTR \eTABLE \stoptext ... I get this error: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/colo-ini.lua:461: bad argument #2 to 'format' (string expected, got nil) stack traceback: [C]: in function 'format' ...text/tex/texmf-context/tex/context/base/colo-ini.lua:461: in function 'mpcolor' ...text/tex/texmf-context/tex/context/base/colo-ini.lua:792: in function 'mpcolor' <main ctx instance>:1: in main chunk. system > tex > error on line 25 in file MP_MkIV.tex: LuaTeX error ... 15 \starttext 16 17 \framedtext[frame=off,loffset=1em,roffset=1em,background=TTest]{\input knuth\par} 18 19 \setupTABLE[frame=off,offset=1ex] 20 \setupTABLE[row][each][align={middle,lohi}] 21 \bTABLE 22 \bTR 23 \bTD[nr=3,background=TTest] drei \eTD 24 \eTR 25 >> \eTABLE 26 27 \stoptext 28 29 \ctxcommand ...\directlua \zerocount {commands.#1} <inserted text> ...:=\MPcolor {\overlaylinecolor } ; BaseLineSkip:=\the \base... \processMPgraphic ...e ;\!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \d... \handleuseMPgraphic ...hics \processMPgraphic {#3} \endgroup \douseMPgraphic ...{\@@MPG \currentMPgraphicname } \empty \endMPgraphicgroup <to be read again> } ... l.25 \eTABLE ? Process aborted The problem is the usage of "conversion=never" ... but I need this for other reason in my project. Any help? Steffen
On 8-1-2012 19:32, Steffen Wolfrum wrote:
The problem is the usage of "conversion=never" ... but I need this for other reason in my project.
a side effect of mp's color models not being to clever .. why exactly do you need the never 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 -----------------------------------------------------------------
Am 09.01.2012 um 00:36 schrieb Hans Hagen:
a side effect of mp's color models not being to clever .. why exactly do you need the never
For setting colors to black (better explained here): Anfang der weitergeleiteten E-Mail:
Von: Hans Hagen
Datum: 1. März 2010 16:56:09 MEZ An: mailing list for ConTeXt users Betreff: Re: [NTG-context] MkIV gray, no MkII black ? Antwort an: mailing list for ConTeXt users On 1-3-2010 15:02, Peter Rolf wrote:
Hi Steffen,
Am 01.03.2010 13:41, schrieb Steffen Wolfrum:
Hi,
in MkII I set \setupcolors[state=start] to activate defined colors (for text, numbers etc.), and \setupcolors[state=stop] to set these colors to black.
Now, in MkIV \setupcolors[state=stop] does set these colors to gray. Not to black. [Log: "color : system gray is global activated"]
What is the key to set either "color is color" or "color is black" again?
i don't think mkiv has such an option (but maybe i'm wrong). how about defining some color palettes then? this should work with both marks.
\definepalet[coloredtext][...] \setuppalet[coloredtext]
\startmode[black] \definepalet[blacktext] [red=black, blue=black,...] \setuppalet[blacktext] \stopmode
as colorspace info travels indepently you can say
\attribute\colormodelattribute\attributeunsetvalue
i'll add
\setupcolors[state=stop,conversion=never]
Steffen
Hello Steffen, have you ever tried the context version of TeXLive 2011 and than the updated version of it? There is made use of an updated version of luatex. With that version I have fewer problems with for instance TikZ. The stable version and the beta version of context both use an old version of luatex ( beta-0.70.1-2011052008). There is some luatex version beta-0.70.1-201106.......?? Here at my work I cann't try your example, because I have here the context version of Ubuntu and that processes with the old version of luatex, Kind Regards, Rene'
@ Hans/Mojca: Is luatex in standalone suit outdated? Steffen Anfang der weitergeleiteten E-Mail:
Von: rvhassel
Datum: 9. Januar 2012 10:12:00 MEZ An: ntg-context@ntg.nl Betreff: Re: [NTG-context] color conversion causes error with MPgraphic Antwort an: mailing list for ConTeXt users Hello Steffen,
have you ever tried the context version of TeXLive 2011 and than the updated version of it? There is made use of an updated version of luatex. With that version I have fewer problems with for instance TikZ. The stable version and the beta version of context both use an old version of luatex ( beta-0.70.1-2011052008). There is some luatex version beta-0.70.1-201106.......?? Here at my work I cann't try your example, because I have here the context version of Ubuntu and that processes with the old version of luatex,
Kind Regards,
Rene' ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On Mon, Jan 9, 2012 at 11:43 AM, Steffen Wolfrum
@ Hans/Mojca: Is luatex in standalone suit outdated?
Steffen
It shouldn't, afaik: on my linux box the latest standalone says
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) But you can always compile from svn the last trunk. -- luigi
Anfang der weitergeleiteten E-Mail:
have you ever tried the context version of TeXLive 2011 and than the updated version of it? There is made use of an updated version of luatex. With that version I have fewer problems with for instance TikZ. The stable version and the beta version of context both use an old version of luatex ( beta-0.70.1-2011052008). There is some luatex version beta-0.70.1-201106.......??
Hans, does version beta-0.70.1-201106... fix the color conversion clash? As I do not now the background I can't decide wether it is recommended to compile this version ... Steffen
On Mon, Jan 9, 2012 at 12:00 PM, Steffen Wolfrum
Anfang der weitergeleiteten E-Mail:
have you ever tried the context version of TeXLive 2011 and than the updated version of it? There is made use of an updated version of luatex. With that version I have fewer problems with for instance TikZ. The stable version and the beta version of context both use an old version of luatex ( beta-0.70.1-2011052008). There is some luatex version beta-0.70.1-201106.......??
Hans, does version beta-0.70.1-201106... fix the color conversion clash? As I do not now the background I can't decide wether it is recommended to compile this version ...
Perhaps you are talking about that one that comes with TexLive2011: This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277) but the revision is the same of the standalone's one , so they should be equal. -- luigi
Hello luigi, indeed the ConTeXt version 2011.05.18 18:04, with the LuaTeX version beta-0.70.1-201106141 is used in TeXLive2011. These versions give me fewer problems with TikZ than the version beta-0.70.1-2011052008 of LuaTeX, with the same ConTeXt version. For instance, frames are put over each other in the stable and the beta version of ConTeXt. But with the TeXLive2011 version, these frames are nice separated of each other and I have no problems with error messages about "catcode". With the stable and the beta version of ConTeXt the process stops with error messages about "catcode". And till now I have no problems with the colors. Is there somewhere a howto, which describes how to compile something from svn? I have never done such a thing, Kind Regards, Rene'
On Mon, Jan 9, 2012 at 12:41 PM, rvhassel
Hello luigi,
indeed the ConTeXt version 2011.05.18 18:04, with the LuaTeX version beta-0.70.1-201106141 is used in TeXLive2011. These versions give me fewer problems with TikZ than the version beta-0.70.1-2011052008 of LuaTeX, with the same ConTeXt version. For instance, frames are put over each other in the stable and the beta version of ConTeXt. But with the TeXLive2011 version, these frames are nice separated of each other and I have no problems with error messages about "catcode". With the stable and the beta version of ConTeXt the process stops with error messages about "catcode". And till now I have no problems with the colors.
ah yes, but it can be a problem with mkiv and or tikz, while luatex is still the same.
Is there somewhere a howto, which describes how to compile something from svn? I have never done such a thing,
The svn server is public http://foundry.supelec.fr/gf/project/luatex/ On a linux box with svn installed, to compiled the latest trunk $> /opt/luatex/svn $>cd /opt/luatex/svn $> svn checkout http://foundry.supelec.fr/svn/luatex/trunk $>cd /opt/luatex/svn/trunk; bash build.sh The luatex exec. is into the build/texk/web2c folder (i.e. /opt/luatex/svn/trunk/build/texk/web2c). Once you've replaced the standard luatex with the last one, you must rebuild the format and the databases $>mtxrun --make; mtxrun --generate -- luigi
Am 09.01.2012 um 12:41 schrieb rvhassel:
Is there somewhere a howto, which describes how to compile something from svn? I have never done such a thing,
There is a very nice howto written by Patrick. @Patrick: do you remember the URL? Steffen
Am 09.01.2012 um 13:01 schrieb Steffen Wolfrum:
Am 09.01.2012 um 12:41 schrieb rvhassel:
Is there somewhere a howto, which describes how to compile something from svn? I have never done such a thing,
There is a very nice howto written by Patrick.
Hi Steffen,
Is there somewhere a howto, which describes how to compile something from svn? I have never done such a thing,
There is a very nice howto written by Patrick.
@Patrick: do you remember the URL?
No, I don't even remember writing something like that (but I don't deny it either). Patrick
Hello Luigi, Stephen and Patrick, thanks for your reactions. At home I tried to process the example (08-01-2012) of Stephen with the TeXLive2011 version of context, but I got the same errors as the stable and the beta version of context. Thanks for the report of how to compile something with svn. Which person will ever buy "Hans's"-keyboard, that of http://www.artlebedev.com/everything/optimus/popularis almost 10 euro for each key. I like it to give my lectures at a blackboard with chalk. At the blackboard I design my own keys, infinitely many, Kind Regards, Rene'
On Tue, Jan 10, 2012 at 8:26 AM, rvhassel
Hello Luigi, Stephen and Patrick,
thanks for your reactions. At home I tried to process the example (08-01-2012) of Stephen with the TeXLive2011 version of context, but I got the same errors as the stable and the beta version of context. Thanks for the report of how to compile something with svn. Which person will ever buy "Hans's"-keyboard, that of http://www.artlebedev.com/**everything/optimus/popularishttp://www.artlebedev.com/everything/optimus/popularis almost 10 euro for each key. I like it to give my lectures at a blackboard with chalk. At the blackboard I design my own keys, infinitely many,
Maybe the next kind of board will be the Interactive whiteboard http://en.wikipedia.org/wiki/Interactive_whiteboard (+/- like a configurable keyboard, only on the wall) -- luigi
On 10-1-2012 08:39, luigi scarso wrote:
On Tue, Jan 10, 2012 at 8:26 AM, rvhassel
wrote: Hello Luigi, Stephen and Patrick,
thanks for your reactions. At home I tried to process the example (08-01-2012) of Stephen with the TeXLive2011 version of context, but I got the same errors as the stable and the beta version of context. Thanks for the report of how to compile something with svn. Which person will ever buy "Hans's"-keyboard, that of http://www.artlebedev.com/**everything/optimus/popularishttp://www.artlebedev.com/everything/optimus/popularis almost 10 euro for each key. I like it to give my lectures at a blackboard with chalk. At the blackboard I design my own keys, infinitely many,
Maybe the next kind of board will be the Interactive whiteboard http://en.wikipedia.org/wiki/Interactive_whiteboard (+/- like a configurable keyboard, only on the wall)
ah, that kind of crap .. they introduced that in all dutch schools .. real interesting to see how this 1024x768 resolution works out in the back of the room, esp when publishers of stuff use some 30% of the available space for useless borders and such .. and of course such boards need to be compensated with special (paper based) programs to aid those with reading problems (I've heard of cases where very young kids had to start wearing glasses). I wonder how this would work out: http://www.3noobs.com/microsoft-surface-2-0-as-samsung-sur40-specs-price/ (Ok, off topic, but to some extent it can influence user interfaces, editing and proofing in the future.) 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 -----------------------------------------------------------------
Hello schoolboard and keyboard members, such a thing like the microsoft table http://www.3noobs.com/microsoft-surface-2-0-as-samsung-sur40-specs-price/ I had always in mind, but than a little bit smaller. I did not know that they exist. It looks me nice that you can stay or sit before a public, with your face to the public, and that you can write with your fingers, while that is projected at a great screen behind you. I have done such a thing with a tablet of wacom. But the students became sea-sick of the scrolling. In certain sense you need 2-3 screens, such that old results are visible, such that there is no need to scroll. I don't like powerpoint! I have always the idea that people are reading their powerpoint sheets to us, because of the fact that we can not read or something like that. And an electronic schoolboard is a little bit to small, or you need two or three of these schoolboards and that becomes too expensive. But the problem is also that students do not write anything on paper. Notes are not made any more. They sit and listen ( that is what you hope they do!) and think everything will be set at the internet, the lecture (video-college) and everything what is written will be downloaded. With ConTeXt I would prepare pages, where notes can be written down. So that you can annotate pdf-files or something like that. So staying before some screen, you call a certain page, which is may be prepared with a heading or something like that and then you write your notes and save it. Nowadays I use xournal to write Lecture-Journals at the internet, that because of the fact that formulas are easier written by hand than that you have to code them at a certain way. But I will never call such a formula at the screen and than tell to the people what they have to read. I want to keep writing, just as is said by somebody else, just for the fun and to keep the attention of the students. And it is easy to run animations, such tables. That is also the reason that I like it to prepare interactive pdf-files. It is time, I have to give some lectures, Kind Regards, Rene'
Hello Hans, just back from the lecture I have given and I got an idea: Take not that keyboard of you, but take the Maximus (1430 euro!) or the Tactus, see http://www.artlebedev.com/everything/optimus/aux/ Prepare with ConTeXt a number of keys, for instance parts of mathematical formulas and functions, or parts of molecules out of the chemistry. Put them in the keys of one the keyboards, mentioned above and there can be given a lecture with readable formulas. By touching those keys you get a nice written text. Or some key, that you get a nice table ( prepared by ConTeXt) at the screen. And such that it can be filled by handwritten information, using some tablet or otherwise. May be it is already possible for a virtual keyboard on a touchscreen or something like that. A ConTeXt package for the preparation of the keys of a virtual keyboard? It is just an idea, really I have no idea how to realize it, Kind Regards, Rene'
On Tue 10 Jan 2012, rvhassel wrote:
Prepare with ConTeXt a number of keys, for instance parts of mathematical formulas and functions, or parts of molecules out of the chemistry. Put them in the keys of one the keyboards, mentioned above and there can be given a lecture with readable formulas.
At least for formulae, it would probably be cheaper and more flexible to use a graphics tablet or tablet computer, and something like the Freehand Formula Entry System: http://research.cs.queensu.ca/drl/ffes/ . There is also http://jequation.sourceforge.net/ and JMathNotes ( http://page.mi.fu-berlin.de/tapia/projects.php , near bottom of page), though I haven't tried any of them. Pont
On 10-1-2012 13:32, rvhassel wrote:
Hello Hans, ... It is just an idea, really I have no idea how to realize it,
indeed that would be a great usage 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 -----------------------------------------------------------------
don’t forget http://webdemo.visionobjects.com/equation.html it is an online handwriting-to-mathml/tex-converter!
On Wed, Jan 11, 2012 at 11:30 AM, Philipp A.
don’t forget http://webdemo.visionobjects.com/equation.html
it is an online handwriting-to-mathml/tex-converter!
also https://www.desmos.com/calculator/ -- luigi
Thank you Philipp and Luigi, never seen these applications. They are very nice. Such applications would be nice by giving lectures, "Web Equation" http://webdemo.visionobjects.com/equation.html is much better than my idea, Kind Regards, Rene'
Am 10.01.2012 um 08:26 schrieb rvhassel:
Hello Luigi, Stephen and Patrick,
thanks for your reactions. At home I tried to process the example (08-01-2012) of Stephen with the TeXLive2011 version of context, but I got the same errors as the stable and the beta version of context. Thanks for the report of how to compile something with svn. Which person will ever buy "Hans's"-keyboard, that of http://www.artlebedev.com/everything/optimus/popularis almost 10 euro for each key. I like it to give my lectures at a blackboard with chalk. At the blackboard I design my own keys, infinitely many,
They also offer a full-size keyboard: Optimus Maximus (http://www.amazon.de/getDigital-de-Optimus-Maximus/dp/B001M44ZB8/ref=sr_1_10?ie=UTF8&qid=1326183660&sr=8-10) At amazon.de this is tagged "EUR 1.804,00 (EUR 902,00 / kg)": Now, what's more cost-efficient ... 10 euro for each key or 902 euro for each kilo? ;o) Steffen
On Jan 10, 2012, at 8:26 AM, rvhassel wrote:
almost 10 euro for each key. I like it to give my lectures at a blackboard with chalk. At the blackboard I design my own keys, infinitely many,
Congratulations! I thought I was the only one left to do that. PPCHTeX is great, but drawing biochemical formula live, with a piece of chalk, is (even) more challenging, more fun -- and better for the students. Cheers, Jörg
On 10-1-2012 08:26, rvhassel wrote:
Hello Luigi, Stephen and Patrick,
thanks for your reactions. At home I tried to process the example (08-01-2012) of Stephen with the TeXLive2011 version of context, but I got the same errors as the stable and the beta version of context. Thanks for the report of how to compile something with svn. Which person will ever buy "Hans's"-keyboard, that of http://www.artlebedev.com/everything/optimus/popularis almost 10 euro for each key. I like it to give my lectures at a blackboard with chalk. At the blackboard I design my own keys, infinitely many,
It might pay back when editing multiple scripts (now I always have to mess with numbers). And I would buy one if I had the money, of course because of those scripts, but also because this kind of adaptive stuff is the future. I guess it needs a company like logitech or so to make it cheap and large scale. 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 -----------------------------------------------------------------
On 9-1-2012 12:00, Steffen Wolfrum wrote:
Anfang der weitergeleiteten E-Mail:
have you ever tried the context version of TeXLive 2011 and than the updated version of it? There is made use of an updated version of luatex. With that version I have fewer problems with for instance TikZ. The stable version and the beta version of context both use an old version of luatex ( beta-0.70.1-2011052008). There is some luatex version beta-0.70.1-201106.......??
Hans, does version beta-0.70.1-201106... fix the color conversion clash? As I do not now the background I can't decide wether it is recommended to compile this version ...
afaik it's unrelated to the binary ... mp by design has incompatible color spaces .. the latest beta should work (and on my machine I have a variant that uses a different trick which I want to test for a while first) 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 -----------------------------------------------------------------
participants (8)
-
Hans Hagen
-
Jörg Hagmann
-
luigi scarso
-
Patrick Gundlach
-
Philipp A.
-
Pontus Lurcock
-
rvhassel
-
Steffen Wolfrum