Re: [NTG-context] How to call a ctx command with parameters from Lua

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, Wolfgang. Lukas On Thu, 14 Oct 2010 22:43:44 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: context.typefile( { default }, MyFile.txt ) Wolfgang ___ If your question is of

Re: [NTG-context] modes

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-14 um 15:57 schrieb Hans Hagen: (for module writers) The latest beta gives access to modes at the lua end Wikified (unmodified): http://wiki.contextgarden.net/Modes#Modes_in_LuaTeX Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/

[NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). Is there such an option for \typefile macro? (http://wiki.contextgarden.net/Reference/en/typefile is silent.) I tried: \typefile[default][lines={10}]{a_file.txt} % Start at line 10

Re: [NTG-context] Access figure data?

2010-10-15 Thread Peter Rolf
Am 15.10.2010 07:16, schrieb Peter Münster: On Thu, Oct 14 2010, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? Hello, Perhaps with the img library of luatex (see luatex manual). Thanks Peter! Stupid me haven't thought about the luatex manual. local f =

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread luigi scarso
2010/10/15 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). Is there such an option for \typefile macro? (http://wiki.contextgarden.net/Reference/en/typefile is silent.) I tried:

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-15 um 09:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). \typefile[default][start=10]{a_file.txt} % Start at line 10 According to older ML messages and the source, \typefile[start=10] should work.

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). \starttext% 1 \typefile[range=3]{test.tex} % 2 bla % 3 bla % 4

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it doesn't seem to work. Let's have t-TypeF2.mkiv with the following content: --- \setuptyping[default][bodyfont=small,style={\ttx\setupinterlinespace}] % 1 % 2 \starttext % 3 \typefile[default][start=4]{t-TypeF2.mkiv} % = This file; 4

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Yes, thanks, that's it: \typefile[default][range={3,5}]{t-TypeF2.mkiv} % If also the upper limit is to be specified Regards, Lukas On Fri, 15 Oct 2010 10:09:13 +0200, Peter Münster pmli...@free.fr wrote: On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need to

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Mathieu Boespflug
Ok so after reading the source code of strc-des.mkiv, I found that contrary to earlier documentation such as http://www.ntg.nl/maps/36/09.pdf it is not the 'number' parameter that should be used to share numbering but the 'counter' parameter. After fixing that in my code, theorems now have

[NTG-context] Extra spaces in APA bibliography style

2010-10-15 Thread Florian Wobbe
Hi, I just noticed that there is an extra space after the booktitle and before ', pages' in the publicationlayout inproceedings in the english APA bibliography style. Here is a suggested patch: --- texmf-context/tex/context/bib/bibl-apa.tex.orig 2009-01-05 15:03:34.0 +0100 +++

[NTG-context] en-dash for ranges of numbers in Bibliographies

2010-10-15 Thread Florian Wobbe
Hi, in BibTeX databases ranges of numbers are usually listed with a single dash (e.g. 3-7) for compatibility reasons. Therefore the standard BibTeX styles convert a single dash in page numbers or range of numbers to a double dash (3--7). How do I get the same behaviour for \volume \issue

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Wolfgang Schuster
Am 15.10.2010 um 10:20 schrieb Mathieu Boespflug: Ok so after reading the source code of strc-des.mkiv, I found that contrary to earlier documentation such as http://www.ntg.nl/maps/36/09.pdf it is not the 'number' parameter that should be used to share numbering but the 'counter'

[NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
Hi all, Today I wanted to use the command \date[d=15,m=10,y=2010][weekday]. It gives Friday as it should. However \date[d=2,m=1,y=2011][weekday] gives the same result which is wrong (it's a Sunday). In fact, whatever the supplied date, it gives Friday. I guess the parameter isn't taken into

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Cedric Mauclair wrote: Today I wanted to use the command \date[d=15,m=10,y=2010][weekday]. It gives Friday as it should. However \date[d=2,m=1,y=2011][weekday] gives the same result which is wrong (it's a Sunday). In fact, whatever the supplied date, it gives Friday. I

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
I use the minimal from 3 days ago. Here is what I do actually. \def\mydate{\doifnextcharelse\space\domydate\domydate } \def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]} \mydate 2/1/2011 -- Friday 2 january 2011 \date[d=2,m=1,y=2011][weekday,day+,month,year] -- Sunday 2

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Cedric Mauclair wrote: Any ideas? Test file: \def\mydate{\doifnextcharelse\space\domydate\domydate } \def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]} \starttext \mydate 2/1/2011 \par % token #3 = 2 \mydate 2/1/2 \par % token #3 = 2 \mydate

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
Right, I forgot about the catcodes. Thank you. -- Cédric On Fri, Oct 15, 2010 at 15:37, Peter Münster pmli...@free.fr wrote: On Fri, Oct 15 2010, Cedric Mauclair wrote: Any ideas? Test file: \def\mydate{\doifnextcharelse\space\domydate\domydate } \def\domydate

Re: [NTG-context] Furigana

2010-10-15 Thread S Barmeier
Thank you, it's almost working. I am making use of projects, products, environments and components. My \usemodule[ruby] sits in my environment file, but I'm using the \ruby command down in the component file. The environment is only called in the project file, but the component links back to the

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Mathieu Boespflug
Wow, thank you very much for your fix, Wolfgang! I can confirm that it works. I hope this fix makes it into the next beta? Abount documenting these extra parameters that \setupenumerations has over \setupdefinitions, I figure that I should contribute that to the wiki. But I wonder, how does this

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Arthur Reutenauer
But I wonder, how does this kind of user generated documentation on the wiki get synchronized with the ConTeXt Reference manual hosted at Supelec? How do you think? There are little dwarves collecting the data and doing semantic analysis on it in order to update the reference manual

Re: [NTG-context] Is it possible to pass unmarked paragraphs into Lua for processing

2010-10-15 Thread Kevin D. Robbins
I confess, I hadn't considered anything quite so bold as reading the whole of the text into Lua and then processing it back out. I suppose I was expecting one of the true TeXperts to offer suggestions involving \appendtoks ... \to \everypar. I also realized that I forgot to mention that I want to

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Aditya Mahajan
On Fri, 15 Oct 2010, Mathieu Boespflug wrote: Ok so after reading the source code of strc-des.mkiv, I found that contrary to earlier documentation such as http://www.ntg.nl/maps/36/09.pdf it is not the 'number' parameter that should be used to share numbering but the 'counter' parameter.

Re: [NTG-context] Thesis example, source files

2010-10-15 Thread Aditya Mahajan
On Mon, 4 Oct 2010, Shishir Kumar wrote: I am a PhD student and am starting on writing my thesis. I have looked at Aditya's and The Thanh's thesis, and they are very nice. Unfortunately, I could not find the sources for these. Does anybody know if they are available somewhere? It would be nice

[NTG-context] How to set the caption length?

2010-10-15 Thread seasoul
When a figure is placed, but this figure size is much smaller than the textwidth, the caption length will adjust after the figure size. \placefigure [][fig:xxx] {} {\externalfigure[xxx]} when set the figure size to an arbitrary size, the caption length will also