Re: [NTG-context] line justification alignment.

2010-10-24 Thread Alan BRASLAU
On Saturday 23 October 2010 23:20:06 Peter Münster wrote:
 On Sat, Oct 23 2010, Peter Münster wrote:

 Oh, stupid answer, I'm sorry.  I thought, that you had already been using
 verytolerant and stretch, that was so ugly... (it *is* ugly)
 

But just perfect for a boss who is probably trained on MS-Word!

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


Re: [NTG-context] line justification alignment.

2010-10-24 Thread Hans Hagen

On 24-10-2010 9:40, Alan BRASLAU wrote:

On Saturday 23 October 2010 23:20:06 Peter Münster wrote:

On Sat, Oct 23 2010, Peter Münster wrote:

Oh, stupid answer, I'm sorry.  I thought, that you had already been using
verytolerant and stretch, that was so ugly... (it *is* ugly)



But just perfect for a boss who is probably trained on MS-Word!


of add intercharacter spacing ... maybe I should add

\startdtplook ... \stopdtplook

which does intercharacter kern stretch after the linebreaks have been 
made ... actually a braindead 15 minute extension in mkiv .. makes a 
nice totorial so I might actually do it


Hans

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


Re: [NTG-context] A bit weird \underbar behaviour (MkIV only)

2010-10-24 Thread Hans Hagen

On 24-10-2010 12:34, Vedran Miletić wrote:

\starttext
$y = \underbar{g a w}$.
\stoptext


\starttext
  \underbar{$y = g a w$}.
\stoptext

does work .. it probably relates to limitations in attribute assignment 
in mathmode .. you can add a tracker item for it so that I keep an eye 
on it.


Hans


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


[NTG-context] Lettermodule: error message

2010-10-24 Thread Willi Egger
Hi Wolfgang,

Today I updated Context and hereafter the letter module stopped working with 
the following error:

! Undefined control sequence.

system   error on line 31 in file 
/Users/willi/Documents/NHG/Templates/test-letter.tex: Undefined control 
sequence ...


26 \starttext
27 \startletter
28 Nach unserem Treffen in Brejlov kam schon Vieles in Bewegung.
29 \blank
30 Die offizielle Einladung kommt später. 
31   \stopletter
32 \stoptext


\processlettervalues ...ox {\trialtypesettingtrue 
  \getbuffer [lettercontent]...
\stopletter -\processlettervalues 
   \directsetup {\v!letter :\v!place }\endgr...
l.31 \stopletter

I used the following test-file:

\usemodule[letter][style=dutch]
\mainlanguage[de]
\language[de]
\starttext
\startletter
Nach unserem Treffen in Brejlov kam schon Vieles in Bewegung. 
\blank
Die offizielle Einladung kommt später.
\stopletter
\stoptext

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


Re: [NTG-context] Lettermodule: error message

2010-10-24 Thread Wolfgang Schuster

Am 24.10.2010 um 16:37 schrieb Willi Egger:

 Hi Wolfgang,
 
 Today I updated Context and hereafter the letter module stopped working with 
 the following error:

Fixed.

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


Re: [NTG-context] Lettermodule: error message

2010-10-24 Thread Hans Hagen

On 24-10-2010 4:37, Willi Egger wrote:

Hi Wolfgang,

Today I updated Context and hereafter the letter module stopped working with 
the following error:

! Undefined control sequence.

system  error on line 31 in file 
/Users/willi/Documents/NHG/Templates/test-letter.tex: Undefined control sequence 
...


26 \starttext
27 \startletter
28 Nach unserem Treffen in Brejlov kam schon Vieles in Bewegung.
29 \blank
30 Die offizielle Einladung kommt später.
31   \stopletter
32 \stoptext


\processlettervalues ...ox {\trialtypesettingtrue
   \getbuffer [lettercontent]...


should be \settrialtypesetting in mkiv; some of the state macros have 
been generalized to that they can be consulted at the lua end as well


Hans

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


Re: [NTG-context] line justification alignment.

2010-10-24 Thread Hans Hagen

On 24-10-2010 7:28, seasoul wrote:

Thanks to Hans,Peter,Alan,Aditya,

  It really helps. I combined your ideas together, the final result
is perfect.
  \setupalign[verytolerant,stretch,hanging,highquility,nothyphenated]

I did not try many combinations, but withouth verytoleratnt and stretch, the
result is not as good as all of them included.
Hope this thread will help those who work with annoying boss :).


we can make a module m-realbad.tex or so:

\setups[*strict] % high penalties (no solutionspace left)
\setupalign[verytolerant,stretch,nothyphenated,flushleft]
\setupwhitespace[line] % maybe een that without stretch
\setuplayout[header=2\lineheight] % only lines

the strict might also help your position at work

(we could make a competition out of this as we also need fonts without 
features, math without smaller sizes, sans fonts only, 9bp bodyfont 
sizes, etc)


Hans


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


Re: [NTG-context] \startMPrun ... \stopMPrun

2010-10-24 Thread Hans Hagen

On 23-10-2010 3:02, Taco Hoekwater wrote:

On 10/23/2010 02:47 PM, Herbert Voss wrote:

Is it possible to run this also under mkiv?
Example is from the meafun manual.

\startMPrun
input Grafik.mp;
\stopMPrun
\externalfigure[Grafik.1]
\stoptext


It seems not.

Also, if I create Grafik.1 externally, it does not work either:


\startMPrun
  input graphic.mp ;
\stopMPrun

\starttext
\externalfigure[mprun.1]
\stoptext

seems to work on my machine

The mprun mechanism is somewhat odd, and dates from the time that 
integration was not that tight; it's mostly there so that we can process 
company logos (all variants are defined in one file) runtime because i'm 
too lazy to contexify these first mp works


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


Re: [NTG-context] \startMPrun ... \stopMPrun

2010-10-24 Thread Aditya Mahajan

On Sun, 24 Oct 2010, Hans Hagen wrote:


On 23-10-2010 3:02, Taco Hoekwater wrote:

On 10/23/2010 02:47 PM, Herbert Voss wrote:

Is it possible to run this also under mkiv?
Example is from the meafun manual.

\startMPrun
input Grafik.mp;
\stopMPrun
\externalfigure[Grafik.1]
\stoptext


It seems not.

Also, if I create Grafik.1 externally, it does not work either:


\startMPrun
 input graphic.mp ;
\stopMPrun

\starttext
   \externalfigure[mprun.1]
\stoptext

seems to work on my machine

The mprun mechanism is somewhat odd, and dates from the time that integration 
was not that tight; it's mostly there so that we can process company logos 
(all variants are defined in one file) runtime because i'm too lazy to 
contexify these first mp works


\usemodule[filter]

\defineexternalfilter
[externalMP]
[filtercommand={texexec --mptex \externalfilterinput},
 read=no]

\starttext
\processexternalMP[graphic.mp]
\externalfigure[graphic.1]
\stoptext

Perhaps --mpgraphic is better than --mptex as it gives a pdf.

You can add continue=yes and the processing will be done if the file has 
changed.


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


Re: [NTG-context] A bit weird \underbar behaviour (MkIV only)

2010-10-24 Thread Vedran Miletić
Dana 24. listopada 2010. 12:41 Hans Hagen pra...@wxs.nl je napisao/la:

 On 24-10-2010 12:34, Vedran Miletić wrote:

 \starttext
 $y = \underbar{g a w}$.
 \stoptext


 \starttext
  \underbar{$y = g a w$}.
 \stoptext

 does work .. it probably relates to limitations in attribute assignment in
 mathmode .. you can add a tracker item for it so that I keep an eye on it.


Are you sure? Many other three letter combinations (e.g. a b c) seem to
work.

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


[NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Matija Šuklje
Hullo,


I'm working on my thesis (and it's pf_ul styling[1]) and I tried to include 
modes.

The thing is that modes seem to be set right and work when invoked in CLI 
(e.g. 'context --mode=osnutek,zaslon diplomska.tex', but ConteXt seems to 
completely igonore lines in text such as:

\enablemode[osnutek]

Is this a bug or am I doing something wrong?

I'm using minimals:
MTXrun | current version: 2010.06.18 11:26


Cheers,
Matija

P.S. Is ConTeXt (mkIV) in TexLive 2010 deemed as stable and usable?
-.-.-
[1] 
http://wiki.contextgarden.net/Law_Faculty_University_of_Ljubljana_Styling_and_citations
-- 
gsm:+386 41 849 552
www:http://matija.suklje.name
xmpp:   matija.suk...@gabbler.org


signature.asc
Description: This is a digitally signed message part.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Wolfgang Schuster

Am 24.10.2010 um 21:21 schrieb Matija Šuklje:

 Hullo,
 
 
 I'm working on my thesis (and it's pf_ul styling[1]) and I tried to include 
 modes.
 
 The thing is that modes seem to be set right and work when invoked in CLI 
 (e.g. 'context --mode=osnutek,zaslon diplomska.tex', but ConteXt seems to 
 completely igonore lines in text such as:
 
 \enablemode[osnutek]
 
 Is this a bug or am I doing something wrong?

Do you enable the mode before it is used or after it, e.g.

\enablemode[foo]
\startmode[foo]
...
\stopmode

use the content of the mode „foo“ while

\startmode[foo]
...
\stopmode
\enablemode[foo]

doesn’t use it because at the time the mode was called it was disabled and the 
\enablemode has therefore no effect because it’s calles to late.

If this doesn’t apply to you make a minimals example.

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


Re: [NTG-context] Lettermodule: error message

2010-10-24 Thread Willi Egger
Wolfgang, thanks for the fix, it works again!


Willi
On 24 Oct 2010, at 16:55, Wolfgang Schuster wrote:

 
 Am 24.10.2010 um 16:37 schrieb Willi Egger:
 
 Hi Wolfgang,
 
 Today I updated Context and hereafter the letter module stopped working with 
 the following error:
 
 Fixed.
 
 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Matija Šuklje
Dne nedelja 24. oktobra 2010 ob 21:27:58 je Wolfgang Schuster napisal(a):
 Do you enable the mode before it is used or after it, e.g.

That did it, thanks :)


Cheers,
Matija

-- 
gsm:+386 41 849 552
www:http://matija.suklje.name
xmpp:   matija.suk...@gabbler.org


signature.asc
Description: This is a digitally signed message part.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Herbert Voss
From the documentation:

\starttext
\startitemize
 \head he got a head ache
 \startitemize[n,packed]
  \item of all the items
  \nop  he had to learn at school
  \mar{++} because the marginal explanation
  \sub  of the substantial content
  \sym{\#} turned out to be mostly symbolic
 \stopitemize
\stoptemize
\stoptext




! Extra }, or forgotten \endgroup.

system   error on line 10 in file 04-01-6.ctxcrop: Extra }, or
forgotten  ...

 1 \starttext
 2 \startitemize
 3  \head he got a head ache
 4  \startitemize[n,packed]
 5   \item of all the items
 6   \nop  he had to learn at school
 7   \mar{++} because the marginal explanation
 8   \sub  of the substantial content
 9   \sym{\#} turned out to be mostly symbolic
10\stopitemize
11 \stoptemize
12 \stoptext


\stopitemgroup ...el {\number \itemdepth }\egroup
  \par \fi
\dorechecknextind...
l.10  \stopitemize

-
ConTeXt  ver: 2010.10.18 11:11 MKIV  fmt: 2010.10.24  int: english/english

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


Re: [NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Aditya Mahajan

On Sun, 24 Oct 2010, Herbert Voss wrote:


From the documentation:


\starttext
\startitemize
\head he got a head ache
\startitemize[n,packed]
 \item of all the items
 \nop  he had to learn at school
 \mar{++} because the marginal explanation
 \sub  of the substantial content
 \sym{\#} turned out to be mostly symbolic
\stopitemize
\stoptemize
\stoptext



\head must end with a \par... so either leave a blank line after head 
ache or insert an explicit \par.


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


Re: [NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Herbert Voss
Am 24.10.2010 22:03, schrieb Aditya Mahajan:

 \head must end with a \par... so either leave a blank line after head
 ache or insert an explicit \par.

sure, you are right, I'g fogotten it. However, I suppose,
I did more wrong, because I get now:

! Undefined control sequence.

system   error on line 12 in file .tex: Undefined control
sequence ...

 2 \startitemize
 3  \head he got a head ache
 4
 5  \startitemize[n,packed]
 6   \item of all the items
 7   \nop  he had to learn at school
 8   \mar{++} because the marginal explanation
 9   \sub  of the substantial content
10   \sym{\#} turned out to be mostly symbolic
11  \stopitemize
12   \stoptemize
13 \stoptext

l.12 \stoptemize

Herbert

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


Re: [NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Khaled Hosny
On Sun, Oct 24, 2010 at 10:11:59PM +0200, Herbert Voss wrote:
 Am 24.10.2010 22:03, schrieb Aditya Mahajan:
 
  \head must end with a \par... so either leave a blank line after head
  ache or insert an explicit \par.
 
 sure, you are right, I'g fogotten it. However, I suppose,
 I did more wrong, because I get now:

Your second \stopitemize is missing an i.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Herbert Voss
Am 24.10.2010 22:20, schrieb Khaled Hosny:
 On Sun, Oct 24, 2010 at 10:11:59PM +0200, Herbert Voss wrote:
 Am 24.10.2010 22:03, schrieb Aditya Mahajan:

 \head must end with a \par... so either leave a blank line after head
 ache or insert an explicit \par.

 sure, you are right, I'g fogotten it. However, I suppose,
 I did more wrong, because I get now:
 
 Your second \stopitemize is missing an i.

Oh my dear ... I was blinded by the light .. looked 10 times
over the code ...

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


Re: [NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Aditya Mahajan

On Sun, 24 Oct 2010, Herbert Voss wrote:


Am 24.10.2010 22:20, schrieb Khaled Hosny:

On Sun, Oct 24, 2010 at 10:11:59PM +0200, Herbert Voss wrote:

Am 24.10.2010 22:03, schrieb Aditya Mahajan:


\head must end with a \par... so either leave a blank line after head
ache or insert an explicit \par.


sure, you are right, I'g fogotten it. However, I suppose,
I did more wrong, because I get now:


Your second \stopitemize is missing an i.


Oh my dear ... I was blinded by the light .. looked 10 times
over the code ...


texmfstart concheck filename

It gives false alarms, but definitely catches such typing errors.

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


Re: [NTG-context] startitemize --- \stopitemize

2010-10-24 Thread Khaled Hosny
On Sun, Oct 24, 2010 at 10:26:37PM +0200, Herbert Voss wrote:
 Am 24.10.2010 22:20, schrieb Khaled Hosny:
  On Sun, Oct 24, 2010 at 10:11:59PM +0200, Herbert Voss wrote:
  Am 24.10.2010 22:03, schrieb Aditya Mahajan:
 
  \head must end with a \par... so either leave a blank line after head
  ache or insert an explicit \par.
 
  sure, you are right, I'g fogotten it. However, I suppose,
  I did more wrong, because I get now:
  
  Your second \stopitemize is missing an i.
 
 Oh my dear ... I was blinded by the light .. looked 10 times
 over the code ...

I missed it twice until I realised I'm looking at the wrong stopitemize.

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \mar

2010-10-24 Thread Herbert Voss
The documentation and the wiki show the syntax for \mar

 1   2
\mar [...,...] {...}
  OPTIONAL
1  REFERENCE
2  CONTENT

When I use the optional argument, then the [ is taken
as an argument for the content, which is correct placed
into the margin, but the rest foo]{+}... is taken as
default text. I suppose, that \mar has no optional
argument?

\starttext

\startitemize
\item baz
\mar[foo]{+} bar baz
\item barbaz
\stopitemize

\stoptext

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


Re: [NTG-context] \mar

2010-10-24 Thread Aditya Mahajan

On Sun, 24 Oct 2010, Herbert Voss wrote:


The documentation and the wiki show the syntax for \mar

1   2
\mar [...,...] {...}
 OPTIONAL
1  REFERENCE
2  CONTENT

When I use the optional argument, then the [ is taken
as an argument for the content, which is correct placed
into the margin, but the rest foo]{+}... is taken as
default text. I suppose, that \mar has no optional
argument?


Right. This is the definition in strc-itm.mkiv

\def\itemgroupmargin#1%
  {\the\itemgroupfinalizer
   \def\marsymbol
 {\llap
{\dosetitemattributes\currentitemlevel\c!marstyle\c!marcolor{#1}%
 \hskip\leftskip\hskip\leftmargindistance}}%
   \itemgroupitem}

\appendtoks \letvalue\v!mar  \itemgroupmargin  \to \itemgroupcommands

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