[NTG-context] modules at the garden

2008-05-13 Thread Thomas A. Schmitz
Hi all, hi gardeners,

there seems to be a problem with the modules section; when I try to  
open the page, I get the message Service Temporarily Unavailable
The server is temporarily unable to service your request due to  
maintenance downtime or capacity problems. Please try again later.



All best

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] avoid resetting of partnumber in appendix

2008-05-13 Thread Wolfgang Schuster
On Sun, May 11, 2008 at 5:41 PM, Suno Ano [EMAIL PROTECTED] wrote:
 How can I avoid that resetting of the partnumber within the appendices?
 For example, I have

 ,[ Example ]
 | \starttext
 | \part{My First Part within Text}
 | \part{My Second  Part within Text}
 |
 | \startappendices
 | \part{My First Part within the Appendix}
 |
 | \stopappendices
 | \stoptext
 `



 Since I used `resetnumber=no' with `\setuphead[part][...]' \part{My
 First Part within Text} becomes part 1 and \part{My Second Part within
 Text} becomes part 2 in the table of contents ... just what I want.


 Now, I would like to become \part{My First Part within the Appendix}
 part 3 in the Table of Contents instead of being reset to number 1
 again. How do I do this?

This is not possible, part numbers are reset with each new sectionblock
and the behaviour is hard coded.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Trouble with index

2008-05-13 Thread Wolfgang Schuster
On Sat, May 10, 2008 at 7:36 PM,  [EMAIL PROTECTED] wrote:

 In the fileOn Wed, Apr 30, 2008 at 1:00 PM,  cidadaum at sapo.pt wrote:
 
  So far I have not succeded to make an index in a book I am typesetting.
  I write something like:
  \starttext
  \defineregister[index][indices]

 Predefined, can be omitted.

  \index[Tantrum]Tantrums can be normal for

 \index{Tantrum}

  \index[tantrum][tantrum+toddlers]toddlers. Young children have them for

 \index{tantrum+toodlers}

  many reasons like being tired, feeling out of control, over-stimulated,
  or wanting something they can't have.
  General hints: Toddlers and preschoolers cannot regulate themselves
  because they don't yet know their own limits.
  \completeindex
  \stoptext

 Wolfgang

 I have made a file with this post and I have managed to do an index.
 But with another file I got this message:
 system  : index not found/processed
 ! Extra \endgroup.
 \doplaceregister ...packed \stopcolumns \endgroup
   \fi
 \docompleteregister ...ter [\currentregister ][#2]
   \page [\v!yes ]\endgroup \fi
 to be read again
\par
 l.2984

 ?
 [42.42]
 ! Extra \endgroup.
 \docompleteregister ...2]\page [\v!yes ]\endgroup
   \fi
 to be read again
\par

 Is there something wrong I am doing.
 At the beginning I put this:
 \defineregister[index][indices]

This did not harm but \index is already defined in core-reg.tex and you need
\defineregister only if you want to use more indices.

 and \completeindex at the end.

Make a example where we can reproduce the error.

 Armando

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mlib broken

2008-05-13 Thread Peter Rolf
Hi,

just tested the newest context release. Sadly mlib seems to be broken 
(no output). Same result on 'context live' with

% engine=luatex
\setupcolors[state=start]

\starttext
\null
\startMPcode
 fill unitsquare xyscaled(10cm,1cm) withcolor red;
\stopMPcode

\stoptext


Peter
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Uppercase ssharp with XeTeX and LuaTeX

2008-05-13 Thread Wolfgang Schuster
On Tue, May 13, 2008 at 12:57 PM, Arthur Reutenauer
[EMAIL PROTECTED] wrote:
  is there a solution for ssharp with XeTeX and LuaTeX, I have a word
  with a ß in it
  which I convert into uppercase letters and the ß remains a lowercase 
  characters.

  The problem is that there is no uccode for ß (U+00DF) in char-def.lua
 and that Mark IV has no way of taking care of this for the moment.  But
 there should be, of course.

I was indeed hoping for a little bit Lua magic to have a working solution but
in this case I prefer something that could be used as argument for the style
key in \doattributes.

\unprotect

\definesystemvariable{xx}

\def\setupcommand
  {\dodoubleargument\getparameters[\??xx]}

\def\startcommand{\dostartattributes\??xx\c!style\c!color\empty}

\def\stopcommand{\dostopattributes}

\setupcommand[style=\it]

\protect

\starttext

\input knuth

\startcommand
\input knuth\par
\stopcommand

\input knuth

\stoptext

It should be possible to say style=WORD to get the second text
completely uppercase even if the text is taken from a buffer or a macro.

Arthur

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Uppercase ssharp with XeTeX and LuaTeX

2008-05-13 Thread Hans Hagen
Wolfgang Schuster wrote:
 On Tue, May 13, 2008 at 12:57 PM, Arthur Reutenauer
 [EMAIL PROTECTED] wrote:
 is there a solution for ssharp with XeTeX and LuaTeX, I have a word
 with a ß in it
 which I convert into uppercase letters and the ß remains a lowercase 
 characters.
  The problem is that there is no uccode for ß (U+00DF) in char-def.lua
 and that Mark IV has no way of taking care of this for the moment.  But
 there should be, of course.
 
 I was indeed hoping for a little bit Lua magic to have a working solution but
 in this case I prefer something that could be used as argument for the style
 key in \doattributes.

that would become rather messy

you can define a style yourself and hook in the attribute

or do something

\setupcommand[style={\setcharactercasing[1]\it}]


Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mlib broken

2008-05-13 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On May 13, 2008, at 10:38 AM, Peter Rolf wrote:
 
 Hi,

 just tested the newest context release. Sadly mlib seems to be broken
 (no output).
 
 What the man said; it worked on the version of 2008.05.09. I tried to  
 look into the diffs of mlib-pps.lua, but wasn't able to see anything.

this is a side effect of more extensive textext processing (i onlt 
tested exampled that has textexts)

i fixed it

i also added support for \SS - SS but i only added an entry for this 
one character; new keys in char-def are: uccodes and lccodes; this is 
only supported in luatex

i wonder what is broken now -)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mlib broken

2008-05-13 Thread Thomas A. Schmitz

On May 13, 2008, at 2:47 PM, Hans Hagen wrote:

 i fixed it

 i also added support for \SS - SS but i only added an entry for this
 one character; new keys in char-def are: uccodes and lccodes; this is
 only supported in luatex

 i wonder what is broken now -)

 Hans

Thanks Hans, works here. And remember Camus: Il faut imaginer Sisyphe  
heureux. :-)


Best

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Uppercase ssharp with XeTeX and LuaTeX

2008-05-13 Thread Wolfgang Schuster
On Tue, May 13, 2008 at 2:45 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Wolfgang Schuster wrote:
  On Tue, May 13, 2008 at 12:57 PM, Arthur Reutenauer
  [EMAIL PROTECTED] wrote:
  is there a solution for ssharp with XeTeX and LuaTeX, I have a word
  with a ß in it
  which I convert into uppercase letters and the ß remains a lowercase 
  characters.
   The problem is that there is no uccode for ß (U+00DF) in char-def.lua
  and that Mark IV has no way of taking care of this for the moment.  But
  there should be, of course.
 
  I was indeed hoping for a little bit Lua magic to have a working solution 
  but
  in this case I prefer something that could be used as argument for the style
  key in \doattributes.

 that would become rather messy

 you can define a style yourself and hook in the attribute

 or do something

 \setupcommand[style={\setcharactercasing[1]\it}]

I will try this but don't care too much about this, the style option is only
for the americans to have the subject for a letter in capitals.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mlib broken

2008-05-13 Thread Peter Rolf
Thomas A. Schmitz schrieb:
 On May 13, 2008, at 2:47 PM, Hans Hagen wrote:
 
 i fixed it

 i also added support for \SS - SS but i only added an entry for this
 one character; new keys in char-def are: uccodes and lccodes; this is
 only supported in luatex

 i wonder what is broken now -)

 Hans
 
 Thanks Hans, works here. And remember Camus: Il faut imaginer Sisyphe  
 heureux. :-)

:D

yep, works fine. also many thanks from my side.

 
 
 Best
 
 Thomas
 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mlib broken

2008-05-13 Thread Arthur Reutenauer
 i also added support for \SS - SS but i only added an entry for this 
 one character; new keys in char-def are: uccodes and lccodes; this is 
 only supported in luatex

  Great, seems to work as expected.  Sad for XeTeX, though.

Arthur
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] figure not found box (mkiv)

2008-05-13 Thread Peter Rolf
Hi,

one problem fixed, the next one is knocking on the door. This must be 
the definition of a lucky man ;)

Can anybody try the following code? Mhh, no problems on 'context live' 
(luatex 0.25.2).

% engine=luatex
\starttext
\externalfigure[notfound.png]
\stoptext


results here in

[..]
! Missing number, treated as zero.
to be read again
\relax
\BeforeGroup ...medparameter \c!backgroundscreen }
   \bgroup \aftergroup 
\After...
argument ...amedparameter \c!backgroundscreen ]{
   \dofilledbox }
\secondoftwoarguments #1#2-#2

\next1 ...d {\??ov \currentbackground }\donothing
   }}}\wd \extraframebox 
\zer...
\rawprocesscommaitem ...commalevel \endcsname {#1}
   \expandafter 
\rawprocessco...
...
l.9


Regards, Peter
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure not found box (mkiv)

2008-05-13 Thread Thomas A. Schmitz

On May 13, 2008, at 4:56 PM, Peter Rolf wrote:

 Hi,

 one problem fixed, the next one is knocking on the door. This must be
 the definition of a lucky man ;)

 Can anybody try the following code? Mhh, no problems on 'context live'
 (luatex 0.25.2).

Nope, no problem here. Are you running luatex 0.25.3? That's what I  
have here.

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure not found box (mkiv)

2008-05-13 Thread Peter Rolf
Thomas A. Schmitz schrieb:
 On May 13, 2008, at 4:56 PM, Peter Rolf wrote:
 
 Hi,

 one problem fixed, the next one is knocking on the door. This must be
 the definition of a lucky man ;)

 Can anybody try the following code? Mhh, no problems on 'context live'
 (luatex 0.25.2).
 
 Nope, no problem here. Are you running luatex 0.25.3? That's what I  
 have here.

thanks Thomas for testing. same version here (but maybe trunk).

This is luaTeX, Version 3.141592-snapshot-0.25.3-2008050622-2.2 (Web2C 
7.5.6) kpathsea version 3.5.6

so it looks more like a local problem (a strange one) :(

more investigations after zappa ;)


 Thomas
 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure not found box (mkiv)

2008-05-13 Thread Peter Rolf
Peter Rolf schrieb:
 Thomas A. Schmitz schrieb:
 On May 13, 2008, at 4:56 PM, Peter Rolf wrote:

 Hi,

 one problem fixed, the next one is knocking on the door. This must be
 the definition of a lucky man ;)

 Can anybody try the following code? Mhh, no problems on 'context live'
 (luatex 0.25.2).
 Nope, no problem here. Are you running luatex 0.25.3? That's what I  
 have here.

 thanks Thomas for testing. same version here (but maybe trunk).
 
 This is luaTeX, Version 3.141592-snapshot-0.25.3-2008050622-2.2 (Web2C 
 7.5.6) kpathsea version 3.5.6
 
 so it looks more like a local problem (a strange one) :(
 
 more investigations after zappa ;)
 
first of all: zappa was delicious :)

now the news
- no problems with the 0.25.3 release
- same error with yesterdays trunk

this is a really a strange (but interesting) bug. anyhow nothing i can 
fix...

Best wishes, Peter

 
 Thomas
 ___
 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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Math equation with indentation

2008-05-13 Thread 302302
Hi,
I need to use a multieqaution in this form ( 
http://img233.imageshack.us/img233/2372/eqsx3.png ). I am mostly interested in 
the right brace and the indentation after the subject to. I tried to use 
mathmatrix but without success. Can you help me with it?
Thanks
Czenek

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Arabic transliteration

2008-05-13 Thread Alan Bowen
Greetings!

I am trying to typeset some transliterated Arabic and one of the  
diacritical marks is giving me a problem. How does one put what looks  
like a breve accent (a cup or concave arc) under an letter in ConTeXT?

Cheers, Alan
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arabic transliteration

2008-05-13 Thread Idris Samawi Hamid
Hi,

On Tue, 13 May 2008 15:53:17 -0600, Alan Bowen [EMAIL PROTECTED]  
wrote:

 Greetings!

 I am trying to typeset some transliterated Arabic and one of the
 diacritical marks is giving me a problem. How does one put what looks
 like a breve accent (a cup or concave arc) under an letter in ConTeXT?

I used to use macros for that purpose, with the latest Latin Modern fonts  
you should have every Arabic transliteration character you need, including  
the arc under the h, ie, ḫ. In luatex you just type ḫ. Try it!

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arabic transliteration

2008-05-13 Thread Mojca Miklavec
On Tue, May 13, 2008 at 11:53 PM, Alan Bowen wrote:
 Greetings!

  I am trying to typeset some transliterated Arabic and one of the
  diacritical marks is giving me a problem. How does one put what looks
  like a breve accent (a cup or concave arc) under an letter in ConTeXT?

Hello,

First of all, it's nice if the font provides that character. Which
fonts are you using for your document?

I wanted to send you an example of how it can be done in different
ways, but there seems to be in interesting problem with XeTeX at the
moment, so I wasn't able to play with it.

But in general:

a) simply use character U+032E (combining breve below)
It kind-of-works with LM, but not perfect (there has been some
discussion about how to improve the behaviour of combining accents in
LM)

b) use character brevebelow from LM and use TeX to place the accent,
see enco-ini.tex for examples

Of course you can assign your own macro to either of the two options
to access the accent more easily.

Mojca


brevebelow.tex
Description: TeX document


brevebelow.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arabic transliteration

2008-05-13 Thread Idris Samawi Hamid
On Tue, 13 May 2008 16:24:02 -0600, Mojca Miklavec  
[EMAIL PROTECTED] wrote:

 I wanted to send you an example of how it can be done in different
 ways, but there seems to be in interesting problem with XeTeX at the
 moment, so I wasn't able to play with it.

 But in general:

 a) simply use character U+032E (combining breve below)
 It kind-of-works with LM, but not perfect (there has been some
 discussion about how to improve the behaviour of combining accents in
 LM)

The big problem with macros for this sort of thing is getting the italics  
right -- Arabic transliteration typically uses italics in running text.  
The macro will have to be adjusted (or an italic parameter changed) for  
every font. See [EMAIL PROTECTED] on page 356 of the TeXBook.

Anyway, the Unicode 1E00--FF block has most of these problematic chars,  
and LM has incorporated the relevant ones.

For other fonts, perhaps Hans could implement a combining command that  
gives an italics parameter option, though that will differ for regular,  
bold, etc...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Math equation with indentation

2008-05-13 Thread Aditya Mahajan
On Tue, 13 May 2008, 302302 wrote:

 Hi,
 I need to use a multieqaution in this form ( 
 http://img233.imageshack.us/img233/2372/eqsx3.png ). I am mostly interested 
 in the right brace and the indentation after the subject to. I tried to use 
 mathmatrix but without success. Can you help me with it?

I am using nested matrices, but this is one case which will be best solved 
by something equivalent for gathered and aligned. It has been on my todo 
list for a long time.

Here is a solution using nested matrices, where I use \noalign to fake 
correct spacing after the first line (and changed the \cdots in the last 
condition to \dots).

\definemathmatrix[rightbrace][left={\left.},right={\,\right\}},n=1,align=left]

\starttext

\placeformula[+] \startformula
\startrightbrace
   \NC \min \{c_1 x_1 + c_2 x_2 + \cdots + c_n x_n \} \NR
   \noalign{\vskip 0.2em}
   \NC \text{subject to} \NR
   \NC \quad
   \startmathmatrix[n=9,align={middle,middle,middle,
 middle,middle,middle,right,middle,middle},
 distance=0.3em]
 \NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC +
 \NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1 \NR
 \NC a_{21} x_1 \NC + \NC a_{22} x_2 \NC +
 \NC \cdots \NC + \NC a_{2n} x_n \NC = \NC b_2 \NR
 \NC\NC   \NC  \vdots\NC
 \NC\NC   \NC\NC   \NC \vdots \NR
 \NC a_{m1} x_1 \NC + \NC a_{m2} x_2 \NC +
 \NC \cdots \NC + \NC a_{mn} x_n \NC = \NC b_m \NR
 \NC\NC   \NC\NC
 \NC\NC
 \NC \llap{x_1,x_2,\dots,x_n} \NC \ge \NC 0.
   \stopmathmatrix \NR
   \stoprightbrace
\stopformula

\stoptext


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___