Re: [NTG-context] problem with \ref[t][...]

2010-06-13 Thread Peter Münster
On Fri, Jun 11 2010, Peter Münster wrote: A related question: how can I get rid of the quotation marks of \about[]? Ok, found it: \setupreferencing[left=, right=] Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

[NTG-context] problem with \ref[t][...]

2010-06-11 Thread Peter Münster
Hello, \ref[t][...] does not work as expected, or I expect the wrong thing: \starttext \startsection[title=Problem here, reference=sec1] Section text: \ref[t][sec1] \stopsection \startsection[title=Workaround] \reference[sec2]{Workaround} Section text: \ref[t][sec2] \stopsection \stoptext A

[NTG-context] reference, ref, label, id, etc.

2010-06-11 Thread Peter Münster
Hello, We have now \startsection[reference=...] and \reference[]{} and perhaps other such commands. Wouldn't it be better to call this label or identifier or id or similar instead of reference ? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] post-commit hook for contextman

2010-06-07 Thread Peter Münster
Hello, Is it possible, to get email on every commit to http://foundry.supelec.fr/gf/project/contextman ? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to

Re: [NTG-context] post-commit hook for contextman

2010-06-07 Thread Peter Münster
On Mon, Jun 07 2010, Taco Hoekwater wrote: Sure. Subscribe to the Lists - contextman-commits mailing list Oh... This was just too obvious, that I couldn't find it! My google-search was really bad: post-commit hook site:foundry.supelec.fr Thanks! Peter -- Contact information:

Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Peter Münster
On Sun, Jun 06 2010, Yury G. Kudryashov wrote: Probably, more features can be tested server-side analyzing the result pdf file using some library (though I don't know the pdf-parsing libraries sufficiently good to implement it). Perhaps it's just sufficient to convert the pdf to an image,

Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Peter Münster
On Sun, Jun 06 2010, Taco Hoekwater wrote: But if it fails you will most likely end up with a stuck server. There is --nonstopmode and kill ... ;) I would do the test in a post-commit hook, that sends email when there is a problem. Cheers, Peter -- Contact information:

Re: [NTG-context] Slides: uncover things piecewise

2010-06-04 Thread Peter Münster
On Fri, Jun 04 2010, Marco wrote: http://wiki.contextgarden.net/SlideWithSteps Compiling the example code on this page I get the error ! Use of \dospecialabout doesn't match its definition. Strange, no problem here... http://modules.contextgarden.net/t-rsteps Compiling the example code

Re: [NTG-context] Slides: uncover things piecewise

2010-06-03 Thread Peter Münster
On Tue, Jun 01 2010, Marco wrote: \usemodule [simpleslides] \starttext \SlideTitle {My Topic} \startitemize \item First % Visible by default \item Second % Gray by default \item Third % Gray by default \stopitemize \stoptext Not gray, but white: \usemodule [simpleslides,

Re: [NTG-context] Slides: uncover things piecewise

2010-06-03 Thread Peter Münster
On Thu, Jun 03 2010, Marco wrote: ConTeXt ver: 2010.05.23 15:03 MKIV My version 2010.05.24 13:05, but I don't think, that this matters. I get exactly the same result as with my code. All items on one page, no steps. Perhaps your pdf-viewer does not support javascript. I use acroread

Re: [NTG-context] Slides: uncover things piecewise

2010-06-03 Thread Peter Münster
On Thu, Jun 03 2010, Marco wrote: The first item is placed correctly on the first page. The second item is misplaced, it's also on the first page and (you're right Taco) a paragraph is superfluously introduced. The third item is placed correctly, after the second. You can also look here:

Re: [NTG-context] context mkiv eats a table

2010-05-27 Thread Peter Münster
On Thu, May 27 2010, Marius wrote: Here is the example. [...] Or even smaller: \starttext \dorecurse{700}{text } \placefigure[top][]{Figure}{bla} \dorecurse{40}{text } \placetable[top][]{Table}{bla} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Color tables in MKIV

2010-05-26 Thread Peter Münster
On Wed, May 26 2010, Hongwen Qiu wrote: Since I get black background for \BL(which is not gray) and get the following error for \CL in MKIV: Hans: mkiv will have other ways to do this kind of hackery See also: http://tracker.luatex.org/view.php?id=110 Cheers, Peter -- Contact information:

Re: [NTG-context] context mkiv eats a table

2010-05-26 Thread Peter Münster
On Wed, May 26 2010, Marius wrote: does somebody experience a situation then a table disappear in the document? This is an ugly bug, but I can't narrow it to a simple case. When you need a lot of text, pages, floats and whatever to trigger this problem, then you can use commands like

Re: [NTG-context] fullpage still not preset in minimals

2010-05-22 Thread Peter Münster
On Sat, May 22 2010, Vyatcheslav Yatskovsky wrote: Long time ago I asked about including fullpage module into the standard ConTeXt distribution. I thought that the answer was positive, but this module still not present in either beta nor current minimal distribution. It's in the minimals.

Re: [NTG-context] Problem with identation

2010-05-21 Thread Peter Münster
On Fri, May 21 2010, Marius wrote: identation problem and I am stuck because of it. As this problem is beyond my capabilities and time is short, I have now three options: return to LaTeX, use [here] option (and manual formating) or please help me :) Fourth option: use a workaround.

Re: [NTG-context] Problem with identation

2010-05-21 Thread Peter Münster
On Wed, May 19 2010, Marius wrote: \setupfloats[indentnext=yes] has no effect in the example below? I expect the line 6 above figure to be indented. \placefigure [bottom,top][] Strange, there is no such problem when you write top,bottom! Cheers, Peter -- Contact information:

[NTG-context] problem with ctx-file

2010-05-17 Thread Peter Münster
Hello, With the latest version, I get the error mtxrun:6961: attempt to index field '?' (a nil value) Command: context --ctx=test-ctx.ctx test File test-ctx.ctx : ?xml version='1.0' standalone='yes'? ctx:job ctx:messageAdding svnhook mode./ctx:message ctx:preprocess/ ctx:flags

Re: [NTG-context] a space after title

2010-05-15 Thread Peter Münster
On Fri, May 14 2010, Marius wrote: Thank you, Peter, but there those options come from? I can't find distance option here: I've just guessed... ;) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] a space after title

2010-05-14 Thread Peter Münster
On Fri, May 14 2010, Marius wrote: There is too big spacing after subsubject in the test3.pdf file. How to get rid of it? \setuphead [subsection] [alternative=text] \setuphead [subsection] [alternative=text, distance=0pt] Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Removing last skip or insert negative space to captions of figures

2010-05-11 Thread Peter Münster
On Tue, May 11 2010, Jaroslav Hajtmar wrote: \placefigure{$\!\!\!\!$:\quad Caption 1} {\externalfigure[figure1]} is result OK! BUT this method is terrible for me: Better method: \setupcaptions[distance=0pt] \starttext \placefigure{: Caption}{bla} \stoptext Cheers, Peter --

[NTG-context] funny bug

2010-05-10 Thread Peter Münster
Hello, \starttext \startLUA printbla -- words are transposed! \stopLUA \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest

[NTG-context] \setuptyping[tab=...]

2010-05-10 Thread Peter Münster
Hello, The length of the tab is always 7: % one tab before each bla: \setuptyping[tab=2] \starttext \starttyping 12345678901234567890 bla bla \stoptyping \setuptyping[tab=4] \starttyping 12345678901234567890 bla bla \stoptyping \stoptext Cheers, Peter -- Contact

Re: [NTG-context] TABLE in TABLE

2010-05-09 Thread Peter Münster
On Sun, May 09 2010, Xan wrote: Is it possible to put a table in another table? Yes: \starttext \bTABLE \bTR \bTD {\bTABLE \bTR \bTD bla \eTD \eTR \eTABLE} \eTD \eTR \eTABLE \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] problem with package.path

2010-05-07 Thread Peter Münster
On Thu, May 06 2010, Hans Hagen wrote: \startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) \stopluacode \stoptext dofile ../mytest.lua Bad example... mytest.lua is a module, so it must be loaded

[NTG-context] language specifics (was: Re: mistake in lang-cjk.mkiv)

2010-05-07 Thread Peter Münster
On Thu, May 06 2010, Hans Hagen wrote: in mkiv we don't have (want) language specifics ... why do yoi need them? Hello Hans, What is now the right mechanism, to trigger some setting when a specific language is activated and cancel this same setting, when this language is deactivated? Example:

Re: [NTG-context] strange page break

2010-05-06 Thread Peter Münster
On Wed, May 05 2010, Wolfgang Schuster wrote: The *strict prevents widows and orphans (comment \setuplayout in this example) but the important setting here is \setupalign[line]. Hello Wolfgang, I know that \setupalign[line] means: last line should touch the bottom. It can be useful, but

Re: [NTG-context] strange page break

2010-05-06 Thread Peter Münster
On Thu, May 06 2010, Wolfgang Schuster wrote: \setuphead[section][before={\allowbreak\blank[2*big]}] Thanks for this workaround! The problem is indeed that ConTeXt tries to keep the header and the material before the header together And does this make sense? Keeping header and the material

Re: [NTG-context] strange page break

2010-05-06 Thread Peter Münster
On Thu, May 06 2010, Hans Hagen wrote: \setuphead[section][before={\allowbreak\blank[2*big]}] {\testpage[5]\blank[2*big]} Hello Hans, When you take my example from this morning, then you'll see, that \allowbreak really helps, whereas \testpage[5] only helps in some cases. Cheers, Peter --

Re: [NTG-context] strange page break

2010-05-06 Thread Peter Münster
On Thu, May 06 2010, Hans Hagen wrote: When you take my example from this morning, then you'll see, that \allowbreak really helps, whereas \testpage[5] only helps in some cases. yes but allowbreak introduces a penalty node that can interfere with spacing Anyway, I don't consider

[NTG-context] new issue with page break

2010-05-06 Thread Peter Münster
Hello, IMHO there should never be a page break right *after* a section header, but here it is: \starttext \dorecurse{660}{text } \section{bla} % \par\page[no] % does not help \startTEX bla bla \stopTEX \stoptext My actual work-around: \page before \section{} Is there a better solution? TIA

Re: [NTG-context] strange page break

2010-05-05 Thread Peter Münster
On Wed, May 05 2010, Taco Hoekwater wrote: Looks rather normal here, see attached (ver: 2010.05.02 16:43) A better page break would be after the last line of section 7: \def\mySection{\section{bla}\dorecurse{30}{text }} \starttext \dorecurse8{ \mySection\par bla

Re: [NTG-context] strange page break

2010-05-05 Thread Peter Münster
On Wed, May 05 2010, Taco Hoekwater wrote: (TeX's page break algorithm is not all that smart really, because it does not know about sectioning at all: it only sees lines and penalties). So the question is: what can be done? I know, that LaTeX doesn't suffer from such problems... Cheers, Peter

Re: [NTG-context] strange page break

2010-05-05 Thread Peter Münster
On Wed, May 05 2010, Wolfgang Schuster wrote: Without setting your own penalty values you can do this: \setuplayout[setups=*strict] I'm sorry Wolfgang, I don't understand this command. In the following example, there is still a bad page break: \setuplayout[setups=*strict]

Re: [NTG-context] strange page break

2010-05-05 Thread Peter Münster
On Wed, May 05 2010, Wolfgang Schuster wrote: The problem is in your example the page happens between two separate paragraphs and not in a paragraph where a penalty values is available. What is setups=*strict supposed to do? In the following example, the page break is even before section 7:

[NTG-context] problem with package.path

2010-05-04 Thread Peter Münster
Hello, I need to include lua-modules from different directories, but package.path does not seem to work: \startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) \stopluacode \stoptext Error message: ! LuaTeX

Re: [NTG-context] problem with package.path

2010-05-04 Thread Peter Münster
On Tue, May 04 2010, Peter Münster wrote: package.path = ../?.lua;; Ok, I see, the paths must be separated by colons: package.path = path1/?.lua:path2/?.lua But it's not very comfortable, since some of my luafiles are processed by lua¹ *and* by context². ¹ To generate code. ² To generate

[NTG-context] get tex-value in lua

2010-05-04 Thread Peter Münster
Hello, How can I get the value of a variable or a mode in the lua part? Example: context --arguments=MyVar=true test And in test.tex: \starttext \startluacode local my_var = loadstring(return .. get_value_of(MyVar)) if my_var then tex.print(TRUE) else tex.print(FALSE) end

Re: [NTG-context] get tex-value in lua

2010-05-04 Thread Peter Münster
On Tue, May 04 2010, Peter Münster wrote: How can I get the value of a variable or a mode in the lua part? The solution is so simple... : \ctxlua{userdata = userdata or {}; userdata.myvar = \env{MyVar}} \starttext \startluacode if userdata.myvar then tex.print(TRUE) else tex.print

[NTG-context] strange page break

2010-05-03 Thread Peter Münster
Hello, Here is a strange page break (version 2010.04.29 22:30): \def\mySection{\section{bla}\dorecurse{30}{text }} \starttext \dorecurse8{ \mySection\par bla} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] ! Undefined control sequence

2010-04-23 Thread Peter Münster
On Fri, Apr 23 2010, Wolfgang Schuster wrote: \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}] Hello Wolfgang, It works event without \setvariables: \defineitemgroup[Tst] \setupTst[1][n,\getvariable{tst}{broad}*broad] \starttext \setvariables[tst][broad=1] \startTst

Re: [NTG-context] fr or en ?

2010-04-22 Thread Peter Münster
On Thu, Apr 22 2010, R. Bastian wrote: \mainlanguage[fr], but in the log: 'language en is active' Hello, en is the language of the interface, the command names. en: \mainlanguage[] fr: \langueprincipale[] if fact, the spacing of ': ; ? !' are not the french spacing (i prefer something

Re: [NTG-context] question

2010-04-22 Thread Peter Münster
On Thu, Apr 22 2010, Marius wrote: [\c!title={xxx}, \c!title eats the space. [title ={How to do this in Context}, title does not, so the parameter is not title but title . Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] \define... (was: Re: Structuring topics)

2010-04-19 Thread Peter Münster
On Mon, Apr 19 2010, Wolfgang Schuster wrote: \starttext \define\hans{hans} \define\hans{taco} \stoptext the output now is 'hans' because \define checks whether a command with the name \hans is already defined Hello Wolfgang, Did you test it? The output is taco here on my system: MTXrun

Re: [NTG-context] lua, footnotes, interaction

2010-04-17 Thread Peter Münster
On Fri, Apr 16 2010, Philipp Gesang wrote: function track.simple(arg) Try this: print(TRACK:, arg) \def\foottrack#1{\footnote{\ctxlua{track.simple(#1)}}} With interaction enabled, the argument to \footnote{} gets evaluated twice. Cheers, Peter -- Contact information:

Re: [NTG-context] lua, footnotes, interaction

2010-04-17 Thread Peter Münster
On Fri, Apr 16 2010, Philipp Gesang wrote: I'd naively expect \track#1 to behave identically regardless of interaction. How do I make it interaction-proof Sorry, I had forgotten to answer your main-question: \def\foottrack#1{\expanded{\footnote{\ctxlua{track.simple(#1) and, if

Re: [NTG-context] footnote marks fail

2010-04-13 Thread Peter Münster
On Tue, Apr 13 2010, Taco Hoekwater wrote: \starttext text1\footnote{1footnote} \stoptext This will produce four instances of the numeral '1'. Suppose I want them all to look exactly alike. In other words, suppose I didn't want either footnote mark to be rescaled or elevated at all. How

Re: [NTG-context] footnote marks fail

2010-04-13 Thread Peter Münster
On Tue, Apr 13 2010, Michael Saunders wrote: Taco Hoekwater wrote: \setupfootnotes[textcommand=,numbercommand=,style=,bodyfont=] Thanks, Taco. I tried the following: \setupfootnotes[textcommand=,numbercommand=,style=,bodyfont=] \starttext text1\footnote{1footnote} \stoptext

[NTG-context] error messages for callback.register

2010-04-09 Thread Peter Münster
Hello, Here a patch for luat-cbk.lua: function callbacks.register(name,func,freeze) if frozen[name] then if trace_callbacks then frozenmessage(registering,name) end return nil, name .. is frozen elseif freeze then frozen[name] = (type(freeze)

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext Cheers, Peter -- Contact

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, luigi scarso wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; I'm not able to see any white space in mkiv Bastian refers to Wolfgang's solution with \setuplines[space=on]. Cheers, Peter -- Contact

Re: [NTG-context] callback.register

2010-04-08 Thread Peter Münster
On Thu, Apr 08 2010, Wolfgang Werners-Lucchini wrote: [...] but MyPreLB() is not called. What I am doing wrong here? Hello Wolfgang, I don't know, but I've played a bit with your example file: \starttext \startluacode local OldPreLB function MyPreLB(head,gc) tex.print(Here I am!)

Re: [NTG-context] Extra page created at end of document

2010-04-06 Thread Peter Münster
On Tue, Apr 06 2010, Tom wrote: The following code creates an extra page at the end of the pdf for a total of 3 pages: \setuppagenumbering[location=,alternative=doublesided] \setuppagenumber[state=stop] \starttext %\startfrontmatter \input knuth %\stopfrontmatter \stoptext It

Re: [NTG-context] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Peter Münster
On Mon, Apr 05 2010, Vianney le Clément wrote: \setupframed [frame=none, offset=0pt, location=top] Hello, I cannot explain why, but offset=overlay seems to be slightly better. \blank\sl \setupinterlinespace Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] font lookup

2010-04-05 Thread Peter Münster
On Tue, Apr 06 2010, Wolfgang Werners-Lucchini wrote: Result (on my system): Path: texgyrepagella-regular.otf Hmm! How does context resolve the complete path afterwards? Hello Wolfgang, When you know the filename, you can get the complete path like this: \starttext

Re: [NTG-context] mkiv: wide gap between name and text of enumerations

2010-04-05 Thread Peter Münster
On Tue, Apr 06 2010, Matthias Weber wrote: \defineenumeration[blurb] [text=Blurb, way=bysection, location=hanging] Blurb 1 Here should only be a small

[NTG-context] raisebox (was: Re: minimal example of some problems)

2010-04-04 Thread Peter Münster
On Sun, Apr 04 2010, Michael Saunders wrote: \raisebox{1em}\hbox{--} Hooray! Something works! Often, there even more than one solution: \offset[y=-1em]{--} or \high{--} Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] new error in Context under Linux

2010-04-04 Thread Peter Münster
On Sun, Apr 04 2010, Hans Hagen wrote: btw there will be no beta this weekend as we need to be in sync with the upcoming 0.60 there will probably be a few betas next week and then a current once 0.60 is out Isn't it out yet ?? - http://foundry.supelec.fr/gf/project/luatex/frs/ Cheers,

Re: [NTG-context] The ConTeXt book

2010-04-03 Thread Peter Münster
On Sat, Apr 03 2010, Michael Saunders wrote: That's the feeling I'm getting. I'm finding it hard to do a lot of basic things in Context. Maybe Context can do them and maybe it can't, but there is no way to find out. Could you please provide a typical example? switch and finding it

Re: [NTG-context] The ConTeXt book

2010-04-03 Thread Peter Münster
On Sat, Apr 03 2010, Patrick Gundlach wrote: LuaTeX is documented very thoroughly. The manual is 180 pages and as far as I can see it mentions and describes every aspect of the API. Moreover it seems that Taco keeps it always in sync with the code! Cheers, Peter -- Contact information:

Re: [NTG-context] The ConTeXt book

2010-04-03 Thread Peter Münster
On Sat, Apr 03 2010, Michael Saunders wrote: That's the feeling I'm getting. I'm finding it hard to do a lot of basic things in Context. Maybe Context can do them and maybe it can't, but there is no way to find out. Could you please provide a typical example? Here are ten:

Re: [NTG-context] Bibtex: how to make autohang work?

2010-04-02 Thread Peter Münster
On Fri, Apr 02 2010, Hubertus wrote: \startproduct prd_phd \project project_phd \starttext Hello, I don't think, that \startproduct and \starttext are to be used together. When you have a single document, you put the text between \starttext and \stoptext and when you have a

Re: [NTG-context] Stack overflow

2010-03-30 Thread Peter Münster
On Tue, Mar 30 2010, Hans Hagen wrote: MTXrun | unknown script 'context.lua' or 'mtx-context.lua' no problem here if i download a minimal ... can others confirm this? Yes. Same problem on linux-x86_64 after first-setup-sh. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] arguments to ctxlua

2010-03-30 Thread Peter Münster
On Tue, Mar 30 2010, Hans van der Meer wrote: called through: \def\callf#1#2{\ctxlua{f(#1,#2)}} and do this actually with one argument: \callf{one} then I find that the absent argument b in f(a,b) is not nil but a string of length 1. Hello Hans, You want probably something

Re: [NTG-context] Importing program text.

2010-03-27 Thread Peter Münster
On Fri, Mar 26 2010, John Culleton wrote: I want to import the text of several programs in my latest book. My requirements are: 1. Monospaced font. \setuptyping[style=\tt] 2. Courier or similar typeface I don't know. 3. Smaller than normal typeface (to avoid wraparound.)

[NTG-context] docs (was: Re: Microtype in ConTeXt)

2010-03-27 Thread Peter Münster
On Sat, Mar 27 2010, Michael Saunders wrote: Notice that Yan Zhou isn't complaining that the docs are old. Our problem is that they are sketchy and rambling, bits and pieces of this and that without any systematic explanations. Often they are just some unexplained code samples that

Re: [NTG-context] setupinmargin failing?

2010-03-24 Thread Peter Münster
On Wed, Mar 24 2010, Hans van der Meer wrote: Must I really understand from your reply that \setupinmargin[x=y] is not equivalent to \setupinmargin[][x=y]? That is: an absent optional argument is not really optionally absent? Your [] is not an absent optional argument at all, it is a given

Re: [NTG-context] problem with TABLE in TABLE

2010-03-19 Thread Peter Münster
On Fri, Mar 19 2010, Wolfgang Schuster wrote: I know why i works it works when you write the setup before the table and how to solve it in the ugly way (don’t use this solution) but I can't provide a fix for this. Ok. So it's no real bug, but just a consequence of the design? What you can

Re: [NTG-context] Vim module errors

2010-03-19 Thread Peter Münster
On Thu, Mar 18 2010, Adam C.M. Solove wrote: Has anyone used the vim module recently and Hello Adam, Yes. I use the version from here: http://www.ntg.nl/pipermail/ntg-context/2009/042527.html For C-pretty-printing, you can also try this one: http://modules.contextgarden.net/pret-c Cheers,

Re: [NTG-context] Working with variables in Lua(TeX)

2010-03-19 Thread Peter Münster
On Fri, Mar 19 2010, Jaroslav Hajtmar wrote: $a=b; $$a=456; print $b; # result 456 No problem with tables: testtab = {} testtab.a = b testtab[testtab.a] = 456 print(testtab.b) -- result 456 Documentation about lua is here: http://www.lua.org/ Cheers, Peter -- Contact information:

[NTG-context] problem with TABLE in TABLE

2010-03-18 Thread Peter Münster
Hello, How can I do the setups for the inner TABLE? Example: \startsetups outer-table \setupTABLE[c][last][width=5cm] \stopsetups \startsetups inner-table \setupTABLE[c][last][width=2cm] \stopsetups \starttext \bTABLE[setups=outer-table] \bTR\bTD bla \eTD\bTD { \bTABLE[setups=inner-table]

Re: [NTG-context] German ConTeXt Initiative

2010-03-14 Thread Peter Münster
On Sun, Mar 14 2010, Mojca Miklavec wrote: Any thoughts, ideas and comments about selection of software for running a forum are welcome. (I was also thinking about HyperNews which is a forum with mailing list interface.) Hello Mojca, What are the advantages of a forum over a mailing list?

Re: [NTG-context] German ConTeXt Initiative

2010-03-14 Thread Peter Münster
On Sun, Mar 14 2010, Mojca Miklavec wrote: We both prefer a board instead of a mailing list because we think it's easier to use especially for unexperienced users. Another reason is that I'm not very experienced with mailing lists and have never set up one neither do I know HyperNews. I

[NTG-context] VCS for modules (was: Re: Transliterator module, 2nd revision)

2010-03-11 Thread Peter Münster
On Thu, Mar 11 2010, Patrick Gundlach wrote: We urgently need to have some git server or something similar on the garden for modules. Maybe SVN would also do for a while. The current approach is very clumsy to use. I don't think that the users should learn git, Hello, I don't know git,

Re: [NTG-context] wrong heights in TABLE

2010-03-11 Thread Peter Münster
On Wed, Mar 10 2010, Hans Hagen wrote: \starttext Problem:\blank \bTABLE \bTR \bTH 1. col\eTH \bTH 2. col \eTH \eTR \bTR \bTD 1 row in 1. col \eTD \bTD[nr=2] 2 rows in 2. col \eTD \eTR \bTR \bTD[nr=2] 2 rows in 1. col\eTD

Re: [NTG-context] Prettyprinters broken in MkIV

2010-03-11 Thread Peter Münster
On Thu, Mar 11 2010, Andreas Schneider wrote: since several weeks pretty printers are broken in MkIV (minimals). I posted it already to the bug tracker, but it didn't receive any attention so far, which leads me to believe, that the mailing list is still the prefered spot to report

Re: [NTG-context] wrong heights in TABLE

2010-03-10 Thread Peter Münster
On Wed, Mar 10 2010, Taco Hoekwater wrote: This second example is a broken table specifier when no modes are enabled: it produces and empty row, which is a no-no. Ok, here an even better and smaller example-test-file: \starttext Problem:\blank \bTABLE \bTR \bTH 1. col\eTH \bTH

[NTG-context] no space after \note[]

2010-03-09 Thread Peter Münster
Hello, The space after \note[test] is eaten: \starttext bla\footnote[test]{bla} bla\note[test] bla \stoptext Bug or feature? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your

Re: [NTG-context] no space after \note[]

2010-03-09 Thread Peter Münster
On Tue, 9 Mar 2010, Taco Hoekwater wrote: (or write \note[footnote][ref] explicitly) Thanks, this is ok for me! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of

[NTG-context] wrong heights in TABLE

2010-03-09 Thread Peter Münster
Hello, I don't know, what I'm doing wrong here. The number of rows in each column is only correct, when adding a seventh column: \startbuffer \setupTABLE[r][2,3,4,5,6,7][height=6ex] \bTABLE[width=0.125\textwidth] \bTR \bTH 1. col\eTH \bTH 2. col\eTH \bTH 3. col\eTH \bTH 4. col\eTH \bTH 5.

Re: [NTG-context] wrong heights in TABLE

2010-03-09 Thread Peter Münster
Hello, Here a better minimal example-test-file: \startbuffer \setupTABLE[c][1,2,3][height=4ex] \bTABLE[width=0.2\textwidth] \bTR \bTH 1. col\eTH \bTH 2. col\eTH \doifmode{wa2}{\bTH 3. col\eTH} \eTR \bTR \bTD 1 row in 1. col\eTD \bTD[nr=2] 2 rows in 2. col\eTD \doifmode{wa2}{\bTD\eTD} \eTR \bTR

Re: [NTG-context] Where is the cow?

2010-03-07 Thread Peter Münster
On Sun, Mar 07 2010, Wolfgang Schuster wrote: \setupexternalfigures[location={local,global,default}] local : currentdirectory + .. + ../.. global : paths set with 'directory=...' default : tex tree \setupexternalfigures[location=local] \starttext \externalfigure[hacker] % The figure is

[NTG-context] suggestions for context documentation

2010-03-04 Thread Peter Münster
Hello, These suggestions are a bit a reply to the thoughts of James Fisher. It would be nice, to have once in the future at least 2 up to date context documentations: - a context user manual For me, it's the merge of all scattered articles and manuals. Each chapter treats a particular subject,

Re: [NTG-context] TeX syntax -- a guide?

2010-02-25 Thread Peter Münster
On Thu, Feb 25 2010, James Fisher wrote: Obviously I don't expect answers to all these here, but can someone point me to somewhere on the 'net that could answer them? The only other possibilities I can see are buying an expensive copy of the TeXbook, etc. Hello James, Look for a second-hand

[NTG-context] pret-c.lua

2010-02-22 Thread Peter Münster
Hello, Thanks to the wiki-page Custom pretty printer I managed to write the pret-c.lua module here: http://pmrb.free.fr/tmp/pret-c/ Comments and bug-reports are welcome. What about integrating it into the distribution, or is it better on http://modules.contextgarden.net/ ? Cheers, Peter --

Re: [NTG-context] doifmode with a buffer following this command

2010-02-21 Thread Peter Münster
On Sun, 21 Feb 2010, Willi Egger wrote: If I use multiple modes I need to use also \doifmode{}{}. \startmode[...] ... \stopmode is better in this case. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] type-loc.tex

2010-02-19 Thread Peter Münster
On Fri, Feb 19 2010, Hans Hagen wrote: not that i know of .. can others confirm this problem? I can confirm the problem. The solution is easy: luatools --generate Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] LuaTeX error main ctx instance:1: 'name' expected near '\'.

2010-02-18 Thread Peter Münster
Hello, With the latest version, I get the following error: MTXrun | executing: vim -u NONE -e -C -n -c set tabstop=4 -c syntax on -c set syntax=c -c let contextstartline=1 -c let contextstopline=0 -c source /opt/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa

Re: [NTG-context] LuaTeX error main ctx instance:1: 'name' expected near '\'.

2010-02-18 Thread Peter Münster
On Thu, Feb 18 2010, Hans Hagen wrote: so, indeed we need a small example Hello Hans, Finally it took me less time. Here is it: \usemodule[pre-stepwise] \def\startC{% \bgroup \whitespace \obeylines \activatespacehandler{yes}% \strut} \def\stopC{\egroup}

Re: [NTG-context] gnuplot in mkiv

2010-02-17 Thread Peter Münster
On Wed, Feb 17 2010, Martin 'golodhrim' Scholz wrote: is a direct usage of gnuplot in ConTeXt MKIV possible Yes. Example: \usemodule[gnuplot] \setupGNUPLOT[terminal=png] \startGNUPLOTscript[sin] plot sin(x) \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[sin] \stoptext Cheers, Peter

Re: [NTG-context] very strange error with \xypos and vim-typing

2010-02-16 Thread Peter Münster
On Mon, Feb 08 2010, Peter Münster wrote: ! Missing number, treated as zero. to be read again \dontleavehmode argument \dontleavehmode \normalspace \secondoftwoarguments #1#2-#2 l.1 \the\dimexpr

Re: [NTG-context] very strange error with \xypos and vim-typing

2010-02-16 Thread Peter Münster
On Tue, Feb 16 2010, Hans Hagen wrote: as i never use vim for pretty printing i can not quickly test it so in order to be able to look into it i need a more precise test case I'm sorry, I can reproduce this error only with the vim module. Can others reproduce it, or am I the only one?

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Peter Münster
On Sun, Feb 14 2010, Hans Hagen wrote: sqrt = math.sqrt pi = math.pi function my_equation(s, r) beware, this creates (and possibly overloads) sqrt, pi and my_equation as gobals Indeed... The following hack was *not* so quick, but there is a bug somewhere (a digit is added at the

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Peter Münster
On Mon, Feb 15 2010, Andreas Harder wrote: But the $·$-construct is problematic. It do not work in display style (\let\calcmath\displaycalcmath) and without the dollar-signs the placement and the spacing are wrong. I don't know, why · doesn't work, but you can try this: local

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Peter Münster
On Sun, Feb 14 2010, Andreas Harder wrote: 1) Is it possible to have a comma as decimal separator? 2) If you look at the above definition, it works fine with +, –, /, but not with *. Is it possible to expand my macro that it will also work with a multiplication or even with the last two

[NTG-context] tracking feature requests and bugs

2010-02-13 Thread Peter Münster
Dear ConTeXt developers, Does it make sense, to add the recent feature requests to the tracker at http://tracker.luatex.org/ ? It would be nice for ConTeXt users like me, to see the status of requests, perhaps also target dates, and to get automatic notifications when the status changes. But

[NTG-context] \fieldstack with mkiv

2010-02-13 Thread Peter Münster
Hello, What is needed to get \fieldstack working in mkiv? The following example works with mkii, but not with mkiv: \setupinteraction[state=start] \definesymbol[step1][AAA] \definesymbol[step2][BBB] \definefieldstack[test][step1, step2] \starttext \fieldstack[test] Just click

[NTG-context] tracking changes (was: Re: What do you miss in ConTeXt?)

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, John Devereux wrote: I would think that would be an extremely useful feature in technical environment, where all document changes need to be reviewed Hello John, Perhaps this can help: http://archive.contextgarden.net/message/20060806.143457.47021821.en.html and

[NTG-context] checking keys (was: Re: What do you miss in ConTeXt?)

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, Wolfgang Schuster wrote: \getcheckedparameters[test][xx][a=a] \getcheckedparameters[test][xx][b= b] \getcheckedparameters[test][xx][c = c] \getcheckedparameters[test][xx][d = d d , e = e ,f = f ] \getcheckedparameters[test][xx][g={oeps {oeps}}]

Re: [NTG-context] checking keys

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, Wolfgang Schuster wrote: Hans made them valid for the test namespace, replace the test with a different name and they should be invalid too. Result: \enablecheckparameters \starttext \getcheckedparameters[bla][xx][h=h] \getcheckedparameters[bla][xx][g=g] \stoptext - !

<    1   2   3   4   5   6   7   8   9   10   >