[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. l...@pontex.cz: 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 luigi.sca...@gmail.com 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

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

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 mojca.miklavec.li...@gmail.com wrote: Hello, I'm trying to use \usetypescript[antykwa-poltawskiego] \setupbodyfont[antykwa-poltawskiego,10pt] \starttext \eTeX \stoptext but it fails miserably. An easy

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. l...@pontex.cz 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

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]

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.

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?

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

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

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 luigi.sca...@gmail.com 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

[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

[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

[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

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(...)

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

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

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

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

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,

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

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

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

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

2011-06-08 Thread Marco
On 2011-06-08 Wolfgang Schuster schuster.wolfg...@googlemail.com 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

[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

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

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

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

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

Re: [NTG-context] beta

2011-06-08 Thread Vedran Miletić
2011/6/8 Otared Kavian ota...@gmail.com: 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

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 again? The newest

Re: [NTG-context] beta

2011-06-08 Thread 李延瑞
2011/6/9 Hans Hagen pra...@wxs.nl: 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