Re: [NTG-context] How to store command line arguments in ConTeXt LUA Documents?

2016-03-14 Thread Romain Diss
> >Is it possible to store context command line arguments into lua
> >variables?
> > [...]
> >What I would like to do is something like this:
> >
> >-- start of the example
> >something = context.getcommandlineargument("ARG1") -- doesn't exist
> >-- make some tests here to check if 'something' has the right syntax
> >context.startdocument{title = something}
> >context.input("knuth")
> >context.stopdocument()
> >-- end of the example
> >
> >Then, one has just to launch:
> >$ context file.cld --ARG1="My first title"
> 
> environment.arguments
Thank you. It works very well.

I did not find this table in any documentation. Did I forget something?

If I want to document it, what is the best place?
- http://wiki.contextgarden.net/Command/getdocumentargument
- another place in the wiki which evokes lua environment tables...


All the best.


-- 
Romain Diss
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF Signature Fields

2016-03-14 Thread Andreas Schneider

Am 2016-03-10 16:56, schrieb Hans Hagen:

next beta:

\setupinteraction[state=start]

\starttext

\definefield[x][signature]

\field[x]

\stoptext


It's working; thank you very much :-)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Are nested sections possible?

2016-03-14 Thread Pablo Rodriguez
On 03/12/2016 01:53 AM, Alan BRASLAU wrote:
> On Fri, 11 Mar 2016 09:36:01 +0100 Pablo Rodriguez wrote:
>> [...]
>> I can hardly imagine the sense in the point you’re making. (Sorry, it
>> must be my fault.)
> 
> Think about including source in another source, for example.
> 
> Say one has an article that becomes a book, or gets included in a book,
> or the book gets parts. In the course of writing, one might decide to
> add an additional level of structure and not want to change all of the
> \start...\stop structure definitions.
> 
> In fact, using fixed section, subsection, subsubsection is a bit
> antiquated, isn't it?

Many thanks for your reply, Alan.

The usual suspect was found guilty: it was my fault not realizing that
fixed sectioning commands are outdated.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Are nested sections possible?

2016-03-14 Thread Procházka Lukáš Ing .

Hello,

one more thing:

It would be nice to allow mixing:

- \section like commands (or \startsection ... \stopsection)
- AND \startsectionlevel ... \stopsectionlevel.

The main problem is that one may NEED to mix:

- (ancient) source files which use \section (deprecated) style
- with more versatile \start-\stopsectionlevel style in newer source files.

See the test attached - only the case 3 works universally with the 
\start-\stopstructurelevel;
any mixing of sectioning styles doesn't yield a desired result.

Best regards,

Lukas


On Sat, 12 Mar 2016 01:53:18 +0100, Alan BRASLAU  wrote:


On Fri, 11 Mar 2016 09:36:01 +0100
Pablo Rodriguez  wrote:


Sorry, Mica, but which is the gain in nesting sections (whether
possible or not) over using subsections and subsubsections?

I can hardly imagine the sense in the point you’re making. (Sorry, it
must be my fault.)


Think about including source in another source, for example.

Say one has an article that becomes a book, or gets included in a book,
or the book gets parts. In the course of writing, one might decide to
add an additional level of structure and not want to change all of the
\start...\stop structure definitions.

In fact, using fixed section, subsection, subsubsection is a bit
antiquated, isn't it?

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Str.mkiv
Description: Binary data


Str.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] font problem

2016-03-14 Thread Alan Bowen
Thomas, Hans—many thanks! That change in the latest beta fixes the problem
nicely.

Alan


On Sun, Mar 13, 2016 at 6:47 PM, Hans Hagen  wrote:

> On 3/13/2016 11:37 PM, Thomas A. Schmitz wrote:
>
>> On 03/13/2016 11:04 PM, Alan Bowen wrote:
>>
>>> Note:
>>> (a) there is no problem at all with other fonts, e.g., Tex Gyre Termes
>>> (b) with the Brill font, the text fails to process when BOTH Line1 and 2
>>> are included.
>>>
>>> The console readout is:
>>>
>>
>> Can you try this:
>>
>> in line 1323 of tex/texmf-context/tex/context/base/mkiv/font-otj.lua:
>>
>> setdisc(current,pre,post.replace)
>>
>> replace this with
>>
>> setdisc(current,pre,post,replace)
>>
>> regenerate the format and try compiling again. I get a pdf which appears
>> to be correct. I think this is just a small typo which Hans will fix.
>> However, the error message I saw was different from the one you posted.
>> This is with the latest beta and the latest version of the Brill font
>> (2.06 51).
>>
>
> yes, that's what i saw too (probably a bit older bug) .. i uploaded a new
> version
>
> thanks,
>
> Hans
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___