Re: [NTG-context] [NTG Context] Storm (Lido) font support seems to be broken in newer versions of MKII

2010-05-14 Thread Jan Pohanka

Hello,
thanks all for help, the problem is solved now.
Original Vit's support will work with two modifications.

1) enco-*.tex must be renamed to enco-*.mkii
2) contents of t-type-s*.tex must be enclosed to  
\starttypescriptcollection \stoptypescriptcollection
   the problem lied in the line \usetypescriptfile[t-type-sto] in  
t-type-slido.tex, cascading of \usetypescriptfile works only with  
typescriptcollection



best regards
Jan


Dne Thu, 13 May 2010 19:40:02 +0200 Aditya Mahajan   
napsal(a):



On Thu, 13 May 2010, Honza Pohanka wrote:


What does [mr] [mc] [ma] in mathcollection stands for?


This is what I remember

mr = Math Roman

ma, mb, mc, md, me = Extra math families.

The actual corresponance between ma etc and the fonts are set in a  
typescript. For example,


\starttypescript [math] [] [size]
  \definebodyfont [] [mm] [ma =  sa 1]
\stoptypescript

here  is something like default, ams, etc, which is the 4th  
argument of \definetypescript.


\definetypescript[] [math] [mm] [] []

 is something like 10pt, etc. It can also be a list.

 is the name of the font that ma should stand for.

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
___



--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \showmathcharacters doesn't work (MacTex 2009)

2010-05-14 Thread Hans Hagen

On 14-5-2010 6:43, Otared Kavian wrote:

Hi Riobard,

Since math is done differently in mkiv than in mkii, indeed \showmathcharacters 
does not work in mkiv.
However one can get all the math characters in mkiv in a big list doing the 
following:

 begin showmath.tex
\doifmode{mkiv}{\usemodule[fnt-25]}
\starttext
\doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters}
\stoptext
 end showmath.tex

Then, if using mkiv, in the resulting PDF file you can see all characters used 
in mathmode.


when i have time all these show commands will move to modules (maybe a 
bit of a cleanup too) .. many of them are just for tracing when we work 
on luatex


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] Ampersand in Metapost

2010-05-14 Thread Marco
On Fri, 14 May 2010 00:37:44 +0200, Mojca Miklavec
 wrote:

> On Thu, May 13, 2010 at 23:45, Marco  wrote:
> > On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen 
> > wrote:
> >> On 13-5-2010 9:18, Marco wrote:
> >> > Hi,
> >> >
> >> > I have a problem producing an ampersand in metapost. In ConTeXt
> >> > it works as expected. Have a look at the following example.
> >> >
> >> > \starttext
> >> > \&  % OK
> >> > \startMPcode
> >> > label(textext("\&"),origin); % produces error
> >> > \stopMPcode
> >> > \stoptext
> >> >
> >> > The compile time error message is as follows:
> >> >    ! Misplaced alignment tab character&.
> >> >    l.1 \MPLIBsettext{1}{&
> >>
> >> \letterpercent
> > Doesn't work. I suppose you mean \letterampersand. If I change \&
> > into \letterampersand I get exactly the same error as \& produces
> > (BTW: \letterpercent also produces an error, but a different one).
> 
> So:
> - label(textext("\letterbackslash\letterampersand"),origin);
> - label(textext("\letterbackslash\&"),origin);
This both works. Thanks, Mojca.

> This is because the commands are interpreted with TeX before they are
> written to mpgraph.mp. The \letterampersand or \& generates the
> character & alone: you need to preceed it with backslash, so that
> metapost finally knows what to do.
That sound like a double-escape. Intuitionally one would simply use &. I know,
TeX doesn't like this, so we escape it, \&. However MetaPost doesn't like
this, so we add a second escape: \letterbackslash\&. That's OK, as I rarely
need ampersands in my graphics.

> PS: I would say: better use \sometxt which is far more reliable unless
> you have to use textext to do string manipulation.
I don't know exactly which transformations are considered as »string
manipulation«. I've read your MyWay on \sometxt. Brilliant piece of doc. But
I've three questions.

   i) Is it about MkII, MkIV or both?
  ii) Is it still up-to-date?
 iii) Why should I better use \sometxt?

What do you mean by »more reliable«? After having read your MyWay I would say
that textext is more reliable because it can do dynamic text.

I created a testfile to compare textext and \sometxt. The points to compare
were those you mentionend in your MyWay as advantages of \sometxt. The
testfile »t.tex« is attached. I processed it with

ConTeXt  ver: 2010.05.08
luatex, version beta-0.60.1-2010042821

Here are my results:

-There is one obvious reason: speed

$ for i in `seq 5`; do context -mode=textext t | tail -1; done
MTXrun | total runtime: 128.008
MTXrun | total runtime: 37.893
MTXrun | total runtime: 37.900
MTXrun | total runtime: 38.391
MTXrun | total runtime: 38.029
$ rm t.{log,pdf,tuc}
$ for i in `seq 5`; do context -mode=sometxt t | tail -1; done
MTXrun | total runtime: 127.195
MTXrun | total runtime: 40.131
MTXrun | total runtime: 41.071
MTXrun | total runtime: 37.424
MTXrun | total runtime: 39.121

Average runtime:
textext  variant: 56s
\sometxt variant: 57s

That is the same. Maybe my test file is not appropriate to test the speed. I'm
sure you have performed more advanced tests.

-Document-wide definitions are seen
  [...] definitions with arguments will fail to work. 

The first line, a document-wide definition with arguments works in both
versions.

-Problems with expansion
  [...]  as far as I remember math expressions (fractions perhaps) never
  worked as they were supposed to

The second definition is a math expressions with fractions. It seems to work.

-Less characters to escape

Yes, that's the topic of this thread. I don't know, I didn't check. The only
check I performed was the ampersand and it needs the same workaround using
\letterbackslash as textext.

I know, your MyWay is old. Maybe some things are fixed now. But I don't see
many advantages for me using it.

In fact, I have a problem getting random colors working. Take the following
example (taken from my earlier thread).

% This line is needed to get »withcolor« to work?
\chardef\TeXtextcolormode\zerocount

\setupbodyfont [sans,36pt]
\starttext

\startMPcode

numeric r, g, b ;
def ran=
r := uniformdeviate 1 ;
g := uniformdeviate 1 ;
b := uniformdeviate 1 ;
enddef;

% Works as expected
for i=0 downto -3:
  ran;
  label(textext("\bold\colored[r=" & decimal(r) & ",g=" & decimal(g) &
",b=" & decimal(b) & ",a=1, t=.2]{Test}"), (7cm,-1cm))
rotatedaround ((7cm,-1cm),i*20);
endfor;

% Produces empty rectangles
for i=0 downto -3:
  ran;
  label(\sometxt{\bold{Test}}, (7cm,-4cm))
rotatedaround ((7cm,-4cm),i*20)
withcolor transparent("normal", .2, (r,g,b));
endfor;

\stopMPcode
\stoptext

Maybe there's a mistake in my code. It compiles without error but the
result is incorrect.

Marco
\def\oklepaj#1{\left(#1\right)}
\def\t{\dot N(t)=
  A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp
\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+
  B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp
\oklepaj{-\frac{t-t_0}{τ_{

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Marco
> > - label(textext("\letterbackslash\letterampersand"),origin);
> > - label(textext("\letterbackslash\&"),origin);
> >
> > This is because the commands are interpreted with TeX before they
> > are written to mpgraph.mp. The \letterampersand or \& generates the
> > character & alone: you need to preceed it with backslash, so that
> > metapost finally knows what to do.
> 
> So, should all the \letter... commands (basically anything generated
> from char-def.lua) be unexpandable?
What are the disadvantages of unexpandable commands? I'm not an expert.
Why is this not done by default if it works better?

> You can also try \noexpand\letterampersand
Produces compile error.

Marco


___
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] Ampersand in Metapost

2010-05-14 Thread Hans Hagen

On 14-5-2010 12:06, Marco wrote:


  iii) Why should I better use \sometxt?


sometxt was introduced in mkii to avoid text processing mp, i.e. it is 
done at the context end in the current run and mp only gets dimensions; 
so, it avoids the nested tex run


in mkii there is some more trickery and much showed up whem for in 
instance Mojca wanted gnuplot to spit out mp



What do you mean by »more reliable«? After having read your MyWay I would say
that textext is more reliable because it can do dynamic text.


in mkiv textext is implemented differently; because we use mplib, 
processing time is less an issue anyway



I created a testfile to compare textext and \sometxt. The points to compare
were those you mentionend in your MyWay as advantages of \sometxt. The
testfile »t.tex« is attached. I processed it with


in mkiv there should be no big difference as it all boils down to the 
same (sometxt has a command applied which textext doesn't)



ConTeXt  ver: 2010.05.08
luatex, version beta-0.60.1-2010042821

Here are my results:

-There is one obvious reason: speed

 $ for i in `seq 5`; do context -mode=textext t | tail -1; done
 MTXrun | total runtime: 128.008
 MTXrun | total runtime: 37.893
 MTXrun | total runtime: 37.900
 MTXrun | total runtime: 38.391
 MTXrun | total runtime: 38.029
 $ rm t.{log,pdf,tuc}
 $ for i in `seq 5`; do context -mode=sometxt t | tail -1; done
 MTXrun | total runtime: 127.195
 MTXrun | total runtime: 40.131
 MTXrun | total runtime: 41.071
 MTXrun | total runtime: 37.424
 MTXrun | total runtime: 39.121

Average runtime:
 textext  variant: 56s
 \sometxt variant: 57s

That is the same. Maybe my test file is not appropriate to test the speed. I'm
sure you have performed more advanced tests.


you use mkiv


-Document-wide definitions are seen
   [...] definitions with arguments will fail to work.

The first line, a document-wide definition with arguments works in both
versions.

-Problems with expansion
   [...]  as far as I remember math expressions (fractions perhaps) never
   worked as they were supposed to

The second definition is a math expressions with fractions. It seems to work.


th emkii variant has some more limitations than the mkiv version


-Less characters to escape

Yes, that's the topic of this thread. I don't know, I didn't check. The only
check I performed was the ampersand and it needs the same workaround using
\letterbackslash as textext.

I know, your MyWay is old. Maybe some things are fixed now. But I don't see
many advantages for me using it.


don't expect mkii and mkiv to be 100% compatible in this area (mkii is 
somewhat stretching things to the limit)


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] Ampersand in Metapost

2010-05-14 Thread Hans Hagen

On 14-5-2010 12:06, Marco wrote:

for i=0 downto -3:
   ran;
   label(\sometxt{\bold{Test}}, (7cm,-4cm))
 rotatedaround ((7cm,-4cm),i*20)
 withcolor transparent("normal", .2, (r,g,b));
endfor;


because transparent overloads the mechanism that sometxt (textext) uses 
for passing info to tex and back ... maybe some future version will 
handle that (just comment the withcolor)


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] Ampersand in Metapost

2010-05-14 Thread Marco
On Fri, 14 May 2010 12:44:47 +0200, Hans Hagen  wrote:

> On 14-5-2010 12:06, Marco wrote:
> > for i=0 downto -3:
> >ran;
> >label(\sometxt{\bold{Test}}, (7cm,-4cm))
> >  rotatedaround ((7cm,-4cm),i*20)
> >  withcolor transparent("normal", .2, (r,g,b));
> > endfor;
> 
> because transparent overloads the mechanism that sometxt (textext)
> uses for passing info to tex and back ... maybe some future version
> will handle that (just comment the withcolor)
Ah, I see. I don't need it at the moment as I can use textext with the
code you provided.

Thanks for your explanation. I hope I'm not completely mistaken if I
conclude, that there are some advantages when using \sometxt in MkII,
but in MkIV both variants are basically the same.

Marco


___
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] Two questions about a mysterious behavior of ConTeXt

2010-05-14 Thread Marius
Hello,

I encountered two mysterious behaviours of ConTeXt mkvi and can't
resolve them by my self. So.

The first one is: why does ConTeXt behaves differently then I use
environment ant then I don't.
There are two versions of the same code in the attached files. The
test.tex uses environment test-env and test2.tex does not. Then why
test.tex compiles while test2.tex does not?

The second question is: why in the test-env.tex file ver2 of code
compiles while ver1 does not?

Thank you,
Marius


test.tex
Description: TeX document


test-env.tex
Description: TeX document


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


[NTG-context] Issue with \setupinterlinespace

2010-05-14 Thread Khaled Hosny
Wgat is wrong with this example:

\setuplayout[grid=force]
\setupinterlinespace[height=1.081em, depth=.7em, distance=.018em]
\starttext
\input knuth
\stoptext

I get:
! You can't use `\dimexpr' in horizontal mode.
 \dimexpr

-- 
 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] Ampersand in Metapost

2010-05-14 Thread Hans Hagen

On 14-5-2010 1:45, Marco wrote:

On Fri, 14 May 2010 12:44:47 +0200, Hans Hagen  wrote:


On 14-5-2010 12:06, Marco wrote:

for i=0 downto -3:
ran;
label(\sometxt{\bold{Test}}, (7cm,-4cm))
  rotatedaround ((7cm,-4cm),i*20)
  withcolor transparent("normal", .2, (r,g,b));
endfor;


because transparent overloads the mechanism that sometxt (textext)
uses for passing info to tex and back ... maybe some future version
will handle that (just comment the withcolor)

Ah, I see. I don't need it at the moment as I can use textext with the
code you provided.

Thanks for your explanation. I hope I'm not completely mistaken if I
conclude, that there are some advantages when using \sometxt in MkII,
but in MkIV both variants are basically the same.


indeed

-
  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] 10+ reasons why I still use MKII

2010-05-14 Thread Khaled Hosny
On Thu, May 13, 2010 at 11:35:58PM +0200, Hans Hagen wrote:
> On 13-5-2010 11:26, Khaled Hosny wrote:
> >On Thu, May 13, 2010 at 10:25:06PM +0200, Hans Hagen wrote:
> >>On 13-5-2010 10:06, Khaled Hosny wrote:
> >>
> >>>Nothing special, I always expect interline space to be fixed, I don't
> >>>know if TeX always make interline spacing variable, but this wasn't an
> >>>issue with English text. However, with Arabic, Tashkil marks seems to
> >>>always cause a noticeable extra whitespace above the line.
> >>>See the uneven distribution of vertical whitespace in this example (it
> >>>can be even worse than this in reality):
> >>
> >>for arabic you really need to set the interline space (idris might
> >>have more input on this)
> >>
> >>- it has more height than depth
> >
> >Not always عٍ or فيٍ is as deep as high is أً.
> 
> so for say 12pt arabic we should use 8pt ht and 8pt depth?

I'm not sure about this, but I'd rather trust the font designer for
knowing better about his font, and something like in the attached file
(except it doesn't work :) see my other mail)

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
\usemodule[simplefonts]
\setmainfont[Arabic Typesetting][features=arabic]

\setuplayout[grid=force]
\showgrid

\starttext

\startluacode
  local otfdata  = fonts.ids[font.current()].shared.otfdata
  local ascent   = otfdata.metadata.ascent
  local descent  = otfdata.metadata.descent

  local tascent  = (otfdata.pfminfo.os2_typoascent  + ascent ) / 1000
  local tdescent =-(otfdata.pfminfo.os2_typodescent - descent) / 1000
  local linegap  = (otfdata.pfminfo.linegap)   / 1000

  tex.sprint(
string.format(
  "\\setupinterlinespace[height=\%sem, depth=\%sem, distance=\%sem]",
  tascent, -tdescent, linegap
)
  )
\stopluacode

\pardir TRT \textdir TRT
\input ibn_hisham.txt

\stoptext
طَرَحَتْنِي النَّوَى مَطَارِحَهَا حَتّى إذَا وَطِئْتُ جُرْجَان الأَقْصى. 
فاسْتَظْهَرْتُ عَلَى الأَيامِ بِضِياعٍ أَجَلْتُ فِيهاَ يَدَ الْعِمَارةِ، 
وَأَمْوَالٍ وَقَفْتُهَا عَلى التِّجَارَةِ، وَحَانُوتٍ جَعَلْتُهُ مَثَابَةٍ، 
وَرُفْقَةٍ اتَّخَذْتُهَا صَحَابَةً، وَجَعَلْتُ لِلْدَّارِ، حَاشِيَتَيِ 
النَّهَار، وللحَانُوتِ بَيْنَهُمَا، فَجَلَسْنَا يَوْمًا نَتَذَاكَرُ القرِيضَ 
وَأَهْلَهُ، وَتِلْقَاءَنا شَابّ قَدْ جَلَسَ غَيْرَ بَعِيدٍ يُنْصِتُ وَكَأَنّهُ 
يَفْهَمُ، وَيَسْكتُ وَكَأَنّهُ لاَ يَعْلَمُ حَتّى إِذَا مَالَ الكَلاَمُ بِنَا 
مَيْلَهُ، وَجَرّ الْجِدَالُ فِينَا ذَيْلَهُ، قَالَ: قَدْ أَصَبْتُمْ عُذَيَقَهُ، 
وَوَافَيتُمْ جُذَيْلَهُ، وَلَوْ شِئْتُ لَلَفْظْتُ وَأَفَضْتُ، وَلَوْ قُلْتُ 
لأَصْدَرْتُ وَأَوْرَدْتُ، وَلَجَلَوْتُ الْحقّ في مَعْرَضِ بَيَانٍ يُسْمِعُ 
الصُّمَّ، وَيُنزلُ الْعُصْمَ، فَقُلْتُ: يَا فَاضِلُ أدْنُ فَقَدْ مَنَّيْتَ، 
وَهَاتِ فَقَدْ أَثْنَيتَ، فَدَنَا وَقَالَ: سَلُونِي أُجِبْكُمْ، وَاسْمَعُوا 
أُعْجِبْكُمْ. فَقُلْنَا: مَا تَقُولُ فِي امْرِىءِ الْقَيسِ؟ قَالَ: هُوَ أَوَّلُ 
مَنْ وَقَفَ بِالدِّيارِ وَعَرَصَاتِهَا، وَاغْتَدَى وَالطَّيرُ فِي وَكَنَاتِهَا، 
وَوَصَفَ الْخيلَ بِصِفَاِتهَا، وَلَمْ يَقُلِ الشِّعْرَ كَاسِيًا. وَلَمْ يُجِدِ 
القَوْلَ رَاغِبًا، فَفَضَلَ مَنْ تَفَتَّقَ للْحِيلةِ لِسَانُهُ، وَانْتَجَعَ 
لِلرَّغْبَة بَنَانُهُ، قُلْنَا: فَما تَقُولُ فِي الْنَّابِغَةِ؟ قالَ: يَثلِبُ 
إِذَا حَنِقَ، وَيَمْدَحُ إِذَا رَغِبَ، وَيَعْتَذِرُ إِذَا رَهِبَ، فَلاَ يَرْمي 
إِلاَّ صَائِبًا، قُلْنَا:فَمَا تَقُولُ فِي زُهَيرٍ؟ قَالَ يُذِيبُ الشِّعرَ، 
والشعْرُ يُذيبَهُ، وَيَدعُو القَولَ وَالسِّحْرَ يُجِيبُهُ، قُلْنَا: فَمَا 
تَقُولُ فِي طَرَفَةَ: قَالَ: هُوَ ماَءُ الأشْعَارِ وَطينَتُها، وَكَنْزُ 
الْقَوَافِي وَمَديِنَتُهَا، مَاتَ وَلَمْ تَظْهَرْ أَسْرَارُ دَفَائِنِهِ وَلَمْ 
تُفْتَحْ أَغْلاَقُ خَزَائِنِهِ، قُلْنَا: فَمَا تَقُولُ فِي جَرِيرٍ 
وَالْفَرَزْدَقِ؟ أَيُّهُمَا أَسْبَقُ؟ فَقَالَ: جَرِيرٌ أَرَقُّ شِعْرًا، 
وَأَغْزَرُ غَزْرًا وَالْفَرَزْدَقُ أَمْتَنُ صَخْرًا، وَأَكْثَرُ فَخْرًا 
وَجَرِيرٌ أَوْجَعُ هَجْوًا، وَأَشْرَفُ يَوْمًا وَالْفَرَزْدَقُ أَكَثَرُ 
رَوْمًا، وَأَكْرَمُ قَوْمًا، وَجَرِيرٌ إِذَا نَسَبَ أَشْجَى، وَإِذَا ثَلَبَ 
أَرْدَى، وَإِذَا مَدَحَ أَسْنَى، وَالْفَرزدقُ إِذَا افْتَخَرَ أَجْزَى، وَإِذَا 
احْتَقرَ أَزرَى، وَإِذا وصَفَ أَوفَى، قُلنَا: فَمَا تَقُولُ فِي المُحْدَثِينَ 
منْ الشُّعَراءِ والمُتَقَدِّمينَ مِنهُمْ؟ قالَ: المُتَقَدِّمونَ أَشْرفُ 
لَفْظًا، وَأَكثرُ منْ المَعَاني حَظًا، وَالمُتَأَخِّرونَ أَلْطَفُ صُنْعًا، 
وَأَرَقُّ نَسْجًا، قُلْنا: فَلَو أَرَيْتَ مِنْ أَشْعارِكَ، وَرَوَيْتَ لَنا مِنْ 
أَخْبارِكَ، قالَ: خُذْهَما في مَعْرِضٍ واحِدٍ، وَقالَ:
___
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] index sorting and formatting mixed up

2010-05-14 Thread luigi scarso
On Fri, May 14, 2010 at 1:46 AM, Michael Saunders  wrote:
> \setupregister[index][bd][pagestyle=bold]
> \starttext
> \index{bc}\index{be}
> This is a \index[bd::]{test}test.
> \page
> This is a less important \index{test}test.
> \page
> \placeindex
> \stoptext
Confirmed: mkiv is different from mkii.



-- 
luigi
___
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] 10+ reasons why I still use MKII

2010-05-14 Thread Hans Hagen

On 14-5-2010 2:37, Khaled Hosny wrote:

On Thu, May 13, 2010 at 11:35:58PM +0200, Hans Hagen wrote:

On 13-5-2010 11:26, Khaled Hosny wrote:

On Thu, May 13, 2010 at 10:25:06PM +0200, Hans Hagen wrote:

On 13-5-2010 10:06, Khaled Hosny wrote:


Nothing special, I always expect interline space to be fixed, I don't
know if TeX always make interline spacing variable, but this wasn't an
issue with English text. However, with Arabic, Tashkil marks seems to
always cause a noticeable extra whitespace above the line.
See the uneven distribution of vertical whitespace in this example (it
can be even worse than this in reality):


for arabic you really need to set the interline space (idris might
have more input on this)

- it has more height than depth


Not always عٍ or فيٍ is as deep as high is أً.


so for say 12pt arabic we should use 8pt ht and 8pt depth?


I'm not sure about this, but I'd rather trust the font designer for
knowing better about his font, and something like in the attached file
(except it doesn't work :) see my other mail)


it's a gray area ... if we obey the ht/dp spec of a font (ascender and 
descender) we end up with an unpredictable mess (actually comparable to 
setting the baselineskip to 0pt and trusting the ht/dp of glyphs to 
force the right line spacing)


in dtp there's aways this rather strict grid

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] Issue with \setupinterlinespace

2010-05-14 Thread luigi scarso
On Fri, May 14, 2010 at 2:03 PM, Khaled Hosny  wrote:
> Wgat is wrong with this example:
>
> \setuplayout[grid=force]
> \setupinterlinespace[height=1.081em, depth=.7em, distance=.018em]
> \starttext
> \input knuth
> \stoptext
use number, not dimensions;
see http://wiki.contextgarden.net/Reference/en/setupinterlinespace

-- 
luigi
___
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] Two questions about a mysterious behavior of ConTeXt

2010-05-14 Thread Wolfgang Schuster

Am 14.05.10 13:59, schrieb Marius:

Hello,

I encountered two mysterious behaviours of ConTeXt mkvi and can't
resolve them by my self. So.

The first one is: why does ConTeXt behaves differently then I use
environment ant then I don't.
There are two versions of the same code in the attached files. The
test.tex uses environment test-env and test2.tex does not. Then why
test.tex compiles while test2.tex does not?

The second question is: why in the test-env.tex file ver2 of code
compiles while ver1 does not?
   


In a environment code is always treated is it would have been written
in unprotected mode, i.e. your code is written as

\unprotect

\def\setupdissertation{...}

...

\protect

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] 10+ reasons why I still use MKII

2010-05-14 Thread Khaled Hosny
On Fri, May 14, 2010 at 02:54:49PM +0200, Hans Hagen wrote:
> On 14-5-2010 2:37, Khaled Hosny wrote:
> >On Thu, May 13, 2010 at 11:35:58PM +0200, Hans Hagen wrote:
> >>On 13-5-2010 11:26, Khaled Hosny wrote:
> >>>On Thu, May 13, 2010 at 10:25:06PM +0200, Hans Hagen wrote:
> On 13-5-2010 10:06, Khaled Hosny wrote:
> 
> >Nothing special, I always expect interline space to be fixed, I don't
> >know if TeX always make interline spacing variable, but this wasn't an
> >issue with English text. However, with Arabic, Tashkil marks seems to
> >always cause a noticeable extra whitespace above the line.
> >See the uneven distribution of vertical whitespace in this example (it
> >can be even worse than this in reality):
> 
> for arabic you really need to set the interline space (idris might
> have more input on this)
> 
> - it has more height than depth
> >>>
> >>>Not always عٍ or فيٍ is as deep as high is أً.
> >>
> >>so for say 12pt arabic we should use 8pt ht and 8pt depth?
> >
> >I'm not sure about this, but I'd rather trust the font designer for
> >knowing better about his font, and something like in the attached file
> >(except it doesn't work :) see my other mail)
> 
> it's a gray area ... if we obey the ht/dp spec of a font (ascender
> and descender) we end up with an unpredictable mess (actually
> comparable to setting the baselineskip to 0pt and trusting the ht/dp
> of glyphs to force the right line spacing)
> 
> in dtp there's aways this rather strict grid

At least it should be there as an option, and contrary to ht/dp of the
glyphs, typo ascender/descender are font wide values thus will be the
same for all lines (math is an exception).

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] Issue with \setupinterlinespace

2010-05-14 Thread Khaled Hosny
On Fri, May 14, 2010 at 02:55:54PM +0200, luigi scarso wrote:
> On Fri, May 14, 2010 at 2:03 PM, Khaled Hosny  wrote:
> > Wgat is wrong with this example:
> >
> > \setuplayout[grid=force]
> > \setupinterlinespace[height=1.081em, depth=.7em, distance=.018em]
> > \starttext
> > \input knuth
> > \stoptext
> use number, not dimensions;
> see http://wiki.contextgarden.net/Reference/en/setupinterlinespace

I see, in the wiki:

   height: ration|size of strut (e.g. 0.72 or 9pt)
   depth:  ration|size of strut (e.g. 0.28 or 3pt)

And I assumed .7em is comparable to 9pt, how it is different? Using
points gives the same error.

-- 
 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] How to achieve transparency?

2010-05-14 Thread Henning Hraban Ramm

Am 2010-05-13 um 22:57 schrieb Hans Hagen:

r = red channel
g = green channel
b = blue channel

c = cyan channel
m = magenta channel
y = yellow channel
k = black channel

h = hue or hexadecimal
s = saturation
v = value (or so)

h = hex (i'll add x for hex as well)

a = alternative
t = transparency factor

s = gray value

p = spotcolor percentage
e = spotcolorname

 = duotone 1
 = duotone 2

that's about it


I wikified that:
http://wiki.contextgarden.net/Reference/en/definecolor

But how's it possible that h and s have two meanings? Does HSB mode  
work at all? (Didn't try.)
What means "alternative"? (So far I only know that it should be 1 for  
transparency.)



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Issue with \setupinterlinespace

2010-05-14 Thread luigi scarso
On Fri, May 14, 2010 at 3:15 PM, Khaled Hosny  wrote:
> I see, in the wiki:
>
>   height: ration|size of strut (e.g. 0.72 or 9pt)
>   depth:  ration|size of strut (e.g. 0.28 or 3pt)
>
> And I assumed .7em is comparable to 9pt, how it is different? Using
> points gives the same error.

use *numbers*, not *dimensions*

height  number
depth   number
linedimension
top number
bottom  number

-- 
luigi
___
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] does expandaparameters work

2010-05-14 Thread Wolfgang Schuster

Am 13.05.10 20:04, schrieb Erik Margraf:

Thanks!! Works perfectly for me. Is this a patch for syst-aux.mkiv?


It is but wait till Hans add it himself, I added a entry to the bug tracker.

In the meantime you can add the patch to cont-log.tex

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] Ampersand in Metapost

2010-05-14 Thread Hans Hagen

On 14-5-2010 3:07, Aditya Mahajan wrote:


This is because the commands are interpreted with TeX before they are
written to mpgraph.mp. The \letterampersand or \& generates the
character & alone: you need to preceed it with backslash, so that
metapost finally knows what to do.


So, should all the \letter... commands (basically anything generated
from char-def.lua) be unexpandable?

You can also try \noexpand\letterampersand


The problem is that some definitions, likt \& and \# expand to letters 
which is needed when used in mp itself. That also means that resetting 
them to their normal meaning is not possible as textext is handled in mp 
and then already an \& has become a &.


As & is rather common, I added it to \nonknuthmode, so you can say:

\nonknuthmode

\starttext
\startMPcode
draw textext("Underscores, Superscripts & Ampersands" & "?") ;
\stopMPcode
\stoptext

Aditya: I also changed the definition of \_ in math ... it now looks 
better when used in script(scripts) .. see \fakeunderscore.


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] does expandaparameters work

2010-05-14 Thread Hans Hagen

On 14-5-2010 3:25, Wolfgang Schuster wrote:

Am 13.05.10 20:04, schrieb Erik Margraf:

Thanks!! Works perfectly for me. Is this a patch for syst-aux.mkiv?


It is but wait till Hans add it himself, I added a entry to the bug
tracker.

In the meantime you can add the patch to cont-log.tex


unless i messed up i patched it already yesterday.


-
  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] How to achieve transparency?

2010-05-14 Thread Hans Hagen

On 14-5-2010 3:16, Henning Hraban Ramm wrote:

Am 2010-05-13 um 22:57 schrieb Hans Hagen:

r = red channel
g = green channel
b = blue channel

c = cyan channel
m = magenta channel
y = yellow channel
k = black channel

h = hue or hexadecimal
s = saturation
v = value (or so)

h = hex (i'll add x for hex as well)

a = alternative
t = transparency factor

s = gray value

p = spotcolor percentage
e = spotcolorname

 = duotone 1
 = duotone 2

that's about it


I wikified that:
http://wiki.contextgarden.net/Reference/en/definecolor

But how's it possible that h and s have two meanings? Does HSB mode work
at all? (Didn't try.)


hsv should work (it's the 'v' that triggers the meaning)


What means "alternative"? (So far I only know that it should be 1 for
transparency.)


\definetransparency [none][0]
\definetransparency [normal]  [1]
\definetransparency [multiply][2]
\definetransparency [screen]  [3]
\definetransparency [overlay] [4]
\definetransparency [softlight]   [5]
\definetransparency [hardlight]   [6]
\definetransparency [colordodge]  [7]
\definetransparency [colorburn]   [8]
\definetransparency [darken]  [9]
\definetransparency [lighten][10]
\definetransparency [difference] [11]
\definetransparency [exclusion]  [12]


--

-
  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] 10+ reasons why I still use MKII

2010-05-14 Thread Henning Hraban Ramm

Am 2010-05-13 um 23:09 schrieb Hans Hagen:
I recall trying grid a while ago but it didn't work, looks like I  
have

to set \setuplayout[grid=force].


for sure there are bugs as it needs much testing but we have  
predefined grid setups:


% none don't enlarge
% halfline enlarge by halfline/halfline
% line enlarge by line/line
% strutenlarge by ht/dp (default)
% firstalign to top line
% last align to bottom line
% mindepth round depth down
% maxdepth round depth up
% minheightround height down
% maxheightround height up
% localuse local interline space
% shift:-3tp   vertical shift within box

\definegridsnapping[normal]   [maxheight,maxdepth,strut]
\definegridsnapping[standard] [maxheight,maxdepth,strut]
\definegridsnapping[yes]  [maxheight,maxdepth,strut]

\definegridsnapping[strict]   [\v!maxdepth:0.8,maxheight:0.8,strut]
\definegridsnapping[tolerant] [\v!maxdepth:1.2,maxheight:1.2,strut]

\definegridsnapping[top]  [minheight,maxdepth,strut]
\definegridsnapping[bottom]   [maxheight,mindepth,strut]
\definegridsnapping[both] [minheight,mindepth,strut]

\definegridsnapping[broad][maxheight,maxdepth,strut,0.8]
\definegridsnapping[fit]  [maxheight,maxdepth,strut,1.2]

\definegridsnapping[first][first]
\definegridsnapping[last] [last]
\definegridsnapping[high] [minheight,maxdepth,none]
\definegridsnapping[low]  [maxheight,mindepth,none]
\definegridsnapping[line] [line]
\definegridsnapping[strut][strut]

\definegridsnapping[max]  [maxdepth,maxheight,strut]
\definegridsnapping[min]  [mindepth,minheight,strut]

eventually an structural elements will have a grid key


wikified:
http://wiki.contextgarden.net/Reference/en/setuplayout



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] index sorting and formatting mixed up

2010-05-14 Thread Michael Saunders
luigi scarso:

>> \setupregister[index][bd][pagestyle=bold]
>> \starttext
>> \index{bc}\index{be}
>> This is a \index[bd::]{test}test.
>> \page
>> This is a less important \index{test}test.
>> \page
>> \placeindex
>> \stoptext
> Confirmed: mkiv is different from mkii.

How is it to be done in MKIV?  I could find no docs about it, nor even
a comment in the code.
___
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] index sorting and formatting mixed up

2010-05-14 Thread luigi scarso
On Fri, May 14, 2010 at 4:07 PM, Michael Saunders  wrote:
> luigi scarso:
>
>>> \setupregister[index][bd][pagestyle=bold]
>>> \starttext
>>> \index{bc}\index{be}
>>> This is a \index[bd::]{test}test.
>>> \page
>>> This is a less important \index{test}test.
>>> \page
>>> \placeindex
>>> \stoptext
>> Confirmed: mkiv is different from mkii.
>
> How is it to be done in MKIV?  I could find no docs about it, nor even
> a comment in the code.
I need to see strc-reg.mkiv

-- 
luigi
___
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] a space after title

2010-05-14 Thread Marius
Hello,

There is too big spacing after subsubject in the test3.pdf file. How
to get rid of it?

Thanks,
Marius


test3.tex
Description: TeX document


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


Re: [NTG-context] index sorting and formatting mixed up

2010-05-14 Thread Hans Hagen

On 14-5-2010 2:50, luigi scarso wrote:

On Fri, May 14, 2010 at 1:46 AM, Michael Saunders  wrote:

\setupregister[index][bd][pagestyle=bold]
\starttext
\index{bc}\index{be}
This is a \index[bd::]{test}test.
\page
This is a less important \index{test}test.
\page
\placeindex
\stoptext

Confirmed: mkiv is different from mkii.


This is becuase that feature is not implemented in mkiv. There we will 
use a different method: processors, which will be available for 
finetuning rendering.


\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

\index{it->bc}\index{be}
This is a \index[bf->x]{test}test.
This is a less important \index{test}test.

\placeindex

\stoptext

I'll add that for registers to the next beta.


-
  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] 10+ reasons why I still use MKII

2010-05-14 Thread Idris Samawi Hamid ادريس سماوي حامد

On Fri, 14 May 2010 06:37:02 -0600, Khaled Hosny 
wrote:


>>for arabic you really need to set the interline space (idris might
>>have more input on this)
>>
>>- it has more height than depth
>
>Not always عٍ or فيٍ is as deep as high is أً.

so for say 12pt arabic we should use 8pt ht and 8pt depth?


I'm not sure about this, but I'd rather trust the font designer for
knowing better about his font, and something like in the attached file
(except it doesn't work :) see my other mail)


systems : begin file linespace.tex at line 7
! You can't use `\dimexpr' in horizontal mode.
 \dimexpr

\setstrutgridyes ...e \strutheightfactor \dimexpr
\normallineheight \fi
\str...
\setstrut ->\ifgridsnapping \setstrutgridyes
   \else \setstrutgridnop \fi
 ...nizefont \fi \spacing \plusone
\presetnormallineheight
\s...
\setfontparameters ...tsfalse \the \everybodyfont
\synchronizefontstrue
\dosetupspecifiedinterlinespaceindeed ...rameters
\updateraggedskips
...
l.24 \stopluacode

?

In any case, overly trusting the font designer is a bad idea in this
arena, particularly with Arabic fonts. For example, vowels are treated as
something of an afterthought even in "good" arabic fonts; yet they affect
linespace calculations. In a document with no vowels one can get away with
things you cannot get away with when they are extensively used; manual
control is essential. And "good" arabic fonts contain numerous errors
anyway.

This is part of the luatex/mkiv philosophy anyway; otherwise we'd just use
uniscribe or pango ;-)

Peace
Idris

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

___
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] Context 2010.05.08 - 3D annotations

2010-05-14 Thread Hans Hagen

On 14-5-2010 6:37, Michail Vidiassov wrote:


One more 3D related questoin - support for attaching files to PDF.
It seems that instead of embedding 3D annotation into main PDF file
sometimes it is better to attach to it a separate file with just
an annotation in it and have a picture that will launch that file when
clicked on. It is done in LaTeX via attachfile2 package, like
as in http://www.iaas.msu.ru/tmp/u3d/m117_old.pdf at page 194
Is it posiible to have something like it in ConTeXt?


i think that it's still embedded but the annot is defined as a pop one 
(open in other window is a generic property)


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] Problem with the loading cid fonts in luatex-plain format

2010-05-14 Thread Hans Hagen

On 9-5-2010 11:27, Li Yanrui (李延瑞) wrote:

Hi,

The following is my test file for Adobe OTF fonts loading.

\font\cidfont=file:AdobeSongStd-Light
\cidfont 测试
\bye


works ok in context (on my machine) so probably a path issue (in texmf.cnf)

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] Ampersand in Metapost

2010-05-14 Thread Mojca Miklavec
On Fri, May 14, 2010 at 12:06, Marco wrote:
> On Fri, 14 May 2010 00:37:44 +0200, Mojca Miklavec wrote:
>
>> PS: I would say: better use \sometxt which is far more reliable unless
>> you have to use textext to do string manipulation.
> I don't know exactly which transformations are considered as »string
> manipulation«. I've read your MyWay on \sometxt. Brilliant piece of doc. But
> I've three questions.
>
>   i) Is it about MkII, MkIV or both?

It's mostly about MkII. In MKIV it should work, but it doesn't make
such a huge difference since textext works as well as \sometxt in
MkII. textext in MkII can sometimes be very inefficient.

>  ii) Is it still up-to-date?

Apart from a recently reported bug I don't know of any changes in
MkII, but maybe I should write a few words about MkIV.

>  iii) Why should I better use \sometxt?

> What do you mean by »more reliable«? After having read your MyWay I would say
> that textext is more reliable because it can do dynamic text.

Dynamic text counts as "feature" for me, not as "something that'"

> I created a testfile to compare textext and \sometxt. The points to compare
> were those you mentionend in your MyWay as advantages of \sometxt. The
> testfile »t.tex« is attached. I processed it with
>
> ConTeXt  ver: 2010.05.08
> luatex, version beta-0.60.1-2010042821

As already mentioned by Hans, the only difference,

> Here are my results:
>
> -There is one obvious reason: speed
>
> Average runtime:
>    textext  variant: 56s
>    \sometxt variant: 57s
>
> That is the same. Maybe my test file is not appropriate to test the speed. I'm
> sure you have performed more advanced tests.

For gnuplot-generated graphics compile time has been reduced from 10
minutes to 20 seconds. But that's another story (many graphics, many
text labels inside each graphic; textext was not optimized).

> -Document-wide definitions are seen
>  [...] definitions with arguments will fail to work.
>
> The first line, a document-wide definition with arguments works in both
> versions.

But that's only true with MkIV. In MKII it's another story.

> -Problems with expansion
>  [...]  as far as I remember math expressions (fractions perhaps) never
>  worked as they were supposed to
>
> The second definition is a math expressions with fractions. It seems to work.

Many math expressions have later been made unexpandable and started
working, but it felt like a neverending story. Almost the same as the
example that you were asking for.

> I know, your MyWay is old. Maybe some things are fixed now. But I don't see
> many advantages for me using it.

If you are using MkIV and don't run into the same problem again, there
is hardly a difference.

> In fact, I have a problem getting random colors working. Take the following
> example (taken from my earlier thread).
>
> % This line is needed to get »withcolor« to work?
Yes, in MkII. In MkIV Hans wanted to take a different approach.
> \chardef\TeXtextcolormode\zerocount

> % Produces empty rectangles
> for i=0 downto -3:
>  ran;
>  label(\sometxt{\bold{Test}}, (7cm,-4cm))
>    rotatedaround ((7cm,-4cm),i*20)
>    withcolor transparent("normal", .2, (r,g,b));
> endfor;

Hans replied.

All in all - true, the most difference is seen in MkII.

Mojca
___
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] MKIV numbering

2010-05-14 Thread richard . stephens

Hello,

Does anyone else  have the following
problems with numbering for figures, equations etc in MKIV

1. Using \setupnumbering[way=bysection]
does not work
2. The colour of references to figures
etc is wrong.

The example below illustrates the problems.
Try compiling in MKII and MKIV and note the differences.

\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen,style=normal]
\setupnumbering[way=bysection]
\startuseMPgraphic{Circle}
        draw
fullcircle scaled 2cm;
\stopuseMPgraphic

\starttext
\section{First section}
See \in{Figure}[fig:Circle].
\placefigure[here][fig:Circle]{A circle}{\useMPgraphic{Circle}}

\placeformula[eq:pythag]
\startformula
        c^2
= a^2 + b^2
\stopformula

\section{Second section}
See \in{Figure}[fig:Circle] on \at{page}[fig:Circle].
See \in{equation}[eq:pythag] for Pythagoras.
\placefigure[here][fig:Circle2]{Another
circle}
        {\startMPcode
         
      draw fullcircle scaled 1cm;
        \stopMPcode}
\stoptext






Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration
Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a space after title

2010-05-14 Thread Peter Münster
On Fri, May 14 2010, Marius wrote:

> There is too big spacing after subsubject in the test3.pdf file. How
> to get rid of it?

> \setuphead [subsection] [alternative=text]

\setuphead [subsection] [alternative=text, distance=0pt]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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 space after title

2010-05-14 Thread Marius
Thank you, Peter, but there those options come from? I can't find
"distance" option here:
http://www.pragma-ade.com/general/qrcs/setup-en.pdf and here
http://wiki.contextgarden.net/Reference/en/setuphead too.

Maybe, there is some logic behind some options, they just apply
globaly or something similar?

On Fri, May 14, 2010 at 10:36 PM, Peter Münster  wrote:
> On Fri, May 14 2010, Marius wrote:
>
>> There is too big spacing after subsubject in the test3.pdf file. How
>> to get rid of it?
>
>> \setuphead [subsection] [alternative=text]
>
> \setuphead [subsection] [alternative=text, distance=0pt]
>
> Cheers, Peter
>
> --
> Contact information: http://pmrb.free.fr/contact/
>
>
> ___
> 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] MKIV numbering

2010-05-14 Thread Marco
On Fri, 14 May 2010 16:53:53 +0100, richard.steph...@converteam.com
wrote:

> Hello,
> 
> Does anyone else  have the following problems with numbering for
> figures, equations etc in MKIV
> 
> 1. Using \setupnumbering[way=bysection] does not work
> 2. The colour of references to figures etc is wrong.
\setupinteraction[state=start,
  color=darkgreen,contrastcolor=darkgreen,style=normal]
 
Marco


___
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] Ampersand in Metapost

2010-05-14 Thread Marco
On Fri, 14 May 2010 17:20:35 +0200, Mojca Miklavec wrote:

[...]
> > Here are my results:
> >
> > -There is one obvious reason: speed
> >
> > Average runtime:
> >    textext  variant: 56s
> >    \sometxt variant: 57s
> >
> > That is the same. Maybe my test file is not appropriate to test the
> > speed. I'm sure you have performed more advanced tests.
> 
> For gnuplot-generated graphics compile time has been reduced from 10
> minutes to 20 seconds. But that's another story (many graphics, many
> text labels inside each graphic; textext was not optimized).
Wow! That's what I'd call optimization. Now I understand your opinion and
your advice to use \sometxt (in MkII).

> > -Document-wide definitions are seen
> >  [...] definitions with arguments will fail to work.
> >
> > The first line, a document-wide definition with arguments works in
> > both versions.
> 
> But that's only true with MkIV. In MKII it's another story.
Don't know. I don't use it.

> > -Problems with expansion
> >  [...]  as far as I remember math expressions (fractions perhaps)
> > never worked as they were supposed to
> >
> > The second definition is a math expressions with fractions. It
> > seems to work.
> 
> Many math expressions have later been made unexpandable and started
> working, but it felt like a neverending story. Almost the same as the
> example that you were asking for.
I think I can comprehend the problems you had with textext.

> > In fact, I have a problem getting random colors working. Take the
> > following example (taken from my earlier thread).
> >
> > % This line is needed to get »withcolor« to work?
> Yes, in MkII. In MkIV Hans wanted to take a different approach.
> > \chardef\TeXtextcolormode\zerocount
> 
> > % Produces empty rectangles
> > for i=0 downto -3:
> >  ran;
> >  label(\sometxt{\bold{Test}}, (7cm,-4cm))
> >    rotatedaround ((7cm,-4cm),i*20)
> >    withcolor transparent("normal", .2, (r,g,b));
> > endfor;
> 
> Hans replied.
Yes. I will use textext for this job.

> 
> > I know, your MyWay is old. Maybe some things are fixed now. But I
> > don't see many advantages for me using it.
> 
> If you are using MkIV and don't run into the same problem again, there
> is hardly a difference.
> 

I conclude by saying that \sometxt ist first choice if using MkII. In MkIV
first choice is textext.

Thanks for your reply (and your MyWay), it helped me get some insight into
proper use of text in metapost.

Marco


___
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] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
Hi,

I am running ConTeXt mark IV. I need to use metauml for my work.
However, I could not get it installed. Please help. The install file
which comes with it does not work for context.

-- 
Best regards,
Shiv Shankar Dayal
___
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] installing metauml in context

2010-05-14 Thread Hans Hagen

On 14-5-2010 11:43, Shiv Shankar Dayal wrote:


I am running ConTeXt mark IV. I need to use metauml for my work.
However, I could not get it installed. Please help. The install file
which comes with it does not work for context.


more info needed .. test file and so

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] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
Hi,

>> I am running ConTeXt mark IV. I need to use metauml for my work.
>> However, I could not get it installed. Please help. The install file
>> which comes with it does not work for context.
>
> more info needed .. test file and so
>
> Hans

Sorry about this. Following is from a file for which I took the code from
mailing list itself.

\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startMPinclusions
input metauml;
\stopMPinclusions
\startuseMPgraphic{xx}

save A;
save B;
Class.A("Point")
   ("+x: int",
"+y: int") ();

Class.B("Circle")
   ("radius: int")
   ("+getRadius(): int",
"+setRadius(r: int):void");

topToBottom(45)(A, B);

drawObjects(A, B);

clink(aggregationUni)(A, B);

\stopuseMPgraphic

\placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}

This is included in starttext block.

For verbosity I am also giving you some errors.

 Isolated expression.

   (
<*>  save A; save B; Class.A(
 "Point") ("+x: int", "+y: int") (); Class.B("Ci...

! Extra tokens will be flushed.

   (
<*>  save A; save B; Class.A(
 "Point") ("+x: int", "+y: int") (); Class.B("Ci...

>> Class.B
! Isolated expression.

Best regards,
Shiv Shankar Dayal
___
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] Issue with \setupinterlinespace

2010-05-14 Thread Khaled Hosny
On Fri, May 14, 2010 at 03:20:21PM +0200, luigi scarso wrote:
> On Fri, May 14, 2010 at 3:15 PM, Khaled Hosny  wrote:
> > I see, in the wiki:
> >
> >   height: ration|size of strut (e.g. 0.72 or 9pt)
> >   depth:  ration|size of strut (e.g. 0.28 or 3pt)
> >
> > And I assumed .7em is comparable to 9pt, how it is different? Using
> > points gives the same error.
> 
> use *numbers*, not *dimensions*
> 
> heightnumber
> depth number
> line  dimension
> top   number
> bottomnumber

Ah, didn't notice that, but this contradicts the description (or I'm
severely confused).

-- 
 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] installing metauml in context

2010-05-14 Thread luigi scarso
(repost)

On Sat, May 15, 2010 at 12:04 AM, Shiv Shankar Dayal
 wrote:
> Hi,
>
>>> I am running ConTeXt mark IV. I need to use metauml for my work.
>>> However, I could not get it installed. Please help. The install file
>>> which comes with it does not work for context.
>>
>> more info needed .. test file and so
>>
>> Hans
>
> Sorry about this. Following is from a file for which I took the code from
> mailing list itself.
>
> \chapter{Diameter Finite State Machine}
> The state machine of the diameter base protocol implementation will observer
> following state machine.
> \startMPinclusions
> input metauml;
> \stopMPinclusions
> \startuseMPgraphic{xx}
>
> save A;
> save B;
> Class.A("Point")
>       ("+x: int",
>        "+y: int") ();
>
> Class.B("Circle")
>       ("radius: int")
>       ("+getRadius(): int",
>        "+setRadius(r: int):void");
>
> topToBottom(45)(A, B);
>
> drawObjects(A, B);
>
> clink(aggregationUni)(A, B);
>
> \stopuseMPgraphic
>
> \placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}
>
> This is included in starttext block.
>
> For verbosity I am also giving you some errors.
>
>  Isolated expression.
> 
>                   (
> <*>  save A; save B; Class.A(
>                             "Point") ("+x: int", "+y: int") (); Class.B("Ci...
>
> ! Extra tokens will be flushed.
> 
>                   (
> <*>  save A; save B; Class.A(
>                             "Point") ("+x: int", "+y: int") (); Class.B("Ci...
>
>>> Class.B
> ! Isolated expression.

No problem here with mkii and texlive 2009
and export shell_escape=t;
my test.tex  is in the same folder of metauml

%%
%%test.tex
\setupcolors[state=start]
\startMPinclusions
input metauml;
\stopMPinclusions


\starttext
\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startuseMPgraphic{xx}

save A;
save B;
Class.A("Point")
     ("+x: int",
      "+y: int") ();

Class.B("Circle")
     ("radius: int")
     ("+getRadius(): int",
      "+setRadius(r: int):void");

topToBottom(45)(A, B);

drawObjects(A, B);

clink(aggregationUni)(A, B);

\stopuseMPgraphic

\placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}

\stoptext

--
luigi
___
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] Context 2010.05.08 - 3D annotations

2010-05-14 Thread Michail Vidiassov

Dear Hans,

On Fri, 14 May 2010, Hans Hagen wrote:


On 14-5-2010 5:25, Michail Vidiassov wrote:

One more 3D related questoin - support for attaching files to PDF.
It seems that instead of embedding 3D annotation into main PDF file
sometimes it is better to attach to it a separate file with just
an annotation in it and have a picture that will launch that file when
clicked on. It is done in LaTeX via attachfile2 package, like
as in http://www.iaas.msu.ru/tmp/u3d/m117_old.pdf at page 194
Is it posiible to have something like it in ConTeXt?


it's all a matter of taste; you can get the old variant by just making small 
one page documents and using the \attachment mechanism with the preview as 
symbol


O! That's the answer I sought.
The mechanism is called \attachment and it is in a working state - fine!
Any pointers to usage examples?

BTW it is not just matter of taste.
Many tools produce not just models for 3D PDF (U3D or PRC),
but complete PDF documents with additional JavaScript-programmed actions
linked to proprietary toolbars etc.
If this extended surrounding of the model is to bee preserved attachfile 
instead of embedfile approach is a must.


  Sincerely, Michail
___
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] Context 2010.05.08 - 3D annotations

2010-05-14 Thread Aditya Mahajan

On Sat, 15 May 2010, Michail Vidiassov wrote:


On Fri, 14 May 2010, Hans Hagen wrote:


 On 14-5-2010 5:25, Michail Vidiassov wrote:
 it's all a matter of taste; you can get the old variant by just making
 small one page documents and using the \attachment mechanism with the
 preview as symbol


O! That's the answer I sought.
The mechanism is called \attachment and it is in a working state - fine!
Any pointers to usage examples?


I used \attachment sometime ago in a MyWay (for attaching text not pdf)

http://dl.contextgarden.net/myway/context-latex-math.pdf

The source is at

http://dl.contextgarden.net/myway/context-latex-math.tar.gz

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] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
Hi,

>>> I am running ConTeXt mark IV. I need to use metauml for my work.
>>> However, I could not get it installed. Please help. The install file
>>> which comes with it does not work for context.
>>
>> more info needed .. test file and so
>>
>> Hans
>
> Sorry about this. Following is from a file for which I took the code from
> mailing list itself.

Sorry to bother you  people. It is a pain to waste time like this.
Since metaobj works
with context I will extend and use it to draw UML diagrams. I just
thought that since
it is mentioned as a package at contextgarden I was hoping that it
will work out of the
box.

-- 
Best regards,
Shiv Shankar Dayal
___
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] Issue with \setupinterlinespace

2010-05-14 Thread Wolfgang Schuster

Am 15.05.10 00:23, schrieb Khaled Hosny:

On Fri, May 14, 2010 at 03:20:21PM +0200, luigi scarso wrote:
   

On Fri, May 14, 2010 at 3:15 PM, Khaled Hosny  wrote:
 

I see, in the wiki:

   height: ration|size of strut (e.g. 0.72 or 9pt)
   depth:  ration|size of strut (e.g. 0.28 or 3pt)

And I assumed .7em is comparable to 9pt, how it is different? Using
points gives the same error.
   

use *numbers*, not *dimensions*

height  number
depth   number
linedimension
top number
bottom  number
 

Ah, didn't notice that, but this contradicts the description (or I'm
severely confused).
   


The description on the wiki is wrong, accept this. The others told
you height and depth to use number because the values are fraction
of the line height.

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] installing metauml in context

2010-05-14 Thread Taco Hoekwater


Hi,

The attached file runs without errors for me in mkiv (latest beta,
 2010.05.14 15:26 MKIV). However, note the following:

1. I had to add loading of 8r-base.map for the rptmr font
2. The placement of the text strings is wrong (probably related)

Best wishes,
Taco

Shiv Shankar Dayal wrote:

Hi,


I am running ConTeXt mark IV. I need to use metauml for my work.
However, I could not get it installed. Please help. The install file
which comes with it does not work for context.

more info needed .. test file and so

Hans


Sorry about this. Following is from a file for which I took the code from
mailing list itself.

\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startMPinclusions
input metauml;
\stopMPinclusions
\startuseMPgraphic{xx}

save A;
save B;
Class.A("Point")
   ("+x: int",
"+y: int") ();

Class.B("Circle")
   ("radius: int")
   ("+getRadius(): int",
"+setRadius(r: int):void");

topToBottom(45)(A, B);

drawObjects(A, B);

clink(aggregationUni)(A, B);

\stopuseMPgraphic

\placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}

This is included in starttext block.

For verbosity I am also giving you some errors.

 Isolated expression.

   (
<*>  save A; save B; Class.A(
 "Point") ("+x: int", "+y: int") (); Class.B("Ci...

! Extra tokens will be flushed.

   (
<*>  save A; save B; Class.A(
 "Point") ("+x: int", "+y: int") (); Class.B("Ci...


Class.B

! Isolated expression.

Best regards,
Shiv Shankar Dayal
___
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
___




meta.tex
Description: TeX document


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


Re: [NTG-context] MKIV numbering

2010-05-14 Thread Taco Hoekwater

richard.steph...@converteam.com wrote:

Hello,

Does anyone else  have the following problems with numbering for figures, 
equations etc in MKIV


1. Using \setupnumbering[way=bysection] does not work


From the mkiv source, it looks like the inheritance is disabled at the
moment for some reason (code is commented out).

Explicit setting of :

  \setupcaptions[way=bysection]
  \setupformulas[way=bysection]

works.

Best wishes,
Taco

___
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
___