Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
Thanks, this works for figures.

I couldn't get the same to work for chapters, sections, etc.

\setuphead[chapter,section][conversion=lefttorightnumber]

This does not have any effect.


The solution I had in the first email of this thread (see below) has
another issue, which I discovered later.

\setuphead[chapter,title,section,subject][numbercommand=\righttoleft]

The 12th section in the first chapter is written as 1.12 instead of 12.1; I
want the latter because of r2l align.

Another question: how do I change the separator to something else, say --?
I have played with separator and separatorset, but neither seems to work.


On Sat, Jan 9, 2016 at 11:17 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Mohammad Hossein Bateni 
> 3. Januar 2016 um 20:46
> Hi,
>
> Again this has been partly discussed on the list and solutions were
> already there but I didn't see anyone mention the issue with figures.
>
> In the following MWE we have 20 pages of a simple text with a section, a
> footnote and a figure on each page.  The page numbers and footnote numbers
> are fine.  Section numbers need some care to appear correctly.  I couldn't
> figure out a similar mechanism for figure numbers, though.  The example
> does not use Indic numbers, which does not have any effect on the problem.
>
>
> \setupdirections[bidi=global,method=two]
> \setupalign[r2l]
>
> %% If we don't provide the numbercommand, we'll see reverse numbering
> starting from 10.
> \setuphead[chapter,title,section,subject][numbercommand=\righttoleft]
> %% The following does not accept any numbercommand but it has
> numberconversion.
> %% As a result figure numbers are shown in reverse.
> \setupcaptions[numberstopper={:}]
> %% Footnotes are fine and accept conversion.
> %% Page numbers are also okay.
>
> \starttext
>
> \dorecurse{20}{
>
> \section{Test}
> This is a very simple text.
> And we have a footnote\footnote{Footnote text}.
>
> \placefigure
> [][]
> {Test figure.}
> {\centerline{FIGURE BODY}}
>
> \page
> }
>
> \stoptext
>
> You can use processors.
>
> \setupalign[righttoleft]
>
> \defineprocessor [lefttoright][style=\lefttoright]
> \defineconversionset[lefttorightnumber][][lefttoright->n]
>
> \setupcaption[figure][numberconversionset=lefttorightnumber]
>
> \starttext
>
> \chapter{Chapter}
>
> \dorecurse{20}{\placefigure{Dummy
> figure}{\blackrule[width=8cm,height=2cm]}}
>
> \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
>
> ___
>
___
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] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
I just found a solution to the last question:

\defineseparatorset[dashsep][][{--}]
\setuphead[section][sectionseparatorset=dashsep]

On Mon, Jan 18, 2016 at 1:01 AM, Mohammad Hossein Bateni 
wrote:

> Thanks, this works for figures.
>
> I couldn't get the same to work for chapters, sections, etc.
>
> \setuphead[chapter,section][conversion=lefttorightnumber]
>
> This does not have any effect.
>
>
> The solution I had in the first email of this thread (see below) has
> another issue, which I discovered later.
>
> \setuphead[chapter,title,section,subject][numbercommand=\righttoleft]
>
> The 12th section in the first chapter is written as 1.12 instead of 12.1;
> I want the latter because of r2l align.
>
> Another question: how do I change the separator to something else, say
> --?  I have played with separator and separatorset, but neither seems to
> work.
>
>
> On Sat, Jan 9, 2016 at 11:17 AM, Wolfgang Schuster <
> schuster.wolfg...@gmail.com> wrote:
>
>> Mohammad Hossein Bateni 
>> 3. Januar 2016 um 20:46
>> Hi,
>>
>> Again this has been partly discussed on the list and solutions were
>> already there but I didn't see anyone mention the issue with figures.
>>
>> In the following MWE we have 20 pages of a simple text with a section, a
>> footnote and a figure on each page.  The page numbers and footnote numbers
>> are fine.  Section numbers need some care to appear correctly.  I couldn't
>> figure out a similar mechanism for figure numbers, though.  The example
>> does not use Indic numbers, which does not have any effect on the problem.
>>
>>
>> \setupdirections[bidi=global,method=two]
>> \setupalign[r2l]
>>
>> %% If we don't provide the numbercommand, we'll see reverse numbering
>> starting from 10.
>> \setuphead[chapter,title,section,subject][numbercommand=\righttoleft]
>> %% The following does not accept any numbercommand but it has
>> numberconversion.
>> %% As a result figure numbers are shown in reverse.
>> \setupcaptions[numberstopper={:}]
>> %% Footnotes are fine and accept conversion.
>> %% Page numbers are also okay.
>>
>> \starttext
>>
>> \dorecurse{20}{
>>
>> \section{Test}
>> This is a very simple text.
>> And we have a footnote\footnote{Footnote text}.
>>
>> \placefigure
>> [][]
>> {Test figure.}
>> {\centerline{FIGURE BODY}}
>>
>> \page
>> }
>>
>> \stoptext
>>
>> You can use processors.
>>
>> \setupalign[righttoleft]
>>
>> \defineprocessor [lefttoright][style=\lefttoright]
>> \defineconversionset[lefttorightnumber][][lefttoright->n]
>>
>> \setupcaption[figure][numberconversionset=lefttorightnumber]
>>
>> \starttext
>>
>> \chapter{Chapter}
>>
>> \dorecurse{20}{\placefigure{Dummy
>> figure}{\blackrule[width=8cm,height=2cm]}}
>>
>> \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
>>
>> ___
>>
>
>
___
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] Arabic Letters are disjointed and reversed in headers and margin

2016-01-17 Thread Ibn Saeed

> 
> \setupmargindata
>   [margintext]
>   [align=r2l]
> 
> use \setupalign[r2l] and \righttoleft and not the dir primitives
> 


I did not understand how to use 

"use \setupalign[r2l] and \righttoleft and not the dir primitives"

Do you mean that i should remove these lines ?

\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT


How should i use \setupalign[r21] and \righttoleft

i have added your code above the starttext area and it did not make any 
change



___
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] Arabic Letters are disjointed and reversed in headers and margin

2016-01-17 Thread Ibn Saeed
Ibn Saeed  gmail.com> writes:

> 
> 
> > 
> > \setupmargindata
> >   [margintext]
> >   [align=r2l]
> > 
> > use \setupalign[r2l] and \righttoleft and not the dir primitives
> > 
> 
> I did not understand how to use 
> 
> "use \setupalign[r2l] and \righttoleft and not the dir primitives"
> 
> Do you mean that i should remove these lines ?
> 
> \pagedir TRT
> \bodydir TRT
> \pardir TRT
> \textdir TRT
> 
> How should i use \setupalign[r21] and \righttoleft
> 
> i have added your code above the starttext area and it did not make any 
> change
> 
> 


By using right 

\setupmargindata
 [margintext]
 [align=r2l]

and 
\setupalign[r2l]

The margin arabic text appears correctly

But the arabic texts in the header is still the same.



___
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] \replaceword and \setreplacements with xml files

2016-01-17 Thread Jan U. Hasecke
Am 17.01.2016 um 20:05 schrieb Hans Hagen:
> On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:
>>
>> When I choose EB Garamond, it does not work. -- example-Garamond.tex
>>
>> I confirmed this behaviour in my real setup.
> 
> don't assume that ligatures are always real ligatures ... in that font
> it's just kerning .. this kind of works okay:
> 
> \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]


Thanks a lot. This was new to me.

juh
___
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] TeX in \xmlsetentity and DTDs in DOCTYPEs

2016-01-17 Thread Hans Hagen

On 1/16/2016 4:55 PM, Kate F wrote:

On 16 January 2016 at 00:33, Hans Hagen  wrote:

On 1/15/2016 9:20 PM, Thomas A. Schmitz wrote:


On 01/15/2016 06:58 PM, Kate F wrote:


So I see! But many DTDs contain definitions for entities, which I
would like to use, rather than repeating those definitions by
\xmlsetentity in ConTeXt. Some XML documents also have their own
document-specific entities inside the DOCTYPE at the top of the file.

For example in legal agreements, I have something like:



  
]>

Where the stuff inside [...] is considered part of a document-specific
DTD.
libxml2 handles this sort of thing with its "dtdattr" options; I
presume lxml has something similar.



AFAIK, ConTeXt has its own xml parser based on lua lpeg, see file
lxml-tab.lua. There is code there that treats entities, but I have never
used this approach, so you'll probably have to wait till Hans looks at
your question (or understand the lua code...)



i'll come back to it ... fyi: these doctype entities are already parsed in
mkiv .. just not used (or maybe it got lost when fulfilling other wishes)



Much appreciated, if you would. Thank you!
Is it just a case of having that parsing call \xmlsetentity?


it should work in the in beta now


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

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-17 Thread Hans Hagen

On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:

Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:


Please provide a minimal example of your problem. It’s impossible to
help when we have no clue what you’re doing.


Sorry, of course.

After setting up a mwe I found that it is a font related issue.

When I don't specify a font, it works. --> example.tex

When I choose EB Garamond, it does not work. -- example-Garamond.tex

I confirmed this behaviour in my real setup.


don't assume that ligatures are always real ligatures ... in that font 
it's just kerning .. this kind of works okay:


\replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]



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

Re: [NTG-context] pagereferences

2016-01-17 Thread Wolfgang Schuster

Meer, Hans van der 
17. Januar 2016 um 20:43
Thanks Wolfgang. I am experimenting with your code and there has 
arisen a problem. The book I am typesetting has some pages before the 
text on page-1 starts (cover and so on). Therefore the code

\def\mypageref[#1]{\setpagestate[hvdm][#1]\color[red]{page=\pagenumber\ and 
pageref=\pagestaterealpage{hvdm}{#1}}}
produces "page=29 and pageref=31". Not as intended. Do I change the 
macro \pagestaterealpage into what macro? I tried \pagestatepage, but 
that wasn't the right idea.


Now what further to change?
You can use the dataset command which lets you store other information, 
e.g. the current value of the visible pagenumber.


\definedataset[hans][delay=yes]

\setupuserpagenumber[number=3]

\starttext

One\setdataset[hans][one][pagenumber=\userpagenumber]

\page[+2]

Two\setdataset[hans][two][pagenumber=\userpagenumber]

Three\setdataset[hans][three][pagenumber=\userpagenumber]

\blank

\ifnum0\datasetvariable{hans}{two}{realpage}=0\datasetvariable{hans}{one}{realpage}
The references are on the same page.
\else
The references are on different pages.
\fi

\blank

\ifnum0\datasetvariable{hans}{two}{realpage}=0\datasetvariable{hans}{three}{realpage}
The references are on the same page.
\else
The references are on different pages.
\fi

\page

\starttabulate
\NC One   \NC \datasetvariable{hans}{one}{pagenumber}   \NC\NR
\NC Two   \NC \datasetvariable{hans}{two}{pagenumber}   \NC\NR
\NC Three \NC \datasetvariable{hans}{three}{pagenumber} \NC\NR
\stoptabulate

\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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster

Kate F 
17. Januar 2016 um 18:53
On 17 January 2016 at 17:00, Wolfgang Schuster

I don't know, actually. In this case these are values which remain
constant throughout the document. So all I'm after here is a mechanism
for storing variables by name. Is there something more appropriate to
use for those kind of variables?
You can use the \setvariables command the set the values and access them 
with \getvariables:


\setvariables
  [information]
  [title=Document title,
   author=Author name]

\setupinteraction
  [ state=start,
title=\getvariable{information}{title},
   author=\getvariable{information}{title}]

\starttext
\unknown
\stoptext


There is also the \setupdocument command (a simple wrapper for the 
\setvariables command)
which uses predefined keywords to set fields in the pdf file. You can 
access the values from

\setupdocument command in your document with \documentvariable{}.

\setupdocument
  [ metadata:title=Document title,
   metadata:author=Author name]

\setupinteraction[state=start]

\starttext
\unknown
\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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
On 17 January 2016 at 18:27, Wolfgang Schuster
 wrote:
> Kate F
> 17. Januar 2016 um 18:53
> On 17 January 2016 at 17:00, Wolfgang Schuster
>
> I don't know, actually. In this case these are values which remain
> constant throughout the document. So all I'm after here is a mechanism
> for storing variables by name. Is there something more appropriate to
> use for those kind of variables?
>
> You can use the \setvariables command the set the values and access them
> with \getvariables:
>
> \setvariables
>   [information]
>   [title=Document title,
>author=Author name]
>
> \setupinteraction
>   [ state=start,
> title=\getvariable{information}{title},
>author=\getvariable{information}{title}]
>
> \starttext
> \unknown
> \stoptext
>
>
> There is also the \setupdocument command (a simple wrapper for the
> \setvariables command)
> which uses predefined keywords to set fields in the pdf file. You can access
> the values from
> \setupdocument command in your document with \documentvariable{}.
>
> \setupdocument
>   [ metadata:title=Document title,
>metadata:author=Author name]
>
> \setupinteraction[state=start]
>
> \starttext
> \unknown
> \stoptext
>
> Wolfgang

Thanks! I remembered about \setvariables just after asking. I think
that suits my situation more than \setupdocument, since I'm doing this
from handling various different kinds of XML, and this way I can keep
the call to \setupinteraction shared between all of them.

-- 
Kate
___
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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
On Sun, 17 Jan 2016 20:09:56 +0100
Wolfgang Schuster  wrote:

> But, if I want to use the title etc. in the title page, should I do
> something like:
> 
> \starttitlepagemakeup
> \getvariable{document}{metadata:title}
> \stoptitlepagemakeup
> It depends, when you want the title in the pdf without a manual
> setting with \setupinteraction you can use the value of
> “metadata:title” in your document.

Thanks, again, these are useful pointers.
In conclusion, good practice could be (but would this work?):

\startdocument
  [title=My title,
   metadata:title=\documentvariable{title},
   author=Me,
   metadata:author=\documentvariable{author}]
...
\stopdocument


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
___

Re: [NTG-context] hebrew

2016-01-17 Thread josephcanedo
For fonts I found this site : http://www.opensiddur.org.

In particular http://opensiddur.org/tools/fonts/


Hope this helps a bit


Joseph Canedo





From: Meer, Hans van der
Sent: ‎Saturday‎, ‎January‎ ‎16‎, ‎2016 ‎2‎:‎56‎ ‎PM
To: ntg-context@ntg.nl





I need to typeset the letters of the hebrew alfabet. What font? What letters to 
type?

Hans van der Meer




___
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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster

Alan BRASLAU 
17. Januar 2016 um 23:39
On Sun, 17 Jan 2016 20:09:56 +0100

Thanks, again, these are useful pointers.
In conclusion, good practice could be (but would this work?):

\startdocument
[title=My title,
metadata:title=\documentvariable{title},
author=Me,
metadata:author=\documentvariable{author}]
...
\stopdocument
I would separate both settings and put \setupdocument somewhere in the 
preamble.


\setupdocument
  [metadata:title=\documentvariable{title},
   metadata:author=\documentvariable{author}]

\startdocument
  [title=My title,
   author=Me]
...
\stopdocument

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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
On 17 January 2016 at 17:00, Wolfgang Schuster
 wrote:
> Kate F
> 17. Januar 2016 um 17:56
> Hi,
>
> Is it possible to have TeX markup executed in the text fields for
> \setupinteraction?
> I would like to do something like:
>
> \definemarking[xyz]
> \marking[xyz]{Hello}
> \setupinteraction[state=start]
> \setupinteraction[title={\getmarking[xyz][current]}]
> \setupinteraction[author={\getmarking[xyz][current]}]
> \starttext
> xyz=\getmarking[xyz][current]
> \stoptext
>
> But my generated PDF has literally "\getmarking[xyz][current]}" for
> the title and author.
>
> Are you sure you want to use marks to store text because the mechanism
> works only in headers and footers.

I don't know, actually. In this case these are values which remain
constant throughout the document. So all I'm after here is a mechanism
for storing variables by name. Is there something more appropriate to
use for those kind of variables?

I didn't know markings only exist in headers and footers! Thanks.

-- 
Kate
___
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] Supported architectures for minimals (any ppc users out there?)

2016-01-17 Thread Mojca Miklavec
Hi,

Thomas A. S. was (again) wondering if there were (still) any users of
linux-ppc binaries out there.

We'll probably remove them otherwise (not sure why we didn't do that
yet, but well ...)

Mojca

On 16 April 2014 at 13:55, Mojca Miklavec wrote:
> Hi,
>
> I would suggest dropping support for linux-ppc for the ConTeXt
> distribution unless somebody objects.
___
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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster

Alan BRASLAU 
17. Januar 2016 um 19:55
On Sun, 17 Jan 2016 19:27:31 +0100


How does this play with
\startdocument
[title=Document title,
author=Me]
It doesn’t matter if you set the values with \setupdocument or 
\startdocument.

Here, I learn about metadata:title=
which suggests that I could do without
\setupinteraction
[state=start,
title={\getvariable{document}{title}},
author={\getvariable{document}{author}}]

You can use \documentvariable{...} to access the values.

But, if I want to use the title etc. in the title page, should I do
something like:

\starttitlepagemakeup
\getvariable{document}{metadata:title}
\stoptitlepagemakeup

It depends, when you want the title in the pdf without a manual setting
with \setupinteraction you can use the value of “metadata:title” in your
document.

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] Arabic Letters are disjointed and reversed in headers and margin

2016-01-17 Thread Hans Hagen

On 1/17/2016 7:47 PM, Ibn Saeed wrote:

I have also made a post at tex.stackexchange.com

I am trying to get Arabic Chapter Name in the header and some arabic text in
the margins using ConTeXt MarkIV

Here is the code:

\mainlanguage[arabic]

\setupdirections[bidi=global]

\definefontfeature
   [arabic]
   [mode=node,language=dflt,script=arab,
 init=yes,medi=yes,fina=yes,isol=yes,
 liga=yes,dlig=yes,rlig=yes,tlig=yes,
 calt=yes,trep=yes,clig=yes,
 mark=yes,mkmk=yes,kern=yes,curs=yes]


\starttypescript [serif] [arabic]
   \definefontsynonym [Arabic-Regular] [file:ScheherazadeRegOT.ttf]
[features=arabic]
   \definefontsynonym [Arabic-Bold] [file:ScheherazadeRegOT.ttf]
[features=arabic]
\stoptypescript

\starttypescript [serif] [arabic] [name]
  \usetypescript[serif][fallback]
  \definefontsynonym [Serif] [Arabic-Regular] [features=arabic]
  \definefontsynonym [SerifBold] [Arabic-Bold][features=arabic]
\stoptypescript

\starttypescript [Arabic]
   \definetypeface [Arabic] [rm] [serif] [arabic] [default]
\stoptypescript


\def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT}
\def\ArabicParDir{\textdir TRT\pardir TRT}
\def\ArabicTextDir   {\textdir TRT}


\define\setarabic
   {\ArabicGlobalDir%
\usetypescript[Arabic]%
\setupbodyfont[Arabic,20pt]}

\definestartstop
   [arabicpar]
   [commands=\Arabic\ArabicParDir]

\define[1]\RT
   {{\Arabic\ArabicTextDir#1}}


\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT




\setuppapersize[A4]

\setuplayout[
   grid=min,
   backspace=55.999mm, width=130mm,
   topspace=39.666mm, height=210mm,
   header=12mm, footer=9mm,
   ]



\setupbodyfont[Arabic,24pt]
\setupinterlinespace[line=42pt]


\setupheads[number=no]
\setuphead[chapter]
[style=\bfd,before=,after=\blank,alternative=middle,grid=both]
\setuphead[section][style=\bfc,before=\blank,after=,grid=both]

\setupbackgrounds[header][text][frame=off, bottomframe=on]

\setupheadertexts
 [{\getmarking[chapter]}][{صفحة }]
 [{صفحة }][{\getmarking[chapter]}]

\setupinmargin[stack=yes]


\starttext

\chapter{الآجرومية}

\margintext{الآجرومية}

الحمد لله رب العالمين، وصلى الله وسلم وبارك على عبده ورسوله نبينا محمد وعلى
آله وصحبه أجمعين، أما بعد:
فلا يخفى على من له أدنى عناية بالعلم الشرعي لا سيما ما يتعلق بالكتاب
العزيز والسنة النبوية لا يخفى عليه أهمية معرفة اللغة العربية بفنونها
العشرة أو الإثني عشر:



\stoptext


\setupmargindata
 [margintext]
 [align=r2l]

use \setupalign[r2l] and \righttoleft and not the dir primitives


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

Re: [NTG-context] pagereferences

2016-01-17 Thread Meer, Hans van der
Thanks Wolfgang. I am experimenting with your code and there has arisen a 
problem. The book I am typesetting has some pages before the text on page-1 
starts (cover and so on). Therefore the code
\def\mypageref[#1]{\setpagestate[hvdm][#1]\color[red]{page=\pagenumber\ and 
pageref=\pagestaterealpage{hvdm}{#1}}}
produces "page=29 and pageref=31". Not as intended. Do I change the macro 
\pagestaterealpage into what macro? I tried \pagestatepage, but that wasn't the 
right idea.

Now what further to change?

Hans van der Meer




On 17 Jan 2016, at 19:37, Wolfgang Schuster 
> wrote:

\definepagestate[hans]

\starttext

One\setpagestate[hans][one]

\page[+2]

Two\setpagestate[hans][two]

Three\setpagestate[hans][three]

\blank

\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{one}
The references are on the same page.
\else
The references are on different pages.
\fi

\blank

\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{three}
The references are on the same page.
\else
The references are on different pages.
\fi

\stoptext

___
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] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
On Sun, 17 Jan 2016 19:27:31 +0100
Wolfgang Schuster  wrote:

> > Kate F 
> > 17. Januar 2016 um 18:53
> > On 17 January 2016 at 17:00, Wolfgang Schuster
> >
> > I don't know, actually. In this case these are values which remain
> > constant throughout the document. So all I'm after here is a
> > mechanism for storing variables by name. Is there something more
> > appropriate to use for those kind of variables?
> You can use the \setvariables command the set the values and access
> them with \getvariables:
> 
> \setvariables
>[information]
>[title=Document title,
> author=Author name]
> 
> \setupinteraction
>[ state=start,
>  title=\getvariable{information}{title},
> author=\getvariable{information}{title}]
> 
> \starttext
> \unknown
> \stoptext
> 
> 
> There is also the \setupdocument command (a simple wrapper for the 
> \setvariables command)
> which uses predefined keywords to set fields in the pdf file. You can 
> access the values from
> \setupdocument command in your document with \documentvariable{}.
> 
> \setupdocument
>[ metadata:title=Document title,
> metadata:author=Author name]
> 
> \setupinteraction[state=start]
> 
> \starttext
> \unknown
> \stoptext
> 
> Wolfgang


How does this play with
\startdocument
  [title=Document title,
   author=Me]

Here, I learn about metadata:title=
which suggests that I could do without
\setupinteraction
  [state=start,
   title={\getvariable{document}{title}},
   author={\getvariable{document}{author}}]

But, if I want to use the title etc. in the title page, should I do
something like:

\starttitlepagemakeup
  \getvariable{document}{metadata:title}
\stoptitlepagemakeup

Thanks

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
___

Re: [NTG-context] pagereferences

2016-01-17 Thread Meer, Hans van der
Thanks Wolfgang. I am afraid, however, your answer inspires me to a subsequent 
question.

In order to customize  the reference myself my idea is something along the line 
of:
  \def\myatpage[#1]{ \scratchcounter=\at[#1]\relax\ifnum=\pagenumber etcetera.
But this gives an error, as dus \expanded{\at[#1]}, as does 
\expandafter\scratchcounter=
The error is Missing number, treated as zero..

Do you have a hint how to proceed?

Hans van der Meer




On 17 Jan 2016, at 17:42, Wolfgang Schuster 
> wrote:

Meer, Hans van der
17. Januar 2016 um 16:58
Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] 
I get as reference "at a previous page" (perhaps not exactly, the typesetting 
is done in dutch).
The english text is “on a preceding page”.
This an unwanted result, that previous page is 7 pages before.
The test is still true before “on *a* preceding page” is not the same as “on 
*the* preceding page”.
How can I restrict this to either "on this page" or to the exact number of the 
page in question?
You can print the number with \at[].

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] Automatic negative tracking to prevent slight overfull hbox's

2016-01-17 Thread Hans Hagen

On 1/16/2016 6:57 PM, Aditya Mahajan wrote:

On Thu, 14 Jan 2016, Alexander Dyomin wrote:


Dear list,
when I stumble upon a slightly overhanging line (where it's not
allowed to hyphenate the hanging word and putting it on next line
leaves huge whitespaces), decreasing letterspacing in that line seems
like a good idea, and I manually insert \kerncharacters commands to do
the trick. Here's a MWE for the purpose of demonstration:

% ConTeXt code
\setuppapersize[A5]
\setupbackgrounds[text]
[rightframe=on,framecolor=red,rulethickness=0.1pt] %right margin line

\setupalign[hz,hanging] % microtypography enabled
\definefontfeature[default][default][protrusion=quality,expansion=quality]


\definetypeface[mainface][rm][specserif][Linux Libertine O] [default]
\setupbodyfont[mainface,14pt]

\mainlanguage[russian]
\setupindenting[yes,medium,first]

\starttext

{\kerncharacters[-0.018] Здесь будет длинный-предлинный текст,
\mbox{в~коем}} никак нельзя перенести строку. Запрещено {
\kerncharacters[-0.008] разрывать телефонные номера, например,
\mbox{(000)1234-5678}}, многозначные числа и дефисные написания.
\stoptext


Is the a way for automating such negative tracking?


I seem to remember seeing a demo (either by Hans or Idris) for Arabic
typesetting where some optimizations were performed after the
linebreaks. I wonder if similar approach could be used here.


that assumes features in the font that can make text run wider or narrower

easier is to use \setupalign[stretch,tolerant]



--

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

Re: [NTG-context] pagereferences

2016-01-17 Thread Wolfgang Schuster

Meer, Hans van der 
17. Januar 2016 um 19:03
Thanks Wolfgang. I am afraid, however, your answer inspires me to a 
subsequent question.


In order to customize  the reference myself my idea is something along 
the line of:
  \def\myatpage[#1]{ \scratchcounter=\at[#1]\relax\ifnum=\pagenumber 
etcetera.
But this gives an error, as dus \expanded{\at[#1]}, as does 
\expandafter\scratchcounter=

The error is Missing number, treated as zero..

Do you have a hint how to proceed?

\definepagestate[hans]

\starttext

One\setpagestate[hans][one]

\page[+2]

Two\setpagestate[hans][two]

Three\setpagestate[hans][three]

\blank

\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{one}
The references are on the same page.
\else
The references are on different pages.
\fi

\blank

\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{three}
The references are on the same page.
\else
The references are on different pages.
\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
___

[NTG-context] Arabic Letters are disjointed and reversed in headers and margin

2016-01-17 Thread Ibn Saeed
I have also made a post at tex.stackexchange.com

I am trying to get Arabic Chapter Name in the header and some arabic text in 
the margins using ConTeXt MarkIV

Here is the code:

\mainlanguage[arabic]

\setupdirections[bidi=global]

\definefontfeature
  [arabic]
  [mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,tlig=yes,
calt=yes,trep=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]


\starttypescript [serif] [arabic]
  \definefontsynonym [Arabic-Regular] [file:ScheherazadeRegOT.ttf] 
[features=arabic]
  \definefontsynonym [Arabic-Bold] [file:ScheherazadeRegOT.ttf] 
[features=arabic]
\stoptypescript

\starttypescript [serif] [arabic] [name]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif] [Arabic-Regular] [features=arabic]
 \definefontsynonym [SerifBold] [Arabic-Bold][features=arabic]
\stoptypescript

\starttypescript [Arabic]
  \definetypeface [Arabic] [rm] [serif] [arabic] [default] 
\stoptypescript 
  

\def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT}
\def\ArabicParDir{\textdir TRT\pardir TRT}
\def\ArabicTextDir   {\textdir TRT}


\define\setarabic
  {\ArabicGlobalDir%
   \usetypescript[Arabic]%
   \setupbodyfont[Arabic,20pt]}

\definestartstop
  [arabicpar]
  [commands=\Arabic\ArabicParDir]

\define[1]\RT
  {{\Arabic\ArabicTextDir#1}}


\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT




\setuppapersize[A4]

\setuplayout[
  grid=min,
  backspace=55.999mm, width=130mm,
  topspace=39.666mm, height=210mm,
  header=12mm, footer=9mm,
  ]



\setupbodyfont[Arabic,24pt]
\setupinterlinespace[line=42pt]


\setupheads[number=no]
\setuphead[chapter]
[style=\bfd,before=,after=\blank,alternative=middle,grid=both]
\setuphead[section][style=\bfc,before=\blank,after=,grid=both]

\setupbackgrounds[header][text][frame=off, bottomframe=on]

\setupheadertexts
[{\getmarking[chapter]}][{صفحة }]
[{صفحة }][{\getmarking[chapter]}]

\setupinmargin[stack=yes]


\starttext

\chapter{الآجرومية}

\margintext{الآجرومية}

الحمد لله رب العالمين، وصلى الله وسلم وبارك على عبده ورسوله نبينا محمد وعلى 
آله وصحبه أجمعين، أما بعد:
فلا يخفى على من له أدنى عناية بالعلم الشرعي لا سيما ما يتعلق بالكتاب 
العزيز والسنة النبوية لا يخفى عليه أهمية معرفة اللغة العربية بفنونها 
العشرة أو الإثني عشر: 



\stoptext



here is the screenshot:

http://postimg.org/image/too54uv7r/




___
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] \quote inside \emph

2016-01-17 Thread Hans Hagen

On 1/16/2016 6:55 PM, Aditya Mahajan wrote:

On Sat, 16 Jan 2016, Alan Bowen wrote:


When used in inside \emph, \quote puts the words cited into roman face.
Thus,

\starttext

\emph{The \quote{Problemata} in Medieval Times}

\emph{The \quote{\emph{Problemata}} in Medieval Times}

\stoptext

This seems odd. Should \quote not leave the style of the text as it is?
That is, should the output of line 1 not look like that of line 2?


The same question was asked recently on TeX.SE
http://tex.stackexchange.com/questions/286743/context-quote-command-resets-font-shape-is-this-a-bug


I think that this is just a bad default. You can use:

\setupdelimitedtext[quote][style=]


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide

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
___

Re: [NTG-context] \quote inside \emph

2016-01-17 Thread Wolfgang Schuster

Hans Hagen 
18. Januar 2016 um 00:56


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide
Remove the default setting and for completeness sake add style/color 
settings to the paragraph alternative.


\unexpanded\def\typo_delimited_par
  {\groupedcommand
 
{\dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext 
% block?

  \typo_delimited_handle_left\c!left
+ \usedelimitedtextstyleandcolor\c!style\c!color
  \dostarttagged\t!delimitedcontent\empty}
 {\dostoptagged
  \typo_delimited_handle_right\c!right
  \removelastskip
  \dostoptagged
  \typo_delimited_pop}}

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] \quote inside \emph

2016-01-17 Thread Aditya Mahajan

On Mon, 18 Jan 2016, Wolfgang Schuster wrote:


Hans Hagen 
18. Januar 2016 um 00:56


we could change it (i don't care too much as i've never use them nested)

up to you/wolfgang/... to decide
Remove the default setting and for completeness sake add style/color settings 
to the paragraph alternative.


\unexpanded\def\typo_delimited_par
 {\groupedcommand
{\dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext 
% block?

 \typo_delimited_handle_left\c!left
+ \usedelimitedtextstyleandcolor\c!style\c!color
 \dostarttagged\t!delimitedcontent\empty}
{\dostoptagged
 \typo_delimited_handle_right\c!right
 \removelastskip
 \dostoptagged
 \typo_delimited_pop}}


I agree. Removing the default setting (style=normal) will be the simplest 
solution.


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
___

[NTG-context] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Jaroslav Hajtmar

Hello ConTeXist.
I am trying to install a standalone ConTeXt on MacBook. I am doing 
everything exactly as instructed on contextgarden.net, but the 
installation will fail. It seems that the problem is with rsync, with 
copying the installation script first-setup.sh into my Mac. Since I am a 
longtime Windows user and I'm a newbie on OS X, I'd like to find out 
what the problem may be. I dont know nothing about OS X, but I suppose 
that might be a problem with the firewall settings or access rights to 
the directories which  I use to install ConTeXt etc. Can someone please 
advise how to perform the installation? There is an option to download 
the installation package and install ConTeXt differently?

Thanks for replies.

Jaroslav Hajtmar

___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Weber, Matthias
Hi Jaroslav,

could you explain a bit more what you mean by "the installation will fail”?

What error message do you get at what stage?

You need to make sure that you have write permission to the installation 
directory; anything inside your home directory should be safe.
Also, as a general precaution, make sure the path to your installation 
directory doesn’t contain unusual characters.

Matthias


> On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar  wrote:
> 
> Hello ConTeXist.
> I am trying to install a standalone ConTeXt on MacBook. I am doing everything 
> exactly as instructed on contextgarden.net, but the installation will fail. 
> It seems that the problem is with rsync, with copying the installation script 
> first-setup.sh into my Mac. Since I am a longtime Windows user and I'm a 
> newbie on OS X, I'd like to find out what the problem may be. I dont know 
> nothing about OS X, but I suppose that might be a problem with the firewall 
> settings or access rights to the directories which  I use to install ConTeXt 
> etc. Can someone please advise how to perform the installation? There is an 
> option to download the installation package and install ConTeXt differently?
> Thanks for replies.
> 
> Jaroslav Hajtmar
> 
> ___
> 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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Jaroslav Hajtmar

Hello Matthias.
Thank you for the quick response. During installation, no error occurs, 
even seems that rsync copied without error message first-setup.sh to my 
%HOME/context directory. When then I look into this directory, then 
there is no file. Subsequently command sudo sh ./first-setup.sh reports 
nonexistent file or directory. I tried to install it into your 
Applications folder too (I have administrative access), but not in this 
way I have not done.


(As you say: home directory should be safe and path no occure any 
problematic characters. My home directory is "hajtmar")


Thanx Jaroslav

Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):

Hi Jaroslav,

could you explain a bit more what you mean by "the installation will fail”?

What error message do you get at what stage?

You need to make sure that you have write permission to the installation 
directory; anything inside your home directory should be safe.
Also, as a general precaution, make sure the path to your installation 
directory doesn’t contain unusual characters.

Matthias



On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar  wrote:

Hello ConTeXist.
I am trying to install a standalone ConTeXt on MacBook. I am doing everything 
exactly as instructed on contextgarden.net, but the installation will fail. It 
seems that the problem is with rsync, with copying the installation script 
first-setup.sh into my Mac. Since I am a longtime Windows user and I'm a newbie 
on OS X, I'd like to find out what the problem may be. I dont know nothing 
about OS X, but I suppose that might be a problem with the firewall settings or 
access rights to the directories which  I use to install ConTeXt etc. Can 
someone please advise how to perform the installation? There is an option to 
download the installation package and install ConTeXt differently?
Thanks for replies.

Jaroslav Hajtmar

___
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



___


___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Weber, Matthias
Here is what I do:

Tetrahedron:ConTeXt matthias$ mkdir ~/context
Tetrahedron:ConTeXt matthias$ cd ~/context
Tetrahedron:context matthias$ rsync -ptv 
rsync://contextgarden.net/minimals/setup/first-setup.sh .
first-setup.sh

sent 38 bytes  received 3636 bytes  1469.60 bytes/sec
total size is 3525  speedup is 0.96


and the files are definitely there. Do you have a space in /context directory? 
Then you might need apostrophes.

Matthias


On Jan 17, 2016, at 8:08 AM, Jaroslav Hajtmar 
> wrote:

Hello Matthias.
Thank you for the quick response. During installation, no error occurs, even 
seems that rsync copied without error message first-setup.sh to my 
%HOME/context directory. When then I look into this directory, then there is no 
file. Subsequently command sudo sh ./first-setup.sh reports nonexistent file or 
directory. I tried to install it into your Applications folder too (I have 
administrative access), but not in this way I have not done.

(As you say: home directory should be safe and path no occure any problematic 
characters. My home directory is "hajtmar")

Thanx Jaroslav

Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):
Hi Jaroslav,

could you explain a bit more what you mean by "the installation will fail”?

What error message do you get at what stage?

You need to make sure that you have write permission to the installation 
directory; anything inside your home directory should be safe.
Also, as a general precaution, make sure the path to your installation 
directory doesn’t contain unusual characters.

Matthias


On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar 
> wrote:

Hello ConTeXist.
I am trying to install a standalone ConTeXt on MacBook. I am doing everything 
exactly as instructed on contextgarden.net, but the 
installation will fail. It seems that the problem is with rsync, with copying 
the installation script first-setup.sh into my Mac. Since I am a longtime 
Windows user and I'm a newbie on OS X, I'd like to find out what the problem 
may be. I dont know nothing about OS X, but I suppose that might be a problem 
with the firewall settings or access rights to the directories which  I use to 
install ConTeXt etc. Can someone please advise how to perform the installation? 
There is an option to download the installation package and install ConTeXt 
differently?
Thanks for replies.

Jaroslav Hajtmar

___
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

___

___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Otared Kavian
Hello Jaroslav,

Here is what I do on my Mac:

1) While in the Finder, create a folder named Context-standalone

2) Put the attached file « first-setup.sh »  in the folder Context-standalone

3) Open Terminal and issue the command

cd [Path-to-the-folder-Context-standalone]

4) Then in Terminal issue the command

ls first-setup.sh

you should see something beginning with:

-rwxr-xr-x  

that is the file has an « x » in its or your rights, that is it is executable.

If this not the case, using the command below make sure it has that right:

chmod +x first-setup.sh

5) Once this is done, issue the command

sh first-setup.sh

6) In principle you should end up with all files necessary for Context working 
in the folder Context-standalone

7) If this is not the case, please report at which step things do not work as 
expected.

Best regards: OK



first-setup.sh
Description: Binary data




> On 17 Jan 2016, at 14:08, Jaroslav Hajtmar  wrote:
> 
> Hello Matthias.
> Thank you for the quick response. During installation, no error occurs, even 
> seems that rsync copied without error message first-setup.sh to my 
> %HOME/context directory. When then I look into this directory, then there is 
> no file. Subsequently command sudo sh ./first-setup.sh reports nonexistent 
> file or directory. I tried to install it into your Applications folder too (I 
> have administrative access), but not in this way I have not done.
> 
> (As you say: home directory should be safe and path no occure any problematic 
> characters. My home directory is "hajtmar")
> 
> Thanx Jaroslav
> 
> Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):
>> Hi Jaroslav,
>> 
>> could you explain a bit more what you mean by "the installation will fail”?
>> 
>> What error message do you get at what stage?
>> 
>> You need to make sure that you have write permission to the installation 
>> directory; anything inside your home directory should be safe.
>> Also, as a general precaution, make sure the path to your installation 
>> directory doesn’t contain unusual characters.
>> 
>> Matthias
>> 
>> 
>>> On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar  wrote:
>>> 
>>> Hello ConTeXist.
>>> I am trying to install a standalone ConTeXt on MacBook. I am doing 
>>> everything exactly as instructed on contextgarden.net, but the installation 
>>> will fail. It seems that the problem is with rsync, with copying the 
>>> installation script first-setup.sh into my Mac. Since I am a longtime 
>>> Windows user and I'm a newbie on OS X, I'd like to find out what the 
>>> problem may be. I dont know nothing about OS X, but I suppose that might be 
>>> a problem with the firewall settings or access rights to the directories 
>>> which  I use to install ConTeXt etc. Can someone please advise how to 
>>> perform the installation? There is an option to download the installation 
>>> package and install ConTeXt differently?
>>> Thanks for replies.
>>> 
>>> Jaroslav Hajtmar
>>> 
>>> ___
>>> 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
> 
>> ___
> 
> ___
> 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] pagereferences

2016-01-17 Thread Meer, Hans van der
Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] 
I get as reference "at a previous page" (perhaps not exactly, the typesetting 
is done in dutch).

This an unwanted result, that previous page is 7 pages before.

How can I restrict this to either "on this page" or to the exact number of the 
page in question?

Hans van der Meer




___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Jaroslav Hajtmar

Hello.
Thanks to Otared and Matthias too for their solutions. Otared's method 
is working, Mathias method unfortunaly not working. ConTeXt is already 
installed on my MacBookAir. I dont know why, but It seems that for some 
reason rsync does not download the first-setup.sh file into my 
installation directory. After I put first-setup.sh file manually into 
install directory and then I run the installation script, then 
everything is all right till the end. At this moment, I still struggle 
with settings an appropriate environment variables so that everything 
worked like on my Windows PC installation. Running at (for me) an 
unfamiliar OS-X it is for me still long run (but adventurous) :-).
However installation on my MAC is currently commissioned and 
operational. Thanks for the advices.


Jaroslav Hajtmar



Dne 17.01.16 v 14:38 Otared Kavian napsal(a):

Hello Jaroslav,

Here is what I do on my Mac:

1) While in the Finder, create a folder named Context-standalone

2) Put the attached file « first-setup.sh »  in the folder Context-standalone

3) Open Terminal and issue the command

cd [Path-to-the-folder-Context-standalone]

4) Then in Terminal issue the command

ls first-setup.sh

you should see something beginning with:

-rwxr-xr-x

that is the file has an « x » in its or your rights, that is it is executable.

If this not the case, using the command below make sure it has that right:

chmod +x first-setup.sh

5) Once this is done, issue the command

sh first-setup.sh

6) In principle you should end up with all files necessary for Context working 
in the folder Context-standalone

7) If this is not the case, please report at which step things do not work as 
expected.

Best regards: OK







On 17 Jan 2016, at 14:08, Jaroslav Hajtmar  wrote:

Hello Matthias.
Thank you for the quick response. During installation, no error occurs, even 
seems that rsync copied without error message first-setup.sh to my 
%HOME/context directory. When then I look into this directory, then there is no 
file. Subsequently command sudo sh ./first-setup.sh reports nonexistent file or 
directory. I tried to install it into your Applications folder too (I have 
administrative access), but not in this way I have not done.

(As you say: home directory should be safe and path no occure any problematic characters. 
My home directory is "hajtmar")

Thanx Jaroslav

Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):

Hi Jaroslav,

could you explain a bit more what you mean by "the installation will fail”?

What error message do you get at what stage?

You need to make sure that you have write permission to the installation 
directory; anything inside your home directory should be safe.
Also, as a general precaution, make sure the path to your installation 
directory doesn’t contain unusual characters.

Matthias



On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar  wrote:

Hello ConTeXist.
I am trying to install a standalone ConTeXt on MacBook. I am doing everything 
exactly as instructed on contextgarden.net, but the installation will fail. It 
seems that the problem is with rsync, with copying the installation script 
first-setup.sh into my Mac. Since I am a longtime Windows user and I'm a newbie 
on OS X, I'd like to find out what the problem may be. I dont know nothing 
about OS X, but I suppose that might be a problem with the firewall settings or 
access rights to the directories which  I use to install ConTeXt etc. Can 
someone please advise how to perform the installation? There is an option to 
download the installation package and install ConTeXt differently?
Thanks for replies.

Jaroslav Hajtmar

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

___
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

Re: [NTG-context] pagereferences

2016-01-17 Thread Wolfgang Schuster

Meer, Hans van der 
17. Januar 2016 um 16:58
Defining \pagereference[xyz] en calling this some pages later with 
\atpage[xyz] I get as reference "at a previous page" (perhaps not 
exactly, the typesetting is done in dutch).

The english text is “on a preceding page”.

This an unwanted result, that previous page is 7 pages before.
The test is still true before “on *a* preceding page” is not the same as 
“on *the* preceding page”.
How can I restrict this to either "on this page" or to the exact 
number of the page in question?

You can print the number with \at[].

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
___

[NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
Hi,

Is it possible to have TeX markup executed in the text fields for
\setupinteraction?
I would like to do something like:

\definemarking[xyz]
\marking[xyz]{Hello}
\setupinteraction[state=start]
\setupinteraction[title={\getmarking[xyz][current]}]
\setupinteraction[author={\getmarking[xyz][current]}]
\starttext
xyz=\getmarking[xyz][current]
\stoptext

But my generated PDF has literally "\getmarking[xyz][current]}" for
the title and author.

Thanks,

-- 
Kate
___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Otared Kavian
Hi Jaroslav,

On Mac, you can use TeXShop and your standalone Context very easily.
First create a specific « .engine » file for this and then in TeXShop use that 
engine. 
Here is what I have when I typeset a file in TeXShop using mkiv ConTeXt:

% begin file mkiv.engine

#!/bin/bash

export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
context --synctex=zipped --autogenerate "$1" --purgeall

% end file mkiv.engine

you should replace the line « export PATH=…. » by the path to your installation 
of ConTeXt. More precisely you should replace 

/Volumes/OK/context-minimal

with the path going to the folder where your Context installation sits (in your 
case it is where you have put the file first-setup.sh).

Then this file « mkiv.engine » should be put in the folder

Library/TeXShop/Engines


Once this is done, you have three solutions in order to use TeXShop with your 
standalone Context. Here they are: 

Solution 1: add the following line at the top of your source file:

%!TEX TS-program = mkiv

Note that in the above you may replace « mkiv » with whatever engine name known 
to your TeXShop installation (for instance « ContextSuite», or any other name 
you have, or (may God forgive both of us…) even « latex »…). 
When you typeset with ConTeXt, then TeXShop will use the chosen engine.

Solution 2: when your source file is open, you should have, at the top of your 
window, a small menu named « Program ». Click on that menu and among the 
programs (that is the engines) choose the one you want.

Solution 3: open the TeXShop Preferences and in the « Typesetting » pane , on 
the upper left part of the resulting window, choose the radio button « Command 
listed below » and type the name of your preferred engine. This method makes a 
general default, so if you use some other typesetting packages for some files 
you have to modify things for those files.

Best regards: OK

> On 17 Jan 2016, at 16:56, Jaroslav Hajtmar  wrote:
> 
> Hello.
> Thanks to Otared and Matthias too for their solutions. Otared's method is 
> working, Mathias method unfortunaly not working. ConTeXt is already installed 
> on my MacBookAir. I dont know why, but It seems that for some reason rsync 
> does not download the first-setup.sh file into my installation directory. 
> After I put first-setup.sh file manually into install directory and then I 
> run the installation script, then everything is all right till the end. At 
> this moment, I still struggle with settings an appropriate environment 
> variables so that everything worked like on my Windows PC installation. 
> Running at (for me) an unfamiliar OS-X it is for me still long run (but 
> adventurous) :-).
> However installation on my MAC is currently commissioned and operational. 
> Thanks for the advices.
> 
> Jaroslav Hajtmar
> 
> 
> 
> Dne 17.01.16 v 14:38 Otared Kavian napsal(a):
>> Hello Jaroslav,
>> 
>> Here is what I do on my Mac:
>> 
>> 1) While in the Finder, create a folder named Context-standalone
>> 
>> 2) Put the attached file « first-setup.sh »  in the folder Context-standalone
>> 
>> 3) Open Terminal and issue the command
>> 
>>  cd [Path-to-the-folder-Context-standalone]
>> 
>> 4) Then in Terminal issue the command
>> 
>>  ls first-setup.sh
>> 
>> you should see something beginning with:
>> 
>>  -rwxr-xr-x
>> 
>> that is the file has an « x » in its or your rights, that is it is 
>> executable.
>> 
>> If this not the case, using the command below make sure it has that right:
>> 
>>  chmod +x first-setup.sh
>> 
>> 5) Once this is done, issue the command
>> 
>>  sh first-setup.sh
>> 
>> 6) In principle you should end up with all files necessary for Context 
>> working in the folder Context-standalone
>> 
>> 7) If this is not the case, please report at which step things do not work 
>> as expected.
>> 
>> Best regards: OK
>> 
>> 
>> 
>> 
>> 
>> 
>>> On 17 Jan 2016, at 14:08, Jaroslav Hajtmar  wrote:
>>> 
>>> Hello Matthias.
>>> Thank you for the quick response. During installation, no error occurs, 
>>> even seems that rsync copied without error message first-setup.sh to my 
>>> %HOME/context directory. When then I look into this directory, then there 
>>> is no file. Subsequently command sudo sh ./first-setup.sh reports 
>>> nonexistent file or directory. I tried to install it into your Applications 
>>> folder too (I have administrative access), but not in this way I have not 
>>> done.
>>> 
>>> (As you say: home directory should be safe and path no occure any 
>>> problematic characters. My home directory is "hajtmar")
>>> 
>>> Thanx Jaroslav
>>> 
>>> Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):
 Hi Jaroslav,
 
 could you explain a bit more what you mean by "the installation will fail”?
 
 What error message do you get at what stage?
 
 You need to make sure that you have write permission to the installation 
 directory; anything inside your 

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster

Kate F 
17. Januar 2016 um 17:56
Hi,

Is it possible to have TeX markup executed in the text fields for
\setupinteraction?
I would like to do something like:

\definemarking[xyz]
\marking[xyz]{Hello}
\setupinteraction[state=start]
\setupinteraction[title={\getmarking[xyz][current]}]
\setupinteraction[author={\getmarking[xyz][current]}]
\starttext
xyz=\getmarking[xyz][current]
\stoptext

But my generated PDF has literally "\getmarking[xyz][current]}" for
the title and author.

Are you sure you want to use marks to store text because the mechanism
works only in headers and footers.

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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Jaroslav Hajtmar

Hello Otared.
Thanks for inspiring advice. Be sure that I will try everything setting 
up so that I ConTeXt work as on my PC and Windows. After 25 years of 
using Windows, I would never say that I will experiment with MacBook and 
OS-X. At the moment, I am pleased that I cease to be dependent on any OS 
platform and freely move between multiple computers with different 
operating systems. It's a super feeling that after twenty years, I feel 
that I am not dependent on a particular computer. With most of the 
software I have no problem, I just ConTeXt still missed on the MacBook. 
Now it's all OK.
Thanks for the advice, perhaps maybe I'll ever for you further advice 
about ConTeXt on OS-X.


Jaroslav Hajtmar

Dne 17.01.16 v 17:57 Otared Kavian napsal(a):

Hi Jaroslav,

On Mac, you can use TeXShop and your standalone Context very easily.
First create a specific « .engine » file for this and then in TeXShop 
use that engine.

Here is what I have when I typeset a file in TeXShop using mkiv ConTeXt:

% begin file mkiv.engine

#!/bin/bash

export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
context --synctex=zipped --autogenerate "$1" --purgeall

% end file mkiv.engine

you should replace the line « export PATH=…. » by the path to your 
installation of ConTeXt. More precisely you should replace


/Volumes/OK/context-minimal

with the path going to the folder where your Context installation sits 
(in your case it is where you have put the file first-setup.sh).


Then this file « mkiv.engine » should be put in the folder

Library/TeXShop/Engines


Once this is done, you have three solutions in order to use TeXShop 
with your standalone Context. Here they are:


Solution 1: add the following line at the top of your source file:

%!TEX TS-program = mkiv

Note that in the above you may replace « mkiv » with whatever engine 
name known to your TeXShop installation (for instance « ContextSuite», 
or any other name you have, or (may God forgive both of us…) even « 
latex »…).

When you typeset with ConTeXt, then TeXShop will use the chosen engine.

Solution 2: when your source file is open, you should have, at the top 
of your window, a small menu named « Program ». Click on that menu and 
among the programs (that is the engines) choose the one you want.


Solution 3: open the TeXShop Preferences and in the « Typesetting » 
pane , on the upper left part of the resulting window, choose the 
radio button « Command listed below » and type the name of your 
preferred engine. This method makes a general default, so if you use 
some other typesetting packages for some files you have to modify 
things for those files.


Best regards: OK

On 17 Jan 2016, at 16:56, Jaroslav Hajtmar > wrote:


Hello.
Thanks to Otared and Matthias too for their solutions. Otared's 
method is working, Mathias method unfortunaly not working. ConTeXt is 
already installed on my MacBookAir. I dont know why, but It seems 
that for some reason rsync does not download the first-setup.sh file 
into my installation directory. After I put first-setup.sh file 
manually into install directory and then I run the installation 
script, then everything is all right till the end. At this moment, I 
still struggle with settings an appropriate environment variables so 
that everything worked like on my Windows PC installation. Running at 
(for me) an unfamiliar OS-X it is for me still long run (but 
adventurous) :-).
However installation on my MAC is currently commissioned and 
operational. Thanks for the advices.


Jaroslav Hajtmar



Dne 17.01.16 v 14:38 Otared Kavian napsal(a):

Hello Jaroslav,

Here is what I do on my Mac:

1) While in the Finder, create a folder named Context-standalone

2) Put the attached file « first-setup.sh »  in the folder 
Context-standalone


3) Open Terminal and issue the command

cd [Path-to-the-folder-Context-standalone]

4) Then in Terminal issue the command

ls first-setup.sh

you should see something beginning with:

-rwxr-xr-x

that is the file has an « x » in its or your rights, that is it is 
executable.


If this not the case, using the command below make sure it has that 
right:


chmod +x first-setup.sh

5) Once this is done, issue the command

sh first-setup.sh

6) In principle you should end up with all files necessary for 
Context working in the folder Context-standalone


7) If this is not the case, please report at which step things do 
not work as expected.


Best regards: OK






On 17 Jan 2016, at 14:08, Jaroslav Hajtmar > wrote:


Hello Matthias.
Thank you for the quick response. During installation, no error 
occurs, even seems that rsync copied without error message 
first-setup.sh to my %HOME/context directory. When then I look into 
this directory, then there is no file. Subsequently command sudo sh 
./first-setup.sh reports nonexistent file or directory. I tried to 
install it into your Applications