Re: [NTG-context] Conditionals

2012-09-28 Thread Troy Henderson
> \starttext > \dorecurse{400} > {\doifnotinset{\recurselevel}{2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, > 318, 354, 372, 376} > {\recurselevel, }} > \stoptext > Thanks. That worked perfectly! Troy ___ If your quest

Re: [NTG-context] Conditionals

2012-09-28 Thread Rogers, Michael K
On Sep 28, 2012, at 8:31 PM, Troy Henderson wrote: > I have a list of numbers, > > 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376 > > that I would like to use as exceptions in a \dostepwiserecurse loop. That > is, within the loop if \recurselevel is NOT EQUAL to either of these

Re: [NTG-context] minimals

2012-09-28 Thread Mica Semrick
I may be dumb... but I can't figure out how to change the mirror. minimals.contextgarden.net seems to be hard-coded in a number of places. Help please? Best, Mica On Thu, Sep 27, 2012 at 1:05 AM, Mojca Miklavec < mojca.miklavec.li...@gmail.com> wrote: > On Wed, Sep 26, 2012 at 11:39 PM, Hans Hag

[NTG-context] Conditionals

2012-09-28 Thread Troy Henderson
I have a list of numbers, 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376 that I would like to use as exceptions in a \dostepwiserecurse loop. That is, within the loop if \recurselevel is NOT EQUAL to either of these numbers, then I want to do something -- otherwise, I simply incre

Re: [NTG-context] External Figure inside MPpage

2012-09-28 Thread Troy Henderson
> > draw textext("\externalfigure[mill][page=1]") scaled ... ; > Awesome. Thanks. Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://

Re: [NTG-context] External Figure inside MPpage

2012-09-28 Thread Aditya Mahajan
On Fri, 28 Sep 2012, Troy Henderson wrote: \startMPpage draw externalfigure "mill" scaled 4.75in ; \stopMPpage What if "mill" is a multi-page PDF and I want to include a particular page? Untested: draw textext("\externalfigure[mill][page=1]") scaled ... ; should work. Aditya ___

Re: [NTG-context] Problem with ConTeXt (MkIV), Hebrew and ligatures

2012-09-28 Thread Simo Ojala
Hans Hagen On 09/28/2012 11:46 AM, Hans Hagen wrote: On 27-9-2012 21:27, Simo Ojala wrote: This is a problem originally posted in TeX/StackExchange. However, since I have not had any luck in finding a solution I post it here too. I am confident that somebody here should know the answer. http

Re: [NTG-context] External Figure inside MPpage

2012-09-28 Thread Troy Henderson
> > \startMPpage > draw externalfigure "mill" scaled 4.75in ; > \stopMPpage > What if "mill" is a multi-page PDF and I want to include a particular page? Troy ___ If your question is of interest to others as well, ple

Re: [NTG-context] Current source directory.

2012-09-28 Thread Hans Hagen
On 28-9-2012 23:56, Andre Caldas wrote: My mistake: I tested the code I gave you in \startluacode, but then for the e-mail I wrapped it in \cldcontext. I had tested it using startluacode, also. :-( These two versions both work, and I actually tested them this time: \startluacode conte

Re: [NTG-context] Current source directory.

2012-09-28 Thread Andre Caldas
> My mistake: I tested the code I gave you in \startluacode, but then > for the e-mail I wrapped it in \cldcontext. I had tested it using startluacode, also. :-( > These two versions both work, and I actually tested them this time: > > \startluacode > context(environment.runpath .. '/' ..

Re: [NTG-context] Current source directory.

2012-09-28 Thread Sietse Brouwer
Hi André, My mistake: I tested the code I gave you in \startluacode, but then for the e-mail I wrapped it in \cldcontext. This is not the same: in \startluacode # has its literal value, but in \cldcontext it is interpreted as part of a macro parameter like #1. So to get the length of a table t ins

[NTG-context] Bib module -> master thesis title not displayed in placepublications

2012-09-28 Thread Xan
Hi, I have this: @mastersthesis{meva-memoria, author = "Bordoy, Xavier", title = "Algunes contribucions a l'estudi del problema de la paraula per a grups", school = "Departament de Ciències Matemàtiques i Informàtica. Universitat de les Illes Balears", year = "2009", address = "Palma de Mallo

Re: [NTG-context] Current source directory.

2012-09-28 Thread Andre Caldas
>> - Do I need to "include" "file-job.lua" somehow? > > No need to include it, it's part of the ConTeXt core. > [...] > Is it working for you? No. I get: ! LuaTeX error :1: attempt to get length of field 'inputstack' (a nil value) stack traceback: :1: in main chunk. system > tex

Re: [NTG-context] Current source directory.

2012-09-28 Thread Sietse Brouwer
Hi André, > Sorry, to ask such a dumb question... > - Do I need to "include" "file-job.lua" somehow? No need to include it, it's part of the ConTeXt core. I only mentioned the filename in case people wanted to see what else was in that file; the code snippet should Just Work. Is it working for yo

Re: [NTG-context] Current source directory.

2012-09-28 Thread Andre Caldas
Hi! > the following should work. > > \cldcontext{ > environment.runpath .. '/' .. > file.pathpart(resolvers.inputstack[#resolvers.inputstack]) > } Sorry, to ask such a dumb question... - Do I need to "include" "file-job.lua" somehow? André Caldas. __

Re: [NTG-context] \define a command with square-bracket arguments

2012-09-28 Thread Hans Hagen
On 28-9-2012 14:41, Sietse Brouwer wrote: Question for the others: What's the difference of \dodoubleargument and \dodoubleempty? I expected \dodoubleargument to throw an error since the arguments are supposed to be mandatory. In MkIV Hans didn’t add this check and in MkII he disabled is for co

Re: [NTG-context] Current source directory.

2012-09-28 Thread Hans Hagen
On 28-9-2012 14:34, Andre Caldas wrote: Although, I think there should be a "luatex" command for this. That is, something not related to ConTeXt. lfs.currentdir() - Hans Hagen | PRAGMA AD

Re: [NTG-context] \define a command with square-bracket arguments

2012-09-28 Thread Sietse Brouwer
>> Question for the others: What's the difference of \dodoubleargument >> and \dodoubleempty? I expected \dodoubleargument to throw an error >> since the arguments are supposed to be mandatory. > > In MkIV Hans didn’t add this check and in MkII he disabled is for command > with three or less argume

Re: [NTG-context] Current source directory.

2012-09-28 Thread Andre Caldas
Dear Sietse, Thanks a lot!!! > Finally found it, after lots of trial-and-erroring through > likely-looking table names in file-job.lua: the stack of input files > is kept in resolvers.inputstack. I don't program any "lua". But I was taking a look at "file-job.lua" myself. I have a lot to learn!!

Re: [NTG-context] Referring to multiple elements

2012-09-28 Thread Sietse Brouwer
Hi Marco, Marco wrote: > Maybe worth mentioning: You need the additional module > `showtable.lua` from http://article.gmane.org/gmane.comp.tex.context/78336 Oops, that was a debugging statement. Removed. > Thanks a lot for that. I'd adjust the interface, so that it matches > the behaviour of \in

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-28 Thread Alan BRASLAU
On Fri, 28 Sep 2012 10:43:48 +0200 Hans Hagen wrote: > On 27-9-2012 22:49, Alan Braslau wrote: > > Hello, > > > > Can someone indicate how to typeset > > $L_{α+β}$ > > as verbatim text? > > (\arg{} doesn't help here...) > > > > Furthermore, I suppose that typesetting Greek characters verbatim > >

Re: [NTG-context] Referring to multiple elements

2012-09-28 Thread Marco Patzer
2012-09-28 Sietse Brouwer : Hi Sietse, > > \in{figure}[alpha,beta,gamma] > > > > This outputs “figure 1”. What I'd like to have is “figure 1-3”. > > The attached quasi-module seems to do it! On my computer, at least. (I > call it 'quasi' because it is really nothing more than code in a file > of

Re: [NTG-context] Problem with ConTeXt (MkIV), Hebrew and ligatures

2012-09-28 Thread Hans Hagen
On 27-9-2012 21:27, Simo Ojala wrote: This is a problem originally posted in TeX/StackExchange. However, since I have not had any luck in finding a solution I post it here too. I am confident that somebody here should know the answer. http://tex.stackexchange.com/questions/73970/problem-with-co

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-28 Thread Hans Hagen
On 27-9-2012 22:49, Alan Braslau wrote: Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. \setupbodyfont[dejavu] \starttext \s

Re: [NTG-context] [tabulate] colored background

2012-09-28 Thread Philipp Gesang
· > On Fri, 28 Sep 2012, Philipp Gesang wrote: > > >Hi all, > > > >the background mechanism of tabulations is quite simplistic: it > >extends only to the first line of a cell irrespective of its > >length. Example: > > > >···