[NTG-context] title settings

2010-10-17 Thread Herbert Voss
If I understand the documentations correct, then the first command should set _all_ titles to slanted except the subsection. When I run this example the titles are always upright. \setupheads[textstyle=slanted] \setuphead[part][placehead=yes,color=blue]

Re: [NTG-context] title settings

2010-10-17 Thread Herbert Voss
Am 17.10.2010 13:20, schrieb Herbert Voss: If I understand the documentations correct, then the first command should set _all_ titles to slanted except the subsection. When I run this example the titles are always upright. forget it ... Just saw, that there are different keys for \setupheads.

Re: [NTG-context] title settings

2010-10-17 Thread luigi scarso
2010/10/17 Herbert Voss herbert.v...@fu-berlin.de: running TeXLive2010 with mkiv There is also minimals, which usually is an update (and most of the time better) version of that one in TeXLive . -- luigi ___ If your

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread luigi scarso
On Sat, Oct 16, 2010 at 11:09 PM, Aditya Mahajan adit...@umich.edu wrote: Hi, In MkII, I can say    \ReadFile{/tmp/filename} to read a file in /tmp directory. However, in MkIV, that fails because ReadFile is defined as \unexpanded\def\ReadFile     #1{\doreadfile{any}

Re: [NTG-context] title settings

2010-10-17 Thread Hans Hagen
On 17-10-2010 1:20, Herbert Voss wrote: If I understand the documentations correct, then the first command should set _all_ titles to slanted except the subsection. When I run this example the titles are always upright. \setupheads[textstyle=slanted] \setuphead[part][placehead=yes,color=blue]

Re: [NTG-context] title settings

2010-10-17 Thread Herbert Voss
Am 17.10.2010 14:44, schrieb luigi scarso: 2010/10/17 Herbert Voss herbert.v...@fu-berlin.de: running TeXLive2010 with mkiv There is also minimals, which usually is an update (and most of the time better) version of that one in TeXLive . I know, but I want to use TeXLive Herbert

[NTG-context] What is the replacement for the 'stop_run' callback?

2010-10-17 Thread Tad Ashlock
Hi All, I'm trying to update a ConTeXt module of mine. It does some data gathering during the ConTeXt run, and then processes it after the run is complete. This used to work last year: local id, err = callback.register('stop_run', new_stop_run_function) But now err is set to callback

Re: [NTG-context] What is the replacement for the 'stop_run' callback?

2010-10-17 Thread Hans Hagen
On 17-10-2010 4:06, Tad Ashlock wrote: I'm trying to update a ConTeXt module of mine. It does some data gathering during the ConTeXt run, and then processes it after the run is complete. This used to work last year: local id, err = callback.register('stop_run', new_stop_run_function) But

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Aditya Mahajan
On Sun, 17 Oct 2010, luigi scarso wrote: On Sat, Oct 16, 2010 at 11:09 PM, Aditya Mahajan adit...@umich.edu wrote: Hi, In MkII, I can say    \ReadFile{/tmp/filename} to read a file in /tmp directory. However, in MkIV, that fails because ReadFile is defined as \unexpanded\def\ReadFile    

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Aditya Mahajan
On Sun, 17 Oct 2010, Aditya Mahajan wrote: I am just looking for macro that takes the filename as a (brace delimited) parameter and typesets it. Err.. I mean \inputs it. Aditya ___ If your question is of interest

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Wolfgang Schuster
Am 17.10.2010 um 19:21 schrieb Aditya Mahajan: It works, but does not fit my need. I wanted to add an option to the filter module to allow the user to say: \setupexternalfilters[directory=$TEMP] and have all the tmp files created in $TEMP. Having to set this as a relative path will be

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Wolfgang Schuster
Am 17.10.2010 um 19:58 schrieb Aditya Mahajan: I wanted something that will work consistently in MkII and MkIV. I can do: \doifmodeelse{\s!mkii} {\let\ReadFilter\ReadFile} {\def\ReadFilter#1{\doreadfile{any}\empty{#1}\donothing\donothing}} but, I wanted to avoid such things if

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Aditya Mahajan
On Sun, 17 Oct 2010, Wolfgang Schuster wrote: Am 17.10.2010 um 19:58 schrieb Aditya Mahajan: I wanted something that will work consistently in MkII and MkIV. I can do: \doifmodeelse{\s!mkii} {\let\ReadFilter\ReadFile} {\def\ReadFilter#1{\doreadfile{any}\empty{#1}\donothing\donothing}}

[NTG-context] Trouble with ConTeXt's project structure

2010-10-17 Thread Stefan Müller
Dear list, I tried to set up a project of mine using the project structure propagated in the wiki [1]. Because I ran into some trouble I made the following small example (using MkIV, minimals 2010.10.14 13:14). %% project_mymag.tex \startproject project_mymag \environment env_mymag

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Hans Hagen
On 17-10-2010 7:58, Aditya Mahajan wrote: On Sun, 17 Oct 2010, Wolfgang Schuster wrote: Am 17.10.2010 um 19:21 schrieb Aditya Mahajan: It works, but does not fit my need. I wanted to add an option to the filter module to allow the user to say: \setupexternalfilters[directory=$TEMP] and

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Hans Hagen
On 17-10-2010 8:54, Aditya Mahajan wrote: Maybe Hans forgot it for mkii but it doesn’t matter whether mkii/mkiv is a normal mode or a system mode. IIRC, system modes cannot be reset using \(enable|disable)mode. there is nothing special about system modes: they just have a * in front so you

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Aditya Mahajan
On Sun, 17 Oct 2010, Hans Hagen wrote: On 17-10-2010 7:58, Aditya Mahajan wrote: (BTW, why is system mode *mkii not set in MkII?) because you can do \doifnotmode{mkiv} :) Documented on the wiki page on modes. Aditya

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Aditya Mahajan
On Sun, 17 Oct 2010, Hans Hagen wrote: On 17-10-2010 8:54, Aditya Mahajan wrote: Maybe Hans forgot it for mkii but it doesn’t matter whether mkii/mkiv is a normal mode or a system mode. IIRC, system modes cannot be reset using \(enable|disable)mode. there is nothing special about system

[NTG-context] pictures in tabulate

2010-10-17 Thread Thomas A. Schmitz
Hi all, I'm looking for a way to use pictures inside a tabulate environment. Unfortunately, newer versions of ConTeXt don't take the picture height into account. The following code gives a somewhat disappointing result both in mkii and mkiv: \starttext \starttabulate[|rw(3em)|p|] \NC YYY \NC

Re: [NTG-context] pictures in tabulate

2010-10-17 Thread Hans Hagen
On 17-10-2010 11:24, Thomas A. Schmitz wrote: Hi all, I'm looking for a way to use pictures inside a tabulate environment. Unfortunately, newer versions of ConTeXt don't take the picture height into account. The following code gives a somewhat disappointing result both in mkii and mkiv:

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Hans Hagen
On 17-10-2010 11:02, Aditya Mahajan wrote: On Sun, 17 Oct 2010, Hans Hagen wrote: On 17-10-2010 8:54, Aditya Mahajan wrote: Maybe Hans forgot it for mkii but it doesn’t matter whether mkii/mkiv is a normal mode or a system mode. IIRC, system modes cannot be reset using

Re: [NTG-context] Trouble with ConTeXt's project structure

2010-10-17 Thread Henning Hraban Ramm
Am 2010-10-17 um 21:43 schrieb Stefan Müller: I tried to set up a project of mine using the project structure propagated in the wiki [1]. Because I ran into some trouble I made the following small example (using MkIV, minimals 2010.10.14 13:14). ... All this seems very strange to me,

Re: [NTG-context] pictures in tabulate

2010-10-17 Thread Thomas A. Schmitz
On Oct 18, 2010, at 12:20 AM, Hans Hagen wrote: When there is a 'p' in the preamble, lines are forced to lineheights but as I needed images in tabulate a while ago too, I added: \tabulatesplitlinemode 2 So maybe that helps. It might become an option some day. Hans Excellent, this