Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks Hans for implementation and Sietse for wikifying. BTW: Wouldn't be better to enclose ConText source on wiki into context mode=mkiv source=yes rather than texcode even if the source doesn't compile due to wiki-ConTeXt oldness? I believe one day the wiki-ConTeXt engine will be

[NTG-context] Automatic margin floats using the criterium parameter

2012-09-05 Thread Marco Patzer
Hi, I am working on some float placement code for a project. To not reinvent the wheel I like to know what is currently possible in ConTeXt. Small floats should be placed in the margin and bigger ones centred in the text. Captions always go into the margin. That is the idea. The key to automate

Re: [NTG-context] Lua conditionals fail inside \starttexdefinition

2012-09-05 Thread Hans Hagen
On 4-9-2012 20:44, Marco Patzer wrote: On 2012-09-04 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Why does adding semicolon not work? Do you have a example? \starttext \startluacode if true then; context(true) else; context(false) end \stopluacode \stoptext

Re: [NTG-context] TeX expansion within lua

2012-09-05 Thread Hans Hagen
On 4-9-2012 19:40, Marco Patzer wrote: On 2012-09-04 Martin Schröder mar...@oneiros.de wrote: Hi Martin, http://tracker.luatex.org/view.php?id=682 It seems that I just hit a very hard to solve issue which needs not yet available support from the luatex side. Patricks solution seems not

Re: [NTG-context] Automatic margin floats using the criterium parameter

2012-09-05 Thread Hans Hagen
On 5-9-2012 09:43, Marco Patzer wrote: Hi, I am working on some float placement code for a project. To not reinvent the wheel I like to know what is currently possible in ConTeXt. fyi: As I often need conditional placement in projects (mostly width related), it's likely that there will be a

Re: [NTG-context] TeX expansion within lua

2012-09-05 Thread Marco Patzer
On 2012-09-05 Hans Hagen pra...@wxs.nl wrote: Hi Hans, you probably over code things Yes, that's not unlikely, I tend to do that (unintentional). instead of storing you can pass the valus directly \def\largerthantextwidth#1% {\cldcontext {if \number\dimexpr#1tex.dimen.textwidth

Re: [NTG-context] Automatic margin floats using the criterium parameter

2012-09-05 Thread Marco Patzer
On 2012-09-05 Hans Hagen pra...@wxs.nl wrote: Hi Hans, I am working on some float placement code for a project. To not reinvent the wheel I like to know what is currently possible in ConTeXt. fyi: As I often need conditional placement in projects (mostly width related), it's likely

[NTG-context] Strange behavior of references when using annotation-module

2012-09-05 Thread Dominik Leopold Forkert
Hello, I use the latest mkiv beta. When using the annotation module, the output of\in[...] misses a separation dot between chapter and formula number, e.g. 31 instead of 3.1. When I omit the annotation module, there is no chapter number at all in the \in[...] reference! A minimal example of the

Re: [NTG-context] Strange behavior of references when using annotation-module

2012-09-05 Thread Wolfgang Schuster
Am 05.09.2012 um 20:24 schrieb Dominik Leopold Forkert dracon...@gmail.com: Hello, I use the latest mkiv beta. When using the annotation module, the output of\in[...] misses a separation dot between chapter and formula number, e.g. 31 instead of 3.1. When I omit the annotation module,

[NTG-context] Wrong values for \inputfilename etc.

2012-09-05 Thread Wolfgang Schuster
Hi Hans, when I run the following example (saved as filename.tex) I got in the past this output \jobname filename \jobfilename filename.tex \jobfilesuffix tex \inputfilename filename.tex \inputfilebarename filename \inputfilesuffix tex \outputfilename