Re: [NTG-context] format generation fails in luat-fio.lua

2012-05-31 Thread Philipp Gesang
On 2012-06-01 00:38, Hans Hagen wrote:
> On 1-6-2012 00:31, Philipp Gesang wrote:
> >Hi all,
> >
> >I hit this bug during “context --make” after today’s update. Can
> >somebody confirm this?  Must have been introduced since
> >2012.05.24 (according to the git logs, data-exp.lua has indeed
> >been changed May 25).
> >



> this issue is under investigation ... it's a problem with lpeg 0.10
> in luatex (not texlua) ...

There’s effort to incorporate lpeg v.0.10? This is the greatest
Luatex-related news since a year or so. I’m exited, let me know
if there’s something to test.

>best check out the latest (which reverts
> to 0.9) ... btw, that version is not the production version

My update script fetches the latest Luatex from SVN, so it broke,
naturally, ;-) I’m using the binary that is provided with the
minimals now and everything’s fine.

Good night
Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpAQFjRFhsKX.pgp
Description: PGP signature
___
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] format generation fails in luat-fio.lua

2012-05-31 Thread Hans Hagen

On 1-6-2012 00:31, Philipp Gesang wrote:

Hi all,

I hit this bug during “context --make” after today’s update. Can
somebody confirm this?  Must have been introduced since
2012.05.24 (according to the git logs, data-exp.lua has indeed
been changed May 25).


! LuaTeX error ...text/tex/texmf-context/tex/context/base/data-exp.lua:97: 
invalid replacement value (a table)
stack traceback:
   [C]: in function 'lpegmatch'
   ...text/tex/texmf-context/tex/context/base/data-exp.lua:97: in function 
'splitpathexpr'
   ...text/tex/texmf-context/tex/context/base/data-exp.lua:145: in function 
'expandedpathfromlist'
   ...text/tex/texmf-context/tex/context/base/data-res.lua:343: in function 
'identify_configuration_files'
   ...text/tex/texmf-context/tex/context/base/data-res.lua:1521: in function 
'load'
   ...text/tex/texmf-context/tex/context/base/luat-fio.lua:31: in main chunk
   ...text/tex/texmf-context/tex/context/base/luat-cod.lua:42: in function 
'registercode'
   :1: in main chunk.
\registerctxluafile ...ua.registercode("#1","#2")}



this issue is under investigation ... it's a problem with lpeg 0.10 in 
luatex (not texlua) ... best check out the latest (which reverts to 0.9) 
... btw, that version is not the production version


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


[NTG-context] format generation fails in luat-fio.lua

2012-05-31 Thread Philipp Gesang
Hi all,

I hit this bug during “context --make” after today’s update. Can
somebody confirm this?  Must have been introduced since
2012.05.24 (according to the git logs, data-exp.lua has indeed
been changed May 25).


! LuaTeX error ...text/tex/texmf-context/tex/context/base/data-exp.lua:97: 
invalid replacement value (a table)
stack traceback:
  [C]: in function 'lpegmatch'
  ...text/tex/texmf-context/tex/context/base/data-exp.lua:97: in function 
'splitpathexpr'
  ...text/tex/texmf-context/tex/context/base/data-exp.lua:145: in function 
'expandedpathfromlist'
  ...text/tex/texmf-context/tex/context/base/data-res.lua:343: in function 
'identify_configuration_files'
  ...text/tex/texmf-context/tex/context/base/data-res.lua:1521: in function 
'load'
  ...text/tex/texmf-context/tex/context/base/luat-fio.lua:31: in main chunk
  ...text/tex/texmf-context/tex/context/base/luat-cod.lua:42: in function 
'registercode'
  :1: in main chunk.
\registerctxluafile ...ua.registercode("#1","#2")}


Logs: http://pastie.org/4004505

Best regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp6UuTPcL0ul.pgp
Description: PGP signature
___
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] multi-page floats

2012-05-31 Thread Hans Hagen

On 31-5-2012 20:25, Henning Hraban Ramm wrote:

Ok, some days later I'm still not where I'd like to be (and my deadline
is overdue).
Let’s resume:

A running text is to be interrupted by spans of 3 pages.
Postponing (\startpostponing) works well for that, but I need to switch
off page numbering on two of that 3 pages - as far as I tried,
\setuppagenumbering as well as \setuppagenumber doesn’t work within
postponed sections.

Further, these pages contain full-page pictures, i.e. I need them
bleeding off the paper.
Normally, \setlayer works well for that, but I couldn’t get layers
working within postponed sections.

Since I need these interruptions several times in a very similar way, I
\def’ed that postponing stuff as a macro, but get errors that point to
expanding problems (I never get those).

I’d appreciate some pointers in which direction I should
think/investigate further.
E.g.
- are there alternatives to postponing? perhaps multi-page floats (but
at defined pages)?
- is there a possibility for bleeding full-page pictures without layers?
- can it work at all to change page numbering within a postponed page span?


maybe

\starttext

page 1

\page

\startmakeup[page]
page a
\stopmakeup

\startmakeup[page]
page b
\stopmakeup

\startmakeup[page]
page d
\stopmakeup

page 2

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] multi-page floats

2012-05-31 Thread Henning Hraban Ramm
Ok, some days later I'm still not where I'd like to be (and my  
deadline is overdue).

Let’s resume:

A running text is to be interrupted by spans of 3 pages.
Postponing (\startpostponing) works well for that, but I need to  
switch off page numbering on two of that 3 pages - as far as I tried,  
\setuppagenumbering as well as \setuppagenumber doesn’t work within  
postponed sections.


Further, these pages contain full-page pictures, i.e. I need them  
bleeding off the paper.
Normally, \setlayer works well for that, but I couldn’t get layers  
working within postponed sections.


Since I need these interruptions several times in a very similar way,  
I \def’ed that postponing stuff as a macro, but get errors that point  
to expanding problems (I never get those).


I’d appreciate some pointers in which direction I should think/ 
investigate further.

E.g.
- are there alternatives to postponing? perhaps multi-page floats (but  
at defined pages)?

- is there a possibility for bleeding full-page pictures without layers?
- can it work at all to change page numbering within a postponed page  
span?



Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] \processmarkdownfile gobbles all starting with % or \

2012-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks Aditya,

here is also a sample attached.

Best regards,

Lukas


On Thu, 31 May 2012 15:20:35 +0200, Aditya Mahajan  wrote:


On Thu, 31 May 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


... Thanks Marco, this works much better.

I found one fault - the code "-4.0 % na +4.0 %." in the source is translated
to "-4.0 %na +4.0 %.", so the space after the first " " is gobbled.


I'll send a bug report to the pandoc mailing list

Aditya



--
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 244 062 238
Fax: +420 244 461 038abc 100 % def 100 %.


t-MD3.mkiv
Description: Binary data


t-MD3.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] \processmarkdownfile gobbles all starting with % or \

2012-05-31 Thread Aditya Mahajan

On Thu, 31 May 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


... Thanks Marco, this works much better.

I found one fault - the code "-4.0 % na +4.0 %." in the source is translated 
to "-4.0 %na +4.0 %.", so the space after the first " " is gobbled.


I'll send a bug report to the pandoc mailing list

Aditya___
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] \processmarkdownfile gobbles all starting with % or \

2012-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks Marco, this works much better.

I found one fault - the code "-4.0 % na +4.0 %." in the source is translated to "-4.0 %na +4.0 
%.", so the space after the first " " is gobbled.

But it is not so serious.

Thanks anyway.

Best regards,

Lukas


On Thu, 31 May 2012 14:14:11 +0200, Marco  wrote:


I would recommend using
pandoc in combination with the filter module for the conversion. Try
your example with the following setup (you need to have pandoc in
your PATH).

\usemodule[filter]

\defineexternalfilter
  [markdown]
  [
filtercommand={pandoc \space
  --from=\externalfilterparameter{format} \space
  --to=context\space
 %--standalone\space
  --output=\externalfilteroutputfile  \space
  \externalfilterinputfile\space
},
format=markdown,
  ]

Marco



--
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 244 062 238
Fax: +420 244 461 038

___
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] how to write two or three single hyphens?

2012-05-31 Thread Khaled Hosny
On Thu, May 31, 2012 at 11:46:32AM +0200, Jan Pohanka wrote:
> Also why the latex way -{}- does not work? It is a feature of luatex?

{} breaking ligatures is “an accidental feature¹” in traditional TeX
that LuaTeX got rid of.

Regards,
 Khaled

¹ 
https://groups.google.com/forum/?fromgroups#!msg/comp.lang.perl/Egohpu5chYU/RDyzhPPmgFUJ
___
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] MetaPost transformation

2012-05-31 Thread Troy Henderson
Albrecht,

The issue was to be able to define the transform t using its six components.

Troy
___
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] \processmarkdownfile gobbles all starting with % or \

2012-05-31 Thread Marco
On 2012-05-31 Procházka Lukáš Ing. - Pontex s. r. o.  wrote:

> When the t-MD.mkiv is processed by \processmarkdownfile, only "AAA -4" 
> appears from the line "AAA -4 % BBB", so " % BBB" is ignored (skipped).
> 
> When the percent sign is entered straightly in the \start/stop-markdown 
> scope, it's shown OK.
> 
> How to enter the percent sign into the file to be processed by 
> \processmarkdownfile so that % is really typeset in the final document?

The markdown module uses a custom lua parser, which does not support
all features of markdown and has some bugs. I would recommend using
pandoc in combination with the filter module for the conversion. Try
your example with the following setup (you need to have pandoc in
your PATH).

\usemodule[filter]

\defineexternalfilter
  [markdown]
  [
filtercommand={pandoc \space
  --from=\externalfilterparameter{format} \space
  --to=context\space
 %--standalone\space
  --output=\externalfilteroutputfile  \space
  \externalfilterinputfile\space
},
format=markdown,
  ]

Marco


___
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] Argument to ConTeXt

2012-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... OK, thanks for the patch.

Lukas

On Thu, 31 May 2012 10:24:52 +0200, Hans Hagen  wrote:


you can remove line 484 in mtx-context.lua

-- jobname = file.removesuffix(jobname)



--
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 244 062 238
Fax: +420 244 461 038

___
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
___


[NTG-context] \processmarkdownfile gobbles all starting with % or \

2012-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

please see the example:


\usemodule[markdown]

\starttext
  \startmarkdown
AAA -4 % BBB

aaa \% bbb
  \stopmarkdown

  \processmarkdownfile{t-MD.mkiv} % = This file
\stoptext


When the t-MD.mkiv is processed by \processmarkdownfile, only "AAA -4" appears from the line 
"AAA -4 % BBB", so " % BBB" is ignored (skipped).

When the percent sign is entered straightly in the \start/stop-markdown scope, 
it's shown OK.

How to enter the percent sign into the file to be processed by 
\processmarkdownfile so that % is really typeset in the final document?

TIA.

Best regards,

Lukas


--
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 244 062 238
Fax: +420 244 461 038

t-MD.mkiv
Description: Binary data


t-MD.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] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster

Am 31.05.2012 um 12:38 schrieb Hans Hagen:

> On 31-5-2012 11:41, Wolfgang Schuster wrote:
>> Hi,
>> 
>> are ligatures etc. supposed to be active in verbatim commands? In the 
>> default \type command they are only disabled because \tt has “features=none” 
>> in the typescripts but since this isn’t the case for serif and sans you get 
>> ligatures.
>> 
>> \definetype[test][style=\rm]
>> 
>> \starttext
>> \type{fi -- ---}
>> \test{fi -- ---}
>> \stoptext
> 
> one could disable features with the style key (or maybe at some point we can 
> have an extra key for that

How about a “features” key which is passed to \setfontfeature?

Wolfgang
___
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] \definetype and ligatures

2012-05-31 Thread Hans Hagen

On 31-5-2012 11:41, Wolfgang Schuster wrote:

Hi,

are ligatures etc. supposed to be active in verbatim commands? In the default 
\type command they are only disabled because \tt has “features=none” in the 
typescripts but since this isn’t the case for serif and sans you get ligatures.

\definetype[test][style=\rm]

\starttext
\type{fi -- ---}
\test{fi -- ---}
\stoptext


one could disable features with the style key (or maybe at some point we 
can have an extra key for that



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka

Thank you for the detailed explanation.

best regards
Jan

Dne Thu, 31 May 2012 12:19:38 +0200 Wolfgang Schuster  
 napsal(a):




Am 31.05.2012 um 11:46 schrieb Jan Pohanka:





Great, thank you. Anyway what is the purpose of the \setff macro?


In MkIV you have tell which features of a font (e.g. ligatures or  
kerning) have to enabled, this is done in two steps.


1. You define a list with the features you want, e.g.

 \definefontfeature[myfeatures][liga=yes,kern=yes]

   which activates ligatures and kerning.

2. You apply this list to a font, normally this is done in the  
typescripts, e.g.


 
\definetypeface[mainface][rm][serif][palatino][default][features=myfeatures]


Sometimes it is necessary to add additional features or to switch a  
different feature list *in* the document. To do this context provides  
the commands \addfontfeature and \setfontfeature which can be also  
called in the two shorter commands \addff and \setff. In the  
\definehighlight command I enabled the predefined “none” list where  
ligatures and kerning is disabled to prevent that -- results in –.


Wolfgang

___
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
___

Re: [NTG-context] weird pdf bookmarks question

2012-05-31 Thread Hans Hagen

On 31-5-2012 11:23, Taco Hoekwater wrote:

Hi all,

I have a question about PDF bookmarks. My Document goes like this (heavily 
simplified):

\setupinteraction[state=start]
\placebookmarks[chapter,section][chapter,section]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter[item1]{Overview}
\startitemize
\item[item4] bla
\stopitemize
\chapter[item2]{Two}
Greetings!
\chapter[item3]{Three}
I don't know
\chapter{Four}
Oh no.
\stoptext

Now, what I would really like is if the link in the bookmarks for 'Four' jumps 
to the first
page (where the 'item4' reference target lives) instead of to the fourth page 
(where the
chapter header lives).


technically we can have links as booksmarks but then the question is 
what interface to use



The question is: is this possible, and if yes, how? To further complicate 
things, this
is an old project that uses mkii, so lua-based solutions are not helpful.


lucky me that mkii is frozen


Thanks in advance for any pointers,


maybe mess around with lists .. but what is really needed is some 
overload of a page .. here's a starting point


\def\RemapBookmarkPage#1#2%
  {\setvalue{RemapBookmarkPage:#1}{#2}}

\let\normaldoPDFbookmark\doPDFbookmark

\def\doPDFbookmark#1#2#3#4#5%

{\normaldoPDFbookmark{#1}{#2}{#3}{\executeifdefined{RemapBookmarkPage:#4}{#4}}{#5}}

\RemapBookmarkPage{4}{1}

Of course one needs to hook earlier into code but the principle is the same.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] \setuplayout[location=duplex] not working? (probably since a year)

2012-05-31 Thread Marco Pessotto
Hans Hagen  writes:

> On 31-5-2012 10:43, Marco Pessotto wrote:
>> Hans Hagen  writes:
>>
>>> there is no 'duplex' in context, only 'doublesided'
>>
>> Ok, this just means there is an error in the “Layout in ConTeXt” manual,
>> p.97. Do you want me to create an Errata page on the wiki?
>
> ok (one for the fonts manual and one for layout)

Done

http://wiki.contextgarden.net/Fonts_in_ConTeXt_Errata (empty)

http://wiki.contextgarden.net/Layouts_in_ConTeXt_Errata (one item)

They should be linked from the homepage (for that I don't have the
supercow powers), near the manual links, to make sense.

Best wishes.

-- 
Marco
___
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] how to write two or three single hyphens?

2012-05-31 Thread Wolfgang Schuster

Am 31.05.2012 um 11:46 schrieb Jan Pohanka:

>> \definehighlight[filepermission][style=\setff{none}]
> 
> Great, thank you. Anyway what is the purpose of the \setff macro?

In MkIV you have tell which features of a font (e.g. ligatures or kerning) have 
to enabled, this is done in two steps.

1. You define a list with the features you want, e.g.

 \definefontfeature[myfeatures][liga=yes,kern=yes]

   which activates ligatures and kerning.

2. You apply this list to a font, normally this is done in the typescripts, e.g.

 
\definetypeface[mainface][rm][serif][palatino][default][features=myfeatures]


Sometimes it is necessary to add additional features or to switch a different 
feature list *in* the document. To do this context provides the commands 
\addfontfeature and \setfontfeature which can be also called in the two shorter 
commands \addff and \setff. In the \definehighlight command I enabled the 
predefined “none” list where ligatures and kerning is disabled to prevent that 
-- results in –.

Wolfgang

___
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] \setuplayout[location=duplex] not working? (probably since a year)

2012-05-31 Thread Hans Hagen

On 31-5-2012 10:43, Marco Pessotto wrote:

Hans Hagen  writes:


there is no 'duplex' in context, only 'doublesided'


Ok, this just means there is an error in the “Layout in ConTeXt” manual,
p.97. Do you want me to create an Errata page on the wiki?


ok (one for the fonts manual and one for layout)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Hans Hagen

On 31-5-2012 11:46, Jan Pohanka wrote:

\definehighlight[filepermission][style=\setff{none}]



Great, thank you. Anyway what is the purpose of the \setff macro? I have
not found its documentation anywhere. Also why the latex way -{}- does
not work? It is a feature of luatex?


-{}- is a side effect of traditional tex

and sort of a hack too

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka

\definehighlight[filepermission][style=\setff{none}]



Great, thank you. Anyway what is the purpose of the \setff macro? I have  
not found its documentation anywhere. Also why the latex way -{}- does not  
work? It is a feature of luatex?


best regards
Jan

--
Tato zpráva byla vytvořena převratnou poštovní aplikací Opery:  
http://www.opera.com/mail/

___
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
___

[NTG-context] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster
Hi,

are ligatures etc. supposed to be active in verbatim commands? In the default 
\type command they are only disabled because \tt has “features=none” in the 
typescripts but since this isn’t the case for serif and sans you get ligatures.

\definetype[test][style=\rm]

\starttext
\type{fi -- ---}
\test{fi -- ---}
\stoptext

Wolfgang
___
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] how to write two or three single hyphens?

2012-05-31 Thread Wolfgang Schuster

Am 31.05.2012 um 11:16 schrieb Jan Pohanka:

> Hello,
> 
> describing linux file permissions I would like to write rwx--
> As I expected the hyphens are converted to two long dashes (excuse me if I 
> missed the correct name), so I tried something like this 
> rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but in 
> context I'm still getting the long dashes. How can I prevent this conversion, 
> please?

\definehighlight[filepermission][style=\setff{none}]

\starttext

Verbatim: \type{rwx--}

Highlight: \filepermission{rwx--}

\stoptext

Wolfgang
___
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] how to write two or three single hyphens?

2012-05-31 Thread Andy Thomas
Hello,

is this what you are looking for?

\starttext
rwx\,-\,-\,-\,-\,-\,-
\stoptext

I tried the small space macro from LaTeX and it works here, too, so i suspect 
it is more a TeX macro.

Andy

On 31.05.2012, at 11:16, Jan Pohanka wrote:

> Hello,
> 
> describing linux file permissions I would like to write rwx--
> As I expected the hyphens are converted to two long dashes (excuse me if I 
> missed the correct name), so I tried something like this 
> rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but in 
> context I'm still getting the long dashes. How can I prevent this conversion, 
> please?
> 
> regards
> Jan
> 
> -- 
> Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: 
> http://www.opera.com/mail/
> ___
> 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
___

[NTG-context] weird pdf bookmarks question

2012-05-31 Thread Taco Hoekwater
Hi all,

I have a question about PDF bookmarks. My Document goes like this (heavily 
simplified):

\setupinteraction[state=start]
\placebookmarks[chapter,section][chapter,section]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter[item1]{Overview}
\startitemize
\item[item4] bla
\stopitemize
\chapter[item2]{Two}
Greetings!
\chapter[item3]{Three}
I don't know
\chapter{Four}
Oh no.
\stoptext

Now, what I would really like is if the link in the bookmarks for 'Four' jumps 
to the first
page (where the 'item4' reference target lives) instead of to the fourth page 
(where the 
chapter header lives). 

The question is: is this possible, and if yes, how? To further complicate 
things, this
is an old project that uses mkii, so lua-based solutions are not helpful.

Thanks in advance for any pointers,

Taco
___
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
___


[NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka

Hello,

describing linux file permissions I would like to write rwx--
As I expected the hyphens are converted to two long dashes (excuse me if I  
missed the correct name), so I tried something like this  
rwx{-}{-}{-}{-}{-}{-} or rwx{}-{}-{}-{}-{}-{}- which works in latex, but  
in context I'm still getting the long dashes. How can I prevent this  
conversion, please?


regards
Jan

--
Tato zpráva byla vytvořena převratnou poštovní aplikací Opery:  
http://www.opera.com/mail/

___
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] \setuplayout[location=duplex] not working? (probably since a year)

2012-05-31 Thread Marco Pessotto
Hans Hagen  writes:

> there is no 'duplex' in context, only 'doublesided'

Ok, this just means there is an error in the “Layout in ConTeXt” manual,
p.97. Do you want me to create an Errata page on the wiki?

-- 
Marco
___
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] Argument to ConTeXt

2012-05-31 Thread Hans Hagen

On 30-5-2012 10:37, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

please see the following calling cases:

1) context.exe t6.mkiv --address=6
2) context.exe t6.2.mkiv --address=6

Content ot both .mkiv is identical - just to print the passed address
value:


you can remove line 484 in mtx-context.lua

-- jobname = file.removesuffix(jobname)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] \setuplayout[location=duplex] not working? (probably since a year)

2012-05-31 Thread Hans Hagen

On 29-5-2012 10:10, Marco Pessotto wrote:


Hello there. I'm messing around with imposition schemas and I think I've
hit a bug or a dropped feature (but documented in the printed manual).

Minimal example:

\setuppapersize[A5][A4]
\setuplayout[location=duplex]

\starttext
\dorecurse{20}{
\input knuth
}
\stoptext

As far as I can see, the duplex location is ignored, as the page is
always put in the left corner. Am I doing something wrong? The behaviour
is the same with the one-year-old ConTeXt from TeXlive2011.


there is no 'duplex' in context, only 'doublesided'


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] MetaPost transformation

2012-05-31 Thread Albrecht Kauffmann

Hello Troy,

if you declare a transform variable (e.g., t), it works:

transform t;
t := identity rotated 270 yscaled 0.5;
show identity transformed t;

(0,0,0,1,-0.5,0)


Greetings
Albrecht

On Wed, 30 May 2012, Troy Henderson wrote:


I've encountered a MetaPost issue, and since many MetaPost users also use
ConTeXt (and vice-versa), I am posting this question on both lists.

The command


show identity rotated 270 yscaled 0.5;


outputs

(0,0,0,1,-0.5,0)

as expected, while the command


show identity transformed (0,0,0,1,-0.5,0);


errors with

---
! Missing `)' has been inserted.

  ,
l.26 ^^Ishow identity transformed (0,0,0,1,
  -0.5,0);
---

I am using MetaPost 1.504, and the problem seems to be that MetaPost does
not like me using the sextuple (0,0,0,1,-0.5,0) directly, but this is the
most convenient method for me to describe my transformations.  Is this a
bug in MetaPost, or am I not allowed to use transformations directly with
sextuples?

Troy Henderson


___
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
___