[NTG-context] Opentype features

2009-05-11 Thread Arun Dev
Hello, I am using Context Mark II + XeTeX. I would like to know the following things. 1. How to use opentype font features. I tried the following code but it is not working. \definefontfeature[myfontfea][+onum] \definetypeface[Libertine][rm][Xserif][Linux Libertine

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Thomas A. Schmitz
On May 11, 2009, at 4:05 AM, Corsair wrote: Ok. Sorry for the vagueness. I use Adobe Caslon Pro as my body font, with XeTeX. And I enable the `onum' feature so that all numbers in my document appear as old-style numbers, which is good. But I also prefer some of them use the normal capital

Re: [NTG-context] Opentype features

2009-05-11 Thread Wolfgang Schuster
Am 10.05.2009 um 14:52 schrieb Arun Dev: Hello, I am using Context Mark II + XeTeX. I would like to know the following things. 1. How to use opentype font features. I tried the following code but it is not working. \definefontfeature[myfontfea][+onum]

Re: [NTG-context] texts in \component files are not present

2009-05-11 Thread Henning Hraban Ramm
Am 2009-05-11 um 02:32 schrieb Wei-Wei Guo: 1. Don't use project files as top level file for your document, use product and components (which can be nested) files only, projects are meta file when you have many document with the same topic (e.g. a magazine etc.) A magazine is really

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Wolfgang Schuster
Am 10.05.2009 um 18:25 schrieb Corsair: Hi all, I have `onum=yes' in my font features and it works great. But how can I type a capital number in this case? I want to use capital numbers in pagenumbers. Something like (untested): \definefontfeature[header][default][lnum=yes]

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Henning Hraban Ramm
Am 2009-05-11 um 08:13 schrieb Thomas A. Schmitz: Ok. Sorry for the vagueness. I use Adobe Caslon Pro as my body font, with XeTeX. And I enable the `onum' feature so that all numbers in my document appear as old-style numbers, which is good. But I also prefer some of them use the normal

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:13:59AM +0200, Thomas A. Schmitz wrote: Not sure if this is the canonical way, but here's how I do it: If I have onum=yes enabled for my normal Roman font, I disable it for my smallcaps variant and set page numbers etc as \sc. Or am I misunderstanding

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Thomas A. Schmitz
On May 11, 2009, at 8:39 AM, Corsair wrote: Thanks you for the reply! But it doesn't work for me, because small cap numbers in Adobe Caslon Pro are themselves old-style... I don't use XeTeX, but this works in mkiv: \definefontfeature [mydefault] [mode = node

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:35:12AM +0200, Wolfgang Schuster wrote: Am 10.05.2009 um 18:25 schrieb Corsair: Hi all, I have `onum=yes' in my font features and it works great. But how can I type a capital number in this case? I want to use capital numbers in pagenumbers. Something

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:37:46AM +0200, Henning Hraban Ramm wrote: Am 2009-05-11 um 08:13 schrieb Thomas A. Schmitz: Ok. Sorry for the vagueness. I use Adobe Caslon Pro as my body font, with XeTeX. And I enable the `onum' feature so that all numbers in my document appear as

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Hans Hagen
Corsair wrote: On Sun, May 10, 2009 at 09:44:58PM +0200, Hans Hagen wrote: Corsair wrote: Hi all, I have `onum=yes' in my font features and it works great. But how can I type a capital number in this case? I want to use capital numbers in pagenumbers. can you be a bit more explicit? to

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:37:46AM +0200, Henning Hraban Ramm wrote: Similarly you could define an additional variant, like noos. http://wiki.contextgarden.net/Font_Variants (Didn't check if font variants work ok in MkIV; I used them only for light and medium weights before.) I tried this

Re: [NTG-context] Opentype features

2009-05-11 Thread Hans Hagen
Wolfgang Schuster wrote: 2. Is there an eqivalent code to the following XeLaTeX code. \defaultfontfeatures{Scale=MatchLowercase} Only when you port the fontspec package to ConTeXt. i can not even imagine what it is supposed to mean -) 3. How to use Cambria Math font to typeset math.

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 09:28:27AM +0200, Hans Hagen wrote: you can try {\subff{oldstyle} 123} (this is kind of experimental and in testing by idris) Oops... Doesn't work. It just produces the word oldstyle followed by 123. Maybe my ConTeXt is too old? ConTeXt ver: 2008.05.21 15:21

Re: [NTG-context] Opentype features

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 09:37 schrieb Hans Hagen: Wolfgang Schuster wrote: 2. Is there an eqivalent code to the following XeLaTeX code. \defaultfontfeatures{Scale=MatchLowercase} Only when you port the fontspec package to ConTeXt. i can not even imagine what it is supposed to mean -) Write

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Hans Hagen
Corsair wrote: On Mon, May 11, 2009 at 09:28:27AM +0200, Hans Hagen wrote: you can try {\subff{oldstyle} 123} (this is kind of experimental and in testing by idris) Oops... Doesn't work. It just produces the word oldstyle followed by 123. Maybe my ConTeXt is too old? ConTeXt ver:

Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 09:40 schrieb Corsair: On Mon, May 11, 2009 at 09:28:27AM +0200, Hans Hagen wrote: you can try {\subff{oldstyle} 123} (this is kind of experimental and in testing by idris) Oops... Doesn't work. It just produces the word oldstyle followed by 123. Maybe my ConTeXt is

Re: [NTG-context] loading bib module breaks colors in tikz figures (mkiv)

2009-05-11 Thread Taco Hoekwater
Taco Hoekwater wrote: I can't upload right now, but you can verify that that fixes it by adding \protect right after the \usemodule[bib] New bib module here: http://modules.contextgarden.net/module/detail?name=bib Best wishes, Taco

[NTG-context] beta

2009-05-11 Thread Hans Hagen
Hi, i uploaded a beta with some fixes Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 |

Re: [NTG-context] beta

2009-05-11 Thread Henning Hraban Ramm
Am 2009-05-11 um 11:14 schrieb Hans Hagen: i uploaded a beta with some fixes Minimals have version 2009.05.11 10:51, is that the one? The footnote bugs still remain in that (no marks, no bypage). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/

[NTG-context] beta (2009-05-11)

2009-05-11 Thread Peter Rolf
Hi, there are still some problems with footnotes and overprinting. I have reactivated the old (sorry, non minimal) example for that. But for three problems it is pretty short :) 1. the footnote uses '1' instead of the chosen '*' (set 1) 2. the footnote marker is not bound to the footnote

Re: [NTG-context] beta (2009-05-11)

2009-05-11 Thread Hans Hagen
Peter Rolf wrote: Hi, there are still some problems with footnotes and overprinting. I have reactivated the old (sorry, non minimal) example for that. But for three problems it is pretty short :) 1. the footnote uses '1' instead of the chosen '*' (set 1) 2. the footnote marker is not bound

Re: [NTG-context] beta (2009-05-11)

2009-05-11 Thread Peter Rolf
Hans Hagen schrieb: Peter Rolf wrote: Hi, there are still some problems with footnotes and overprinting. I have reactivated the old (sorry, non minimal) example for that. But for three problems it is pretty short :) 1. the footnote uses '1' instead of the chosen '*' (set 1) 2. the footnote

Re: [NTG-context] beta

2009-05-11 Thread Wei-Wei Guo
Hans Hagen 写道: i uploaded a beta with some fixes The following bug is still there. ! Argument of \dotripletestemptyx has an extra }. inserted text \par to be read again } \doif #1#2-\edef \!!stringa {#1} \edef \!!stringb

Re: [NTG-context] beta (2009-05-11)

2009-05-11 Thread Henning Hraban Ramm
Am 2009-05-11 um 13:05 schrieb Peter Rolf: there are still some problems with footnotes and overprinting. I have reactivated the old (sorry, non minimal) example for that. But for three problems it is pretty short :) 1. the footnote uses '1' instead of the chosen '*' (set 1) That's only

[NTG-context] Chapter number in right margin?

2009-05-11 Thread Corsair
Hi all, I'm typesetting a double-sided document. And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area. So I write \def\MyChapter#1#2 {\inright{#1} #2} \setuphead [chapter] [command=\MyChapter] But it

[NTG-context] Font switching question

2009-05-11 Thread Yue Wang
Hi, Hans: I am working on Chinese support on XeTeX/ConTeXt and I almost finished that. I will later upload a module called t-zhspacing to the garden (or CTAN?). But there is one last problem. Let me explain like this. Suppost I have two typescripts (typeA and typeB) and both with complete

Re: [NTG-context] beta (2009-05-11)

2009-05-11 Thread Otared Kavian
Hi Hans, Indeed there is something going wrong with footnotes, and maybe the following remark may help fix the issue. It works (for me…) in the following example (note the \sction command commented out): %%% begin basic-test.tex \starttext This file has been typeset on \currentdate{} at

[NTG-context] New module - mkiv font loading

2009-05-11 Thread Wolfgang Schuster
Hi all, I wrote a new module to load fonts without the need to write typescripts for them - http://bitbucket.org/wolfs/simplefonts/ Wolfgang ___ If your question is of interest to others as well, please add an

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Yue Wang
Hi Wolfgang: nice script. Can the module meet my needs discussed in http://www.ntg.nl/pipermail/ntg-context/2009/040831.html ? or is it possible to extend the support to xetex? Yue Wang On Mon, May 11, 2009 at 8:23 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi all, I

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document.  And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area.  So I write    \def\MyChapter#1#2    {\inright{#1} #2}

Re: [NTG-context] beta (2009-05-11)

2009-05-11 Thread Hans Hagen
Peter Rolf wrote: Hi, there are still some problems with footnotes and overprinting. I have reactivated the old (sorry, non minimal) example for that. But for three problems it is pretty short :) 1. the footnote uses '1' instead of the chosen '*' (set 1) in mkiv conversion has become

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 14:59 schrieb Yanrui Li: On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document. And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area. So I write

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Mohamed Bana
great! thanks Wolfgang. is this working with the latest minimals? Hopefully I'll get to try it later. Wolfgang Schuster wrote: Hi all, I wrote a new module to load fonts without the need to write typescripts for them - http://bitbucket.org/wolfs/simplefonts/ Wolfgang

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 9:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 11.05.2009 um 14:59 schrieb Yanrui Li: On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document.  And I want the chapter numbers to

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 9:18 PM, Mohamed Bana mbana.li...@googlemail.com wrote: great!  thanks Wolfgang. is this working with the latest minimals?  Hopefully I'll get to try it later. Yes, I used it with latest beta for a whole afternoon. -- Best wishes, Li Yanrui

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Hans Hagen
Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B + \mframed[frame=off,background=color,backgroundcolor=gray]{C} \stopformula

Re: [NTG-context] beta (11.05.2009): hex colors in mkii

2009-05-11 Thread Hans Hagen
Peter Rolf wrote: Hi, hex colors don't work anymore in mkii (no problems in mkiv). All I get is black (reminds me of a song by the Rolling Stones)... I see a red door and I want it painted black No colors anymore I want them to turn black ... Minimal example:

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Hans Hagen
Wolfgang Schuster wrote: possible yes but it's a lot of work because the complete fallback mechanism needs to be written for XeTeX which is available for MkIV since a while. this is unlikely to happen (unless we add lots of optional code to mkii to deal with xetex which then probably results

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Yue Wang
On Mon, May 11, 2009 at 9:48 PM, Hans Hagen pra...@wxs.nl wrote: Wolfgang Schuster wrote: possible yes but it's a lot of work because the complete fallback mechanism needs to be written for XeTeX which is available for MkIV since a while. this is unlikely to happen (unless we add lots of

Re: [NTG-context] beta (11.05.2009): hex colors in mkii

2009-05-11 Thread Peter Rolf
Hans Hagen schrieb: Peter Rolf wrote: Hi, hex colors don't work anymore in mkii (no problems in mkiv). All I get is black (reminds me of a song by the Rolling Stones)... I see a red door and I want it painted black No colors anymore I want them to turn black ... Minimal example:

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Alan BRASLAU
On Monday 11 May 2009 15:40:04 Hans Hagen wrote: Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B +

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Hans Hagen
Yue Wang wrote: On Mon, May 11, 2009 at 9:48 PM, Hans Hagen pra...@wxs.nl wrote: Wolfgang Schuster wrote: possible yes but it's a lot of work because the complete fallback mechanism needs to be written for XeTeX which is available for MkIV since a while. this is unlikely to happen (unless we

Re: [NTG-context] Font switching question

2009-05-11 Thread Yue Wang
Hi Hans: let me give a better explanation. we define a typescript foobar. so we can call \foobar to load the foobar typeface. then we should define a macro like this: \def\switchtofoobar{\savecurrentstyle\foobar\getcurrentstyle} and call it like that: text 1 {\swichtofoobar text2} text 3 when

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Yue Wang
On Mon, May 11, 2009 at 10:33 PM, Hans Hagen pra...@wxs.nl wrote: Yue Wang wrote: On Mon, May 11, 2009 at 9:48 PM, Hans Hagen pra...@wxs.nl wrote: Wolfgang Schuster wrote: possible yes but it's a lot of work because the complete fallback mechanism needs to be written for XeTeX which is

Re: [NTG-context] texts in \component files are not present

2009-05-11 Thread Wei-Wei Guo
Henning Hraban Ramm 写道: Am 2009-05-11 um 02:32 schrieb Wei-Wei Guo: 1. Don't use project files as top level file for your document, use product and components (which can be nested) files only, projects are meta file when you have many document with the same topic (e.g. a magazine etc.)

Re: [NTG-context] beta (11.05.2009): hex colors in mkii

2009-05-11 Thread Aditya Mahajan
On Mon, 11 May 2009, Hans Hagen wrote: Peter Rolf wrote: Hi, hex colors don't work anymore in mkii (no problems in mkiv). All I get is black (reminds me of a song by the Rolling Stones)... I see a red door and I want it painted black No colors anymore I want them to turn black ...

Re: [NTG-context] texts in \component files are not present

2009-05-11 Thread Henning Hraban Ramm
Am 2009-05-11 um 16:53 schrieb Wei-Wei Guo: Then the magazine is your project, one issue is a product, one article is a component. For something similar I use a directory for the magazine and subdirectories per product; i.e. project and environment file reside in the main directory,

[NTG-context] New module t-zhspacing

2009-05-11 Thread Yue Wang
Dear list: Chinese TeX Society is proud to announce the t-zhspacing module to the ConTeXt society. The module is developed by Yue Wang based on Yin Dian's zhspacing.sty macro package and Jonathan Kew's unicode-letters.tex + xetex interchartoks mechanism. It is designed for the audience who

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Aditya Mahajan
On Mon, 11 May 2009, Hans Hagen wrote: Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B +

Re: [NTG-context] New module t-zhspacing

2009-05-11 Thread Yue Wang
Hi. now the module uses \switchtobodyfont[foobar] to switch the typeface which is not fast enough. in fact \foobar is the right way. I will make a commit tomorrow to speed up the font switching. By the way, After I finish the module, who should I turn to for submitting? Hans, the garden, or

[NTG-context] Metapost question

2009-05-11 Thread Jean Magnan de Bornier
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ... Do I have to make

[NTG-context] beta (11.05.2009): js interaction

2009-05-11 Thread Peter Rolf
Hi, some problems with js interaction stuff. I get ! Undefined control sequence. \dopresetfieldsymbol #1-\checkobjectreferences for nearly all interaction fields in mkiv. Mkii compiles, but the pop-up tooltip is only a black box (not the text 'tooltip'). I also had some problems with PDF

Re: [NTG-context] Font switching question

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 16:38 schrieb Yue Wang: Hi Hans: let me give a better explanation. we define a typescript foobar. so we can call \foobar to load the foobar typeface. then we should define a macro like this: \def\switchtofoobar{\savecurrentstyle\foobar\getcurrentstyle} and call it like

Re: [NTG-context] Metapost question

2009-05-11 Thread Peter Rolf
Jean Magnan de Bornier schrieb: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file!

Re: [NTG-context] New module t-zhspacing

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 17:21, Aditya Mahajan wrote: On Mon, 11 May 2009, Yue Wang wrote: By the way, After I finish the module, who should I turn to for submitting? Hans, the garden, or CTAN? Thanks. Submit it to the garden. If you also want it on CTAN, you can ask Mojca or Patrick to

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the

Re: [NTG-context] Metapost question

2009-05-11 Thread Aditya Mahajan
On Mon, 11 May 2009, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file!

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 17:42, Mojca Miklavec wrote: On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't

Re: [NTG-context] New module t-zhspacing

2009-05-11 Thread Yue Wang
Hi, Mojca: On Mon, May 11, 2009 at 11:36 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Mon, May 11, 2009 at 17:21, Aditya Mahajan wrote: On Mon, 11 May 2009, Yue Wang wrote: By the way, After I finish the module, who should I turn to for submitting? Hans, the garden, or CTAN?

Re: [NTG-context] Font switching question

2009-05-11 Thread Yue Wang
On Mon, May 11, 2009 at 11:23 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 11.05.2009 um 16:38 schrieb Yue Wang: Hi Hans: let me give a better explanation. we define a typescript foobar. so we can call  \foobar to load the foobar typeface. then we should define a

Re: [NTG-context] Metapost question

2009-05-11 Thread Jean Magnan de Bornier
Le 11 mai à 17:34:42 Peter Rolf indi...@gmx.net écrit notamment: | Jean Magnan de Bornier schrieb: | Hi all, | Trying to use mpost with (today's) minimals, I get this answer: | ... | 16:55 j...@boldair /home/jean/graph % mpost ecindf | | Sorry, I can't find

[NTG-context] Two issues related to xetex

2009-05-11 Thread Yue Wang
Hi, Hans and Mojca: first, (to Mojca) the first-setup.sh script still deletes fontconfig cache when updating on windows. second, (to Hans) unicode-letters.tex is read when we dump plain TeX or LaTeX format in TeXLive. This file is wrote by Jonathan Kew in order to initialize XeTeX. It defines

Re: [NTG-context] Metapost question

2009-05-11 Thread Hans Hagen
Mojca Miklavec wrote: On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I

[NTG-context] \newcommand ala ConTeXt

2009-05-11 Thread Xan
Hi, In latex is wonderful be able to make abreviatures like: \newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))} and use like $\dist{t}$, ... for not typing all the text. What is the ConTeXt version of that? Please CC mail me. Thanks a lot, Xan.

Re: [NTG-context] Two issues related to xetex

2009-05-11 Thread Hans Hagen
Yue Wang wrote: second, (to Hans) unicode-letters.tex is read when we dump plain TeX or LaTeX format in TeXLive. This file is wrote by Jonathan Kew in order to initialize XeTeX. It defines many important unicode properties into XeTeX. However, ConTeXt do not load that file when dumping the

Re: [NTG-context] \newcommand ala ConTeXt

2009-05-11 Thread Yue Wang
\def\dist#1{d(\sigma_g(#1), \sigma_h(#1))} or something more context way: \define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))} On Tue, May 12, 2009 at 1:05 AM, Xan dxpubl...@telefonica.net wrote: Hi, In latex is wonderful be able to make abreviatures like: \newcommand{\dist}[1]{d(\sigma_g(#1),

Re: [NTG-context] \newcommand ala ConTeXt

2009-05-11 Thread Hans Hagen
Xan wrote: Hi, In latex is wonderful be able to make abreviatures like: \newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))} and use like $\dist{t}$, ... for not typing all the text. What is the ConTeXt version of that? Please CC mail me. see s-abr-* for examples ... one can have several

Re: [NTG-context] New module t-zhspacing

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 16:55 schrieb Yue Wang: Dear list: Chinese TeX Society is proud to announce the t-zhspacing module to the ConTeXt society. The module is developed by Yue Wang based on Yin Dian's zhspacing.sty macro package and Jonathan Kew's unicode-letters.tex + xetex interchartoks

[NTG-context] What is equivalent of latex math aligned in ConTeXt?

2009-05-11 Thread Xan
Hi, I read the document Using \startalign and friends of Aditya (that it's good) and I can't find anything under ams aligned. Is this an equivalent in ConText? For example, what is the equivalent of: \begin{equation*} \left.\begin{aligned} 2^2 | n_0\\ 4^2 | n_0 + 2 \Rightarrow (2^2)^2 |

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 19:33, Jean Magnan de Bornier wrote: Le 11 mai à 18:52:08 Mojca Miklavec écrit notamment: | But then I still have unending the | ... | metafun 2009-5-11 18:30 | metafun 2009-5-11 18:30 | metafun 2009-5-11 18:30 | metafun 2009-5-11 18:30 |

Re: [NTG-context] \newcommand ala ConTeXt

2009-05-11 Thread Xan
Thanks, Yue. I suspected it should be two ways: pure TeX and ConTeXt way. En/na Yue Wang ha escrit: \def\dist#1{d(\sigma_g(#1), \sigma_h(#1))} or something more context way: \define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))} On Tue, May 12, 2009 at 1:05 AM, Xan dxpubl...@telefonica.net wrote:

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 15:48 schrieb Hans Hagen: Wolfgang Schuster wrote: possible yes but it's a lot of work because the complete fallback mechanism needs to be written for XeTeX which is available for MkIV since a while. this is unlikely to happen (unless we add lots of optional code to

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 19:01, Hans Hagen wrote: Mojca Miklavec wrote:    states.set(formats.metafun, true) Maybe mpost should be added there as well (though I didn't test yet if that indeed helps). maybe ... if someone is using mp directly in context -) in luatex/mkiv formats are

Re: [NTG-context] What is equivalent of latex math aligned in ConTeXt?

2009-05-11 Thread Aditya Mahajan
On Mon, 11 May 2009, Xan wrote: Hi, I read the document Using \startalign and friends of Aditya (that it's good) and I can't find anything under ams aligned. Is this an equivalent in ConText? Strictly speaking, none. You can fake aligned and gathered with matrices. For example, what is

Re: [NTG-context] Two issues related to xetex

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 18:38, Yue Wang wrote: Hi, Hans and Mojca: first, (to Mojca) the first-setup.sh script still deletes fontconfig cache when updating on windows. Hmmm ... while experimenting a bit and after writing a long answer explaining that I'll come back to it after a while ... I

Re: [NTG-context] Two issues related to xetex

2009-05-11 Thread Hans Hagen
Mojca Miklavec wrote: Hans, does this make sense? local normalflags = states.get(rsync.flags.normal) local deleteflags = if (destination:find(texmf$) or destination:find(context$)) and (not environment.argument(keep)) then deleteflags = states.get(rsync.flags.delete) end command =

Re: [NTG-context] narrow space in \ldots.

2009-05-11 Thread Ryo Furue
Wolfgang, | \unexpanded\def\fourdots{{\def\periodswidth{.3em}\periods[4]}} | | \starttext | Hello\fourdots\ World\fourdots | | Hello\fourdots\ World. | \stoptext Thanks for the macro! It's almost perfect. . . . I thought I was imagining things, but the distance between the last letter of the

Re: [NTG-context] narrow space in \ldots.

2009-05-11 Thread Hans Hagen
Ryo Furue wrote: By the way, I'm wondering where one should store personal macro files. With LaTeX (texlive-latex), ~/texmf/tex/latex/ seems to be the default place. Is ~/texmf/tex/context/ a recommended place? texmf-project/tex/context/user/ is a pretty safe place Hans

Re: [NTG-context] beta (11.05.2009): js interaction

2009-05-11 Thread Hans Hagen
Peter Rolf wrote: Hi, some problems with js interaction stuff. I get ! Undefined control sequence. \dopresetfieldsymbol #1-\checkobjectreferences for nearly all interaction fields in mkiv. Mkii compiles, but the pop-up tooltip is only a black box (not the text 'tooltip'). I also had some

Re: [NTG-context] narrow space in \ldots.

2009-05-11 Thread Wolfgang Schuster
\def\fourdots {\ldotp\ldotp\ldotp\ldotp} Wolfgang Am 11.05.2009 um 23:14 schrieb Ryo Furue: Wolfgang, | \unexpanded\def\fourdots{{\def\periodswidth{.3em}\periods[4]}} | | \starttext | Hello\fourdots\ World\fourdots | | Hello\fourdots\ World. | \stoptext Thanks for the macro! It's almost

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 11 May 2009, Hans Hagen wrote: Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B +

Re: [NTG-context] in luatex/mkiv formats are generated on the fly

2009-05-11 Thread Vyatcheslav Yatskovsky
Hello, Hans in luatex/mkiv formats are generated on the fly What do you mean? That one does NOT need context --make at all? Best, Vaytcheslav ___ If your question is of interest to others as well, please add an

Re: [NTG-context] in luatex/mkiv formats are generated on the fly

2009-05-11 Thread Aditya Mahajan
On Tue, 12 May 2009, Vyatcheslav Yatskovsky wrote: Hello, Hans in luatex/mkiv formats are generated on the fly What do you mean? That one does NOT need context --make at all? Yes. Just clear your texmf-cache and see what happens :-) Aditya

Re: [NTG-context] Metapost question

2009-05-11 Thread Jean Magnan de Bornier
Le 11 mai à 20:02:36 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit notamment: | | Which command does that evil? They both seem to work here ... | | mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! | I don't understand. Can you please post the whole log. You cannot

[NTG-context] XeConTeXt bug report III: Wrong hyperlink

2009-05-11 Thread Yue Wang
Hi, Hans and Jin-Hwan: When using ConTeXt to produce my documents, I found that all hyperlinks are wrong. And here is a simple test. The tex and pdf files are attached in the mail. The problem will happen when: 1) using pdftex to produce the dvi, and use dvipdfmx to convert the dvi to pdf. 2)

[NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-11 Thread Yue Wang
Hi, Hans and Jonathan: I made some testing samples in ConTeXt to test XeTeX. but the result is quite strange. All benchmark are get from the second run: Sample 1: \definefont[a][file:SimSun] \starttext \dorecurse{1}{ hello {\a 你好}} \stoptext And here is the result: XeTeX: TeXExec |

[NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-11 Thread Yue Wang
Hi, Hans and Jin-Hwan: Here is a simple ConTeXt metafun demo file: \starttext \setupcolors[state=start] \startMPpage path p ; color c[] ; p := fullsquare scaled 4cm ; c[0] := transparent(1,.5,red) ; c[1] := transparent(1,.5,green) ; c[2] := transparent(1,.5,blue) ; for i = 0 upto 2 :