Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Gerben Wierda
On 02 Mar 2015, at 00:15, Wolfgang Schuster  wrote:

>> 
>> Am 01.03.2015 um 23:16 schrieb Gerben Wierda :
>> 
>> On 01 Mar 2015, at 23:04, Wolfgang Schuster  
>> wrote:
>> 
 
 Am 01.03.2015 um 22:56 schrieb Gerben Wierda :
 
 On 01 Mar 2015, at 11:59, Hans Hagen  wrote:
 
> On 3/1/2015 11:48 AM, Gerben Wierda wrote:
>> I’m trying to migrate to mkiv and I’m running into a host of troubles.
>> Here is one:
>> 
>> publications> wrote a new auxiliary file 'prd_book.aux'
>> This is BibTeX, Version 0.99d (TeX Live 2014)
>> The top-level auxiliary file: prd_book.aux
>> The style file: cont-no.bst
>> I couldn't open database file gwierda.bib
>> ---line 3 of file prd_book.aux
>>  : \bibdata{gwierda
>>  : }
>> 
>> 
>> The reason is that by using this command
>> 
>> (. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)
>> 
>> I may have the latest ConTeXt compiling test.tex (it just adds that to
>> te front of PATH), but I’ve lost access to additions I keep in
>> /usr/local/texlive/texmf-local and ~/Library/texmf)
>> 
>> How do I make sure the standalone ConTeXt gets access to these?
> 
> you can try \usemodule[oldbibtex]
 
 Doesn’t change the problem. It won’t find files outside the standalone 
 ConTeXt tree.
 
 I couldn't open database file gwierda.bib
 ---line 3 of file prd_book.aux
  : \bibdata{gwierda
  : }
>>> 
>>> Where do you have your bib file?
>> 
>> ~/Library/texmf
> 
> The minimals use ~/texmf for the local tex folder.

Can I adapt that in some way, so I can add a few texmfs to the search path? I 
have no problem with adapting a file or setting an environment variable.

G


> 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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Wolfgang Schuster

> Am 01.03.2015 um 23:16 schrieb Gerben Wierda :
> 
> On 01 Mar 2015, at 23:04, Wolfgang Schuster  > wrote:
> 
>>> 
>>> Am 01.03.2015 um 22:56 schrieb Gerben Wierda >> >:
>>> 
>>> On 01 Mar 2015, at 11:59, Hans Hagen mailto:pra...@wxs.nl>> 
>>> wrote:
>>> 
 On 3/1/2015 11:48 AM, Gerben Wierda wrote:
> I’m trying to migrate to mkiv and I’m running into a host of troubles.
> Here is one:
> 
> publications> wrote a new auxiliary file 'prd_book.aux'
> This is BibTeX, Version 0.99d (TeX Live 2014)
> The top-level auxiliary file: prd_book.aux
> The style file: cont-no.bst
> I couldn't open database file gwierda.bib
> ---line 3 of file prd_book.aux
>  : \bibdata{gwierda
>  : }
> 
> 
> The reason is that by using this command
> 
> (. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)
> 
> I may have the latest ConTeXt compiling test.tex (it just adds that to
> te front of PATH), but I’ve lost access to additions I keep in
> /usr/local/texlive/texmf-local and ~/Library/texmf)
> 
> How do I make sure the standalone ConTeXt gets access to these?
 
 you can try \usemodule[oldbibtex]
>>> 
>>> Doesn’t change the problem. It won’t find files outside the standalone 
>>> ConTeXt tree.
>>> 
>>> I couldn't open database file gwierda.bib
>>> ---line 3 of file prd_book.aux
>>>  : \bibdata{gwierda
>>>  : }
>> 
>> Where do you have your bib file?
> 
> ~/Library/texmf

The minimals use ~/texmf for the local tex folder.

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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Gerben Wierda
On 01 Mar 2015, at 23:04, Wolfgang Schuster  wrote:

>> 
>> Am 01.03.2015 um 22:56 schrieb Gerben Wierda :
>> 
>> On 01 Mar 2015, at 11:59, Hans Hagen  wrote:
>> 
>>> On 3/1/2015 11:48 AM, Gerben Wierda wrote:
 I’m trying to migrate to mkiv and I’m running into a host of troubles.
 Here is one:
 
 publications> wrote a new auxiliary file 'prd_book.aux'
 This is BibTeX, Version 0.99d (TeX Live 2014)
 The top-level auxiliary file: prd_book.aux
 The style file: cont-no.bst
 I couldn't open database file gwierda.bib
 ---line 3 of file prd_book.aux
  : \bibdata{gwierda
  : }
 
 
 The reason is that by using this command
 
 (. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)
 
 I may have the latest ConTeXt compiling test.tex (it just adds that to
 te front of PATH), but I’ve lost access to additions I keep in
 /usr/local/texlive/texmf-local and ~/Library/texmf)
 
 How do I make sure the standalone ConTeXt gets access to these?
>>> 
>>> you can try \usemodule[oldbibtex]
>> 
>> Doesn’t change the problem. It won’t find files outside the standalone 
>> ConTeXt tree.
>> 
>> I couldn't open database file gwierda.bib
>> ---line 3 of file prd_book.aux
>>  : \bibdata{gwierda
>>  : }
> 
> Where do you have your bib file?

~/Library/texmf

> 
> 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] \setupnotedefinition in mkiv?

2015-03-01 Thread Wolfgang Schuster

> Am 01.03.2015 um 22:53 schrieb Gerben Wierda :
> 
> What do I replace these mkii command with in mkiv? The first seems to be 
> ignored (all numbering is capital roman) and the others lead to an error 
> message in mkiv
> 
> \setupfootnotes[conversion=set 2,way=bypage,align=flushleft]
> \setupnotedefinition[footnote][indenting={yes,medium}]
> \setupnotedefinition[endnote][indenting={yes,medium},style={\switchtobodyfont[10pt]}]

The new name for \setupnotedefinition is \setupnotation and the counter 
settings have moved from \setupnote to \setupnotation.

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] \setupnotedefinition in mkiv?

2015-03-01 Thread Gerben Wierda
On 01 Mar 2015, at 23:00, Wolfgang Schuster  wrote:

> 
>> Am 01.03.2015 um 22:53 schrieb Gerben Wierda :
>> 
>> What do I replace these mkii command with in mkiv? The first seems to be 
>> ignored (all numbering is capital roman) and the others lead to an error 
>> message in mkiv
>> 
>> \setupfootnotes[conversion=set 2,way=bypage,align=flushleft]
>> \setupnotedefinition[footnote][indenting={yes,medium}]
>> \setupnotedefinition[endnote][indenting={yes,medium},style={\switchtobodyfont[10pt]}]
> 
> The new name for \setupnotedefinition is \setupnotation and the counter 
> settings have moved from \setupnote to \setupnotation.

Thanks,

so this should work?

\setupnotation[footnote][numberconversion=set 
2,way=bypage,align=flushleft,indenting={yes,medium}]
\setupnotation[endnote][numberconversion=numbers,indenting={yes,medium},style={\switchtobodyfont[10pt]}]


> 
> 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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Wolfgang Schuster

> Am 01.03.2015 um 22:56 schrieb Gerben Wierda :
> 
> On 01 Mar 2015, at 11:59, Hans Hagen mailto:pra...@wxs.nl>> 
> wrote:
> 
>> On 3/1/2015 11:48 AM, Gerben Wierda wrote:
>>> I’m trying to migrate to mkiv and I’m running into a host of troubles.
>>> Here is one:
>>> 
>>> publications> wrote a new auxiliary file 'prd_book.aux'
>>> This is BibTeX, Version 0.99d (TeX Live 2014)
>>> The top-level auxiliary file: prd_book.aux
>>> The style file: cont-no.bst
>>> I couldn't open database file gwierda.bib
>>> ---line 3 of file prd_book.aux
>>>  : \bibdata{gwierda
>>>  : }
>>> 
>>> 
>>> The reason is that by using this command
>>> 
>>> (. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)
>>> 
>>> I may have the latest ConTeXt compiling test.tex (it just adds that to
>>> te front of PATH), but I’ve lost access to additions I keep in
>>> /usr/local/texlive/texmf-local and ~/Library/texmf)
>>> 
>>> How do I make sure the standalone ConTeXt gets access to these?
>> 
>> you can try \usemodule[oldbibtex]
> 
> Doesn’t change the problem. It won’t find files outside the standalone 
> ConTeXt tree.
> 
> I couldn't open database file gwierda.bib
> ---line 3 of file prd_book.aux
>  : \bibdata{gwierda
>  : }

Where do you have your bib file?

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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Gerben Wierda
On 01 Mar 2015, at 11:59, Hans Hagen  wrote:

> On 3/1/2015 11:48 AM, Gerben Wierda wrote:
>> I’m trying to migrate to mkiv and I’m running into a host of troubles.
>> Here is one:
>> 
>> publications> wrote a new auxiliary file 'prd_book.aux'
>> This is BibTeX, Version 0.99d (TeX Live 2014)
>> The top-level auxiliary file: prd_book.aux
>> The style file: cont-no.bst
>> I couldn't open database file gwierda.bib
>> ---line 3 of file prd_book.aux
>>  : \bibdata{gwierda
>>  : }
>> 
>> 
>> The reason is that by using this command
>> 
>> (. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)
>> 
>> I may have the latest ConTeXt compiling test.tex (it just adds that to
>> te front of PATH), but I’ve lost access to additions I keep in
>> /usr/local/texlive/texmf-local and ~/Library/texmf)
>> 
>> How do I make sure the standalone ConTeXt gets access to these?
> 
> you can try \usemodule[oldbibtex]

Doesn’t change the problem. It won’t find files outside the standalone ConTeXt 
tree.

I couldn't open database file gwierda.bib
---line 3 of file prd_book.aux
 : \bibdata{gwierda
 : }


G___
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] \setupnotedefinition in mkiv?

2015-03-01 Thread Gerben Wierda
What do I replace these mkii command with in mkiv? The first seems to be 
ignored (all numbering is capital roman) and the others lead to an error 
message in mkiv

\setupfootnotes[conversion=set 2,way=bypage,align=flushleft]
\setupnotedefinition[footnote][indenting={yes,medium}]
\setupnotedefinition[endnote][indenting={yes,medium},style={\switchtobodyfont[10pt]}]

___
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] mkiv and lettrine

2015-03-01 Thread Gerben Wierda
On 01 Mar 2015, at 11:54, Hans Hagen  wrote:

> On 3/1/2015 11:39 AM, Gerben Wierda wrote:
>> Nobody?
>> 
>> On 27 Feb 2015, at 18:01, Gerben Wierda > > wrote:
>> 
>>> I am using lettrine in mkii. I am trying to convert a project to mkiv.
>>> I’d like to use lettrine here too.
>>> 
>>> \usemodule[lettrine]
>>> \setuplettrine[Lines=3,
>>>   Hang=.5,
>>>   Oversize=0,
>>>   Raise=0,
>>>   Findent=0pt,
>>>   Nindent=0em,
>>>   Slope=0em,
>>>   Ante=,
>>>   FontHook=,
>>>   TextFont=\sc,
>>>   Image=no]
>>> 
>>> \lettrine{S}{\kap{\bf uppose we}} have a system
>>> 
>>> What do I have to change for mkiv?
> 
> search for 'initials' (probably on the wiki somewhere)

http://wiki.contextgarden.net/Initials

Halfway down, lettrine for "if you need more options". But the given example 
does not work in mkiv

G

___
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 generation of em dash at the beginning of a line

2015-03-01 Thread Piotr Kopszak
Many Thanks Hans!

But that's not exactly what I need, sorry for being imprecise, I do
not need to repeat hyphens, but only  em dashes (or en dashes, which
ever are used in the document) in situations like this.

Most newspapers — and all that follow AP style — insert a space before
and after the em dash.

It should look like this:

Most newspapers — and all that follow  AP style —
— insert a space before and  after the em dash.

All Best

Piotr

2015-03-01 17:58 GMT+01:00 Hans Hagen :
> On 3/1/2015 5:41 PM, Piotr Kopszak wrote:
>>
>> Hello list,
>>
>> This is probably a Polish idiosyncrasy, but we have to live with it.
>> According to punctuation rules when an em dash is at the end of a
>> line, it should be repeated at the beginning of the next one (true, it
>> is often disregarded due to lack of support for it in typesetting
>> programs). Is there any way to deal with it in ConTeX?
>
>
> \starttext
>
> \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]
>
> \pl \input tufte
>
> \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
> ___



-- 
http://okle.pl
___
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 generation of em dash at the beginning of a line

2015-03-01 Thread Hans Hagen

On 3/1/2015 5:41 PM, Piotr Kopszak wrote:

Hello list,

This is probably a Polish idiosyncrasy, but we have to live with it.
According to punctuation rules when an em dash is at the end of a
line, it should be repeated at the beginning of the next one (true, it
is often disregarded due to lack of support for it in typesetting
programs). Is there any way to deal with it in ConTeX?


\starttext

\setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]

\pl \input tufte

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

[NTG-context] automatic generation of em dash at the beginning of a line

2015-03-01 Thread Piotr Kopszak
Hello list,

This is probably a Polish idiosyncrasy, but we have to live with it.
According to punctuation rules when an em dash is at the end of a
line, it should be repeated at the beginning of the next one (true, it
is often disregarded due to lack of support for it in typesetting
programs). Is there any way to deal with it in ConTeX?

Best

Piotr

-- 
http://okle.pl
___
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] Incompatibility catcodes of characters in ConTeXt and PlainTeX

2015-03-01 Thread Jaroslav Hajtmar

One more thanx Hans for interesting and useful information
Jaroslav Hajtmar

BTW: I did not get an answer to my last mail see Re: [NTG-context] CSV 
scanners built in ConTeXt - feature or bug?
I wrote that now is splitter works properly. I would like to ask if 
you're planning to fix file util-prs.lua in a future release of 
standalone ConTeXt?


As for me, I'd rather vote for as the default option other option, ie 
which does not stop on a blank line ie. not how it's setup now (ie 
personally I'd rather vote  strict=true would mean process all lines of 
CSV file and strict=false mean stop processing on blank line), but I 
will take into account whatever alternative and consequently I would 
take into account this options for my own library.
Alan writes about this behavior as like metapost feature. Personally, I 
think that the CSV file is basically a plain text file and a blank line 
in it has its place. The end of the text file is usually marked by  
character, so I guess there's no reason to terminate processing before 
the file really ends.





Dne 1.3.2015 v 11:05 Hans Hagen napsal(a):

On 3/1/2015 7:24 AM, Jaroslav Hajtmar wrote:

Dne 27.2.2015 v 19:04 Hans Hagen napsal(a):

On 2/27/2015 5:53 PM, Jaroslav Hajtmar wrote:

Hello ConTeXist.
Petr Olsak (maintainer of Czech/Slovak support for TeX) helped me with
simple typing of sign charts. He made a PlainTeX macro who is working
too in ConTeXt (see
http://tex.stackexchange.com/questions/230273/typing-of-math-sign-charts). 




Petr Olsak (not ConTeXt even LaTeX user) was modified PlainTeX 
macro to

work in ConTeXt and asked the question:
"Does anybody know why ConTeXt sets catcode of & to 12? This means 
that

it is incompatible with plain TeX".


Which is imo no big deal.

I did not write that he would give redoing some work, after discovering
that catcode & is different than in plainTEX.



May I therefore ask , what is the reason that has character & catcode
other than in Knuth PlainTeX?
There are catcodes of other characters incompatible?


Because the context table mechanisms don't use & (and never used it)
so ther ei sno reason to make & special. The _ and ^ are also normal
characters. For now we keep the $ for math (and in math mode the & ^ _
work as expected).

Although we're to some extend plain compatible it's not our aim, just
like we're not amstex, latex, lamstex or anytex compatible.


Ok. Thanks for the explanation. I wrote to Peter that developer context
to have a reason, and certainly it would from an ordinary whim not done.
Even so, I am very satisfied with the degree of compatibility.
Practically all of my old PlainTeX macros in ConTeXt work fine.


\pushcatcodetable
\catcodetable\texcatcodes

your plain code

\popcatcodetable

but it doesn't help when sources are passed as arguments of macros 
under the normal regime




Thanx
Jaroslav


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
___ 





___ 



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] mkii to mkiv, setting the fonts for my project

2015-03-01 Thread Wolfgang Schuster

> Am 01.03.2015 um 11:20 schrieb Gerben Wierda :
> 
> I’m trying to get my project from mkii to mkiv. I’m running into a font 
> issue. I’m using the Optima font from OS X on the Mac. My current setup is as 
> added below.  Can someone tell me how to do that in mkiv?
> 
> \usetypescript[serif,sans,mono] [hanging] [normal]
> \starttypescript [sans,serif] [optima] [texnansi,ec]
> \definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack]
> [encoding=\typescriptthree]
> \stoptypescript
> \starttypescript [sans,serif] [optima] [name]
> \setups[font:fallback:\typescriptone]
> \definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular]
> \definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic]
> \definefontsynonym [\typescriptprefix\typescriptone Bold]   [Optima-Bold]
> \definefontsynonym [\typescriptprefix\typescriptone BoldItalic]
> [Optima-BoldItalic]
> \definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack]
> \stoptypescript
> \definetypeface[allsans][rm][serif][optima][default][encoding=texnansi]
> \definetypeface[allsans][ss][sans][optima][default][encoding=texnansi]
> \loadmapfile [gtamacfonts.map]
> \setupbodyfont[allsans,10pt]
> 
> In gtamacfonts.map, I find:
> 
> % Optima
> 
> ec-raw-OptimaRegular Optima-Regular 4  ec-raw-OptimaBold Optima-Bold 4  ec-raw-OptimaBoldItalic Optima-BoldItalic 4  ec-raw-OptimaExtraBlack Optima-ExtraBlack 4  ec-raw-OptimaItalic Optima-Italic 4  
> ts1-OptimaRegular Optima-Regular 4  ts1-OptimaBold Optima-Bold 4  ts1-OptimaBoldItalic Optima-BoldItalic 4  ts1-OptimaExtraBlack Optima-ExtraBlack 4  ts1-OptimaItalic Optima-Italic 4  ts1-OptimaRegular Optima-Regular 4  
> texnansi-OptimaBold Optima-Bold 4 < OptimaBold.ttf texnansi.enc
> texnansi-OptimaBoldItalic Optima-BoldItalic 4 < OptimaBoldItalic.ttf 
> texnansi.enc
> texnansi-OptimaExtraBlack Optima-ExtraBlack 4 < OptimaExtraBlack.ttf 
> texnansi.enc
> texnansi-OptimaItalic Optima-Italic 4 < OptimaItalic.ttf texnansi.enc
> texnansi-OptimaRegular Optima-Regular 4 < OptimaRegular.ttf texnansi.enc


There is no need for a serif font in your document but you should always set a 
math font.

\starttypescript [sans] [optima]
\setups[font:fallback:sans]
\definefontsynonym [Sans]   [file:optima.ttc(Optima Regular)]
\definefontsynonym [SansItalic] [file:optima.ttc(Optima Italic)]
\definefontsynonym [SansBold]   [file:optima.ttc(Optima Bold)]
\definefontsynonym [SansBoldItalic] [file:optima.ttc(Optima Bold 
Italic)]
\stoptypescript

\definetypeface [optima] [ss] [sans] [optima] [default] [features=default]
\definetypeface [optima] [mm] [math] [modern] [default]

\setupbodyfont[optima,10pt]

\starttext
Optima {\it Optima} {\bf Optima} {\bi Optima}
\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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Hans Hagen

On 3/1/2015 11:48 AM, Gerben Wierda wrote:

I’m trying to migrate to mkiv and I’m running into a host of troubles.
Here is one:

publications> wrote a new auxiliary file 'prd_book.aux'
This is BibTeX, Version 0.99d (TeX Live 2014)
The top-level auxiliary file: prd_book.aux
The style file: cont-no.bst
I couldn't open database file gwierda.bib
---line 3 of file prd_book.aux
  : \bibdata{gwierda
  : }


The reason is that by using this command

(. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)

I may have the latest ConTeXt compiling test.tex (it just adds that to
te front of PATH), but I’ve lost access to additions I keep in
/usr/local/texlive/texmf-local and ~/Library/texmf)

How do I make sure the standalone ConTeXt gets access to these?


you can try \usemodule[oldbibtex]


-
  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] mkiv and lettrine

2015-03-01 Thread Hans Hagen

On 3/1/2015 11:39 AM, Gerben Wierda wrote:

Nobody?

On 27 Feb 2015, at 18:01, Gerben Wierda mailto:gerben.wie...@rna.nl>> wrote:


I am using lettrine in mkii. I am trying to convert a project to mkiv.
I’d like to use lettrine here too.

\usemodule[lettrine]
\setuplettrine[Lines=3,
   Hang=.5,
   Oversize=0,
   Raise=0,
   Findent=0pt,
   Nindent=0em,
   Slope=0em,
   Ante=,
   FontHook=,
   TextFont=\sc,
   Image=no]

\lettrine{S}{\kap{\bf uppose we}} have a system

What do I have to change for mkiv?


search for 'initials' (probably on the wiki somewhere) .. from the sources:

%D \starttyping
%D \placeinitial \input ward \par \input ward \par \placeinitial \input 
tufte

%D
%D \setupinitial
%D   [location=text,
%Dn=2,
%Dcolor=darkred,
%Ddistance=-1em,
%Dhoffset=1em,
%Dvoffset=-3ex,
%Dbefore=\blank]
%D
%D \placeinitial \input ward \par \input ward \placeinitial \input tufte

% \setupbodyfont[dejavu,9pt]
%
% \startbuffer
% \setinitial[two]D. E. Knuth   \ignorespaces\input knuth \par
% \setinitial[two]  Knuth   \ignorespaces\input knuth \par
% \setinitial[two] \quotation{D. E. Knuth}  \ignorespaces\input knuth \par
% \setinitial[two] \quotation  {Knuth}  \ignorespaces\input knuth \par
% \setinitial[two]  [text={D.E. Knuth}] \ignorespaces\input knuth \par
% \setinitial[two]   [m=4] D. E. Knuth  \ignorespaces\input knuth \par
% \stopbuffer
%
% \type{m=2}  \start 
\defineinitial[two][m=2,method=none]  \getbuffer \page \stop
% \type{m=1,method=auto}  \start 
\defineinitial[two][m=1,method=auto]  \getbuffer \page \stop
% \type{m=1,method={auto,first,last}} \start 
\defineinitial[two][m=1,method={first,auto,last}] \getbuffer \page \stop




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




--

-
  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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-01 Thread Gerben Wierda
I’m trying to migrate to mkiv and I’m running into a host of troubles. Here is 
one:

publications> wrote a new auxiliary file 'prd_book.aux'
This is BibTeX, Version 0.99d (TeX Live 2014)
The top-level auxiliary file: prd_book.aux
The style file: cont-no.bst
I couldn't open database file gwierda.bib
---line 3 of file prd_book.aux
 : \bibdata{gwierda
 : }


The reason is that by using this command

(. /usr/local/src/ConTeXt/tex/setuptex && context test.tex)

I may have the latest ConTeXt compiling test.tex (it just adds that to te front 
of PATH), but I’ve lost access to additions I keep in 
/usr/local/texlive/texmf-local and ~/Library/texmf)

How do I make sure the standalone ConTeXt gets access to these?

G___
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] mkiv and lettrine

2015-03-01 Thread Gerben Wierda
Nobody?

On 27 Feb 2015, at 18:01, Gerben Wierda  wrote:

> I am using lettrine in mkii. I am trying to convert a project to mkiv. I’d 
> like to use lettrine here too.
> 
> \usemodule[lettrine]
> \setuplettrine[Lines=3,
>Hang=.5,
>Oversize=0,
>Raise=0,
>Findent=0pt,
>Nindent=0em,
>Slope=0em,
>Ante=,
>FontHook=,
>TextFont=\sc,
>Image=no]
> 
> \lettrine{S}{\kap{\bf uppose we}} have a system
> 
> What do I have to change for mkiv?
> ___
> 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] No escape to TeX for inline typing?

2015-03-01 Thread Hans Hagen

On 2/28/2015 2:00 PM, Christoph Reller wrote:


Dear Hans,

Can you please add the above patch, or is there a particular reason
for not
doing so?

Kind regards,

Christoph


I'll add it but there will only be a new beta when Alan and I are 
satisfied about the publication subsystem we're working on.


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] mkii to mkiv, setting the fonts for my project

2015-03-01 Thread Gerben Wierda
I’m trying to get my project from mkii to mkiv. I’m running into a font issue. 
I’m using the Optima font from OS X on the Mac. My current setup is as added 
below.  Can someone tell me how to do that in mkiv?

\usetypescript[serif,sans,mono] [hanging] [normal]
\starttypescript [sans,serif] [optima] [texnansi,ec]
\definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular]
[encoding=\typescriptthree]
\definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic]
[encoding=\typescriptthree]
\definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold]
[encoding=\typescriptthree]
\definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic]
[encoding=\typescriptthree]
\definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack]
[encoding=\typescriptthree]
\stoptypescript
\starttypescript [sans,serif] [optima] [name]
\setups[font:fallback:\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular]
\definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic]
\definefontsynonym [\typescriptprefix\typescriptone Bold]   [Optima-Bold]
\definefontsynonym [\typescriptprefix\typescriptone BoldItalic]
[Optima-BoldItalic]
\definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack]
\stoptypescript
\definetypeface[allsans][rm][serif][optima][default][encoding=texnansi]
\definetypeface[allsans][ss][sans][optima][default][encoding=texnansi]
\loadmapfile [gtamacfonts.map]
\setupbodyfont[allsans,10pt]

In gtamacfonts.map, I find:

% Optima

ec-raw-OptimaRegular Optima-Regular 4 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] siunitx feature in unit module

2015-03-01 Thread Romain Diss
Hi,

> with siunitx LaTeX package its possible to obtain physics units like m/s
> printed in different way changing one option:
> e.g.
> \si{\metre\per\second} produce ms^{-1}
\unit{10 meter inverse second}

> \si[per-mode=symbol]{\metre\per\second} produce m/s
\unit{10 meter per second}

> \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s}
I think it is not possible with \unit{}

All the best.


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

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

Re: [NTG-context] Incompatibility catcodes of characters in ConTeXt and PlainTeX

2015-03-01 Thread Hans Hagen

On 3/1/2015 7:24 AM, Jaroslav Hajtmar wrote:

Dne 27.2.2015 v 19:04 Hans Hagen napsal(a):

On 2/27/2015 5:53 PM, Jaroslav Hajtmar wrote:

Hello ConTeXist.
Petr Olsak (maintainer of Czech/Slovak support for TeX) helped me with
simple typing of sign charts. He made a PlainTeX macro who is working
too in ConTeXt (see
http://tex.stackexchange.com/questions/230273/typing-of-math-sign-charts).


Petr Olsak (not ConTeXt even LaTeX user) was modified PlainTeX macro to
work in ConTeXt and asked the question:
"Does anybody know why ConTeXt sets catcode of & to 12? This means that
it is incompatible with plain TeX".


Which is imo no big deal.

I did not write that he would give redoing some work, after discovering
that catcode & is different than in plainTEX.



May I therefore ask , what is the reason that has character & catcode
other than in Knuth PlainTeX?
There are catcodes of other characters incompatible?


Because the context table mechanisms don't use & (and never used it)
so ther ei sno reason to make & special. The _ and ^ are also normal
characters. For now we keep the $ for math (and in math mode the & ^ _
work as expected).

Although we're to some extend plain compatible it's not our aim, just
like we're not amstex, latex, lamstex or anytex compatible.


Ok. Thanks for the explanation. I wrote to Peter that developer context
to have a reason, and certainly it would from an ordinary whim not done.
Even so, I am very satisfied with the degree of compatibility.
Practically all of my old PlainTeX macros in ConTeXt work fine.


\pushcatcodetable
\catcodetable\texcatcodes

your plain code

\popcatcodetable

but it doesn't help when sources are passed as arguments of macros under 
the normal regime




Thanx
Jaroslav


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
___



___

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
___



--

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