Re: [NTG-context] beta

2011-06-08 Thread Hans Hagen

On 9-6-2011 3:38, Li Yanrui (李延瑞) wrote:

2011/6/9 Hans Hagen:

Hi,

I uploaded a beta.



The luatex-plain format has been broken. I use the following file to
generate format.

\input plain
\directlua {tex.enableprimitives('', tex.extraprimitives())}
\pdfoutput=1
\everyjob \expandafter {%
 \the\everyjob
 \input luatex-basics\relax
 \input luatex-fonts\relax
 \input luatex-mplib\relax
}
\edef\fmtversion{\fmtversion+luatex}
\dump

During luatex run I get an error:

! LuaTeX error 
...pt/context/tex/texmf-context/tex/generic/context/luatex-fonts-merged.lua:2655:
unexpected symbol near '.


you should take luatex-plain.tex as example

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] Again Cambria after updating to latest beta

2011-06-08 Thread Willi Egger
Hi all,

Yesterday evening I was quite happy that after deleting and regenerating the 
cache and the formats I had Cambria up and running.

This morning I updated Context to the latest beta. - Eventhough I generated the 
formats manually with context --make, I get the problem referred to yesterday. 
What I get you can see in the by the list administrator released mail from 
yesterday.

I am stymied.

Willi
___
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] Disable line-break when \typefile

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

OK, thanks.

I added some info into wiki.

Lukas


On Wed, 08 Jun 2011 22:44:41 +0200, Wolfgang Schuster 
 wrote:



Am 08.06.2011 um 22:34 schrieb Marco:


And what is “lines=no” for?



What i get from the source for the “lines” key is:

  no (default) : no hyphenation
  yes  : no hyphenation and left aligned text (align key is ignored)
  hyphenated   : hyphenation

Wolfgang



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

Tel: +420 244 062 238
Fax: +420 244 461 038

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

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

Re: [NTG-context] beta

2011-06-08 Thread 李延瑞
2011/6/9 Hans Hagen :
> Hi,
>
> I uploaded a beta.
>

The luatex-plain format has been broken. I use the following file to
generate format.

\input plain
\directlua {tex.enableprimitives('', tex.extraprimitives())}
\pdfoutput=1
\everyjob \expandafter {%
\the\everyjob
\input luatex-basics\relax
\input luatex-fonts\relax
\input luatex-mplib\relax
}
\edef\fmtversion{\fmtversion+luatex}
\dump

During luatex run I get an error:

! LuaTeX error 
...pt/context/tex/texmf-context/tex/generic/context/luatex-fonts-merged.lua:2655:
unexpected symbol near '.

I think "local table.setmetatableindex(t,f)" in the
luatex-fonts-merged.lua should be "local function
table.setmetatableindex(t,f)".

After I modified as above, some simple examples can be compiled.
However I get an error again when I try to use CJK fonts. For example:

\font\song=AdobeSongStd-Light
\bye

The error message is "! LuaTeX error
...-context/tex/generic/context/luatex-fonts-merged.lua:4466: attempt
to index local 'unicodevector' (a nil value).".

-- 
Best regards,

Li Yanrui
___
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] beta

2011-06-08 Thread Jelle Huisman
On 08/06/11 19:21, Hans Hagen wrote:
> On 8-6-2011 11:43, Otared Kavian wrote:
>> Hi Hans and Taco,
>>
>> Updating the minimals resulted for me in an error message:
>> 
>> This is MetaPost, version 1.504 (kpathsea version 6.0.0)
>>
>> 
>> ! I can't open file `metafun'.
> 
> can you check again?


The newest version fixes the problem for me.

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

2011-06-08 Thread Hans Hagen

On 8-6-2011 11:43, Otared Kavian wrote:

Hi Hans and Taco,

Updating the minimals resulted for me in an error message:

This is MetaPost, version 1.504 (kpathsea version 6.0.0)


! I can't open file `metafun'.


can you check again?

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

2011-06-08 Thread Hans Hagen

On 8-6-2011 11:50, Vedran Miletić wrote:


I just report the issue to let you know (I have still the previous version at 
hand…).


A side effect of a change in cnf files (related to tex live) ... I'll 
have a look at it. For the moment generate the formats manually.


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

2011-06-08 Thread Vedran Miletić
2011/6/8 Otared Kavian :
> Hi Hans and Taco,
>
> Updating the minimals resulted for me in an error message:
>
> This is MetaPost, version 1.504 (kpathsea version 6.0.0)
>
>
> ! I can't open file `metafun'.
>
>        <*> metafun
>
>        Please type another input file name:
>
> However upon aborting the process with -C, I have an updated
>        ConTeXt version 2011.06.08 19:06,
> which works apparently fine under mkiv, but does not work with mkii, even 
> with the simplest
>        \starttext
>        Hello Hans
>        \stoptext
> The typesetting stops with the following error message:
>        ! Font \*7ptmmmrrm*:=rm-lmr7 not loadable: Metric (TFM) file not found.
>        
>                          \relax
>        \definefontlocal ...ndcsname \lastfontname \relax
>                                                      \expandafter \let 
> \expanda...
>
> I just report the issue to let you know (I have still the previous version at 
> hand…).
>
> Best regards: OK

Same here.

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

2011-06-08 Thread Otared Kavian
Hi Hans and Taco,

Updating the minimals resulted for me in an error message:

This is MetaPost, version 1.504 (kpathsea version 6.0.0)


! I can't open file `metafun'.

<*> metafun 

Please type another input file name:

However upon aborting the process with -C, I have an updated 
ConTeXt version 2011.06.08 19:06,
which works apparently fine under mkiv, but does not work with mkii, even with 
the simplest
\starttext
Hello Hans
\stoptext
The typesetting stops with the following error message:
! Font \*7ptmmmrrm*:=rm-lmr7 not loadable: Metric (TFM) file not found.
 
  \relax 
\definefontlocal ...ndcsname \lastfontname \relax 
  \expandafter \let 
\expanda...

I just report the issue to let you know (I have still the previous version at 
hand…).

Best regards: OK



On 8 juin 2011, at 21:22, Hans Hagen wrote:

> On 8-6-2011 8:54, Taco Hoekwater wrote:
>> 
>> 
>> On 06/08/11 19:45, Hans Hagen wrote:
>>> Hi,
>>> 
>>> I uploaded a beta. New is:
>>> 
>>> - enhanced inheritance in layouts
>>> - reimplemented page markings
>>> - \setupmathrendering[fontclass][it=somevariant]
>>> - upgrade of (content) mathml
>> 
>> That is including an update of  general/manuals/mmlprime.pdf
> 
> i uploaded a bit newer (todays)
> 
> 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
> ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] \fullexpandtwoargsafter in MkIV

2011-06-08 Thread Wolfgang Schuster

Am 08.06.2011 um 19:53 schrieb Aditya Mahajan:

> \fullexpandtwoargsafter is not defined in MkIV. As a result, \processpage 
> does not work.

The command isn’t needed in MkIV because you can use \normalexpanded:

\unprotected\def\dopagetype[#1]%
  {\edef\desoortpagina{#1}%
   \ifx\desoortpagina\empty \else
 \@EA\doglobal\@EA\addtocommalist\@EA{\desoortpagina}\currentpageselection
 \ifselectingpages
  %\fullexpandtwoargsafter\doifcommon\desoortpagina\pageselection
   \normalexpanded{\noexpand\doifcommon{\desoortpagina}{\pageselection}}%
 {\global\pageselectedtrue}%
 \fi
 \gdef\beforeshipout{\dobeforeshipout}%
 \gdef\aftershipout {\doaftershipout}%
   \fi}

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] Disable line-break when \typefile

2011-06-08 Thread Marco
> > And what is “lines=no” for?
> 
> What i get from the source for the “lines” key is:
> 
>   no (default) : no hyphenation
>   yes  : no hyphenation and left aligned text (align key is ignored)
>   hyphenated   : hyphenation

Thanks for clarification. Though the options (also
regarding “space=fixed”) are confusing, or at least not
transparent, in my opinion.

Marco


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

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

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen

On 8-6-2011 10:12, Otared Kavian wrote:


Thank you very much for your quick thoughts and solutions!
It is amazing how fast one gets a solution to one's problem on this list…


well, this was an easy one -)


Just a note for Mathieu: I think that
\enableregime[il1]


depends on the input encoding ... regimes are still supported but indeed 
all ends up in utf internally


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] Disable line-break when \typefile

2011-06-08 Thread Wolfgang Schuster

Am 08.06.2011 um 22:34 schrieb Marco:

> And what is “lines=no” for?


What i get from the source for the “lines” key is:

  no (default) : no hyphenation
  yes  : no hyphenation and left aligned text (align key is ignored)
  hyphenated   : hyphenation

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] [mkiv] \setupfootnotes[n=2] not working properly

2011-06-08 Thread C.
When using columns in footnotes, the line length is not adjusted. 
Instead, they have the same length as if there where only one column 
(like in the normal setup).


This works like it should in context-online (wich uses mkii, I suppose).
Please make it work in mkiv, too.

luatex version beta-0.70.1-2011051923
mtx-context | current version: 2011.06.08 19:06

Thank you very much!
-Christian
\setupfootnotes[n=2]
\starttext
\dorecurse{3}{\input hawking\footnote{The lenght of of the footnote lines is 
not propperly adjusted to the the columns. They are the same lenght as if there 
were just one column.}} 
\stoptext


minimal.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] Disable line-break when \typefile

2011-06-08 Thread Marco
On 2011-06-08 Wolfgang Schuster  wrote:

> > Is  there  a way  how  to  avoid  this, how  to  force
> > continuing on the same line?
>
> Add “space=fixed” to your setup.

And what is “lines=no” for?

Marco


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

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

Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Wolfgang Schuster

Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> is there a way how to disable line breaks of (very) long lines typeset with 
> \typefile, even if this would cause overfull hbox (i.e. typesetting to 
> "out-of-page" area)?
> 
> The following example:
> 
> 
> % This a very long line which should be typeset to one line even if there'll 
> be overfull hbox
> 
> \definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]
> 
> \starttext
>  \typefile[Std]{TypeFi.mkiv}
> 
>  \startcolumns[n=2,rule=on]
>\typefile[Std]{TypeFi.mkiv}
>  \stopcolumns
> \stoptext
> 
> 
> gives a result where there is new line between "overfull" and "hbox" in 
> normal mode and between "be" and "typeset" and "be" and "overfull" in column 
> mode.
> 
> Is there a way how to avoid this, how to force continuing on the same line?

Add “space=fixed” to your setup.

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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
Dear Hans, dear Mathieu,

Thank you very much for your quick thoughts and solutions!
It is amazing how fast one gets a solution to one's problem on this list…

Just a note for Mathieu: I think that
\enableregime[il1]
is not needed in mkiv, since a unicode regime is the default there (however 
with mkii I use
\enableregime[utf]
but in the case we are discussing, one has to use lua, so mkiv is mandatory).

Best regards: OK


On 8 juin 2011, at 19:00, Mathieu Dupont wrote:

> 
> This following code works, except that the first random is always the same 
> (Analysis) for some reason.
> 
> Anyone knows why ?
> 
> \enableregime[il1]
> \starttext
> \startluacode
>   userdata = userdata or {}
>   math.randomseed( os.time() )
>   function userdata.random(...)
>   context(arg[math.random(1, #arg)])
>   end
> \stopluacode
> \def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}
> \dorecurse{10}{\CHOOSERANDOM{"Maths", "Physics", "Algebra", "Analysis", 
> "Chemistry", "Geometry", "Wave equation", "Schrödinger equation"}\par}
> \stoptext
> 
> 
> 
> Mathieu
> 
> 
> 
> 
> > From: ota...@gmail.com
> > Date: Wed, 8 Jun 2011 18:52:36 +0200
> > To: ntg-context@ntg.nl
> > Subject: [NTG-context] Random selection of a word in a set with lua and mkiv
> > 
> > Hi all,
> > 
> > Assuming that we have a set of words or expressions, say
> > {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
> > Schrödinger equation}
> > is it possible to write a lua function, named for instance
> > randomselectword
> > which returns one of the words or expressions selected at random in the 
> > above set?
> > Indeed this is intended to be used in a TeX file processed with mkiv.
> > 
> > Thanks in advance for any idea and help.
> > 
> > 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
> > ___
> ___
> 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
> ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

2011-06-08 Thread Hans Hagen

On 8-6-2011 8:54, Taco Hoekwater wrote:



On 06/08/11 19:45, Hans Hagen wrote:

Hi,

I uploaded a beta. New is:

- enhanced inheritance in layouts
- reimplemented page markings
- \setupmathrendering[fontclass][it=somevariant]
- upgrade of (content) mathml


That is including an update of  general/manuals/mmlprime.pdf


i uploaded a bit newer (todays)

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

2011-06-08 Thread Taco Hoekwater


On 06/08/11 19:45, Hans Hagen wrote:
> Hi,
> 
> I uploaded a beta. New is:
> 
> - enhanced inheritance in layouts
> - reimplemented page markings
> - \setupmathrendering[fontclass][it=somevariant]
> - upgrade of (content) mathml

That is including an update of  general/manuals/mmlprime.pdf

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

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


Re: [NTG-context] Cambira

2011-06-08 Thread Willi Egger
Hi all,

thanks to all who replied to my message.
The problem was apparently something with the cache. After deleting the 
font-cache Cambria comes out as expected.

Willi
On 8 Jun 2011, at 11:53, Willi Egger wrote:

> Hi all,
> 
> When using Cambria I get very strange results. Apparently everything is 
> typeset in math mode. Did anyone else run into this? - My cambria version is 
> of 2009, V5.93.
> Running Context 18-05-2011
> Please refer to the attched file.
> 
> Kind regards
> 
> Willi 
> 
> ___
> 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] \fullexpandtwoargsafter in MkIV

2011-06-08 Thread Aditya Mahajan
\fullexpandtwoargsafter is not defined in MkIV. As a result, \processpage 
does not work.


Minimal example:

\setuphead[section][before={\pagetype[section]}, page=yes]
\processpage[section][yes]

\starttext
\dorecurse{10}{\section {Test \recurselevel}
  \dorecurse{10}{\input knuth \endgraf}}
\stoptext

This works in MkII but not in MkIV.


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

2011-06-08 Thread Hans Hagen

Hi,

I uploaded a beta. New is:

- enhanced inheritance in layouts
- reimplemented page markings
- \setupmathrendering[fontclass][it=somevariant]
- upgrade of (content) mathml
- prelude to more structured math
- a couple of small fixes
- a few adaptions to texlive integration
- probably some more

Also some time has been spend on the export backend:

- partially rewritten export code (aka epub pet project)
- next iteration of math(ml) export
- metadata and ignored content in export

(Later I will look again in tagged 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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont


I see.So it can be fixed by simply adding the first line before the second 
:\CHOOSERANDOM{""}\CHOOSERANDOM{"Maths", "Physics", "Algebra", "Analysis", 
"Chemistry", "Geometry", "Wave equation", "Schrödinger equation"}Thanks, that 
fixes one of my problems !


Mathieu



> Date: Wed, 8 Jun 2011 19:07:50 +0200
> From: pra...@wxs.nl
> To: ntg-context@ntg.nl
> CC: mathieudup...@hotmail.com
> Subject: Re: [NTG-context] Random selection of a word in a set with lua and 
> mkiv
> 
> On 8-6-2011 7:00, Mathieu Dupont wrote:
> >
> >
> > This following code works, except that the first random is always the same 
> > (Analysis) for some reason.
> > Anyone knows why ?
> > \enableregime[il1]\starttext\startluacode   userdata = userdata or {}   
> > math.randomseed( os.time() )function userdata.random(...)   
> > context(arg[math.random(1, #arg)])  
> > end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}\dorecurse{10}{\CHOOSERANDOM{"Maths",
> >  "Physics", "Algebra", "Analysis", "Chemistry", "Geometry", "Wave 
> > equation", "Schrödinger equation"}\par}\stoptext
> 
> Because context remembers the seed (is reported in the log). Delete the 
> tuc file and you will get another value. We could get oscillation 
> otherwise.
> 
> 
> -
>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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen

On 8-6-2011 7:00, Mathieu Dupont wrote:



This following code works, except that the first random is always the same 
(Analysis) for some reason.
Anyone knows why ?
\enableregime[il1]\starttext\startluacode   userdata = userdata or {}   math.randomseed( os.time() )function userdata.random(...)   
context(arg[math.random(1, #arg)])  end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}\dorecurse{10}{\CHOOSERANDOM{"Maths", 
"Physics", "Algebra", "Analysis", "Chemistry", "Geometry", "Wave equation", "Schrödinger 
equation"}\par}\stoptext


Because context remembers the seed (is reported in the log). Delete the 
tuc file and you will get another value. We could get oscillation 
otherwise.



-
  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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont


This following code works, except that the first random is always the same 
(Analysis) for some reason.
Anyone knows why ?
\enableregime[il1]\starttext\startluacode   userdata = userdata or {}   
math.randomseed( os.time() )function userdata.random(...)   
context(arg[math.random(1, #arg)])  
end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}\dorecurse{10}{\CHOOSERANDOM{"Maths",
 "Physics", "Algebra", "Analysis", "Chemistry", "Geometry", "Wave equation", 
"Schrödinger equation"}\par}\stoptext


Mathieu



> From: ota...@gmail.com
> Date: Wed, 8 Jun 2011 18:52:36 +0200
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Random selection of a word in a set with lua and mkiv
> 
> Hi all,
> 
> Assuming that we have a set of words or expressions, say
>   {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
> Schrödinger equation}
> is it possible to write a lua function, named for instance
>   randomselectword
> which returns one of the words or expressions selected at random in the above 
> set?
> Indeed this is intended to be used in a TeX file processed with mkiv.
> 
> Thanks in advance for any idea and help.
> 
> 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
> ___
  ___
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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen

On 8-6-2011 6:52, Otared Kavian wrote:

Hi all,

Assuming that we have a set of words or expressions, say
{Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
Schrödinger equation}
is it possible to write a lua function, named for instance
randomselectword
which returns one of the words or expressions selected at random in the above 
set?
Indeed this is intended to be used in a TeX file processed with mkiv.


something

function document.r(str)
  local set = utilities.parsers.settings_to_array(str)
  context(set[math.round(math.random(1,#set))])
end

\ctxlua{document.r("math physics")}

(untested)

-
  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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
Hi all,

Assuming that we have a set of words or expressions, say
{Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
Schrödinger equation}
is it possible to write a lua function, named for instance
randomselectword
which returns one of the words or expressions selected at random in the above 
set?
Indeed this is intended to be used in a TeX file processed with mkiv.

Thanks in advance for any idea and help.

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
___


[NTG-context] Disable line-break when \typefile

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way how to disable line breaks of (very) long lines typeset with \typefile, 
even if this would cause overfull hbox (i.e. typesetting to "out-of-page" area)?

The following example:


% This a very long line which should be typeset to one line even if there'll be 
overfull hbox

\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]

\starttext
  \typefile[Std]{TypeFi.mkiv}

  \startcolumns[n=2,rule=on]
\typefile[Std]{TypeFi.mkiv}
  \stopcolumns
\stoptext


gives a result where there is new line between "overfull" and "hbox" in normal mode and between "be" and 
"typeset" and "be" and "overfull" in column mode.

Is there a way how to avoid this, how to force continuing on the same line?

The (long) line 
"\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]" in column 
mode is typeset exactly how I'd need, i.e. it overlaps to the next column.

Best regards,

Lukas


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

Tel: +420 244 062 238
Fax: +420 244 461 038

TypeFi.mkiv
Description: Binary data


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

[NTG-context] Context.exe and --result=...

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I have the following situation.

One source file is to be converted by Ctx normally and secondly with a special mode, e.g. 
"--mode=PageOneOnly".

I'd like to get two result with:

(1) Context.exe source.mkiv -> should give 'Source.pdf',

(2) Context.exe source.mkiv --mode=PageOneOnly --result=Source-Pg1.pdf -> to 
give 'Source-Pg1.pdf'.

The problem is that the option "--result=..." just renames the result; it 
means, if the 'Source.pdf' has been created by (1), it would be OVERWRITTEN by (2), as 
(2) normally processes 'source.mkiv' to 'source.pdf' in the first phase and renames it 
after.

So the question is - is there a better way which would PRESERVE the .pdf if 
.mkiv is to be processed and '--result=' is being used?

Or (question for developers) - wouldn't be better to work directly with an 
output stream(s) name based on '--result=...' option, and to take the source 
file name for the output stream name ONLY in case that '--result=...' was not 
specified?

(This would also mean to create other support file(s), like 'Source-Pg1.log', 
'Source-Pg1.tuc' - IMHO this would be OK.)

Best regards,

Lukas


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

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Wed, 08 Jun 2011 12:01:04 +0200, luigi scarso  wrote:


Not sure if it's a bug, but this fixes the situation (assuming A4 on A4)
\starttext
 AAA

 \startTEXpage
   \rotate[rotation=-90]{\externalfigure[Model.pdf]}
 \stopTEXpage
\setuppapersize[A4][A4]
 % Paper size is 297 * 297 mm from now?!

 BBB
\stoptext



OK,

  ...
  \stopTEXpage
  \setuppapersize[reset]

works as well.

So there is still the question - whether the behaviour is intended.

Lukas


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

Tel: +420 244 062 238
Fax: +420 244 461 038

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

2011-06-08 Thread Otared Kavian
Hi,

I tested your file and got the following error message
> tex > error on line 12 in file test-cambria-font.tex: Math error: 
parameter \Umathquad\displaystyle is not set 
Otherwise the text is as expected.
I am using ConTeXt from the minimals: ConTeXt  ver: 2011.05.18 22:26 MKIV.

Best regards: OK

On 8 juin 2011, at 11:53, Willi Egger wrote:

> Hi all,
> 
> When using Cambria I get very strange results. Apparently everything is 
> typeset in math mode. Did anyone else run into this? - My cambria version is 
> of 2009, V5.93.
> Running Context 18-05-2011
> Please refer to the attched file.
> 
> Kind regards
> 
> Willi 
> 
> ___
> 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] math in antp with MKIV

2011-06-08 Thread Hans Hagen

On 8-6-2011 12:35, Mojca Miklavec wrote:

On Wed, Jun 8, 2011 at 12:23, Hans Hagen wrote:

On 8-6-2011 12:12, Mojca Miklavec wrote:


\usetypescript[antykwa-poltawskiego]
\setupbodyfont[antykwa-poltawskiego,10pt]
\starttext
\eTeX
\stoptext


aha .. the lm math beta otf is not yet in tex live and 'modern' uses that
one (no design sizes)

  \definetypeface [...] [mm] [math]  [modern] [computer-modern]

versus:

  \definetypeface [...] [mm] [math]  [modern] [default]

so you could change the default to computer-modern to get the virtual lm's


Does that mean that all other math will fail in TeX Live as well?


only when 'default' is specified (which is probably in many cases)

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] math in antp with MKIV

2011-06-08 Thread Mojca Miklavec
On Wed, Jun 8, 2011 at 12:23, Hans Hagen wrote:
> On 8-6-2011 12:12, Mojca Miklavec wrote:
>
>> \usetypescript[antykwa-poltawskiego]
>> \setupbodyfont[antykwa-poltawskiego,10pt]
>> \starttext
>> \eTeX
>> \stoptext
>
> aha .. the lm math beta otf is not yet in tex live and 'modern' uses that
> one (no design sizes)
>
>  \definetypeface [...] [mm] [math]  [modern] [computer-modern]
>
> versus:
>
>  \definetypeface [...] [mm] [math]  [modern] [default]
>
> so you could change the default to computer-modern to get the virtual lm's

Does that mean that all other math will fail in TeX Live as well?

(It would be great to fix that it TL. Taco - may I ask you to do so? I
can do it, but I will probably miss a few places where the patch might
be needed.)

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] Cambira

2011-06-08 Thread Wolfgang Schuster

Am 08.06.2011 um 11:53 schrieb Willi Egger:

> Hi all,
> 
> When using Cambria I get very strange results. Apparently everything is 
> typeset in math mode. Did anyone else run into this?

What do you mean with “everything is typeset in math mode". I run your example 
and got the expected output.

> My cambria version is of 2009, V5.93.

I have Version 5.97.

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] Cambira

2011-06-08 Thread Taco Hoekwater

Hi Willi,

On 06/08/11 11:53, Willi Egger wrote:
> Hi all,
> 
> When using Cambria I get very strange results. Apparently everything is 
> typeset in math mode. Did anyone else run into this? - My cambria version is 
> of 2009, V5.93.
> Running Context 18-05-2011
> Please refer to the attched file.

Looks ok here. Same context (older cambria, but I doubt that matters).

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

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


Re: [NTG-context] math in antp with MKIV

2011-06-08 Thread Hans Hagen

On 8-6-2011 12:12, Mojca Miklavec wrote:

On Wed, Jun 8, 2011 at 11:58, Hans Hagen wrote:


Both work on my machine; maybe Mojca has an old antykwa typescript laying
around.


It works with minimals, but not with TeX Live.

What else could I look for? Taco, does it works for you?

\usetypescript[antykwa-poltawskiego]
\setupbodyfont[antykwa-poltawskiego,10pt]
\starttext
\eTeX
\stoptext


aha .. the lm math beta otf is not yet in tex live and 'modern' uses 
that one (no design sizes)


 \definetypeface [...] [mm] [math]  [modern] [computer-modern]

versus:

 \definetypeface [...] [mm] [math]  [modern] [default]

so you could change the default to computer-modern to get the virtual lm's

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] math in antp with MKIV

2011-06-08 Thread Taco Hoekwater


On 06/08/11 12:12, Mojca Miklavec wrote:
> On Wed, Jun 8, 2011 at 11:58, Hans Hagen wrote:
>>
>> Both work on my machine; maybe Mojca has an old antykwa typescript laying
>> around.
> 
> It works with minimals, but not with TeX Live.
> 
> What else could I look for? Taco, does it works for you?

Oh, that. That is because lmmath is not in texlive (yet?) so the
mm typeface remains undefined.

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

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


Re: [NTG-context] math in antp with MKIV

2011-06-08 Thread Mojca Miklavec
On Wed, Jun 8, 2011 at 11:58, Hans Hagen wrote:
>
> Both work on my machine; maybe Mojca has an old antykwa typescript laying
> around.

It works with minimals, but not with TeX Live.

What else could I look for? Taco, does it works for you?

\usetypescript[antykwa-poltawskiego]
\setupbodyfont[antykwa-poltawskiego,10pt]
\starttext
\eTeX
\stoptext

Mojca


system  > logs > lua: compiling
/Users/mojca/Library/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/fonts/data/names.tma
into 
/Users/mojca/Library/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/fonts/data/names.tmc
fonts   > names > accessing the data table failed
fonts   > defining > forced type otf of lmmath not found
fonts   > defining > font with asked name 'lmmath' is not
found using lookup 'file'
fonts   > defining > unknown font lmmath, loading aborted
fonts   > defining > unable to define lmmath.otf as
\*antykwa-poltawskiego5ptmmmr33*
fonts   > defining > forced type otf of lmmath not found
fonts   > defining > font with asked name 'lmmath' is not
found using lookup 'file'
fonts   > defining > unknown font lmmath, loading aborted
fonts   > defining > unable to define lmmath.otf as
\*antykwa-poltawskiego7ptmmmr22*
fonts   > defining > forced type otf of lmmath not found
fonts   > defining > font with asked name 'lmmath' is not
found using lookup 'file'
fonts   > defining > unknown font lmmath, loading aborted
fonts   > defining > unable to define lmmath.otf as
\*antykwa-poltawskiego10ptmmmr11*
system  > begin file a at line 4
! Math error: parameter \Umathquad\displaystyle is not set.

system  > tex > error on line 6 in file a.tex: Math error:
parameter \Umathquad\displaystyle is not set ...

 1 \usetypescript[antykwa-poltawskiego]
 2 \setupbodyfont[antykwa-poltawskiego,10pt]
 3
 4 \starttext
 5
 6 >>  \eTeX
 7 $a+\alpha$
 8 ε\TeX
 9 % \eTeX
10
11 \stoptext


\mathematics ...rmalstartimath #1\normalstopimath
  \fi
\eTeX ->\mathematics {\varepsilon }
   -\TeX
l.6 \eTeX

? q
___
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] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Marco
On 2011-06-08 Procházka Lukáš Ing. - Pontex s. r. o.  wrote:

> Hello,
> 
> see the following example:
> 
> 
> \starttext
>AAA
> 
>\startTEXpage
>  \rotate[rotation=-90]{\externalfigure[Model.pdf]}
>\stopTEXpage
> 
>% Paper size is 297 * 297 mm from now?!
> 
>BBB
> \stoptext


Shorter example:

\starttext
Foo
\startTEXpage [height=21cm, width=40cm]
\stopTEXpage
Bar
\stoptext

When the width of the TeXpage is larger than the preceding
page the following  pages also get larger,  a smaller size
works. I don't thing this behaviour is intended.

Marco


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

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

Re: [NTG-context] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread luigi scarso
Not sure if it's a bug, but this fixes the situation (assuming A4 on A4)
\starttext
 AAA

 \startTEXpage
   \rotate[rotation=-90]{\externalfigure[Model.pdf]}
 \stopTEXpage
\setuppapersize[A4][A4]
 % Paper size is 297 * 297 mm from now?!

 BBB
\stoptext



-- 
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] math in antp with MKIV

2011-06-08 Thread Hans Hagen

On 8-6-2011 6:51, luigi scarso wrote:

On Wed, Jun 8, 2011 at 1:52 AM, Mojca Miklavec
  wrote:

Hello,

I'm trying to use

\usetypescript[antykwa-poltawskiego]
\setupbodyfont[antykwa-poltawskiego,10pt]

\starttext
\eTeX
\stoptext

but it fails miserably. An easy workaround is to use greek letters,
but also the whole math is somewhat broken. In MKII the font would
fall back on Latin Modern in case that there are no math glyphs, but
ConTeXt MKIV complains about

This works with a recent minimals
\usetypescript[antykwa-torunska]
\setupbodyfont[antykwa,10pt]

\starttext
\eTeX \crlf
$\mathrm{sin}\pi=0$

\stoptext


Both work on my machine; maybe Mojca has an old antykwa typescript 
laying around.


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] Cambira

2011-06-08 Thread Willi Egger
Hi all,

When using Cambria I get very strange results. Apparently everything is typeset 
in math mode. Did anyone else run into this? - My cambria version is of 2009, 
V5.93.
Running Context 18-05-2011
Please refer to the attched file.

Kind regards

Willi 



test-cambria-font.tex
Description: Binary data
___
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] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Wed, 08 Jun 2011 11:39:50 +0200, luigi scarso  wrote:


what are the dimensions of Model.pdf ?


210 x 297 mm.

Lukas

___
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] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread luigi scarso
2011/6/8 Procházka Lukáš Ing. - Pontex s. r. o. :
> Hello,
>
> see the following example:
>
> 
> \starttext
>  AAA
>
>  \startTEXpage
>    \rotate[rotation=-90]{\externalfigure[Model.pdf]}
>  \stopTEXpage
>
>  % Paper size is 297 * 297 mm from now?!
>
>  BBB
> \stoptext
> 
>
> Why the last paper size becomes 297 x 297 mm?
what are the dimensions of Model.pdf ?
-- 
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
___

[NTG-context] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

see the following example:


\starttext
  AAA

  \startTEXpage
\rotate[rotation=-90]{\externalfigure[Model.pdf]}
  \stopTEXpage

  % Paper size is 297 * 297 mm from now?!

  BBB
\stoptext


Why the last paper size becomes 297 x 297 mm?

Suggestion:

Wouldn't be good to have an option "rotation" (among "scale", "factor", 
width"...) to rotate the inserted figure, at least in multiples of 90 degrees? To allow something like:

\externalfigure[Model.pdf][width=180mm,rotation=-90]

Best regards,

Lukas

(ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.5.18, WinXP)


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

Tel: +420 244 062 238
Fax: +420 244 461 038

Model.pdf
Description: Adobe PDF document


RotFig.mkiv
Description: Binary data


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