Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Wolfgang Schuster
Am 19.02.2011 um 21:57 schrieb Pau: Obviously I have to define Steps and I am using for my presentation pre-fuzzy How could I add Step to pre-fuzzy? I have looked into s-pre-61.tex to see whether I could get an idea (I apologise for my ignorance). To use the step-machanism you can load

[NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
Hi Is it possible to fill out a space between two outlines? As for an example, I'd like to draw two circles (same center, one bigger than the other) and fill out the difference. Something like the letter O. Here's a concrete example: %%% draw (6.949220,13.046900)..controls (9.539060,13.046900)

Re: [NTG-context] [tex-live] simplefonts module of context fails to work in TL2010

2011-02-20 Thread Wolfgang Schuster
Am 17.02.2011 um 14:37 schrieb xiebin: After a fresh web installation, the simplefonts module fails to work. There is a fixed version available, just update your installation. Wolfgang ___ If your question is of

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/20/2011 04:25 PM, Reviczky, Adam wrote: As a workaround I fill out the bigger one with color black and the smaller one with color white, but I need to put this on different background colors, so the use of this is very limited. You can fill out the bigger one, than clips the smaller

[NTG-context] cldf-int.mkiv loads wrong lua file

2011-02-20 Thread Wolfgang Schuster
Hi Hans, - \registerctxluafile{mult-clm}{1.001} + \registerctxluafile{cldf-int}{1.001} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] attachment attaches twice

2011-02-20 Thread Michail Vidiassov
Dear All, to be precise, the attachment is attached once (can be seen if one inspects the sample PDF files in uncompressed form with any text or binary editor - if you do not have Adobe Acrobat), but is listed twice by Adobe Reader. Sincerely, Michail

Re: [NTG-context] defined symbols - question/feature suggestion

2011-02-20 Thread Johannes Kuester
On 02/20/2011 12:40 AM, Hans Hagen wrote: On 20-2-2011 12:24, C. wrote: I see. So from your and all the other responses I take that matching math font for Minion is not available until (I) Minion Math supports ConTeXt (= commercial?!) (II) Somebody ports MnSymbol files to ConTeXt Isn't

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Pau
Dear Wolfgang, thanks a lot for your clear and detailed example. However I seem to be missing the pre-stepwise module and I do not understand why I have followed step by step this http://www.tug.org/texlive/acquire-netinstall.html and everything has worked just fine. As a matter of fact

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 12:13 schrieb Pau: Dear Wolfgang, thanks a lot for your clear and detailed example. However I seem to be missing the pre-stepwise module and I do not understand why You need the file “s-pre-60.tex” (or “s-pre-60.mkii|mkiv”), “pre-stepwise” is just a synonym for this

[NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Henning Hraban Ramm
Maybe similar to the spreadsheet question: I'm trying to use Wolfgang's letter module for my invoices and would like to use Lua for the sums. But I fail already at the beginning: \startluacode userdata = userdata or {} userdata.invoice = userdata.invoice or { sum = 0 } -- global table for

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Henning Hraban Ramm
Am 2011-02-20 um 12:55 schrieb Henning Hraban Ramm: But I fail already at the beginning: \startluacode Sorry for the noise, the error was in the call, not in the definition. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 12:55 schrieb Henning Hraban Ramm: Maybe similar to the spreadsheet question: I'm trying to use Wolfgang's letter module for my invoices and would like to use Lua for the sums. But I fail already at the beginning: \startluacode userdata = userdata or {}

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Henning Hraban Ramm
Am 2011-02-20 um 13:08 schrieb Wolfgang Schuster: local amount = hours * perhour Thank you - I guess you meant that local. I tried that, but since my error was in the call... anyway. Please consider the following nearly-minimal example: \starttext \startluacode userdata =

Re: [NTG-context] cldf-int.mkiv loads wrong lua file

2011-02-20 Thread Hans Hagen
On 20-2-2011 9:56, Wolfgang Schuster wrote: Hi Hans, - \registerctxluafile{mult-clm}{1.001} + \registerctxluafile{cldf-int}{1.001} ah, yes, the very experimental code ... i'll fix it -

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Pau
Thanks to Wolfgang's (seemingly infinite amount of!!) patience, I have managed to get this one running. I have one question, though. Has anybody been successful at running any other software than acroread for pdf documents which require javascript functions such as in this example? This should

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 13:58 schrieb Henning Hraban Ramm: \starttabulate[|lw(8cm)|rg(,)w(2cm)|rg(,)w(2cm)|rg(,)w(3cm)|] %\ctxlua{userdata.InvoiceLine(Play with \\LUATEX, 2.5)} \ctxlua{userdata.InvoiceLine(Do some \\CONTEXT, 0.5)} \ctxlua{userdata.InvoiceSumLine(Sum)} \stoptabulate \startluacode

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Henning Hraban Ramm
Am 2011-02-20 um 13:58 schrieb Henning Hraban Ramm: That seems to work so far, but invoice.hours and invoice.sum are always doubled! In my letter setup, it’s even quadrupled! I guess my functions gets called several times, but how can I avoid that? I found a better approach, but with the

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 14:29 schrieb Henning Hraban Ramm: I found a better approach, but with the letter module involved, my RegisterItem is called twice! The letter modules does trialtypesetting of the content to get the content of the \cc, \encl and \ps commands. To prevent that certain commands

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Henning Hraban Ramm
Am 2011-02-20 um 14:41 schrieb Wolfgang Schuster: Am 20.02.2011 um 14:29 schrieb Henning Hraban Ramm: I found a better approach, but with the letter module involved, my RegisterItem is called twice! The letter modules does trialtypesetting of the content to get the content of the \cc,

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Hans Hagen
On 20-2-2011 2:41, Wolfgang Schuster wrote: Am 20.02.2011 um 14:29 schrieb Henning Hraban Ramm: I found a better approach, but with the letter module involved, my RegisterItem is called twice! The letter modules does trialtypesetting of the content to get the content of the \cc, \encl and

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Hans Hagen
On 20-2-2011 3:49, Henning Hraban Ramm wrote: trialtypesetting in the LuaTeX manual. things like this are not part of luatex but of context so you need the cld manual (or wait till more documentation shows up, or ask ..) context.iftrialtypesetting() do return end context.fi() can't work,

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Mojca Miklavec
On Fri, Feb 18, 2011 at 21:35, Pau wrote: Hello, I am trying to implement a similar effect to latex beamer's \begin{itemize} \itemuncover@1 \itemuncover@2 \itemuncover@3- \end{itemize} What'd be the equivalent/similar/better of that in ConTeXt? Apart from JavaScript-based mechanism

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Henning Hraban Ramm
Am 2011-02-20 um 16:09 schrieb Hans Hagen: it's a system mode, so \startnotmode[*trialtypesetting] ... and in lua if tex.systemmodes.trialtypesetting then ... but, you need to use \settrialtypesetting (see syst-aux.mkiv) as there is more than the \if now (too late to get rid of the if)

Re: [NTG-context] MnSymbol in ConText

2011-02-20 Thread Florian Wobbe
Is there any way to use MnSymbol in context? It is, but somebody needs to write support for it. Both for MKII and MKIV. The problem is, that luatex refuses to load any of the MnSymbol*.otf font files available from CTAN with an error message. I don't know what is broken with the fonts.

Re: [NTG-context] MnSymbol in ConText

2011-02-20 Thread Khaled Hosny
On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote: Is there any way to use MnSymbol in context? It is, but somebody needs to write support for it. Both for MKII and MKIV. The problem is, that luatex refuses to load any of the MnSymbol*.otf font files available from CTAN with

Re: [NTG-context] attachment attaches twice

2011-02-20 Thread Reviczky, Adam
to be precise, the attachment is attached once (can be seen if one inspects the sample PDF files in uncompressed form with any text or binary editor - if you do not have Adobe Acrobat), but is listed twice by Adobe Reader. Thanks, but the question is still why the beta produces this while it

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
You can fill out the bigger one, than clips the smaller one. Can you give me an example with the clip? I can't get it work in a way I want to have it. I've found another thread here: http://www.tug.org/pipermail/metapost/2006-September/000650.html But I fail to see the conclusion there too.

Re: [NTG-context] MnSymbol in ConText

2011-02-20 Thread Florian Wobbe
-- Florian Wobbe Alfred Wegener Institute for Polar and Marine Research Division of Geosciences, Section of Geophysics Postfach 120161 27515 Bremerhaven On Feb 20, 2011, at 20:38 , Khaled Hosny wrote: On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote: Is there any way to use

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Philipp Gesang
Hi Hraban! On 2011-02-20 20:16:03, Henning Hraban Ramm wrote: … / I'll wikify my invoice sample soon. LuaTeX docs in the wiki are a bit scattered ATM... (e.g. Lua, LuaTeX, CLD and MkIV all explain LuaTeX basics) “Lua” is intended to be some kind of portal for all topics related to Lua

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 21:20 schrieb Philipp Gesang: Anyways, looking forward to see your invoice code It would be more interesting to have something like luacalc [1] available in context. As it is only another kind of table one could insert the data with a syntax like this \startspreadsheet

[NTG-context] Switchting between betas

2011-02-20 Thread Michael Goerz
Hi everyone, I've been using ConTeXt (MKIV) through TeXLive 2010 until now, but wanted to try to use the Minimals installation. The installation went fine, but the latest beta version was not able to compile my document (I'll be posting about that separately). What I'm confused about is this:

[NTG-context] Compilation problem with latest beta

2011-02-20 Thread Michael Goerz
Hi everyone, I was compiling a document with the version of ConTeXt that comes with TeXLive 2010, and now tried to compile it the latest beta of the Minimals installation. The compilations fails with the following error: [...] pagesflushing realpage 6, userpage 1 pages

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Khaled Hosny
On Sun, Feb 20, 2011 at 09:44:21PM +0100, Michael Goerz wrote: 1 %\overfullrule5\points % show overfull boxes 2 \startproduct vol_vii_3/vol_vii_3 3 \project project 4 5 \enablemode[doublesided] 6 7 %\showframe % show the layout boxes on

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 21:44 schrieb Michael Goerz: Hi everyone, I was compiling a document with the version of ConTeXt that comes with TeXLive 2010, and now tried to compile it the latest beta of the Minimals installation. The compilations fails with the following error: The problem should be

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Michael Goerz
On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 20.02.2011 um 21:44 schrieb Michael Goerz: Hi everyone, I was compiling a document with the version of ConTeXt that comes with TeXLive 2010, and now tried to compile it the latest beta of the

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Wolfgang Schuster
Am 20.02.2011 um 22:52 schrieb Michael Goerz: On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster Can you comment the part where you insert the table of contents in your document, something fails here but it’s not able to tell what from your example. Indeed, it has something to do with the

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Hans Hagen
On 20-2-2011 9:51, Khaled Hosny wrote: On Sun, Feb 20, 2011 at 09:44:21PM +0100, Michael Goerz wrote: 1 %\overfullrule5\points % show overfull boxes 2 \startproduct vol_vii_3/vol_vii_3 3 \project project 4 5 \enablemode[doublesided] 6 7

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Khaled Hosny
On Sun, Feb 20, 2011 at 11:04:38PM +0100, Hans Hagen wrote: On 20-2-2011 9:51, Khaled Hosny wrote: On Sun, Feb 20, 2011 at 09:44:21PM +0100, Michael Goerz wrote: 1 %\overfullrule5\points % show overfull boxes 2 \startproduct vol_vii_3/vol_vii_3 3 \project project

Re: [NTG-context] Switchting between betas

2011-02-20 Thread Hans Hagen
On 20-2-2011 9:37, Michael Goerz wrote: More generally, is there a way to switch to the beta version of a specific date? Considering that new betas might break the compilation of existing documents, there would have to be a way for me to tell people compile this document with version --

Re: [NTG-context] attachment attaches twice - more research

2011-02-20 Thread Michail Vidiassov
Dear Developers, On Sun, 20 Feb 2011, Michail Vidiassov wrote: to be precise, the attachment is attached once but is listed twice by Adobe Reader. PDF spec states -- An embedded file stream shall be included in a PDF document in one of the following ways: • Any file specification

Re: [NTG-context] Learning LuaTeX : Invoice

2011-02-20 Thread Hans Hagen
On 20-2-2011 9:28, Wolfgang Schuster wrote: Am 20.02.2011 um 21:20 schrieb Philipp Gesang: Anyways, looking forward to see your invoice code It would be more interesting to have something like luacalc [1] available in context. As it is only another kind of table one could insert the data

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Hans Hagen
On 20-2-2011 7:58, Mojca Miklavec wrote: On Fri, Feb 18, 2011 at 21:35, Pau wrote: Hello, I am trying to implement a similar effect to latex beamer's \begin{itemize} \itemuncover@1 \itemuncover@2 \itemuncover@3- \end{itemize} What'd be the equivalent/similar/better of that in ConTeXt?

Re: [NTG-context] attachment attaches twice - more research

2011-02-20 Thread Hans Hagen
On 20-2-2011 11:21, Michail Vidiassov wrote: Dear Developers, On Sun, 20 Feb 2011, Michail Vidiassov wrote: to be precise, the attachment is attached once but is listed twice by Adobe Reader. PDF spec states -- An embedded file stream shall be included in a PDF document in one of

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Michael Goerz
On Sun, Feb 20, 2011 at 10:59 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 20.02.2011 um 22:52 schrieb Michael Goerz: On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster Can you comment the part where you insert the table of contents in your document, something fails here

[NTG-context] a bug in the scrp-cjk.lua

2011-02-20 Thread 李延瑞
Hi Hans, The 'get_attribute' function is not be replaced with 'has_attribute' in the second 'process' function of 'hanzi' section in the scrp-cjk.lua. -- Best regards, Li Yanrui ___ If your question is of interest

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/21/2011 03:52 AM, Reviczky, Adam wrote: As for the path of the difference, how do you mean that? Example? \startMPpage path p ; p := fullcircle scaled 1cm ; path q ; q := fullcircle scaled .5cm ; path r ; r := p -- reverse q -- cycle ; drawarrow r withcolor green ; fill r withcolor red ;

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
\startMPpage path p ; p := fullcircle scaled 1cm ; path q ; q := fullcircle scaled .5cm ; path r ; r := p -- reverse q -- cycle ; drawarrow r withcolor green ; fill r withcolor red ; \stopMPpage This works here. Based on this I can now cut out the smaller one from a fullcircle, but it

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/21/2011 01:12 PM, Reviczky, Adam wrote: \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path p[]; p1 := (6.949220,13.046900)..controls (9.539060,13.046900) and (10.023400,10.781200)..(10.023400,8.679690)..controls (10.023400,5.335940) and

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
Maybe you can know why now, from the above code. The direction of the path is important. I get it now, thanks for your help! ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] attachment attaches twice - please, do not fix by trimming

2011-02-20 Thread Michail Vidiassov
Dear Hans, On Mon, 21 Feb 2011, Hans Hagen wrote: to be precise, the attachment is attached once but is listed twice by Adobe Reader. code in lpdf-wid.lua sends everything to EmbeddedFiles - including files associated with a location on a page in the document i'll patch lpdf-wid it'd be

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
So with this method, I can cut out some fillings of letters in a logo, but for this example it draws a small line through the letter: %%% \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path db[],df[],dc[]; drawoptions (withcolor

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/21/2011 02:41 PM, Reviczky, Adam wrote: but for this example it draws a small line through the letter: \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path db[],df[],dc[]; drawoptions (withcolor (0.00,0.329412,0.560784)); db1 :=

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Thomas A. Schmitz
On Feb 21, 2011, at 12:57 AM, Hans Hagen wrote: Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to

Re: [NTG-context] Switchting between betas

2011-02-20 Thread Cedric Mauclair
On Sun, Feb 20, 2011 at 23:07, Hans Hagen pra...@wxs.nl wrote: On 20-2-2011 9:37, Michael Goerz wrote: More generally, is there a way to switch to the beta version of a specific date? Considering that new betas might break the compilation of existing documents, there would have to be a way

Re: [NTG-context] some equivalent of latex beamer \itemuncover@1?

2011-02-20 Thread Taco Hoekwater
On 02/21/2011 12:57 AM, Hans Hagen wrote: It would be great if \StartSteps, \FlushStep, ... written by Hans would also optionally support creating multiple slides for viewers other than Acrobat. Not in the short term, i might give it a try some day but I hate mechanisms that interfere with