Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have also the experience that when the Lua file is placed where the LUA_PATH system variable points (or: see the documentation how exactly LUA_PATH works), than I can use the 'require' command and the Lua file will be found. E.g.: LUA_PATH = (...);C:\MyDir\?.lua

Re: [NTG-context] insert pagebreak in toc (MkIV)

2010-09-29 Thread Steffen Wolfrum
Am 28.09.2010 um 12:33 schrieb Mari Voipio: On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum cont...@st.estfiles.de wrote: \completecontent[pageboundaries={20.3,30}] In current context it doesn't show any effect. Is it obsolete in MkIV? It works for me, even in the fairly complex files

Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-29 Thread Hans Hagen
On 29-9-2010 8:50, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I have also the experience that when the Lua file is placed where the LUA_PATH system variable points (or: see the documentation how exactly LUA_PATH works), than I can use the 'require' command and the Lua file will be

Re: [NTG-context] bug with columnsets in projects

2010-09-29 Thread Steffen Wolfrum
Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: Hi, please see attached example: If you run the file containing the columnset directly (chap_X) it runs fine. But if you run MyProduct.tex there is an error: ! Missing } inserted. system error on line 21 in file

Re: [NTG-context] bug with columnsets in projects

2010-09-29 Thread Steffen Wolfrum
Am 29.09.2010 um 09:27 schrieb Steffen Wolfrum: Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: Hi, please see attached example: If you run the file containing the columnset directly (chap_X) it runs fine. But if you run MyProduct.tex there is an error: ! Missing }

[NTG-context] Interline space in block quotes

2010-09-29 Thread Andreas Harder
Hi all, it is not possible to adapt the interline space in delimited text environments (without explicit add a \par) anymore. Example: \setupdelimitedtext[blockquote][style=small] \starttext \input tufte \startblockquote \input tufte % \par \stopblockquote \input tufte \stoptext Greeting

[NTG-context] prevent page break after head

2010-09-29 Thread Andreas Harder
Hi all, please have a look at the following example: \starttext \showframe \section{test} \dorecurse{36}{test\par} \section{test} \startitemize \dorecurse{12}{\item #1} \stopitemize % \dorecurse{12}{• #1\blank} \stoptext I would like to prevent the page break after the second section. It

Re: [NTG-context] prevent page break after head

2010-09-29 Thread Steffen Wolfrum
Am 29.09.2010 um 10:21 schrieb Andreas Harder: Hi all, please have a look at the following example: \starttext \showframe \section{test} \dorecurse{36}{test\par} \section{test} \startitemize \dorecurse{12}{\item #1} \stopitemize % \dorecurse{12}{• #1\blank} \stoptext I would

Re: [NTG-context] prevent page break after head

2010-09-29 Thread Andreas Harder
Am 29.09.2010 um 10:29 schrieb Steffen Wolfrum: Am 29.09.2010 um 10:21 schrieb Andreas Harder: Hi all, please have a look at the following example: \starttext \showframe \section{test} \dorecurse{36}{test\par} \section{test} \startitemize \dorecurse{12}{\item #1} \stopitemize

[NTG-context] poster in context

2010-09-29 Thread Jan Pohanka
Hello, I wonder how to create a poster presentation using ConTeXt. It should have following layout. _ | title, ...| _ | | | | | text in 3 columns | | with titles etc. | | |

Re: [NTG-context] insert pagebreak in toc (MkIV)

2010-09-29 Thread Hans Hagen
On 29-9-2010 9:22, Steffen Wolfrum wrote: Am 28.09.2010 um 12:33 schrieb Mari Voipio: On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrumcont...@st.estfiles.de wrote: \completecontent[pageboundaries={20.3,30}] In current context it doesn't show any effect. Is it obsolete in MkIV? It works

Re: [NTG-context] insert pagebreak in toc (MkIV)

2010-09-29 Thread Steffen Wolfrum
Am 29.09.2010 um 10:55 schrieb Hans Hagen: On 29-9-2010 9:22, Steffen Wolfrum wrote: Am 28.09.2010 um 12:33 schrieb Mari Voipio: On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrumcont...@st.estfiles.de wrote: \completecontent[pageboundaries={20.3,30}] In current context it doesn't

Re: [NTG-context] Interline space in block quotes

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 10:01 schrieb Andreas Harder: Hi all, it is not possible to adapt the interline space in delimited text environments (without explicit add a \par) anymore. Example: \setupdelimitedtext[blockquote][style=small] \setupdelimitedtext[blockquote][before=\smallbodyfont]

Re: [NTG-context] prevent page break after head

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 10:21 schrieb Andreas Harder: Hi all, please have a look at the following example: \starttext \showframe \section{test} \dorecurse{36}{test\par} \section{test} \startitemize \startitemize[intro] Wolfgang

Re: [NTG-context] Bug in \type

2010-09-29 Thread Hans Hagen
On 28-9-2010 2:38, Aditya Mahajan wrote: Hi, There is a bug in buff-ver.mkiv. Minimal example: \starttext \type+\test{+ \stoptext fixed in next beta - Hans Hagen | PRAGMA ADE

Re: [NTG-context] prevent page break after head

2010-09-29 Thread Andreas Harder
Am 29.09.2010 um 13:22 schrieb Wolfgang Schuster: Am 29.09.2010 um 10:21 schrieb Andreas Harder: Hi all, please have a look at the following example: \starttext \showframe \section{test} \dorecurse{36}{test\par} \section{test} \startitemize \startitemize[intro] Thank you for

[NTG-context] font sizes (again)

2010-09-29 Thread Florian Wobbe
Hi, please regard this minimal example: \setupbodyfont[10pt] \starttext \title{Title} \section{Section} {\switchtobodyfont[big] big} {\switchtobodyfont[small] small} {\tfxx tfxx} {\tfx tfx} {\tfa tfa} {\tfb tfb} {\tfc tfc} {\tfd tfd} \stoptext Latin Modern Regular is available in different

[NTG-context] Cambria Math, sum

2010-09-29 Thread Patrick Gundlach
Hi all, I am pretty sure that this has been asked before (and is already solved) With --- \usetypescript[cambria] \setupbodyfont[cambria] \starttext \startformula \sum_{1 i 10}^j i + 42^{-2} %doesn't make any sense, I know \stopformula

Re: [NTG-context] Cambria Math, sum

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 14:34 schrieb Patrick Gundlach: Hi all, I am pretty sure that this has been asked before (and is already solved) Works here with the latest beta: ConTeXt ver: 2010.09.28 23:57 MKIV fmt: 2010.9.29 int: english/english BTW: You don’t need \usetypescript in mkiv when the

Re: [NTG-context] Cambria Math, sum

2010-09-29 Thread Patrick Gundlach
Hello Wolfgang, Florian and others Works here with the latest beta: ConTeXt ver: 2010.09.28 23:57 MKIV fmt: 2010.9.29 int: english/english Now that I've got two responses that it works fine, I've updated my installation and now I have a perfect result. Sorry for the noise. BTW: You

[NTG-context] Cambria and companion fonts

2010-09-29 Thread Patrick Gundlach
While looking at Cambria, is there any typescript (or something similar) that defines for example Corbel or Candara as a companion to Cambria? Patrick ___ If your question is of interest to others as well, please

Re: [NTG-context] Cambria and companion fonts

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 14:52 schrieb Patrick Gundlach: While looking at Cambria, is there any typescript (or something similar) that defines for example Corbel or Candara as a companion to Cambria? No but you can write your own typescript: \definetypeface [mainface] [rm] [serif] [cambria]

[NTG-context] Calling Lua function from an external package

2010-09-29 Thread Procházka Lukáš
Hello, I have the following problem. Let's have T~.lua file which defines a function: --- function F2() context(draw (0,0)--(5cm,0)) end print(T~OK!) --- Let's have MP-02.ctx ConTeXt source file: --- \starttext AAA \startluacode function F() context(draw (0,0)--(2cm,0))

[NTG-context] Cambria/Asana/Neo-Euler (n\choose k)

2010-09-29 Thread Andreas Harder
Hi again. When it comes to OpenType math fonts … % \setupbodyfont[cambria] % \setupbodyfont[asana] \setupbodyfont[euler] \startTEXpage[offset=1ex] $n\choose k$ \stopTEXpage The output ist still wrong with the newest beta. It works ok with Type 1 fonts. Greeting Andreas

Re: [NTG-context] Calling Lua function from an external package

2010-09-29 Thread Hans Hagen
On 29-9-2010 3:02, Procházka Lukáš wrote: Hello, I have the following problem. Let's have T~.lua file which defines a function: hm, what is this ~ doing there ... avoid such characters! ~ is HOME on some systems Hans -

[NTG-context] structure levels

2010-09-29 Thread Hans Hagen
Hi Alan, I added a default set \starttext \startstructurelevel [title=first top level] \startstructurelevel [title=first lower level] \startstructurelevel [title=second lower level] \startstructurelevel [title=third lower level] test

Re: [NTG-context] Cambria and companion fonts

2010-09-29 Thread Patrick Gundlach
While looking at Cambria, is there any typescript (or something similar) that defines for example Corbel or Candara as a companion to Cambria? No but you can write your own typescript: \definetypeface [mainface] [rm] [serif] [cambria] [default] \definetypeface [mainface] [ss] [sans]

Re: [NTG-context] Calling Lua function from an external package

2010-09-29 Thread Taco Hoekwater
On 09/29/10 15:10, Hans Hagen wrote: On 29-9-2010 3:02, Procházka Lukáš wrote: Hello, I have the following problem. Let's have T~.lua file which defines a function: hm, what is this ~ doing there ... avoid such characters! ~ is HOME on some systems That is true of course, but the

Re: [NTG-context] Cambria and companion fonts

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 15:25 schrieb Patrick Gundlach: I guess [name] is just a default classifier for defining the base level of a filename-font mapping, right? It’s a leftover from mkii where you had [name] and [texnansi,ec,...], the first was to map from “Serif” etc. to the symbolic name (e.g.

Re: [NTG-context] Calling Lua function from an external package

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now! It had to be fixed both in F() and in F2(). (I forgot ; in MP statement as Lua doesn't require ;.) (Still it's a bit strange to me that calling F() worked even when the MP statement in F() was not finished by ; and F2() was not called.) Lukas On Wed, 29 Sep 2010

Re: [NTG-context] Calling Lua function from an external package

2010-09-29 Thread Stefan Müller
I think that ; is not needed to end an MP statement but to separate two of them. So it works without as long as you only have one MP statement. Stefan On 29.09.2010 15:35, Procházka Lukáš Ing. - Pontex s. r. o. wrote: ... Thanks, it works now! It had to be fixed both in F() and in F2(). (I

Re: [NTG-context] Cambria and companion fonts

2010-09-29 Thread Florian Wobbe
What exactly is rscale=auto ? Instead of giving a scale factor (e.g. factor=1.1) you can say auto and context use the font information to scale the sans font to the same size as the serif font. How does it work internally? Or on which font parameters does this depend on (e.g. x-height,

[NTG-context] # in type in tabulate

2010-09-29 Thread Patrick Gundlach
Hi, this breaks, any workaround? --- \starttext \type{#ok} \starttabulate[|p(4cm)|] \NC \type{#not ok}\NC\NR % --- bang! \stoptabulate \stoptext --- Patrick

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 16:50 schrieb Patrick Gundlach: Hi, this breaks, any workaround? \asciimode \starttext #ok \mono{#ok} \starttabulate[|p(4cm)|] \NC \mono{#not ok}\NC\NR \stoptabulate \stoptext Wolfgang ___

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Hans Hagen
On 29-9-2010 4:50, Patrick Gundlach wrote: \starttext \asciimode \type{#ok} \starttabulate[|p(4cm)|] \NC \type{#not ok}\NC\NR %--- bang! \stoptabulate \stoptext - Hans

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread luigi scarso
On Wed, Sep 29, 2010 at 5:00 PM, Hans Hagen pra...@wxs.nl wrote: On 29-9-2010 4:50, Patrick Gundlach wrote: \starttext \asciimode sorry Hans, nothing to do with SuperWolfgang -- luigi ___ If your question is of

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I found no records to \asciimode or \mono at http://wiki.contextgarden.net/Category:Reference/en. Could they be added? - Even with no description, just to get to know they are valid ConTeXt commands. Lukas On Wed, 29 Sep 2010 16:58:51 +0200, Wolfgang Schuster

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Patrick Gundlach
Hello Hans, Wolfgang, \asciimode \starttext #ok \mono{#ok} Thanks agin. I've heard about \asciimode but forgot about it. Is there any difference between \mono{...} and \type{...}? I guess that type does much more to catcodes, but apart from that, both seem to be similar. Patrick

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Aditya Mahajan
On Wed, 29 Sep 2010, Patrick Gundlach wrote: Is there any difference between \mono{...} and \type{...}? I guess that type does much more to catcodes, but apart from that, both seem to be similar. - \type typesets its argument verbatim (catcodes, spaces, etc). - \type has two variants

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 17:37 schrieb Patrick Gundlach: Is there any difference between \mono{...} and \type{...}? I guess that type does much more to catcodes, but apart from that, both seem to be similar. \mono{...} is only another form of {\tt ...} and switch to the typewriter font but \type is

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Aditya Mahajan
On Wed, 29 Sep 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I found no records to \asciimode or \mono at http://wiki.contextgarden.net/Category:Reference/en. Well, the command was added 15-20 days ago to the core... Could they be added? - Even with no description, just to get

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Hans Hagen
On 29-9-2010 5:37, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I found no records to \asciimode or \mono at http://wiki.contextgarden.net/Category:Reference/en. they were added recently after some discussion with Aditya ... a sort of prelude to getting rid of special catcodes Hans

Re: [NTG-context] placefigure ?

2010-09-29 Thread R. Bastian
On Tue, 28 Sep 2010 13:39:56 +0300 Mari Voipio mari.voi...@iki.fi scribit: On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote: In Mk II, I need to place figures - with numbers and captions - but \placefigure is for floats and never places the figure [here]. Is there another

Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-29 Thread Stefan Müller
Sorry for replying to the wrong thread... I just wanted to say that it works now. I justed started again from scratch and did the same as below. No idea what caused the trouble. Thanks again, Stefan. On 28.09.2010 23:53, Stefan Müller wrote: Hi, thanks for the fast reply Mojca!

Re: [NTG-context] bug with columnsets in projects

2010-09-29 Thread Wolfgang Schuster
Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: Hi, please see attached example: If you run the file containing the columnset directly (chap_X) it runs fine. The error message is misleading but after i copied everything in one file i found the culprit, there is a invalid character in

[NTG-context] Lua programming conventions..

2010-09-29 Thread Jaroslav Hajtmar
Hello, all.. Where can I read something about Lua programming conventions? I mean programming conventions labeling local and global variables, table fields, Lua variables in modules, variables in namespaces etc. etc... When names are written in capital letters, sign reserved for system

Re: [NTG-context] bug with columnsets in projects

2010-09-29 Thread Steffen Wolfrum
Am 29.09.2010 um 20:05 schrieb Wolfgang Schuster: Am 28.09.2010 um 16:25 schrieb Steffen Wolfrum: Hi, please see attached example: If you run the file containing the columnset directly (chap_X) it runs fine. The error message is misleading but after i copied everything in one file

Re: [NTG-context] Lua programming conventions..

2010-09-29 Thread luigi scarso
On Wed, Sep 29, 2010 at 8:30 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello, all.. Where can I read something about Lua programming conventions? I mean programming conventions labeling local and global variables, table fields, Lua variables in modules, variables in namespaces etc. etc...

Re: [NTG-context] bug with columnsets in projects

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 20:51 schrieb Steffen Wolfrum: Oh, then this really was misleading! I never would have searched for this character ... How did you recognize it? 1. Create a *minimal* example with only one file, yours was too big to notice the control command. 2. Take a look at the

[NTG-context] Formatting in TOC

2010-09-29 Thread Tomas Bures
Dear all, I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way: \define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{ \doiftextelse{\structurelistuservariable{date}{(\structurelistuservariable{datum})}{} } }

Re: [NTG-context] tagged pdf broken

2010-09-29 Thread Hans Hagen
On 29-9-2010 10:41, Steffen Wolfrum wrote: Hi, in todays beta (20100929) the tagged pdf is broken! No tags are created and Preflight says: An error occurred while parsing a contents stream that's a side effect of a change in label mechanism (more generic as the letter module needs it own

Re: [NTG-context] Formatting in TOC

2010-09-29 Thread Andreas Harder
Am 29.09.2010 um 23:16 schrieb Tomas Bures: Dear all, I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way: \define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{

[NTG-context] [BUG] \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29

2010-09-29 Thread Hongwen Qiu
Please see the attached minimal example and its error log. \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29. It works fine in ConTeXt 2010.09.24. Both the luatex versions are beta-0.63.0-2010091123. @unpublished{test, title={Test}, author={test}, journal={Test},

Re: [NTG-context] [BUG] \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29

2010-09-29 Thread 李延瑞
在 2010年9月30日 上午10:32,Hongwen Qiu qiuhong...@gmail.com 写道:  Please see the attached minimal example and its error log. \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29. It works fine in ConTeXt 2010.09.24. Both the luatex versions are beta-0.63.0-2010091123. It seems

Re: [NTG-context] Formatting in TOC

2010-09-29 Thread Wolfgang Schuster
Am 29.09.2010 um 23:16 schrieb Tomas Bures: Dear all, I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way: \define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{