Re: [NTG-context] New mkiv bibliographic engine: bug with “Editor”/“Editors” differentiation (?)

2015-01-26 Thread Jörg Weger

Thanks for the quick reply, so I will update.

Greetings Jörg

On 26.01.2015 11:52, Hans Hagen wrote:

On 1/26/2015 11:07 AM, Jörg Weger wrote:

new bibliographic engine: bug with “Editor”/“Editors” differentiation (?)


There seems to be a bug in the new MkIV bibliographic engine regarding
the differentiation of the “editor” variable into “Editor” (singular)
and “Editors” (plural) from BibTeX.

I have attached a BibTeX file with only two books, one is a “book”
naming one “editor” instead of an “author”, the other is of the
“incollection” type and issued by several editors. In the BibTeX file I
have used the uninverted names combined with “and”. The same bug applies
if you delete all but one editors from the “incollection” example.

In the following MWE I have changed the language to English and the
style to the pure default APA. In English there should be the
differentiation between “(Ed.)” and “(Eds.)” after the name(s) but only
the latter applies.

% === start of MWE =

\setuplanguage [en]

\mainlanguage [en]

\setupbtx[specification=apa]

\definebtxdataset[apa]

\usebtxdataset[apa][150126_testbib_short.bib]

\setbtxdataset[apa]

\definebtxrendering[apa][dataset=apa]

\setupbtxrendering[sorttype=authoryear,numbering=no]


\starttext

\cite[hoffmann:2000]

\cite[sereno:1994] \\

\blank

\placebtxrendering[criterium=text]

\stoptext

% === end of MWE ===

(My ConTeXt version is “2015.01.13 15:54”.)


there has been a singular/plural fix last week


Greetings Jörg


___

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] New mkiv bibliographic engine: bug with “Editor”/“Editors” differentiation (?)

2015-01-26 Thread Hans Hagen

On 1/26/2015 11:07 AM, Jörg Weger wrote:

new bibliographic engine: bug with “Editor”/“Editors” differentiation (?)


There seems to be a bug in the new MkIV bibliographic engine regarding
the differentiation of the “editor” variable into “Editor” (singular)
and “Editors” (plural) from BibTeX.

I have attached a BibTeX file with only two books, one is a “book”
naming one “editor” instead of an “author”, the other is of the
“incollection” type and issued by several editors. In the BibTeX file I
have used the uninverted names combined with “and”. The same bug applies
if you delete all but one editors from the “incollection” example.

In the following MWE I have changed the language to English and the
style to the pure default APA. In English there should be the
differentiation between “(Ed.)” and “(Eds.)” after the name(s) but only
the latter applies.

% === start of MWE =

\setuplanguage [en]

\mainlanguage [en]

\setupbtx[specification=apa]

\definebtxdataset[apa]

\usebtxdataset[apa][150126_testbib_short.bib]

\setbtxdataset[apa]

\definebtxrendering[apa][dataset=apa]

\setupbtxrendering[sorttype=authoryear,numbering=no]


\starttext

\cite[hoffmann:2000]

\cite[sereno:1994] \\

\blank

\placebtxrendering[criterium=text]

\stoptext

% === end of MWE ===

(My ConTeXt version is “2015.01.13 15:54”.)


there has been a singular/plural fix last week


Greetings Jörg


___
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] new beta

2014-12-11 Thread Hans Hagen

Hi,

I uploaded a beta ... there is a new feature (for Alan):

\starttext

\chapter{The never ending story}

\section{An ending story}

\in{chapter}[match(complex bibliographies)]
\in{chapter}[match(never ending)]
\in{chapter}[match(ending)]
\in{chapter}[match(chapter:never ending)]
\in{chapter}[match(chapter:ending)]
\in{section}[match(section:ending)]
\in{figure}[match(float:mess)]
\in{figure}[match(figure:mess)]
\in{figure (not found)}[match(section:mess)]
\in{figure (not found)}[match(section:)]
\in{figure}[match(mess)]

\placefigure{What a mess}{}

\chapter{About complex bibliographies}

\in{chapter}[match(complex bibliographies)]
\in{chapter}[match(never ending)]
\in{figure}[match(mess)]

\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] new beta

2014-12-03 Thread Hans Hagen

Hi,

I uploaded a new beta. This one has some new font code

- the generic code now uses the context code as of 2014-12-01
- that code uses a slightly faster access method
- it works in plain but for latex the wrapper might need to be adjusted 
(as the base pass is now integrated)


The context code uses a newer font handler that has

- more extensive discretionary support (esp kerning and ligatures)
- a new injector (not faster, only cleaner and suitable for the newer 
code) that i have tested for quit a while now


If there are problems they can probably be fixed fast. A side effect can 
be that the result of runs is slightly different (more kerning and so).


I have no clue about performance but it should be ok.

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] new mp feature: eofill

2014-10-18 Thread Hans Hagen

\starttext

\startMPpage

fill
fullcircle scaled 10cm --
fullcircle scaled  8cm --
fullcircle scaled  4cm -- cycle
withcolor red/4
withtransparency (1,.5) ;

currentpicture := currentpicture shifted (-5cm,0) ;

fill
fullcircle scaled 10cm --
reverse fullcircle scaled  8cm --
reverse fullcircle scaled  4cm -- cycle
withcolor green/4
withtransparency (1,.5) ;

currentpicture := currentpicture shifted (-5cm,0) ;

eofill
fullcircle scaled 10cm --
fullcircle scaled  8cm --
fullcircle scaled  4cm -- cycle
withcolor blue/4
withtransparency (1,.5) ;

currentpicture := currentpicture shifted (-5cm,0) ;

\stopMPpage

\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] new mechanism

2014-10-14 Thread Hans Hagen

Hi,

As we needed it for a project, I made this:

\showinjector

\setinjector[register][3][\column]
\setinjector[list][2][{\blank[3*big]}]

\starttext
\placelist[section][criterium=text]
\blank[3*big]
\placeregister[index][criterium=text]
\page
\startsection[title=Alpha] first  \index{first}  \stopsection
\startsection[title=Beta]  second \index{second} \stopsection
\startsection[title=Gamma] third  \index{third}  \stopsection
\startsection[title=Delta] fourth \index{fourth} \stopsection
\stoptext

A typical ugly last-resort hack. Only for auto-generated lists and 
registers. It's in the beta.


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] new beta

2014-09-25 Thread Hans Hagen

Hi,

the first beta after the meeting:

There are some changes to export and epub generation (will be explained 
in a manual). The most important is that there has been some 
improvements of the math export (esp fences and stackers). More will 
follow. The export now happens in a subpath. The epub generation is for 
3.0 and has more options (like --purge, --svgmath and --rename). The svg 
math works quite ok (and is needed because it looks like only firefox 
will support mathml natively).


The grid snapper has a few new methods, min, max and box that can be 
used in cases like


\snaptogrid[min]\hbox{e.g. an image}

The external figure mechanism has a new predefined conversion. One cna 
for instance say:


\setupexternalfigures
  [order={pdf,eps,png,jpg},
   conversion=cmyk.pdf,
   method=auto]

We need it for projects where printing houses use over a decade old rips.

There are probably some more things done but I already forgot about them.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new blank

2014-03-28 Thread Hans Hagen

On 3/28/2014 6:56 AM, Vladimir Lomov wrote:


Seems that linux binaries a bit outdated, I get here:

$ luatex --version | head -n 1
This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)

while on Windows:


luatex --version

This is LuaTeX, Version beta-0.79.0 (TeX Live 2013/W32TeX) (rev 4953)



For the record, this is message that luatex shows on Linux:


luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830: free_error: 
Assertion `p my_prealloc' failed.

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted


luigi, can we see in rev 4746 what's happening there? it might be one of 
these dangling temp pointers (we recently fixed all head.prev pointers 
in the binary)


anyway, time to upgrade your luatex esp as we're going to use new stuff 
pretty soon


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new blank

2014-03-28 Thread luigi scarso
On Fri, Mar 28, 2014 at 10:00 AM, Hans Hagen pra...@wxs.nl wrote:

 On 3/28/2014 6:56 AM, Vladimir Lomov wrote:

  Seems that linux binaries a bit outdated, I get here:

 $ luatex --version | head -n 1
 This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)

 while on Windows:

  luatex --version

 This is LuaTeX, Version beta-0.79.0 (TeX Live 2013/W32TeX) (rev 4953)
 



 For the record, this is message that luatex shows on Linux:

 

 luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830:
 free_error: Assertion `p my_prealloc' failed.

 mtx-context | fatal error: no return code, message: luatex: execution
 interrupted


 luigi, can we see in rev 4746 what's happening there? it might be one of
 these dangling temp pointers (we recently fixed all head.prev pointers in
 the binary)

 ok



-- 
luigi
___
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] new blank

2014-03-28 Thread Jannik Voges
Hi,


I don’t know whether it helps or not, but the same error occurs under Mac OS X 
x86_64 too when I compile the example.


Best wishes

Jannik

Am 28.03.2014 um 06:56 schrieb Vladimir Lomov lomov...@gmail.com:

 Hello,
 ** Hans Hagen [2014-03-27 20:09:55 +0100]:
 
 Hi,
 
 this works ok in the beta
 
 \showmakeup
 
 \starttext
 
 \strut \hfill first line
 \blank[overlay]
 second line \hfill \strut
 
 \ruledvbox {
\strut \hfill line 1
\blank[overlay]
line 2\hfill \strut
\blank[overlay]
\strut \hfill line 3\hfill \strut
 }
 
 \startitemize[n]
\item bla
\item \startitemize[a]
\item bla $\displaystyle\int^{x^{y^4}}$ \item bla
\stopitemize
 \stopitemize
 
 \stoptext
 
 This example causes luatex to core dump on my system: Archlinux x86_64 with
 up-to-date ConTeXt Suite, though this example works fine on Windows x64.
 
 Seems that linux binaries a bit outdated, I get here:
 
 $ luatex --version | head -n 1
 This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)
 
 while on Windows:
 
 luatex --version
 This is LuaTeX, Version beta-0.79.0 (TeX Live 2013/W32TeX) (rev 4953)
 ...
 
 
 For the record, this is message that luatex shows on Linux:
 
 ...
 luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830: free_error: 
 Assertion `p my_prealloc' failed.
 
 mtx-context | fatal error: no return code, message: luatex: execution 
 interrupted
 
 
 ---
 WBR, Vladimir Lomov
 
 -- 
 True happiness will be found only in true love.
 ___
 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] new blank

2014-03-28 Thread Hans Hagen

On 3/28/2014 12:02 PM, Jannik Voges wrote:

Hi,


I don’t know whether it helps or not, but the same error occurs under
Mac OS X x86_64 too when I compile the example.


I have a temporary intercept in the beta now .. one of these days the 
new luatex will also be available for linux/osx anyway.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new blank

2014-03-28 Thread Jannik Voges
The newest beta contains luatex 0.79 for OS X and the example compiles without 
any error. Nice new option and thanks for the fast fix.


Jannik

Am 28.03.2014 um 15:07 schrieb Hans Hagen pra...@wxs.nl:

 On 3/28/2014 12:02 PM, Jannik Voges wrote:
 Hi,
 
 
 I don’t know whether it helps or not, but the same error occurs under
 Mac OS X x86_64 too when I compile the example.
 
 I have a temporary intercept in the beta now .. one of these days the new 
 luatex will also be available for linux/osx anyway.
 
 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
___


[NTG-context] new blank

2014-03-27 Thread Hans Hagen

Hi,

this works ok in the beta

\showmakeup

\starttext

\strut \hfill first line
\blank[overlay]
second line \hfill \strut

\ruledvbox {
\strut \hfill line 1
\blank[overlay]
line 2\hfill \strut
\blank[overlay]
\strut \hfill line 3\hfill \strut
}

\startitemize[n]
\item bla
\item \startitemize[a]
\item bla $\displaystyle\int^{x^{y^4}}$ \item bla
\stopitemize
\stopitemize

\stoptext


(somewhat tricky solution for the reported itemize issue)

-
  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] new blank

2014-03-27 Thread Vladimir Lomov
Hello,
** Hans Hagen [2014-03-27 20:09:55 +0100]:

 Hi,

 this works ok in the beta

 \showmakeup

 \starttext

 \strut \hfill first line
 \blank[overlay]
 second line \hfill \strut

 \ruledvbox {
 \strut \hfill line 1
 \blank[overlay]
 line 2\hfill \strut
 \blank[overlay]
 \strut \hfill line 3\hfill \strut
 }

 \startitemize[n]
 \item bla
 \item \startitemize[a]
 \item bla $\displaystyle\int^{x^{y^4}}$ \item bla
 \stopitemize
 \stopitemize

 \stoptext

This example causes luatex to core dump on my system: Archlinux x86_64 with
up-to-date ConTeXt Suite, though this example works fine on Windows x64.

Seems that linux binaries a bit outdated, I get here:

$ luatex --version | head -n 1
This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)

while on Windows:

 luatex --version
This is LuaTeX, Version beta-0.79.0 (TeX Live 2013/W32TeX) (rev 4953)
...


For the record, this is message that luatex shows on Linux:

...
luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830: free_error: 
Assertion `p my_prealloc' failed.

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted


---
WBR, Vladimir Lomov

-- 
True happiness will be found only in true love.
___
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] new beta

2014-03-07 Thread Hans Hagen

Hi,

I uploaded a new beta. Apart from the usual 'improvements' and a few 
'fulfilled wishes' the main difference is in some optimized register 
generation code: in the crited project we're dealing with tens of 
thousands of different index entries and that gave problems with 
luajittex (first of all a memory issue due to limitations in luajit, 
after that a 20 fold slowdown thanks to poor hashing) but Luigi and I 
were able to sort that out.


If you use luajittex and run into memory issues (indicated by the 
inability to load the tuc file) you can say


\setupregister[index][referencemethod=forward]

given that you never place an index before the entries are defined.

If you use luajittex and it's way too slow, then wait till the updated 
binaries are released. (Or just use luatex).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new beta

2014-03-07 Thread Pablo Rodriguez
On 03/07/2014 12:14 PM, Hans Hagen wrote:
 Hi,
 
 I uploaded a new beta.

Many thanks for it, Hans.

The following sample worked (partially) with previous beta:

\starttext
\startTEXpage[offset=1em]
``---'' `--'
\stopTEXpage
\stoptext

Many thanks for your help,


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

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


Re: [NTG-context] new beta

2014-03-07 Thread Pablo Rodriguez
On 03/07/2014 12:14 PM, Hans Hagen wrote:
 Hi,
 
 I uploaded a new beta.

Hans,

I’m afraid I have just found another two issues in the new beta.

\setupdirections[bidi=on]
\definefontfamily[mainface][serif][FreeSerif]
\setupbodyfont[mainface]
\starttext
\dorecurse{5}{\index{one}A text in \index{one}classical Hebrew : בְּרֵאשִׁ֖ית
בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃​.
\page}
\completeindex
\stoptext

\setupdirections[bidi=on] seems not to work. Removing the command gives
the same results.

The index entries have no space after the comma that separate the pages.

Many thanks for your help,


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

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

Re: [NTG-context] new beta

2014-03-07 Thread Hans Hagen

On 3/7/2014 6:17 PM, Pablo Rodriguez wrote:

On 03/07/2014 12:14 PM, Hans Hagen wrote:

Hi,

I uploaded a new beta.


Hans,

I’m afraid I have just found another two issues in the new beta.

\setupdirections[bidi=on]
\definefontfamily[mainface][serif][FreeSerif]
\setupbodyfont[mainface]
\starttext
\dorecurse{5}{\index{one}A text in \index{one}classical Hebrew : בְּרֵאשִׁ֖ית
בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃​.
\page}
\completeindex
\stoptext


\setvalue{\??registersymbol n}%
  {\def\registerpageseparatorsymbol{,\space}}

\setvalue{\??registersymbol a}%
  {\def\registerpageseparatorsymbol{,\space}} % now done via conversion


-
  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] new beta

2014-03-07 Thread Hans Hagen

On 3/7/2014 6:17 PM, Pablo Rodriguez wrote:

\setupdirections[bidi=on] seems not to work. Removing the command gives
the same results.


indeed, already for a while i think ... buglet introduced during 
optimization a while ago (resulting in not enabling)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] New header

2014-01-23 Thread Fabrice Couvreur
Hi,
I lacked precision in my post, I forgot to say that the header is an idea of
Hans with Metapost.
I would like to have:
p: = textext (\footnotesize \itshape \quad # where \space \endash \space \
time [# d = day, m = month #, # y = year] \quad and

  \ framed [
 width = \hsize,
 height = 5em,
 foregroundstyle = \Large \scshape \bf,
 background = whatever,
 frame = off,
 ]
Thank you.


2014/1/22 Aditya Mahajan adit...@umich.edu

 On Wed, 22 Jan 2014, Fabrice Couvreur wrote:

  Thank you Wolfgang.
 With LuaLaTeX, for my header, I use the commands \footnotesize\itshape
 and \Large\scshape.
 Is there an equivalent with ConTeXt ?


 \setupheader[style={\switchtobodyfont[small]\italic}]
 \setupfooter[style={\switchtobodyfont[big]\smallcaps}]

 You can also try

 style=\itx\setupinterlinespace (or \itxx)

 or

 style=\scb\setupinterlinespace (or \sca \scc etc.)

 See:

 http://wiki.contextgarden.net/Font_Switching
 http://wiki.contextgarden.net/Style_Alternatives


 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
 
 ___



attachment.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] New header

2014-01-22 Thread Fabrice Couvreur
Hi Joshua,
To the right and left but not up and down. I would like margin to 1.5cm on
the right, left, up and down.
Thank you.


2014/1/21 Joshua Krämer joshua.krae...@gmail.com

 Am Tue, 21 Jan 2014 20:02:19 +0100
 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

  I would also fit the dimensions of my papers as I used to do
  (\usepackage [ a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry})
  Thank you.

 There is a wiki page about setting up the page layout:
 http://wiki.contextgarden.net/Layout

 The following sets the space around the type area to 1.5cm:

 \setuplayout
 [
 backspace=1.5cm,
 width=middle,
 topspace=1.5cm,
 height=middle,
 ]
 \showframe % very useful when setting up the layout
 \starttext
 \input{knuth}
 \stoptext

 Kind regards,
 Joshua Krämer



 ___
 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] New header

2014-01-22 Thread Wolfgang Schuster
You have to disable the header and footer by setting the values to 0pt. 

\setuplayout 
  [backspace=15mm,
   width=middle,
   topspace=15mm,
   height=middle,
   header=0pt,
   footer=0pt]

\showframe 

\starttext 
\input knuth
\stoptext


You can also use the fullpage module when you equal margins for your document. 

\usemodule[fullpage][style={margin,empty},margin=15mm] 

\showframe 

\starttext 
\input knuth
\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] New header

2014-01-22 Thread Fabrice Couvreur
Thank you Wolfgang.
With LuaLaTeX, for my header, I use the commands \footnotesize\itshape
and \Large\scshape.
Is there an equivalent with ConTeXt ?


2014/1/22 Wolfgang Schuster schuster.wolfg...@gmail.com

 You have to disable the header and footer by setting the values to 0pt.

 \setuplayout
   [backspace=15mm,
width=middle,
topspace=15mm,
height=middle,
header=0pt,
footer=0pt]

 \showframe

 \starttext
 \input knuth
 \stoptext

 You can also use the fullpage module when you equal margins for your
 document.

 \usemodule[fullpage][style={margin,empty},margin=15mm]

 \showframe

 \starttext
 \input knuth
 \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] New header

2014-01-22 Thread Aditya Mahajan

On Wed, 22 Jan 2014, Fabrice Couvreur wrote:


Thank you Wolfgang.
With LuaLaTeX, for my header, I use the commands \footnotesize\itshape
and \Large\scshape.
Is there an equivalent with ConTeXt ?


\setupheader[style={\switchtobodyfont[small]\italic}]
\setupfooter[style={\switchtobodyfont[big]\smallcaps}]

You can also try

style=\itx\setupinterlinespace (or \itxx)

or

style=\scb\setupinterlinespace (or \sca \scc etc.)

See:

http://wiki.contextgarden.net/Font_Switching
http://wiki.contextgarden.net/Style_Alternatives


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] new interface to simplefonts

2014-01-22 Thread Pablo Rodriguez
Dear list,

using the latest beta from today (ConTeXt - 2014.01.22 01:31) in Linux
32-bit, I cannot get the new simplefonts working.

Here is the sample:

\definefallbackfamily [mainface] [serif] [DejaVu Serif]
[range={greek,extendedgreek},force=yes]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
\input knuth

χαλεπὰ τὰ καλά
\stoptext

But I only get the font LatinModernMath-Regular.

Am I missing something or is this a bug?

Many thanks for your help,


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

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

Re: [NTG-context] new interface to simplefonts

2014-01-22 Thread Wolfgang Schuster
This is a context bug which was probably introduced with the recent 
optimization/speedup for the generation of the font database. As a result of 
this the following fields in the database (which are needed for simplefonts) 
are no longer available:  

- designsize  
- maxsize
- minsize
- pfmweight
- pfmwidth


Also some fonts like “Latin Modern Roman” can’t be loaded anymore because the 
font is no saved as  

  {  
   [cleanfilename]=lmroman10regular,
   [familyname]=lmroman10,
   [filename]=lmroman10-regular.otf,
   [fontname]=lmroman10regular,
   [fontweight]=book,
   [format]=otf,
   [fullname]=lmroman10regular,
   [modification]=1254935040,
   [rawname]=LMRoman10-Regular,
   [style]=normal,
   [variant]=normal,
   [weight]=normal,
   [width]=normal,
  },

but in an older version of the database the entry for the font looked like 
this:  

  {  
   [cleanfilename]=lmroman10regular,
   [designsize]=100,
   [familyname]=latinmodernroman,
   [filename]=lmroman10-regular.otf,
   [fontname]=lmroman10regular,
   [format]=otf,
   [fullname]=lmroman10regular,
   [maxsize]=110,
   [minsize]=95,
   [modification]=1254935040,
   [modifiers]=10regular,
   [pfmweight]=400,
   [pfmwidth]=5,
   [rawname]=LMRoman10-Regular,
   [style]=normal,
   [subfamily]=regular,
   [variant]=normal,
   [weight]=normal,
   [width]=normal,
  },



When you’re in a hurry and can’t wait for this to be fixed you can switch to an 
alternative search method of the fontfamily commands but the results can be 
differ from the default method.  

\definefallbackfamily [mainface] [serif] [DejaVu Serif] 
[alternative=simplefonts,preset=range:greek]  
\definefontfamily [mainface] [serif] [TeX Gyre Pagella] 
[alternative=simplefonts]

\setupbodyfont[mainface]  

\starttext  

\input knuth  

χαλεπὰ τὰ καλά  

\stoptext  

Wolfgang  

On 22.01.2014 21:22:24, Pablo Rodriguez oi...@gmx.es wrote: Dear list,

using the latest beta from today (ConTeXt - 2014.01.22 01:31) in Linux
32-bit, I cannot get the new simplefonts working.

Here is the sample:

\definefallbackfamily [mainface] [serif] [DejaVu Serif]
[range={greek,extendedgreek},force=yes]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
\input knuth

χαλεπὰ τὰ καλά
\stoptext

But I only get the font LatinModernMath-Regular.

Am I missing something or is this a bug?

Many thanks for your help,


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
 ___
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] new interface to simplefonts

2014-01-22 Thread Hans Hagen

On 1/22/2014 10:49 PM, Wolfgang Schuster wrote:

This is a context bug which was probably introduced with the recent
optimization/speedup for the generation of the font database. As a
result of this the following fields in the database (which are needed
for simplefonts) are no longer available:

- designsize
- maxsize
- minsize
- pfmweight
- pfmwidth


indeed these are missing (in fact they are zero) ... we can get pfm* 
back but designsize etc will not be part of the fontloader.info method 
as it involves too much loading (instead one can do a normal open)


so, we fix that part of luatex and in context will use the more complete 
loading method (which is efficient enough for our purpose)


(new beta)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new interface to simplefonts

2014-01-22 Thread Pablo Rodriguez
On 01/23/2014 02:06 AM, Hans Hagen wrote:
 On 1/22/2014 10:49 PM, Wolfgang Schuster wrote:
 This is a context bug which was probably introduced with the recent
 optimization/speedup for the generation of the font database. As a
 result of this the following fields in the database (which are needed
 for simplefonts) are no longer available:

 - designsize
 - maxsize
 - minsize
 - pfmweight
 - pfmwidth
 
 indeed these are missing (in fact they are zero) ... we can get pfm* 
 back but designsize etc will not be part of the fontloader.info method 
 as it involves too much loading (instead one can do a normal open)
 
 so, we fix that part of luatex and in context will use the more complete 
 loading method (which is efficient enough for our purpose)
 
 (new beta)

Many thanks for the quick fix,  Hans.


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

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


[NTG-context] New header

2014-01-21 Thread Fabrice Couvreur
Hello,
Thank you for your reply. I do not understand all of the code, even if I use
MetaPost but with Asymptote.
I would also fit the dimensions of my papers as I used to do (\usepackage [
a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry})
Thank you.


attachment.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] New header

2014-01-21 Thread Joshua Krämer
Am Tue, 21 Jan 2014 20:02:19 +0100
schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 I would also fit the dimensions of my papers as I used to do
 (\usepackage [ a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry})
 Thank you.

There is a wiki page about setting up the page layout:
http://wiki.contextgarden.net/Layout

The following sets the space around the type area to 1.5cm:

\setuplayout
[
backspace=1.5cm,
width=middle,
topspace=1.5cm,
height=middle,
]
\showframe % very useful when setting up the layout
\starttext
\input{knuth}
\stoptext

Kind regards,
Joshua Krämer


___
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] New header

2014-01-20 Thread Hans Hagen

On 1/20/2014 10:34 AM, Fabrice Couvreur wrote:

Hi,
Here is the resulting file with LuaLaTeX.
Thank you.


2014/1/18 Fabrice Couvreur fabrice1.couvr...@gmail.com
mailto:fabrice1.couvr...@gmail.com

Hi,
I use the following header to my statements made with tittlesec
package.

\makeatletter

 \newcommand{\@classe}[1]{}
 \newcommand{\classe}[1]{\gdef\@classe{#1}}
 \newcommand{\@typedevoir}[1]{}
 \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}}
 \newcommand{\@numerodevoir}[1]{}
 \newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}}
 \AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}}
 \titleformat{\section}[frame]
   {\normalfont}
   {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le
\@date\enspace}
   {10pt}
   {\Large\scshape\bfseries\filcenter}
   \makeatother

I want to gradually move to ConTeXt and I tried to create the same
header.
But I do not yet know all the commands to do with ConTeXt.

\setuptextrules
[style=\it,location=top]
\define[6]\MyHeader{%


\textrule[top]{#1\space--\space\date[d=#2,m=#3,y=#4]}{\startlinealignment[middle]{\cap
\bf #5 \space n\high{{o}}\space {#6}}\stoplinealignment\blank\textrule}}

\starttext
\MyHeader{Seconde GTA}{11}{1}{2014}{Devoir de Mathématiques}{7}
\stoptext
Thank you.


an exercise in

- mkvi
- metapost
- framed
- definitions

don't forget to start your tex file with this line:

% macros=mkvi

\starttext

\starttexdefinition MyOtherHeader #where #day #month #year #title 
#number


\defineoverlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatever}

draw OverlayBox withpen pencircle scaled .5pt dashed evenly ;

picture p ; p := 
textext(\it\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad)

shifted .5[ulcorner OverlayBox,urcorner OverlayBox];

fill boundingbox p withcolor white ; draw p ;

setbounds currentpicture to OverlayBox ;

\stopuseMPgraphic

\framed [
width=\hsize,
height=5em,
foregroundstyle=\cap\bf,
background=whatever,
frame=off,
] {
#title
\space
n\high{o}
\space
#number
}

\stoptexdefinition

\MyOtherHeader{Seconde GTA}{11}{1}{2014}{Devoir de Mathématiques}{7}

\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
-
% macros=mkvi

\starttext

\starttexdefinition MyOtherHeader #where #day #month #year #title #number

\defineoverlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatever}

draw OverlayBox withpen pencircle scaled .5pt dashed evenly ;

picture p ; p := textext(\it\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad)
shifted .5[ulcorner OverlayBox,urcorner OverlayBox];

fill boundingbox p withcolor white ; draw p ;

setbounds currentpicture to OverlayBox ;

\stopuseMPgraphic

\framed [
width=\hsize,
height=5em,
foregroundstyle=\cap\bf,
background=whatever,
frame=off,
] {
#title
\space
n\high{o}
\space
#number
}

\stoptexdefinition

\MyOtherHeader{Seconde GTA}{11}{1}{2014}{Devoir de Mathématiques}{7}

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

[NTG-context] New header

2014-01-18 Thread Fabrice Couvreur
Hi,
I use the following header to my statements made with tittlesec package.

\makeatletter

\newcommand{\@classe}[1]{}
\newcommand{\classe}[1]{\gdef\@classe{#1}}
\newcommand{\@typedevoir}[1]{}
\newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}}
\newcommand{\@numerodevoir}[1]{}
\newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}}
\AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}}
\titleformat{\section}[frame]
  {\normalfont}
  {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le
\@date\enspace}
  {10pt}
  {\Large\scshape\bfseries\filcenter}
  \makeatother

I want to gradually move to ConTeXt and I tried to create the same header.
But I do not yet know all the commands to do with ConTeXt.

\setuptextrules
[style=\it,location=top]
\define[6]\MyHeader{%

\textrule[top]{#1\space--\space\date[d=#2,m=#3,y=#4]}{\startlinealignment[middle]{\cap
\bf #5 \space n\high{{o}}\space {#6}}\stoplinealignment\blank\textrule}}

\starttext
\MyHeader{Seconde GTA}{11}{1}{2014}{Devoir de Mathématiques}{7}
\stoptext
Thank you.
___
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] New header

2014-01-18 Thread Wolfgang Schuster

Am 18.01.2014 um 11:52 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 Hi, 
 I use the following header to my statements made with tittlesec package. 
 
 \makeatletter
 
 \newcommand{\@classe}[1]{}
 \newcommand{\classe}[1]{\gdef\@classe{#1}}
 \newcommand{\@typedevoir}[1]{}
 \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}}
 \newcommand{\@numerodevoir}[1]{}
 \newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}}
 \AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}}
 \titleformat{\section}[frame]
   {\normalfont}
   {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le 
 \@date\enspace}
   {10pt}
   {\Large\scshape\bfseries\filcenter}
   \makeatother
 
 I want to gradually move to ConTeXt and I tried to create the same header. 
 But I do not yet know all the commands to do with ConTeXt.

Can you show the output from LaTeX which is more use than some piece of code.

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] New line in cell in Markdown processing? (module t-filter)

2013-11-11 Thread Xan
Hi,

Is there any way to have a multiline cell in markdown while I run ConTeXt with 
t-filter module?

This:

| Activitat | Conceptes | idioma | notes |
|:--|:--|:---|:--|
| [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions 
hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
| [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | 
funció exponencial | anglès | complicat de calcular (per tempteig). no me surt 
la resposta teòria de 29 |
| [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | 
funció exponencial | | |


produces me a very wide table.

Thanks in advance,
Xan.

PS: Please CCme
___
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] New line in cell in Markdown processing? (module t-filter)

2013-11-11 Thread Aditya Mahajan

On Mon, 11 Nov 2013, Xan wrote:


Hi,

Is there any way to have a multiline cell in markdown while I run ConTeXt with 
t-filter module?


Can you please send a complete minimal example?


This:

| Activitat | Conceptes | idioma | notes |
|:--|:--|:---|:--|
| [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions 
hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
| [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | 
funció exponencial | anglès | complicat de calcular (per tempteig). no me surt 
la resposta teòria de 29 |
| [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | 
funció exponencial | | |


produces me a very wide table.


Pandoc uses the old table mechanism for tables. I think that the best way 
forward is to convert a markdown table to a natural table (\bTABLE etc.). 
That will make it much easier to control the layout of the table. But this 
should be raised as a feature request on the pandoc mailing list.


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

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

Re: [NTG-context] New line in cell in Markdown processing? (module t-filter)

2013-11-11 Thread Xan
I know that now:

http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html

On Mon, 11 Nov 2013 15:36:51 +0100
Xan dxpubl...@telefonica.net ha escrit:

 Hi,
 
 Is there any way to have a multiline cell in markdown while I run ConTeXt 
 with t-filter module?
 
 This:
 
 | Activitat | Conceptes | idioma | notes |
 |:--|:--|:---|:--|
 | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions 
 hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
 | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | 
 funció exponencial | anglès | complicat de calcular (per tempteig). no me 
 surt la resposta teòria de 29 |
 | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | 
 funció exponencial | | |
 
 
 produces me a very wide table.
 
 Thanks in advance,
 Xan.
 
 PS: Please CCme
___
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] new mp trickery / next challenge for alan and mari

2013-09-10 Thread Alan BRASLAU
Indeed a challenge!

Alan

On Tue, 10 Sep 2013 18:11:13 +0200
Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 There's now a convenient way to pass data back from an mprun to the
 tex instance:
 
 \starttext
 
 \startMPcode
  passvariable(version,1.0) ;
  passvariable(number,123) ;
  passvariable(string,whatever) ;
  passvariable(point,(1,2)) ;
  passvariable(triplet,(1,2,3)) ;
  passvariable(quad,(1,2,3,4)) ;
  passvariable(boolean,false) ;
  passvariable(path,fullcircle scaled 1cm) ;
 
  draw fullcircle scaled 20pt ;
 \stopMPcode
 
 \ctxlua{inspect(metapost.variables)}
 
 \ctxcommand{mprunvar(number)}
 \ctxcommand{mprunvar(string)}
 
 \stoptext
 
 the inspect shows:
 
 table={
   [boolean]=false,
   [number]=123,
   [path]={
{ 10.02177, 10.02177, 12.67969, 7.36386, 7.36386, 12.67969 },
{ 0, 14.17323, 3.75914, 14.17323, -3.75914, 14.17323 },
{ -10.02177, 10.02177, -7.36386, 12.67969, -12.67969, 7.36386 },
{ -14.17323, 0, -14.17323, 3.75914, -14.17323, -3.75914 },
{ -10.02177, -10.02177, -12.67969, -7.36386, -7.36386, -12.67969 },
{ 0, -14.17323, -3.75914, -14.17323, 3.75914, -14.17323 },
{ 10.02177, -10.02177, 7.36386, -12.67969, 12.67969, -7.36386 },
{ 14.17323, 0, 14.17323, -3.75914, 14.17323, 3.75914 },
   },
   [point]={ 1, 2 },
   [quad]={ 1, 2, 3, 4 },
   [string]=whatever,
   [triplet]={ 1, 2, 3 },
   [version]=1.0,
 }
 
 the mprunvar pips a value or concatination to tex

___
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] new mp trickery / next challenge for alan and mari

2013-09-10 Thread Hans Hagen

Hi,

There's now a convenient way to pass data back from an mprun to the tex 
instance:


\starttext

\startMPcode
passvariable(version,1.0) ;
passvariable(number,123) ;
passvariable(string,whatever) ;
passvariable(point,(1,2)) ;
passvariable(triplet,(1,2,3)) ;
passvariable(quad,(1,2,3,4)) ;
passvariable(boolean,false) ;
passvariable(path,fullcircle scaled 1cm) ;

draw fullcircle scaled 20pt ;
\stopMPcode

\ctxlua{inspect(metapost.variables)}

\ctxcommand{mprunvar(number)}
\ctxcommand{mprunvar(string)}

\stoptext

the inspect shows:

table={
 [boolean]=false,
 [number]=123,
 [path]={
  { 10.02177, 10.02177, 12.67969, 7.36386, 7.36386, 12.67969 },
  { 0, 14.17323, 3.75914, 14.17323, -3.75914, 14.17323 },
  { -10.02177, 10.02177, -7.36386, 12.67969, -12.67969, 7.36386 },
  { -14.17323, 0, -14.17323, 3.75914, -14.17323, -3.75914 },
  { -10.02177, -10.02177, -12.67969, -7.36386, -7.36386, -12.67969 },
  { 0, -14.17323, -3.75914, -14.17323, 3.75914, -14.17323 },
  { 10.02177, -10.02177, 7.36386, -12.67969, 12.67969, -7.36386 },
  { 14.17323, 0, 14.17323, -3.75914, 14.17323, 3.75914 },
 },
 [point]={ 1, 2 },
 [quad]={ 1, 2, 3, 4 },
 [string]=whatever,
 [triplet]={ 1, 2, 3 },
 [version]=1.0,
}

the mprunvar pips a value or concatination to tex


-
  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] new beta luatex error

2013-07-31 Thread Marco Patzer
\starttext
foo
\stoptext

! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' 
(a nil value)
stack traceback:
[string \directlua ]:1: in main chunk.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new beta luatex error

2013-07-31 Thread Hans Hagen

On 7/31/2013 10:56 PM, Marco Patzer wrote:

\starttext
foo
\stoptext

! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' 
(a nil value)
stack traceback:
[string \directlua ]:1: in main chunk.


not here ... maybe spac-ver.lua has not been updated at your end?


-
  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] new beta luatex error

2013-07-31 Thread Marco Patzer
On 2013–07–31 Hans Hagen wrote:

 On 7/31/2013 10:56 PM, Marco Patzer wrote:
 \starttext
 foo
 \stoptext
 
 ! LuaTeX error [string \directlua ]:1: attempt to call field 
 'resetprevdepth' (a nil value)
 stack traceback:
  [string \directlua ]:1: in main chunk.
 
 not here ... maybe spac-ver.lua has not been updated at your end?

No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
defined in spac-ver.lua. The file has not been updated in your zip
(so I assume it's not just me).

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new beta luatex error

2013-07-31 Thread Otared Kavian

On 31 juil. 2013, at 23:43, Marco Patzer home...@lavabit.com wrote:

 On 2013–07–31 Hans Hagen wrote:
 
 On 7/31/2013 10:56 PM, Marco Patzer wrote:
 \starttext
 foo
 \stoptext
 
 ! LuaTeX error [string \directlua ]:1: attempt to call field 
 'resetprevdepth' (a nil value)
 stack traceback:
 [string \directlua ]:1: in main chunk.
 
 not here ... maybe spac-ver.lua has not been updated at your end?
 
 No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
 defined in spac-ver.lua. The file has not been updated in your zip
 (so I assume it's not just me).
 
 Marco

I can confirm this: I get the same error message after updating to the new beta 
(ConTeXt  ver: 2013.07.31 20:23 MKIV beta  fmt: 2013.7.31  int: 
english/english).

Best regards: OK
___
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] new beta luatex error

2013-07-31 Thread Hans Hagen

On 7/31/2013 11:43 PM, Marco Patzer wrote:

On 2013–07–31 Hans Hagen wrote:


On 7/31/2013 10:56 PM, Marco Patzer wrote:

\starttext
foo
\stoptext

! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' 
(a nil value)
stack traceback:
[string \directlua ]:1: in main chunk.


not here ... maybe spac-ver.lua has not been updated at your end?


No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
defined in spac-ver.lua. The file has not been updated in your zip
(so I assume it's not just me).


Ah. I patched only the 'experimental' files on my system (these cannot 
yet be included in the distribution as a newer luatex is needed).


I uploaded a new zip.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new beta

2013-07-17 Thread Hans Hagen

On 7/16/2013 11:12 AM, Steffen Kram wrote:

Hi all,


ligature seems to fail also with beta from 2013.06.10.

But with the latest beta, pages start numbering from 2:

\starttext
\input knuth
\stoptext

Am I the only one hit by this?


I can confirm this, too. Anyone already tracked that down and has a working fix?


i uploaded a beta a few days ago ... so is it still an issue?

-
  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] new beta

2013-07-17 Thread Steffen Kram

Am 17.07.2013 um 12:23 schrieb Hans Hagen pra...@wxs.nl:

 On 7/16/2013 11:12 AM, Steffen Kram wrote:
 Hi all,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
   \starttext
   \input knuth
   \stoptext
 
 Am I the only one hit by this?
 
 I can confirm this, too. Anyone already tracked that down and has a working 
 fix?
 
 i uploaded a beta a few days ago ... so is it still an issue?

It's still the case with the version I downloaded yesterday. An extra-page is 
added after my title-page.

Steffen
___
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] new beta

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 12:23 schrieb Hans Hagen pra...@wxs.nl:

 On 7/16/2013 11:12 AM, Steffen Kram wrote:
 Hi all,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
\starttext
\input knuth
\stoptext
 
 Am I the only one hit by this?
 
 I can confirm this, too. Anyone already tracked that down and has a working 
 fix?
 
 i uploaded a beta a few days ago ... so is it still an issue?

The beta in your server (2013.07.14 14:53) starts at page 1 but the context 
suite
uses a older beta (2013.07.12 19:10) which starts at page 2.

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] new beta

2013-07-16 Thread Steffen Kram
Hi all,

 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
\starttext
\input knuth
\stoptext
 
 Am I the only one hit by this?

I can confirm this, too. Anyone already tracked that down and has a working fix?

Thanks,
Steffen
___
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] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-12, Friday···from: Hans Hagen···

 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I
 develop in a separate branch but it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.

There a copy’n’paste mistake in luatex-basics-nod.lua. See
attached diff.

Best,
Philipp


--- luatex-basics-nod.lua.orig	2013-07-14 10:32:16.197621614 +0200
+++ luatex-basics-nod.lua	2013-07-14 10:32:40.578311602 +0200
@@ -96,8 +96,8 @@
 
 -- experimental
 
-local getfield = node.getfield or function(n,tag)   return n[tag]  end end
-local setfield = node.setfield or function(n,tag,value) n[tag] = value end end
+local getfield = node.getfield or function(n,tag)   return n[tag]  end
+local setfield = node.setfield or function(n,tag,value) n[tag] = value end
 
 nodes.getfield = getfield
 nodes.setfield = setfield


pgp288EEq6k86.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-12, Friday···from: Hans Hagen···

  it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.

Unhappily, it does. In the generic font loader the new “nuts”
table is a synonym for “nodes”, but it would appear that it is
also required to contain certain functions from the builtin
“node” namespace, e.g. node.copy(), node.tail() and the likes.

Failing example with ligatures:

\font\foo=file:Iwona-Regular.otf:mode=node;+liga
\foo
ffi
\bye

Best,
Philipp



pgpUIjlYwIo0Y.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new beta

2013-07-14 Thread Pablo Rodríguez
On 14/07/13 10:53, Philipp Gesang wrote:
 ···date: 2013-07-12, Friday···from: Hans Hagen···
 
  it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.
 [...]
 Failing example with ligatures:
 
 \font\foo=file:Iwona-Regular.otf:mode=node;+liga
 \foo
 ffi
 \bye

Hi Philipp,

ligature seems to fail also with beta from 2013.06.10.

But with the latest beta, pages start numbering from 2:

\starttext
\input knuth
\stoptext

Am I the only one hit by this?

Thanks,


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

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


Re: [NTG-context] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-14, Sunday···from: Pablo Rodríguez···

 On 14/07/13 10:53, Philipp Gesang wrote:
  ···date: 2013-07-12, Friday···from: Hans Hagen···
  
   it might be that some changes are
  reflected in the betas, and hopefully not breaking anything.
  [...]
  Failing example with ligatures:
  
  \font\foo=file:Iwona-Regular.otf:mode=node;+liga
  \foo
  ffi
  \bye
 
 Hi Philipp,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
 \starttext
 \input knuth
 \stoptext
 
 Am I the only one hit by this?

Nope, can confirm.

Best,
Philipp

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


pgpkaPqEr8vMR.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-14, Sunday···from: Philipp Gesang···

 ···date: 2013-07-12, Friday···from: Hans Hagen···
 
   it might be that some changes are
  reflected in the betas, and hopefully not breaking anything.
 
 Unhappily, it does. In the generic font loader the new “nuts”
 table is a synonym for “nodes”, but it would appear that it is
 also required to contain certain functions from the builtin
 “node” namespace, e.g. node.copy(), node.tail() and the likes.
 
 Failing example with ligatures:
 
 \font\foo=file:Iwona-Regular.otf:mode=node;+liga
 \foo
 ffi
 \bye
 

Thanks for the fix. Have fun “going nuts”, then!

Best,
Philipp




pgpaGBTRyexoe.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new beta

2013-07-14 Thread Hans Hagen

On 7/14/2013 10:37 AM, Philipp Gesang wrote:

···date: 2013-07-12, Friday···from: Hans Hagen···


Hi,

I uploaded a beta. There are not that many changes. Currently I
develop in a separate branch but it might be that some changes are
reflected in the betas, and hopefully not breaking anything.


There a copy’n’paste mistake in luatex-basics-nod.lua. See
attached diff.


that's one of the things i'm working on ... just don't update your latex 
derived files for a while; i'm going to add some experimental that will 
work ok, but might need more time for generic to work too (lower 
priority) ... after all, it's beta and not meant to be used in stable tl 
2013


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new beta

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 03:57, Otared Kavian wrote:
 On 12 juil. 2013, at 20:06, Aditya Mahajan adit...@umich.edu wrote:
 On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
 On 12/07/13 19:21, Hans Hagen wrote:
 Hi,

 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.

 Thanks for the new beta, Hans.

 For me first-setup.sh still downloads the 2013.06.10.
 
 This is also my case: has something changed in first-setup.sh? 

I didn’t check that after downloading the new beta from yesterday.

first-setup.sh has just downloaded ConTeXt - 2013.06.10 22:51.


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

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


[NTG-context] new beta

2013-07-12 Thread Hans Hagen

Hi,

I uploaded a beta. There are not that many changes. Currently I develop 
in a separate branch but it might be that some changes are reflected in 
the betas, and hopefully not breaking anything.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new beta

2013-07-12 Thread Pablo Rodríguez
On 12/07/13 19:21, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I develop 
 in a separate branch but it might be that some changes are reflected in 
 the betas, and hopefully not breaking anything.

Thanks for the new beta, Hans.

Could the two bugs with compressed linenotes be fixed? ()

Many thanks for your help,



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

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


Re: [NTG-context] new beta

2013-07-12 Thread Aditya Mahajan

On Fri, 12 Jul 2013, Pablo Rodríguez wrote:


On 12/07/13 19:21, Hans Hagen wrote:

Hi,

I uploaded a beta. There are not that many changes. Currently I develop
in a separate branch but it might be that some changes are reflected in
the betas, and hopefully not breaking anything.


Thanks for the new beta, Hans.


For me first-setup.sh still downloads the 2013.06.10.

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

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

Re: [NTG-context] new beta

2013-07-12 Thread Otared Kavian

On 12 juil. 2013, at 20:06, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
 
 On 12/07/13 19:21, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.
 
 Thanks for the new beta, Hans.
 
 For me first-setup.sh still downloads the 2013.06.10.

This is also my case: has something changed in first-setup.sh? 
___
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] New font (rival to Taco's cowfont?)

2013-05-17 Thread Alan BRASLAU
http://nekofont.upat.jp/

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] New font (rival to Taco's cowfont?)

2013-05-17 Thread Arthur Reutenauer
 http://nekofont.upat.jp/

  At some point, people will have to stop the madness about cute cats ;-)

Arthur
___
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] New font (rival to Taco's cowfont?)

2013-05-17 Thread Mica Semrick
Alan,

This is clearly the greatest font ever, thank you!

-Mica


On Fri, May 17, 2013 at 6:44 AM, Arthur Reutenauer 
arthur.reutena...@normalesup.org wrote:

  http://nekofont.upat.jp/

   At some point, people will have to stop the madness about cute cats ;-)

 Arthur

 ___
 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] New user of ConTeXt

2013-04-15 Thread Aditya Mahajan

On Wed, 10 Apr 2013, Tristan Lorino wrote:

\starttext

\setMPtext {1} {C'est le titre}
\startMPcode
pickup pencircle scaled .5mm ;
pair a; a :=(0.2cm,.5cm);
label.rt(\MPtext {1},a);


In MkIV, this should be label.rt(btex \MPtext{1} etex, a);
In MkII, you'd have to use label.rt(texttext(\MPtext{1}), a);

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

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


Re: [NTG-context] new beta

2013-04-11 Thread Otared Kavian

On 10 avr. 2013, at 20:09, Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 An extra chapter in:
 
 http://www.pragma-ade.nl/general/manuals/about.pdf
 
 explaining abit the updated math fractions (and math styles mechanism).

Hi Hans,

Thanks for the explanations given in the above new manual about the new 
features with fractions and fences. 

However, on page 27, there is a sentence which I disagree with… 
You say there:
 « ConTEXt is always considered somewhat less math savvy than for instance 
LaTEX », 
but actually I cannot see any example of maths typesetting which cannot be done 
in ConTeXt. 
It is true that most mathematicians may not use ConTeXt, but this is because 
they are not aware of the package and, mainly, because maths journals do not 
accept yet papers typeset with ConTeXt. I hope this will change soon.

Best regards: OK
___
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] new beta

2013-04-11 Thread luigi scarso
On Thu, Apr 11, 2013 at 6:25 PM, Otared Kavian ota...@gmail.com wrote:
 However, on page 27, there is a sentence which I disagree with…
 You say there:
  « ConTEXt is always considered somewhat less math savvy than for instance 
 LaTEX »,
 but actually I cannot see any example of maths typesetting which cannot be 
 done in ConTeXt.
 It is true that most mathematicians may not use ConTeXt, but this is because 
 they are not aware of the package and, mainly, because maths journals do not 
 accept yet papers typeset with ConTeXt. I hope this will change soon.
It's true that  ConTEXt is always  considered less math savy than LaTeX
not that ConTEXt is  less math savy than LaTeX.

--
luigi
___
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] new manual

2013-04-11 Thread Giulio Bertellini
HI,
just downloaded the beautiful fonts-MKIV manual onto my Android 7 tablet
(inexpensive Samsung) and it displays quite well both with Adobe Reader and
the Kindle reader.  with Adobe reader all hyperlinks work great and there
is no comparison to the Kindle as a pdf reader. Kindle is nice for reading
and navigating through pages with horizontal scrolling, but you loose all
cross-links and hyperlinks.

Congratulations for the great work.

giulio


On Tue, Apr 2, 2013 at 9:36 PM, Willi Egger cont...@boede.nl wrote:

 Hi,

 I just downloaded this beautiful manual. Great pleasure to look at, nice
 design and it contains oh so much information although it is not finished!

 Thank you very much Hans

 Willi
 On Mar 27, 2013, at 1:38 PM, Hans Hagen wrote:

  Hi,
 
  I uploaded a work-in-progress manual:
 
  http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf
 
  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] new beta

2013-04-11 Thread Peter Münster
On Thu, Apr 11 2013, luigi scarso wrote:

 It's true that  ConTEXt is always  considered less math savy than LaTeX
 not that ConTEXt is  less math savy than LaTeX.

Perhaps better: always - often ?

-- 
   Peter
___
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] new beta

2013-04-11 Thread Hans Hagen

On 4/11/2013 10:15 PM, Peter Münster wrote:

On Thu, Apr 11 2013, luigi scarso wrote:


It's true that  ConTEXt is always  considered less math savy than LaTeX
not that ConTEXt is  less math savy than LaTeX.


Perhaps better: always - often ?


Ok.

Concerning math ... in many aspects the functionality of mkii is 
available in mkiv, but the implementation is often completely different, 
which makes that we can go a step further in control.


Years ago, when he was involved in scientific publishing, Taco made sure 
that mkii had most of the features needed to deal with advanced math (at 
that time via a module that implemented some ams constructs). Eventually 
that code was normalized, extended and integrated into the Later Aditya 
added support for ams-like code too.


In mkiv nearly all had been or will be redone. Some of the accumulated 
implementation details are quite interesting (compared to the 
traditional approach) so I might wrap that up some day in a larger 
summary (chapter). I uploaded the latest hybrid.pdf to the website which 
has some explanations and I'll try to keep wrapping up in future 
chapters if About (and other documents).


If you feel that something fundamental is missing, don't hesitate to 
mention it. (Many math sub-mechanisms are relatively independent so 
adding code has not much change of breaking existing code.)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new manual

2013-04-11 Thread Vyatcheslav Y.
Thank you for this new manual! |

Should try it on my Nook reader )

Vyatcheslav
___
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] New user of ConTeXt

2013-04-10 Thread Tristan Lorino
Hi,

I'm beginning with ConTeXt.
With the code below, the outpout pdf file shows space symbols between the three 
words of the title (cf. attached file):

 
\setupbodyfont[11pt]
\enableregime[utf-8]
\mainlanguage[fr]
\starttext

\setMPtext {1} {C'est le titre}
\startMPcode
pickup pencircle scaled .5mm ;
pair a; a :=(0.2cm,.5cm);
label.rt(\MPtext {1},a);
  draw (0cm,0cm)--(8cm,0cm); 
  draw (8cm,0cm)..(8.15cm,0.08cm)..(8.2cm,0.18cm); 
  draw (8.2cm,0.18cm)--(8.7cm,1.7cm); 
 \stopMPcode
 
\stoptext
 

How can I avoid these symbols?

Thanks for your help,
Tristan lorino


-- 
Ifsttar - Nantes
Département « Aménagement, mobilités et environnement »
Laboratoire « Environnement, acoustique, sécurité et éco-conception »
Route de Bouaye CS4
44344 BOUGUENAIS Cedex
Tél. +33 (0)2 40 84 56 18
Fax  +33 (0)2 40 84 59 92



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

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

Re: [NTG-context] New user of ConTeXt

2013-04-10 Thread H. Özoguz

Am 10.04.2013 15:29, schrieb ntg-context-requ...@ntg.nl:

\setupbodyfont[11pt]
\enableregime[utf-8]
\mainlanguage[fr]
\starttext

\setMPtext {1} {C'est le titre}
\startMPcode
pickup pencircle scaled .5mm ;
pair a; a :=(0.2cm,.5cm);
label.rt(\MPtext {1},a);
   draw (0cm,0cm)--(8cm,0cm);
   draw (8cm,0cm)..(8.15cm,0.08cm)..(8.2cm,0.18cm);
   draw (8.2cm,0.18cm)--(8.7cm,1.7cm);
  \stopMPcode
  
\stoptext



How can I avoid these symbols?

Thanks for your help,
Tristan lorino


Here your code does not generate these space-symbols, maybe an editor-issue?

Huseyin
___
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] New user of ConTeXt

2013-04-10 Thread Marco Patzer
On 2013–04–10 Tristan Lorino wrote:

 I'm beginning with ConTeXt.

You probably compiled your document with texexec. That means you are
using an old, but still supported, version of ConTeXt called MkII.
You can make you life easier if you use the newer version MkIV
instead. Just compile with

  context somefile.tex

instead of texexec. And you can skip the \enableregime line.

  
 […]
  
 
 How can I avoid these symbols?

If you use MkIV, those symbols don't show up. I don't know why they
are visible with MkII.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] New user of ConTeXt

2013-04-10 Thread Hans Hagen

On 4/10/2013 3:50 PM, Marco Patzer wrote:


If you use MkIV, those symbols don't show up. I don't know why they
are visible with MkII.


because in the old fonts there's a visual space in slot 32

-
  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] New user of ConTeXt

2013-04-10 Thread Tristan Lorino
Thanks.
I'm on Mac (10.8.3), with TeXLive (MacTeX 2012).
I compile with Context through TeXShop: the log is

This is pdfTeX, version 3.1415926-2.4-1.40.13 (TeX Live 2012)
...
ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.6.30

I don't know how to get MKIV instead of MKII.
Thanks again for your help.

Tristan

- Mail original -
 De: Hans Hagen pra...@wxs.nl
 À: ntg-context@ntg.nl
 Envoyé: Mercredi 10 Avril 2013 16:15:46
 Objet: Re: [NTG-context] New user of ConTeXt
 
 because in the old fonts there's a visual space in slot 32
 

-- 
Ifsttar - Nantes
Département « Aménagement, mobilités et environnement »
Laboratoire « Environnement, acoustique, sécurité et éco-conception »
Route de Bouaye CS4
44344 BOUGUENAIS Cedex
Tél. +33 (0)2 40 84 56 18
Fax  +33 (0)2 40 84 59 92

___
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] New user of ConTeXt

2013-04-10 Thread hwitloc

  You already have MKIV (probably)
  As already mentioned, just type   context instead of texexec as the 
command.
 
  $  context   name-of-your-tex-file.tex

  I to had to learn that texexec is the script invoking MKII and that 
context is
  the script that invokes MKIV.  But both are usually included in a 
distribution I believe.



Tristan Lorino tristan.lor...@ifsttar.fr wrote:
 Thanks.
 I'm on Mac (10.8.3), with TeXLive (MacTeX 2012).
 I compile with Context through TeXShop: the log is
 
 This is pdfTeX, version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 ...
 ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.6.30
 
 I don't know how to get MKIV instead of MKII.
 Thanks again for your help.
 
 Tristan
 
___
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] New user of ConTeXt

2013-04-10 Thread Otared Kavian
Hi Tristan,

If you ar eusing TeXLive and TeXShop on a Mac, when typesetting you should use 
a different engine than the one you use now.
To do so, pay attention to menu on the top of you source file, to th eright of 
the « Typeset » button: there it is indicated which engine you are going to use 
when you typeset. Try the engine « ConTeXt (LuaTeX) ».

Another solution is to install the stand alone version of ConTeXt.

Best regards: OK

On 10 avr. 2013, at 16:29, Tristan Lorino tristan.lor...@ifsttar.fr wrote:

 Thanks.
 I'm on Mac (10.8.3), with TeXLive (MacTeX 2012).
 I compile with Context through TeXShop: the log is
 
 This is pdfTeX, version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 ...
 ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.6.30
 
 I don't know how to get MKIV instead of MKII.
 Thanks again for your help.
 
 Tristan
 
 - Mail original -
 De: Hans Hagen pra...@wxs.nl
 À: ntg-context@ntg.nl
 Envoyé: Mercredi 10 Avril 2013 16:15:46
 Objet: Re: [NTG-context] New user of ConTeXt
 
 because in the old fonts there's a visual space in slot 32
 
 
 -- 
 Ifsttar - Nantes
 Département « Aménagement, mobilités et environnement »
 Laboratoire « Environnement, acoustique, sécurité et éco-conception »
 Route de Bouaye CS4
 44344 BOUGUENAIS Cedex
 Tél. +33 (0)2 40 84 56 18
 Fax  +33 (0)2 40 84 59 92
 
 ___
 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] new beta

2013-04-10 Thread Hans Hagen

Hi,

An extra chapter in:

http://www.pragma-ade.nl/general/manuals/about.pdf

explaining abit the updated math fractions (and math styles mechanism).

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new manual

2013-04-02 Thread Willi Egger
Hi,

I just downloaded this beautiful manual. Great pleasure to look at, nice design 
and it contains oh so much information although it is not finished!

Thank you very much Hans

Willi
On Mar 27, 2013, at 1:38 PM, Hans Hagen wrote:

 Hi,
 
 I uploaded a work-in-progress manual:
 
 http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf
 
 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
___


[NTG-context] new beta

2013-03-28 Thread Hans Hagen

Hi,

The uploaded beta has marco's ugs fixed (minus one) plus some (less 
important) pending issues in test files. The main change is that the 
root setup commands of enumerations, notes, formulas, floats, etc can 
now be used to set up the counters (was only possible by explicit setups 
e.g. per float).


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] new manual

2013-03-27 Thread Hans Hagen

Hi,

I uploaded a work-in-progress manual:

http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new manual

2013-03-27 Thread Mikael Morin
Hi,

Le 27/03/2013 13:38, Hans Hagen a écrit :
 I uploaded a work-in-progress manual:
 
 http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf
 
There seems to be a problem with the typesetting of primes (on page 104)
regarding multiple primes, more exactly regarding \utfchar{0x...}

Mikael
___
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] new manual

2013-03-27 Thread Marcin Borkowski
Dnia 2013-03-27, o godz. 13:38:50
Hans Hagen pra...@wxs.nl napisał(a):

 Hi,
 
 I uploaded a work-in-progress manual:
 
 http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf

I have to say that I am *very* impressed.

1. Aesthetically, this seems to be the most beautiful of ConTeXt
manuals.

2. I've only read half a page, but the style also seems to be very nice
- the introduction was just great.

3. From the number of pages and the table of contents I assume that
I'll be able to learn a lot about fonts from this - and that's great!

Now the file has been sent to my Kindle, and the only thing I'm afraid
of is the reading experience on 6...  Hans, I know that you don't like
(today's) ebook readers, but what about preparing a version with larger
fonts/smaller margins for us Kindle users?  Given the typographical
quality of most Kindle ebooks, you may assume that when we read on
a Kindle, we don't care too much about aesthetics (which, btw, is
incomprehensible for me: the technology to typeset text automatically
in an (at least) decent way (including hyphenation) has been around for
some 30 years, and yet they didn't manage to do it right...), so you
might just change a few things in \setuplayout etc. and throw it into
the net...

 Hans

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] new manual

2013-03-27 Thread Hans Hagen

On 3/27/2013 9:15 PM, Marcin Borkowski wrote:


Now the file has been sent to my Kindle, and the only thing I'm afraid
of is the reading experience on 6...  Hans, I know that you don't like
(today's) ebook readers, but what about preparing a version with larger
fonts/smaller margins for us Kindle users?  Given the typographical
quality of most Kindle ebooks, you may assume that when we read on
a Kindle, we don't care too much about aesthetics (which, btw, is
incomprehensible for me: the technology to typeset text automatically
in an (at least) decent way (including hyphenation) has been around for
some 30 years, and yet they didn't manage to do it right...), so you
might just change a few things in \setuplayout etc. and throw it into
the net...


i fear that the resolution is not good enough for the examples ... we 
would need real narrow tt and very small examples


(i did consider an electronic version but lack time now)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new manual

2013-03-27 Thread Hans Hagen

On 3/27/2013 8:54 PM, Mikael Morin wrote:

Hi,

Le 27/03/2013 13:38, Hans Hagen a écrit :

I uploaded a work-in-progress manual:

http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf


There seems to be a problem with the typesetting of primes (on page 104)
regarding multiple primes, more exactly regarding \utfchar{0x...}


fixed in next upload ... somehow spacing is suboptimal in xits (it looks 
better in cambria, lm and pagella)


Hns

-
  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] new trickery

2013-03-15 Thread Hans Hagen

On 3/15/2013 3:08 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:

Hi Hans,

This is interesting, because I was thinking about this issue this past
weak, and was planning to send a test file:

On Thu, 14 Mar 2013 17:39:50 -0600, Hans Hagen pra...@wxs.nl wrote:


There is a new experimental feature and (at least for now) it's also
called \feature (maybe not the best name).


\stack might be better, for the following reason:


hm, one problem with such nice names is that they might be in use in 
user definitions



 Many fonts have language dependent features. There are also features
that one only wants to enable in small text snippets. For this we have
\addff etc but these don't accumulate.


We used to have \addfs{feature} and \subfs{feature}, meaning add
feature to the stack and subtract feature from the stack. But those
have been broken for a very long time.


afaik they're not broken but they don't stack up, only the last one 
counts (for a good technical reasons)



To round it off I guess we need a replacement for \subfs as well.


that can be done by defining the proper 'reset' features (see demo 
code), keep in mind that when feature switches are in macros one never 
really knows what is 'current' so it's already quite fuzzy; of course we 
can think of a negate option (i.e. use the negation of a feature set but 
that can be dangerous as when features inherit one doesn't want to 
disable kerning (for instance)



Thanks for this wonderful new feature (pun intended) and


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen

On 3/15/2013 5:18 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:

On Thu, 14 Mar 2013 20:08:38 -0600, Idris Samawi Hamid ادريس   سماوي
حامد isha...@colostate.edu wrote:


To round it off I guess we need a replacement for \subfs as well.


Hmm, it seems that \subfs functionality is built in through the same
mechanism. Will study this some more...


yes, but there in successive calls the last one counts

\addff{x} \addff{y} \addff{z}  - z is used on top of the current font's 
set


\feature{x} \feature{y} \feature{y} - all are used on top

we might end up with replacing \addff etc by one mechanisms

\feature{+someset} : add
\feature{-someset} : subtract
\feature{=someset} : replace

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen

On 3/15/2013 5:18 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:

On Thu, 14 Mar 2013 20:08:38 -0600, Idris Samawi Hamid ادريس   سماوي
حامد isha...@colostate.edu wrote:


To round it off I guess we need a replacement for \subfs as well.


Hmm, it seems that \subfs functionality is built in through the same
mechanism. Will study this some more...


a new beta, this time with:

\setupbodyfont[pagella]

\starttext

\definefontfeature[f:smallcaps][smcp=yes]
\definefontfeature[f:nocaps]   [smcp=no]
\definefontfeature[f:oldstyle] [onum=yes]
\definefontfeature[f:newstyle] [onum=no]

% \enabletrackers[fonts.features]

\startTEXpage[offset=10pt]
\start
fijn fietsen 123
\type{[+os]}\feature{f:oldstyle}
fijn fietsen 123
\type{[+sc]}\feature{f:smallcaps}
fijn fietsen 123
\type{[+ns]}\feature{f:newstyle}
fijn fietsen 123
\type{[+nc]}\feature{f:nocaps}
fijn fietsen 123
\stop
\par
\start
fijn fietsen 123
\type{[+os]}\addfeature{f:oldstyle}
fijn fietsen 123
\type{[+sc]}\addfeature{f:smallcaps}
fijn fietsen 123
\type{[-os]}\subtractfeature{f:oldstyle}
fijn fietsen 123
\type{[-sc]}\subtractfeature{f:smallcaps}
fijn fietsen 123
\stop
\par
\start
fijn fietsen 123
\type{[+os]}\addfeature{f:oldstyle}
fijn fietsen 123
\type{[+sc]}\addfeature{f:smallcaps}
fijn fietsen 123
\type{[=os]}\replacefeature{f:oldstyle}
fijn fietsen 123
\type{[=sc]}\replacefeature{f:smallcaps}
fijn fietsen 123
\stop
\par
\start
fijn fietsen 123
\type{[+os]}\addfeature[f:oldstyle]
fijn fietsen 123
\type{[+sc]}\addfeature[f:smallcaps]
fijn fietsen 123
\type{[reset]}\resetfeature
fijn fietsen 123
\type{[+os]}\addfeature[f:oldstyle]
fijn fietsen 123
\type{[+sc]}\addfeature[f:smallcaps]
fijn fietsen 123
\stop
\stopTEXpage

\stoptext
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new trickery

2013-03-15 Thread Jonathan Barchi
On Fri, Mar 15, 2013 at 4:35 AM, Hans Hagen pra...@wxs.nl wrote:
 On 3/15/2013 5:18 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:

 On Thu, 14 Mar 2013 20:08:38 -0600, Idris Samawi Hamid ادريس   سماوي
 حامد isha...@colostate.edu wrote:

 To round it off I guess we need a replacement for \subfs as well.


 Hmm, it seems that \subfs functionality is built in through the same
 mechanism. Will study this some more...


 yes, but there in successive calls the last one counts

 \addff{x} \addff{y} \addff{z}  - z is used on top of the current font's set

 \feature{x} \feature{y} \feature{y} - all are used on top

 we might end up with replacing \addff etc by one mechanisms

 \feature{+someset} : add
 \feature{-someset} : subtract
 \feature{=someset} : replace


I like this proposal for its use of only a single command with the
add/remove/reset in the args. If \feature ends up being too generic,
maybe \fontfeature or \fontfeatureset instead?

To keep things more in-line with current ConTeXt syntax, you could do
something like the following:

\feature{add=foo}
\feature{subtract=bar}(or sub, remove, etc.)
\feature{reset,add=baz}

Which would also allow, e.g.,

\feature{add=bar,remove=baz}

similar to how we're used to using key:value pairs in so many
arguments, and being able to combine them in one function call.

Jon


 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
___

Re: [NTG-context] new trickery

2013-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد

On Fri, 15 Mar 2013 05:07:02 -0600, Hans Hagen pra...@wxs.nl wrote:


\start
fijn fietsen 123
\type{[+os]}\addfeature{f:oldstyle}
fijn fietsen 123
\type{[+sc]}\addfeature{f:smallcaps}
fijn fietsen 123
\type{[=os]}\replacefeature{f:oldstyle}
fijn fietsen 123
\type{[=sc]}\replacefeature{f:smallcaps}
fijn fietsen 123
\stop


So I hope I have this right:

\addfeature adds a set of features {feature1,feature2,...featureN}  
to the currently defined/enabled stack of OT features


\subtractfeature subtracts a set of features from the currently  
defined/enabled stack


These two seem clear enough. I'm not so clear on the next one:

\replacefeature replaces all the _added_ features (not the default ones  
defined, e.g., in the typescripts I presume) with only those in the  
argument of \replacefeature. Is that right?


\resetfeature pops all features added to the stack (again, I'm assuming  
this does not include the default ones defined, e.g., in the typescripts).


Question: Does/Will this mechanism completely replace \addff et al, or  
will these mechanism ignore each other (e.g., \resetfeature does not pop  
those defined by \addff).


Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] new trickery

2013-03-15 Thread Hans Hagen

On 3/15/2013 7:11 PM, Idris Samawi Hamid ادريس   سماوي حامد wrote:

On Fri, 15 Mar 2013 05:07:02 -0600, Hans Hagen pra...@wxs.nl wrote:


\start
fijn fietsen 123
\type{[+os]}\addfeature{f:oldstyle}
fijn fietsen 123
\type{[+sc]}\addfeature{f:smallcaps}
fijn fietsen 123
\type{[=os]}\replacefeature{f:oldstyle}
fijn fietsen 123
\type{[=sc]}\replacefeature{f:smallcaps}
fijn fietsen 123
\stop


So I hope I have this right:

\addfeature adds a set of features {feature1,feature2,...featureN}
to the currently defined/enabled stack of OT features


no, it adds a *predefined* featureset to the set of the current font but 
forgets them when a group is left



\subtractfeature subtracts a set of features from the currently
defined/enabled stack


idem but subtraction


These two seem clear enough. I'm not so clear on the next one:

\replacefeature replaces all the _added_ features (not the default ones
defined, e.g., in the typescripts I presume) with only those in the
argument of \replacefeature. Is that right?


This reverts back to the features that are set when the font is defined 
and adds the given set. Resetting the stack in your speak.



\resetfeature pops all features added to the stack (again, I'm assuming
this does not include the default ones defined, e.g., in the typescripts).


This reverts back to the features that are set when the font is defined.


Question: Does/Will this mechanism completely replace \addff et al, or
will these mechanism ignore each other (e.g., \resetfeature does not pop
those defined by \addff).


I dont' know ... in fact, they share code deep down in the machinery but 
indeed it might make sense to remove them (or at least depricate them).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen

On 3/15/2013 6:16 PM, Jonathan Barchi wrote:

On Fri, Mar 15, 2013 at 4:35 AM, Hans Hagen pra...@wxs.nl wrote:

On 3/15/2013 5:18 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:


On Thu, 14 Mar 2013 20:08:38 -0600, Idris Samawi Hamid ادريس   سماوي
حامد isha...@colostate.edu wrote:


To round it off I guess we need a replacement for \subfs as well.



Hmm, it seems that \subfs functionality is built in through the same
mechanism. Will study this some more...



yes, but there in successive calls the last one counts

\addff{x} \addff{y} \addff{z}  - z is used on top of the current font's set

\feature{x} \feature{y} \feature{y} - all are used on top

we might end up with replacing \addff etc by one mechanisms

\feature{+someset} : add
\feature{-someset} : subtract
\feature{=someset} : replace



I like this proposal for its use of only a single command with the
add/remove/reset in the args. If \feature ends up being too generic,
maybe \fontfeature or \fontfeatureset instead?

To keep things more in-line with current ConTeXt syntax, you could do
something like the following:

\feature{add=foo}
\feature{subtract=bar}(or sub, remove, etc.)
\feature{reset,add=baz}

Which would also allow, e.g.,

\feature{add=bar,remove=baz}


I'd like to avoid parsing as much as possible here as these are state 
changers. So, I made:


\addfeature [f:mine] \feature[more][f:mine] \feature[+]  [f:mine]
\subtractfeature[f:mine] \feature[less][f:mine] \feature[-]  [f:mine]
\replacefeature [f:mine] \feature[new] [f:mine] \feature[=]  [f:mine]
\revivefeature  [f:mine] \feature[old] [f:mine] \feature[default][f:mine]
\resetfeature\feature[reset]

so there are several ways to achieve the same (and one can use {} 
instead of [])



similar to how we're used to using key:value pairs in so many
arguments, and being able to combine them in one function call.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen

On 3/15/2013 7:11 PM, Idris Samawi Hamid ادريس   سماوي حامد wrote:


So I hope I have this right:

\addfeature adds a set of features {feature1,feature2,...featureN}
to the currently defined/enabled stack of OT features

\subtractfeature subtracts a set of features from the currently
defined/enabled stack

These two seem clear enough. I'm not so clear on the next one:

\replacefeature replaces all the _added_ features (not the default ones
defined, e.g., in the typescripts I presume) with only those in the
argument of \replacefeature. Is that right?

\resetfeature pops all features added to the stack (again, I'm assuming
this does not include the default ones defined, e.g., in the typescripts).

Question: Does/Will this mechanism completely replace \addff et al, or
will these mechanism ignore each other (e.g., \resetfeature does not pop
those defined by \addff).


A good exercise in understanding this is to add this to the wiki.

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] new trickery

2013-03-14 Thread Hans Hagen

Hi,

There is a new experimental feature and (at least for now) it's also 
called \feature (maybe not the best name).


Many fonts have language dependent features. There are also features 
that one only wants to enable in small text snippets. For this we have 
\addff etc but these don't accumulate. The next example demonstrates an 
accumulator.


\setupbodyfont[pagella]

\starttext

% When the (again experimental) setup for 'font' is used, the
% features will also adapt themselves to the language. I'm
% still considering on how to deal with the main language.

% \definefontfeature[nl][language=nld,script=latn]
\setuplanguages[font=auto]
% \setuplanguage [default][font=auto]
% \setuplanguage [nl][font=auto]

% We need to make a nice set of 'simple' switchers.

\definefontfeature[f:smallcaps][smcp=yes]
\definefontfeature[f:nocaps]   [smcp=no]
\definefontfeature[f:oldstyle] [onum=yes]
\definefontfeature[f:newstyle] [onum=no]

% watch how features accumulate

\startTEXpage[offset=10pt]
fijn fietsen 123
\feature{f:oldstyle}
fijn fietsen 123
\feature{f:smallcaps}
fijn fietsen 123
\feature{f:oldstyle}
fijn fietsen 123
\start
\nl % \feature{nl}
fijn fietsen 123
\de
fijn fietsen 123
\stop
fijn fietsen 123
\feature{f:newstyle}
fijn fietsen 123
\feature{f:nocaps}
fijn fietsen 123
\stopTEXpage

% watch how lm has contextual lookups for ligatures
% that depend on the language

\startTEXpage[offset=10pt]
\definedfont[lmroman10-regular*default]
fijn fietsen
\nl
fijn fietsen
\de
fijn fietsen
\stopTEXpage

\stoptext

This mechanism is (just as \addff cum suis) somewhat slower but as long 
as it's used grouped, performance is quite ok.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new trickery

2013-03-14 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Hans,

This is interesting, because I was thinking about this issue this past  
weak, and was planning to send a test file:


On Thu, 14 Mar 2013 17:39:50 -0600, Hans Hagen pra...@wxs.nl wrote:

There is a new experimental feature and (at least for now) it's also  
called \feature (maybe not the best name).


\stack might be better, for the following reason:

 Many fonts have language dependent features. There are also features  
that one only wants to enable in small text snippets. For this we have  
\addff etc but these don't accumulate.


We used to have \addfs{feature} and \subfs{feature}, meaning add  
feature to the stack and subtract feature from the stack. But those  
have been broken for a very long time.


To round it off I guess we need a replacement for \subfs as well.

Thanks for this wonderful new feature (pun intended) and

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] new beta

2013-03-11 Thread Sietse Brouwer
Hi,

I chucked it in here, for lack of a better place.
http://wiki.contextgarden.net/String_Manipulation#String_formatter

I don't understand what they whitespace does: I tried to test it with
this code, and changing the number did nothing.

\starttext
\startluacode
x = 999
context(\\type{my%wpoints}, x)
context.par()
context(my %w points, x)
\stopluacode
\stoptext


And perhaps somebody could add two columns to the wiki with example
input and output?

Cheers,
Sietse

--
Sietse Brouwer -- sbbrou...@gmail.com -- +31 6 13.456.848
Thorbeckehof 101 -- 2343 DR Oegstgeest -- the Netherlands
MSN: sie...@gawab.com -- ICQ: 341232104


On 11 March 2013 00:46, Hans Hagen pra...@wxs.nl wrote:
 Hi,

 I uploaded a beta. The most important change is that the 'context' function
 now uses the formatters mechanism instead of Lua's format.

 This has several benefits. First of all it's in most cases faster (I
 measured upto 3 times) but it also permits us to support some more:

 integer  %...i   number
 integer  %...d   number
 unsigned %...u   number
 utf character%...c   number
 hexadecimal  %...x   number
 HEXADECIMAL  %...X   number
 octal%...o   number
 string   %...s   string number
 float%...f   number
 exponential  %...e   number
 exponential  %...E   number
 autofloat%...g   number
 autofloat%...G   number
 force tostring   %...S   any
 force tostring   %Q  any
 force tonumber   %N  number (strip leading zeros)
 signed number%I  number
 rounded number   %r  number
 0xhexadecimal%...h   character number
 0xHEXADECIMAL%...H   character number
 U+hexadecimal%...u   character number
 U+HEXADECIMAL%...U   character number
 points   %p  number (scaled points)
 basepoints   %b  number (scaled points)
 table concat %...t   table
 boolean (logic)  %l  boolean
 BOOLEAN  %L  boolean
 whitespace   %...w

 More info can be found in cld-mkiv.pdf. There I also explain how to create
 specific formatters and how to extend them. In the default formatter there
 are two extensions that can be used as:

 string.formatters[whatever %!tex! and %!xml!]($ 100,ab)

 or

 local mf = string.formatters[whatever %!tex! and %!xml!]

 ... mf($ 100,ab)

 or

 context(whatever %!tex! and %!xml!,$ 100,ab)



 (Someone should add that to the wiki I guess).

 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
___


Re: [NTG-context] new beta

2013-03-11 Thread Hans Hagen

On 3/11/2013 6:13 PM, Sietse Brouwer wrote:


I don't understand what they whitespace does: I tried to test it with
this code, and changing the number did nothing.


for i=0,10 do
print(string.formatters(%wsietse,i))
end
for i=9,0,-1 do
print(string.formatters(%wsietse,i))
end



-
  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] new beta

2013-03-10 Thread Hans Hagen

Hi,

I uploaded a beta. The most important change is that the 'context' 
function now uses the formatters mechanism instead of Lua's format.


This has several benefits. First of all it's in most cases faster (I 
measured upto 3 times) but it also permits us to support some more:


integer  %...i   number
integer  %...d   number
unsigned %...u   number
utf character%...c   number
hexadecimal  %...x   number
HEXADECIMAL  %...X   number
octal%...o   number
string   %...s   string number
float%...f   number
exponential  %...e   number
exponential  %...E   number
autofloat%...g   number
autofloat%...G   number
force tostring   %...S   any
force tostring   %Q  any
force tonumber   %N  number (strip leading zeros)
signed number%I  number
rounded number   %r  number
0xhexadecimal%...h   character number
0xHEXADECIMAL%...H   character number
U+hexadecimal%...u   character number
U+HEXADECIMAL%...U   character number
points   %p  number (scaled points)
basepoints   %b  number (scaled points)
table concat %...t   table
boolean (logic)  %l  boolean
BOOLEAN  %L  boolean
whitespace   %...w

More info can be found in cld-mkiv.pdf. There I also explain how to 
create specific formatters and how to extend them. In the default 
formatter there are two extensions that can be used as:


string.formatters[whatever %!tex! and %!xml!]($ 100,ab)

or

local mf = string.formatters[whatever %!tex! and %!xml!]

... mf($ 100,ab)

or

context(whatever %!tex! and %!xml!,$ 100,ab)



(Someone should add that to the wiki I guess).

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] new tricks in beta

2013-02-20 Thread Hans Hagen

Hi Aditya,

I made a mathstyle mechanism ... used in fences first:

\starttext

\startTEXpage[offset=1ex]

\def\TestMe#1%
  {\NC \ttbf #1
   \NC \ruledhbox{$\setupmathstyle[#1]x + x_j^2 + x_i^{e^2} + \frac{1}{x}$}
   \NC \ruledhbox{$\setupmathstyle[#1,small]x + x_j^2 + x_i^{e^2} + 
\frac{1}{x}$}

   \NC \NR}

\starttabulate[|l|r|l|]
\HL
\NC \NC \NC \ttbf ...,small \NC \NR
\HL
\TestMe{text}
\TestMe{text,cramped}
\TestMe{script}
\TestMe{script,cramped}
\TestMe{scriptscript}
\TestMe{scriptscript,cramped}
\TestMe{display}
\TestMe{display,cramped}
\HL
\stoptabulate

\stopTEXpage

\startTEXpage

$x\begingroup\setupmathstyle[script]x\endgroup x$ \par
$x{\setupmathstyle[script]x}x$ \par
$x\startmathstyle[script]x\stopmathstyle x$

\stopTEXpage

\definemathfence [scriptbracket] [bracket] 
[command=yes,color=red,mathstyle=script]
\definemathfence [smallbracket]  [bracket] 
[command=yes,color=green,mathstyle=small]

\definemathfence [normalbracket] [bracket] [command=yes,color=blue]

\startTEXpage[offset=1ex]

\startbuffer
test 
$a\frac{1}{normal}\scriptbracket{\frac{1}{script}}\normalbracket{\frac{1}{normal}}\smallbracket{\frac{1}{small}}c$ 
test \par

\stopbuffer

\getbuffer \setupmathfences [color=red] \getbuffer

\stopTEXpage

\stoptext

\starttext

\definemathfence [fancybracket] [bracket] [command=yes,color=blue]

test $|x|$ test \par
test $||x||$ test (okay) \par
test $a\left|\frac{1}{b}\right|c$ test \par
test $a\left||\frac{1}{b}\right||c$ test (not okay) \par

\startbuffer
test $a\fenced[bar]{\frac{1}{b}}c$ test \par
test $a\fenced[doublebar]{\frac{1}{b}}c$ test \par
test $a\fenced[bracket]{\frac{1}{b}}c$ test \par
test $a\fancybracket{\frac{1}{b}}c$ test \par
\stopbuffer

\getbuffer \setupmathfences [color=red] \getbuffer

\stoptext

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] new version of OpenType Math fonts from Gust

2013-01-31 Thread Mojca Miklavec
Hello,

the distribution now contains the new (not yet on CTAN) version of
OpenType Math fonts: LM, TeX Gyre Pagella  Termes.

Please report if you experience any problems with installation
(problems with contents should be reported straight to the Polish
team).

Mojca
___
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] New module: simplesteps.

2012-12-15 Thread Sietse Brouwer
  \begingroup
  \grabbufferdata[simplesteps][startframe][stopframe]%
 }

 With the \grabbufferdata command the content beginning from \startframe until 
 \stopframe is stored in a buffer with the name “simplesteps”.

(1) What does the \begingroup do? I could not find a \endgroup in the
patch, nor in the module code.

(2) I've approximately documented grabbufferdata here:
http://wiki.contextgarden.net/Command/grabbufferdata
But when I tried to write a minimal example, I couldn't get it to compile.

%% begin example
\grabbufferdata[mybuffer][thisisthestart][thisistheend]
\thisisthestart
My friend, you would not tell with such high zest
To children ardent for some desparate glory,
The old Lie: Dulce et decorum est
Pro patria mori.
\thisistheend

\typebuffer[mybuffer]
%% end example

What am I doing wrong? And is the description I put on the wiki correct?

Cheers,
Sietse
___
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] New module: simplesteps.

2012-12-15 Thread Philipp Gesang
···date: 2012-12-15, Saturday···from: Sietse Brouwer···

   \begingroup
   \grabbufferdata[simplesteps][startframe][stopframe]%
  }
 
  With the \grabbufferdata command the content beginning from \startframe 
  until \stopframe is stored in a buffer with the name “simplesteps”.
 
 (1) What does the \begingroup do? I could not find a \endgroup in the
 patch, nor in the module code.

It’s in the definition of \buff_stop in buff-ini.mkiv. The first
thing \startbuffer does is to insert a bgroup, too.

Philipp



pgpeFsXMBI40v.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

<    1   2   3   4   5   6   7   8   9   10   >