[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

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

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! mailli

[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: Bi

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,

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 _

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

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[anty

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?

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[a

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

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.

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 (

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 '

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

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?!

[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 --re

[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 h

[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

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

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.ran

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.ra

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

[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

[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}} \stop

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 everythin

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

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

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 (howeve

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

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

[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

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 __

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 e

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 “s

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

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 wit

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 abort

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

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?

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 ag

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

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 hyphen

[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.

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 {% \t