Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I created a testing file which tests existence and type of (tex|context|document).(modes|arguments|variables) by Lua - see the attachments. It seems that: - Modes are accessible by tex.modes[a-mode]. - - tex.modes are 'false' by default. I.e. they are not 'nil' but 'false', even if

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread luigi scarso
2011/1/7 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I created a testing file which tests existence and type of (tex|context|document).(modes|arguments|variables) by Lua - see the attachments. It seems that: - Modes are accessible by tex.modes[a-mode]. - - tex.modes

Re: [NTG-context] Including xfig graphics

2011-01-07 Thread Alan BRASLAU
Hello, Ultimately, you will probably be more satisfied using Metapost graphics natively within ConTeXt. With xfig, you can export to Metapost. This code can probably be directly used by ConTexT, or perhaps with minor modifications. As Taco wrote, if you post an example (file.fig), someone can

Re: [NTG-context] Including xfig graphics

2011-01-07 Thread Taco Hoekwater
On 01/07/2011 10:07 AM, Alan BRASLAU wrote: Hello, Ultimately, you will probably be more satisfied using Metapost graphics natively within ConTeXt. With xfig, you can export to Metapost. This code can probably be directly used by ConTexT, or perhaps with minor modifications. I did a quick

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread Peter Münster
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz writes: context.exe t.mkiv --arguments=ARG1=arg1 --arguments=ARG2=arg2 It's supposed to be --arguments=ARG1=arg1,ARG2=arg2 Peter ___ If your question is of

Re: [NTG-context] Fontfeature: smcp

2011-01-07 Thread Wolfgang Schuster
Am 06.01.2011 um 23:02 schrieb Willi Egger: Hm, has something change in the way a font feature should be implemented? \definefontsynonym [SansRegularCaps] [Sans] [ features=smallcaps] \definefontsynonym [SansCaps] [Sans] [features=smallcaps] If I add

Re: [NTG-context] Fontfeature: smcp

2011-01-07 Thread Willi Egger
Hi Wolfgang, thanks for your help!. Still no avail... My script looks now like \definefontfeature[smcp][default][smcp=yes] \starttypescript [sans] [seravek] [name] \definefontsynonym [Seravek-Roman] [file:Seravek-Regular] [features=default] \stoptypescript \starttypescript [sans]

Re: [NTG-context] Fontfeature: smcp

2011-01-07 Thread Wolfgang Schuster
Am 07.01.2011 um 12:23 schrieb Willi Egger: Hi Wolfgang, thanks for your help!. Still no avail... My script looks now like \definefontfeature[smcp][default][smcp=yes] Does it help when you add 'script=latn' to the feature setting. Wolfgang

Re: [NTG-context] \tfx or \tfxx is fail with nonintegral fonts size

2011-01-07 Thread 李延瑞
2011/1/6 views63 view...@gmail.com: Hi all, I find  the \tfx or \tfxx is fail in nonintegral fonts size  with latest beta (MKIV), but the \small was worked. example: \starttext \switchtobodyfont[15.01pt] \tfxx test \switchtobodyfont[15pt] \tfx test \switchtobodyfont[15.01pt]

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Wolfgang Schuster
Am 07.01.2011 um 03:35 schrieb Anand Raj: Hi, Herewith I am attaching the question_svg.xml and question.tex files. With this I am trying to convert the xml to pdf. I encounter two problems here. I am using asciimath module in my tex. 1. times not rendered to X In the first

Re: [NTG-context] Fontfeature: smcp

2011-01-07 Thread Willi Egger
Hi Wolfgang, unfortunately that does not change the outcome: no smallcaps. - It does also not help to change the statement into \definefontfeature[smcp][sript=latn,smcp=yes] Gruss Willi On 7 Jan 2011, at 12:33, Wolfgang Schuster wrote: Am 07.01.2011 um 12:23 schrieb Willi Egger: Hi

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Wolfgang Schuster
Am 07.01.2011 um 13:57 schrieb Wolfgang Schuster: Am 07.01.2011 um 03:35 schrieb Anand Raj: Hi, Herewith I am attaching the question_svg.xml and question.tex files. With this I am trying to convert the xml to pdf. I encounter two problems here. I am using asciimath module in my tex.

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Wolfgang Schuster
Am 07.01.2011 um 03:35 schrieb Anand Raj: Hi, Herewith I am attaching the question_svg.xml and question.tex files. With this I am trying to convert the xml to pdf. I encounter two problems here. 2. embed to svg In the last question in the xml, can find line embed

Re: [NTG-context] Fontfeature: smcp

2011-01-07 Thread Willi Egger
Hi Wolgang, coming back to my previous mail. When using the simple-fonts module I get teh following warnings: system : module simplefonts loaded (/Applications/lua65/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.tex loading : ConTeXt User Module / Simplefonts +

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Philipp A.
2011/1/7 Wolfgang Schuster schuster.wolfg...@googlemail.com Sorry but but i mixed calcmath and asciimath but nevertheless you should look at the source where you can find the hint that \times is produced with “xx” as input. Wolfgang there are 3 math operators which can be “times”: “·”,

[NTG-context] kerning info (mkiv)

2011-01-07 Thread Peter Rolf
Hi, for a text background graphic I need the character box sizes of a given string. I managed to collect the needed info (width, height, depth, kerns), but there is still some flaw in the kerning part. For example: VATo is printed out (in the shell) as V 12 11 0 *kerning

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Wolfgang Schuster
Am 07.01.2011 um 14:43 schrieb Philipp A.: 2011/1/7 Wolfgang Schuster schuster.wolfg...@googlemail.com Sorry but but i mixed calcmath and asciimath but nevertheless you should look at the source where you can find the hint that \times is produced with “xx” as input. Wolfgang there are

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Philipp A.
2011/1/7 Wolfgang Schuster schuster.wolfg...@googlemail.com Asciimath: [xx]= \\times , Calcmath: elseif how == '*' then texprint(\\times) These are the relevant parts from the asciimath and calcmath sources, to get the output

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Wolfgang Schuster
Am 07.01.2011 um 15:02 schrieb Philipp A.: out of curiosity: how do you get “·”? asciimath: “*” calcmath: i guess “·” Wolfgang ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] kerning info (mkiv)

2011-01-07 Thread Taco Hoekwater
On 01/07/2011 02:48 PM, Peter Rolf wrote: The character stands in the first column, followed by width, height and depth (in pixel). The *kerning line shows the kerning value (in sp) of the neighbouring character pair. No problem here. But A much longer Test graphic VATo sees no kerning for

Re: [NTG-context] kerning info (mkiv)

2011-01-07 Thread Peter Rolf
Am 07.01.2011 15:13, schrieb Taco Hoekwater: On 01/07/2011 02:48 PM, Peter Rolf wrote: The character stands in the first column, followed by width, height and depth (in pixel). The *kerning line shows the kerning value (in sp) of the neighbouring character pair. No problem here. But A much

Re: [NTG-context] Handling EMBED tag in Tex

2011-01-07 Thread Philipp A.
2011/1/7 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 07.01.2011 um 15:02 schrieb Philipp A.: out of curiosity: how do you get “·”? asciimath: “*” calcmath: i guess “·” Wolfgang thanks :) ___ If

Re: [NTG-context] Including xfig graphics

2011-01-07 Thread Florian Unglaub
On Fri, Jan 07, 2011 at 10:09:47AM +0100, Taco Hoekwater wrote: I did a quick test, and the transfig mp code starts with this nice (!) block of verbatimtex: % +MP-ADDITIONAL-HEADER verbatimtex %latex \documentclass{article} \begin{document} etex % -MP-ADDITIONAL-HEADER [...] It looks

[NTG-context] math symbol bug ?

2011-01-07 Thread fares . benmena
Dear ConTeXt developpers, While trying to use mkiv, I noticed that the output of the \div macro in math mode is not the division symbol as I was expecting but the div text. I didn't find any mention about the changes that affect the math symbols, thus considered this behavior as a bug. I

Re: [NTG-context] math symbol bug ?

2011-01-07 Thread Aditya Mahajan
On Jan 7, 2011, at 10:48 AM, fares.benm...@free.fr wrote: Dear ConTeXt developpers, While trying to use mkiv, I noticed that the output of the \div macro in math mode is not the division symbol as I was expecting but the div text. I thought that we had fixed this long ago. This is

[NTG-context] xml-processing: missing or ungrouped '='

2011-01-07 Thread Achim Jander
Hi all a problem with processing XML data (maybe a lack of knowledge). If in the example below I set the chapter-attributes directly in \startxmlsetups xml:title (commented out) everything is like I expected. Because I have headings to be treated equally in multiple hierarchies I tried to

Re: [NTG-context] still struggling with footnotes

2011-01-07 Thread Hans Hagen
On 6-1-2011 4:58, Achim Jander wrote: I changed pages[number] = range to local order = v.references.order pages[order] = range and accordingly depends on the situation i guess one you have it working ok you can wikify this trickery (the lua interface is unlikely to change much) which

Re: [NTG-context] xml-processing: missing or ungrouped '='

2011-01-07 Thread Hans Hagen
On 7-1-2011 7:04, Achim Jander wrote: \startxmlsetups xml:title \startchapter[ \xmlcommand{#1}{.}{xml:splitHeader} title=... %number=\xmldoifelse{#1}{/num}{yes}{no}, %works %ownnumber=\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{},%works %title={\xmlflush{#1}},%works

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread Hans Hagen
On 7-1-2011 9:32, Procházka Lukáš Ing. - Pontex s. r. o. wrote: - Modes are accessible by tex.modes[a-mode]. indeed - - tex.modes are 'false' by default. I.e. they are not 'nil' but 'false', even if not specified on the command line. (tex.mode.__newindex predefined to this purpose?)

Re: [NTG-context] What has happened to externalfigure command?

2011-01-07 Thread Hans Hagen
On 6-1-2011 2:40, Verhaag, G.C.H.M. wrote: Hi, I'm struggling to get an older ConTeXt file that worked well under TeXLive 2008, but not any more with ConTeXt minimals! nothing changed ... dp others have problems as well? -

Re: [NTG-context] How to get numbered cases'ed equations ?

2011-01-07 Thread Hans Hagen
On 4-1-2011 3:19, Cedric Mauclair wrote: I am pretty sure there is a better way to do it, but adding \handleplaceformulanumbering after \stopcases works. Maybe Aditya can check (expected) behaviour. Hans -