[NTG-context] itemize with zero start

2007-07-27 Thread Wolfgang Werners-Lucchini
Hallo!

I have a problem with \startstopitemize
with

\setupitemize[each][][stopper=:]

After some \startitemize ... \stopitemize groups

conTeXt(ver. 2007.07.25) starts to count from zero (not longer from 
one).

I get

 : Bla
a: Blub
b: Bautz

not

a: Bla
b: Blub
c: Bautz

A few weeks ago someone has found an itemize bug. Is this my problem 
too, or what could be my problem.

I tried to create a minimal example. But I am not able to reproduce 
the problem in a smaller file.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure

2007-07-27 Thread Peter Rolf
Liesbeth van der Plas schrieb:
 Hello Patrick, Peter,..
  
 
 The 3-step method doesn't work? I tried it over and over again.

yes, sorry about that. only changing the media size works.

 Changing the media size by hand does work if I guess the size of the
 picture (I don't have an option bb or bounding box). I think I can work
 with this method for the time being.

you don't need to guess.

you can load the eps graphic in ghostview, then hit the i-key.
a window is opening, showing you the size of the bounding box.
the first two values (0 0) show the coordinates of the lower left
corner, the next two (244 243) the coordinates of the upper right corner
of the bb. so this gfx is 244pt width and 242pt height (or at least it's
bb).

but i agree, that this method is a pain in the ???, if you have many
graphics.

peter

  
 
 Do you know if this bounding box problem is caused by the fact that I
 used Flash for making the picture? I mean, if I buy another vector
 drawing program (Adobe Illustrator for instance), the problem doesn't
 exist?
 
  
 
 Using MetaPost means that I must first learn the MP-programming
 language. I don't know if I have enough time for that. Or is there
 another way?
 
  
 Liesbeth
 
  
 2007/7/26, Peter Rolf [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:
 
 Peter Rolf schrieb:
  Hi Liesbeth,
 
  There is a problem with the bounding box (bb) of the eps file.
 Although
  gs shows it correctly (Info), it uses the media size (default A4) as
  border for the pdf.
 
  You can change the media size by hand (set it to bb), but it's less
  error prone to use extract... or ps to eps from the file menu.
 
 sorry, this doesn't work. it seems, that i have made my tests with an
 already modified (media size) eps graphic. so the only working way i
 found, is to edit the media size.
 
 menu media--user defined...
 set the values to the ones from the bounding box (hit I after you have
 loaded the gfx).
 
 for your example:
 BoundingBox 0 0 244 243
 set the first value to 244pt, the second one to 243pt.
 now the conversion should work (retested!) :)
 
 
 DEL
  1. open the eps file with gs
  2. use ps to eps ( [x] automatically calculate ...] is set here) and
  save in a different file
  3. convert this new file to pdf. The resulting pdf should have the
  correct size.
 
 DEL/
 
  Sorry, found no way to automatize it (I can't beleave this is not
 possible).
 
  HTH, Peter
 
  BTW: why don't you use MetaPost?
 
 
  Liesbeth van der Plas schrieb:
  I use Windows XP.
 
  2007/7/26, Patrick Gundlach [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:
 
  Hello Liesbeth,
 
   Yesterday I sent a few files, but I got a return that the
 message
  body was
   too big.
   Here are the three most important files from yesterday's map.
 
  epstopdf breaks with this file. If, by chance, you use Mac OS
 X, you
  can use 'pstopdf' (the distiller from adobe). Then the pdf
 files have
  a tight bounding box.
 
  Patrick
 
 
 ___
  If your question is of interest to others as well, please add an
  entry to the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl
 mailto:ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 
 ___
 
 
 
 
  --
  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  www.wiskunde-interactief.nl http://www.wiskunde-interactief.nl
  http://www.wiskunde-interactief.nl
 
 
 
 
 
 
 
 ___
 
  If your question is of interest to others as well, please add an
 entry to the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 
 ___
 
 
 
 
 ___
 

Re: [NTG-context] placefigure

2007-07-27 Thread Jörg Hagmann
I use Illustrator. That certainly works -- you can save the pictures as 
pdfs (it's Adobe, after all).

Liesbeth van der Plas wrote:
 Hello Patrick, Peter,..
  

 The 3-step method doesn't work? I tried it over and over again.

 Changing the media size by hand does work if I guess the size of the 
 picture (I don't have an option bb or bounding box). I think I can 
 work with this method for the time being.

  

 Do you know if this bounding box problem is caused by the fact that I 
 used Flash for making the picture? I mean, if I buy another vector 
 drawing program (Adobe Illustrator for instance), the problem doesn't 
 exist?

  

 Using MetaPost means that I must first learn the MP-programming 
 language. I don't know if I have enough time for that. Or is there 
 another way?

  
 Liesbeth

  
 2007/7/26, Peter Rolf [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

 Peter Rolf schrieb:
  Hi Liesbeth,
 
  There is a problem with the bounding box (bb) of the eps file.
 Although
  gs shows it correctly (Info), it uses the media size (default A4) as
  border for the pdf.
 
  You can change the media size by hand (set it to bb), but it's less
  error prone to use extract... or ps to eps from the file menu.
 
 sorry, this doesn't work. it seems, that i have made my tests with an
 already modified (media size) eps graphic. so the only working way i
 found, is to edit the media size.

 menu media--user defined...
 set the values to the ones from the bounding box (hit I after
 you have
 loaded the gfx).

 for your example:
 BoundingBox 0 0 244 243
 set the first value to 244pt, the second one to 243pt.
 now the conversion should work (retested!) :)


 DEL
  1. open the eps file with gs
  2. use ps to eps ( [x] automatically calculate ...] is set
 here) and
  save in a different file
  3. convert this new file to pdf. The resulting pdf should have the
  correct size.
 
 DEL/

  Sorry, found no way to automatize it (I can't beleave this is
 not possible).
 
  HTH, Peter
 
  BTW: why don't you use MetaPost?
 
 
  Liesbeth van der Plas schrieb:
  I use Windows XP.
 
  2007/7/26, Patrick Gundlach [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:
 
  Hello Liesbeth,
 
   Yesterday I sent a few files, but I got a return that the
 message
  body was
   too big.
   Here are the three most important files from yesterday's map.
 
  epstopdf breaks with this file. If, by chance, you use Mac
 OS X, you
  can use 'pstopdf' (the distiller from adobe). Then the pdf
 files have
  a tight bounding box.
 
  Patrick
 
 
 ___
  If your question is of interest to others as well, please
 add an
  entry to the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl
 mailto:ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 
 ___
 
 
 
 
  --
  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  www.wiskunde-interactief.nl
 http://www.wiskunde-interactief.nl 
 http://www.wiskunde-interactief.nl
 
 
 
 
 
 
 
 ___

  If your question is of interest to others as well, please add
 an entry to the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 
 ___

 
 
 
 ___
  If your question is of interest to others as well, please add an
 entry to the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net 

Re: [NTG-context] placefigure

2007-07-27 Thread Liesbeth van der Plas
Hello Patrick, Peter,..


The 3-step method doesn't work? I tried it over and over again.

Changing the media size by hand does work if I guess the size of the picture
(I don't have an option bb or bounding box). I think I can work with this
method for the time being.



Do you know if this bounding box problem is caused by the fact that I used
Flash for making the picture? I mean, if I buy another vector drawing
program (Adobe Illustrator for instance), the problem doesn't exist?



Using MetaPost means that I must first learn the MP-programming language. I
don't know if I have enough time for that. Or is there another way?

Liesbeth


2007/7/26, Peter Rolf [EMAIL PROTECTED]:

 Peter Rolf schrieb:
  Hi Liesbeth,
 
  There is a problem with the bounding box (bb) of the eps file. Although
  gs shows it correctly (Info), it uses the media size (default A4) as
  border for the pdf.
 
  You can change the media size by hand (set it to bb), but it's less
  error prone to use extract... or ps to eps from the file menu.
 
 sorry, this doesn't work. it seems, that i have made my tests with an
 already modified (media size) eps graphic. so the only working way i
 found, is to edit the media size.

 menu media--user defined...
 set the values to the ones from the bounding box (hit I after you have
 loaded the gfx).

 for your example:
 BoundingBox 0 0 244 243
 set the first value to 244pt, the second one to 243pt.
 now the conversion should work (retested!) :)


 DEL
  1. open the eps file with gs
  2. use ps to eps ( [x] automatically calculate ...] is set here) and
  save in a different file
  3. convert this new file to pdf. The resulting pdf should have the
  correct size.
 
 DEL/

  Sorry, found no way to automatize it (I can't beleave this is not
 possible).
 
  HTH, Peter
 
  BTW: why don't you use MetaPost?
 
 
  Liesbeth van der Plas schrieb:
  I use Windows XP.
 
  2007/7/26, Patrick Gundlach [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED]:
 
  Hello Liesbeth,
 
   Yesterday I sent a few files, but I got a return that the message
  body was
   too big.
   Here are the three most important files from yesterday's map.
 
  epstopdf breaks with this file. If, by chance, you use Mac OS X,
 you
  can use 'pstopdf' (the distiller from adobe). Then the pdf files
 have
  a tight bounding box.
 
  Patrick
 
 ___
  If your question is of interest to others as well, please add an
  entry to the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 ___
 
 
 
 
  --
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  www.wiskunde-interactief.nl http://www.wiskunde-interactief.nl
 
 
 
 
 
 
 ___
  If your question is of interest to others as well, please add an entry
 to the Wiki!
 
  maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 ___
 
 
 ___
  If your question is of interest to others as well, please add an entry
 to the Wiki!
 
  maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
 ___
 


 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
[EMAIL PROTECTED]
www.wiskunde-interactief.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 / 

Re: [NTG-context] placefigure

2007-07-27 Thread Sanjoy Mahajan
 Here are the three most important files from yesterday's map.

I looked at the .eps file in emacs, and it has junk at the beginning
and the end.  My system (GNU/Linux) says:

  $ file testPlaatje.eps
  testPlaatje.eps: DOS EPS Binary File Postscript starts at byte 30
length 4085 Metafile starts at byte 4115 length 2658

If I delete those bytes at the beginning and end, then epstopdf
produces a pdf with a tight bounding box (at least here).

Not sure what a 'Metafile' is, but maybe it's some MS-Windows-specific
stuff.  But it's not needed for the .eps to work.

-Sanjoy

Creativity can be a social contribution, but only in so
 far as society is free to use the results. --Richard Stallman
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize with zero start

2007-07-27 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote:
 Hallo!
 
 I have a problem with \startstopitemize
 with
 
 \setupitemize[each][][stopper=:]
 
 After some \startitemize ... \stopitemize groups
 
 conTeXt(ver. 2007.07.25) starts to count from zero (not longer from 
 one).
 
 I get
 
  : Bla
 a: Blub
 b: Bautz
 
 not
 
 a: Bla
 b: Blub
 c: Bautz
 
 A few weeks ago someone has found an itemize bug. Is this my problem 
 too, or what could be my problem.
 
 I tried to create a minimal example. But I am not able to reproduce 
 the problem in a smaller file.

hm, looks like somthing gets out of sync

i really need an example for that

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Vertical align inside a frame?

2007-07-27 Thread Giuseppe Bilotta
Hello all,

how do I tell ConTeXt that I want the frame content to be
top, bottom or middle aligned? I found no way to specify
*vertical* alignment except by nesting frames and specifying
the location= of the inner frame as desired. Am I missing
something obvious?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize with zero start

2007-07-27 Thread Hamid Kamrani
Here is a minimal example of how this happens. I had posted it sometime back.

\starttext
\setupitemize[each][][stopper=:]
\bTABLE
\bTR
\bTD
\startitemize[a]
\item Bla
\item Blub
\item Bautz
\stopitemize
\eTD
\eTR
\eTABLE
\stoptext

On 7/27/07, Hans Hagen [EMAIL PROTECTED] wrote:
 Wolfgang Werners-Lucchini wrote:
  Hallo!
 
  I have a problem with \startstopitemize
  with
 
  \setupitemize[each][][stopper=:]
 
  After some \startitemize ... \stopitemize groups
 
  conTeXt(ver. 2007.07.25) starts to count from zero (not longer from
  one).
 
  I get
 
   : Bla
  a: Blub
  b: Bautz
 
  not
 
  a: Bla
  b: Blub
  c: Bautz
 
  A few weeks ago someone has found an itemize bug. Is this my problem
  too, or what could be my problem.
 
  I tried to create a minimal example. But I am not able to reproduce
  the problem in a smaller file.

 hm, looks like somthing gets out of sync

 i really need an example for that

 Hans

 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Vertical align inside a frame?

2007-07-27 Thread Thomas A. Schmitz
Are you maybe looking for p. 254 of cont-eni.pdf?

Thomas

On Jul 28, 2007, at 1:46 AM, Giuseppe Bilotta wrote:

 Hello all,

 how do I tell ConTeXt that I want the frame content to be
 top, bottom or middle aligned? I found no way to specify
 *vertical* alignment except by nesting frames and specifying
 the location= of the inner frame as desired. Am I missing
 something obvious?

 -- 
 Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Vertical align inside a frame?

2007-07-27 Thread Patrick Gundlach
Hi Giuseppe,

 the location= of the inner frame as desired. Am I missing
 something obvious?

I don't think so, this was an example from Hans:

--
\starttext
\ruledhbox
   {A
\framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging}
\framed[width=2cm,align=middle,location=depth]  {location\\equals\\depth}
\framed[width=2cm,align=middle,location=height] {location\\equals\\height}
B}

\vskip2cm

\ruledhbox
   {A
\framed[width=2cm,align=middle,location=low]{location\\equals\\low}
\framed[width=2cm,align=middle,location=line]   {location\\equals\\line}
\framed[width=2cm,align=middle,location=high]   {location\\equals\\high}
B}

\vskip2cm

\ruledhbox
  {A
   \framed[width=2cm,align=middle,location=top]{location\\equals\\top}
   \framed[width=2cm,align=middle,location=bottom] {location\\equals\\bottom}
   \framed[width=2cm,align=middle,location=lohi]   {location\\equals\\lohi}
   \framed[width=2cm,align=middle,location=middle] {location\\equals\\middle}
   B}

\stoptext

--

Patrick

PS: welcome back!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___