Re: [NTG-context] After \placefigure the first paragraph of body text is not indented

2009-11-10 Thread Alan BRASLAU
On Monday 09 November 2009 18:57:30 Wolfgang Schuster wrote:
 Am 09.11.2009 um 18:18 schrieb Vyatcheslav Yatskovsky:
  Hi
 
  I noticed that after \placefigure the first paragraph of body text
  is not indented. Can I enable the indenting after figures?
 
 \setupfloat[figure][indentnext=yes]
 

I have also noticed that \placefigure inserts a (line) break, that is, a 
\placefigure somewhere in the middle of a paragraph adds a break in the line 
(as would \crlf). Is this to be the expected default behavior, and is there an 
option to \setupfloat that controls this?

If so, would this get broken by [indentnext=yes]?

I would expect the default behavior be
1) not to break the line
and
2) to respect \setupindenting

Thanks,

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

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


[NTG-context] After \placefigure the first paragraph of body text is not indented

2009-11-09 Thread Vyatcheslav Yatskovsky

Hi

I noticed that after \placefigure the first paragraph of body text is 
not indented. Can I enable the indenting after figures?


My setups are like this:
\setupindenting[yes, big]

\placefigure[middle]{ }
{\externalfigure[image015][width=0.9\textwidth]}

Regards,
Vyatcheslav
___
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] After \placefigure the first paragraph of body text is not indented

2009-11-09 Thread Wolfgang Schuster


Am 09.11.2009 um 18:18 schrieb Vyatcheslav Yatskovsky:


Hi

I noticed that after \placefigure the first paragraph of body text  
is not indented. Can I enable the indenting after figures?


\setupfloat[figure][indentnext=yes]

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] After \placefigure the first paragraph of body text is not indented

2009-11-09 Thread Peter Münster
On Mon, 9 Nov 2009, Vyatcheslav Yatskovsky wrote:

 I noticed that after \placefigure the first paragraph of body text is not
 indented. Can I enable the indenting after figures?
 
 My setups are like this:
 \setupindenting[yes, big]
 
 \placefigure[middle]{ }
 {\externalfigure[image015][width=0.9\textwidth]}

Hello,

The opposite is also true. See http://tracker.luatex.org/view.php?id=105

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
___


[NTG-context] \placefigure setups

2009-11-01 Thread Vyatcheslav Yatskovsky

Hello,

Sorry for another newbie question, but how can I setup \placefigure so 
that its caption appeared as Рис. 1.1?

That is, with Рис. prefix and numbered by subsection?

Best regards,
Vyatcheslav
___
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] \placefigure setups

2009-11-01 Thread Wolfgang Schuster


Am 01.11.2009 um 15:23 schrieb Vyatcheslav Yatskovsky:


Hello,

Sorry for another newbie question, but how can I setup \placefigure  
so that its caption appeared as Рис. 1.1?

That is, with Рис. prefix and numbered by subsection?


\setuplabeltext[ru][figure=Рис. ]

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] placefigure broken in mkiv?

2009-10-16 Thread Hans Hagen

Alan BRASLAU wrote:


However, on the subject of \placefigure,
there appears to be a small bug in mkiv.
(Untested) minimal example:

\usemodule[bib]

\starttext

\placefigure[right,none]{}{\externalfigure[file][width=.3\textwidth]

Text...\cite{Me2009}
\blank[2*line]

\placepublications[criterium=all]

\stoptext

The publications list is typeset full \textwidth and overflows the figure.


is this related to bibliographies? if so, make a test file that shows 
the problem and communicate it with Thomas Schmitz who is collecting / 
testing bib related issues


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


Re: [NTG-context] placefigure broken in mkiv?

2009-10-16 Thread Vyatcheslav Yatskovsky

Hello,

Thanks, Wolfgang.

\placefigure[middle,none]{}{...}

the official way in mkiv (please add this to the new mkii/mkiv
difference page on the wiki)
   

OK, but where this page is?

(Oh, I we could get rid of these empty parenthesizes, it would be even 
nicer. Let's clean the syntax! )


Vyatcheslav
___
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] placefigure broken in mkiv?

2009-10-16 Thread Wolfgang Schuster


Am 16.10.2009 um 15:29 schrieb Vyatcheslav Yatskovsky:


please add this to the new mkii/mkiv difference page on the wiki)


OK, but where this page is?


http://wiki.contextgarden.net/MkIV_Differences

(Oh, I we could get rid of these empty parenthesizes, it would be  
even nicer. Let's clean the syntax! )


You can make a entry in the bug/feature tracker: http://tracker.luatex.org/

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
___


[NTG-context] placefigure broken in mkiv?

2009-10-15 Thread Vyatcheslav Yatskovsky

Hello,

A document that was previously compiled successfully a few months ago, 
now throws an exception.


My code:
\placefigure
  [middle]
  {none}
  {\externalfigure[2009-05-26_200309s][width=0.9\textwidth]}

My result:
! Missing number, treated as zero.
to be read again
   \currentfloatattribute
\floatcaptionattribute ... \currentfloatattribute
  \fi \fi \fi
\docompletefloat ... \vbox \floatcaptionattribute
  
{\doifelsemainfloatbody \c...

argument ...at {figure}{}{middle}{none}\nextbox
  \else 
\docompletefloat {fi...

\thirdofthreearguments #1#2#3-#3

\xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
  \else 
\docompletefloat {#1...

...
l.22 ...[2009-05-26_200309s][width=0.9\textwidth]}

?

What it could mean?

Regards,
Vyatcheslav

___
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] placefigure broken in mkiv?

2009-10-15 Thread Wolfgang Schuster


Am 15.10.2009 um 16:04 schrieb Vyatcheslav Yatskovsky:


Hello,

A document that was previously compiled successfully a few months  
ago, now throws an exception.


My code:
\placefigure
 [middle]
 {none}
 {\externalfigure[2009-05-26_200309s][width=0.9\textwidth]}


\placefigure[middle,none]{}{...}

the official way in mkiv (please add this to the new mkii/mkiv  
difference page on the wiki)


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] placefigure broken in mkiv?

2009-10-15 Thread Alan BRASLAU
On Thursday 15 October 2009 17:29:12 Wolfgang Schuster wrote:
 Am 15.10.2009 um 16:04 schrieb Vyatcheslav Yatskovsky:
  Hello,
 
  A document that was previously compiled successfully a few months
  ago, now throws an exception.
 
  My code:
  \placefigure
   [middle]
   {none}
   {\externalfigure[2009-05-26_200309s][width=0.9\textwidth]}
 
 \placefigure[middle,none]{}{...}
 
 the official way in mkiv (please add this to the new mkii/mkiv
 difference page on the wiki)

This indeed is a cleaner syntax.


However, on the subject of \placefigure,
there appears to be a small bug in mkiv.
(Untested) minimal example:

\usemodule[bib]
...
\starttext

\placefigure[right,none]{}{\externalfigure[file][width=.3\textwidth]

Text...\cite{Me2009}
\blank[2*line]

\placepublications[criterium=all]

\stoptext

The publications list is typeset full \textwidth and overflows the figure.

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

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


Re: [NTG-context] reference in \placefigure

2009-09-08 Thread Hans Hagen

Peter Münster wrote:

Hello,

References to figures don't seem to work with latest version:

\starttext
\section[secref]{section}
\placefigure[][figref]{caption}{figure}
In section \in[secref] and in figure
\in[figref]. % nothing here...
\stoptext


fixed in next beta

-
  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] reference in \placefigure

2009-09-03 Thread Peter Münster
Hello,

References to figures don't seem to work with latest version:

\starttext
\section[secref]{section}
\placefigure[][figref]{caption}{figure}
In section \in[secref] and in figure
\in[figref]. % nothing here...
\stoptext

Cheers, Peter


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

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


[NTG-context] placefigure[right] draws figures inside framed text

2009-07-08 Thread Jos van Gisbergen
Hello,

I'm using framed text to display verbatim sourse code. The frame should use
the entire textwidth, so I use width=broad.
A problem occurs when I use a figure placed at the right side of the page,
before a framed text section: the figure is drawn *inside* the frame.
With non-framed text everything works fine.

I include an example. It consists of a d.tex file and METAPOST file
a.mp. To reproduce the problem, first convert a.mp to a-1.pdf using
the mptopdf utility. Then texexec --pdf d.tex

   d.tex -
\starttext

Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad shqpras,
rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf hyrarqrchy-rvrarlqp rulras
brayng qpplyrad braawraran such fyxrad shqpras. An rvrarcrnsarqyna rf ahys aypra
mygha bra rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp crnsarqynas
ahqa qrra cqusyng ya, qnd fyllyng up ahra rrasulayng gqps braawraran ahra
fyxrad shqpras. Syncra ahra crmpqcayrn rangynra cqnnra prarfrrm ahys kynd rf
rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

\placefigure
   [right][fig:nano]
   {nano}
   {\externalfigure[a-1][width=0.4\textwidth]}

Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad shqpras,
rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf hyrarqrchy-rvrarlqp rulras
brayng qpplyrad braawraran such fyxrad shqpras. An rvrarcrnsarqyna rf ahys aypra
mygha bra rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp crnsarqynas
ahqa qrra cqusyng ya, qnd fyllyng up ahra rrasulayng gqps braawraran ahra
fyxrad shqpras. Syncra ahra crmpqcayrn rangynra cqnnra prarfrrm ahys kynd rf
rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

\placefigure
   [right][fig:pico]
   {pico}
   {\externalfigure[a-1][width=0.4\textwidth]}

\framed[width=broad]{
\vbox{
\starttyping

Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad
shqpras, rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf
hyrarqrchy-rvrarlqp rulras brayng qpplyrad braawraran such
fyxrad shqpras. An rvrarcrnsarqyna rf ahys aypra mygha bra
rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp
crnsarqynas ahqa qrra cqusyng ya, qnd fyllyng up ahra
rrasulayng gqps braawraran ahra fyxrad shqpras. Syncra ahra
crmpqcayrn rangynra cqnnra prarfrrm ahys kynd rf rvrarcrnsarqyna
rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

\stoptyping
}}
\stoptext

  --- a.mp 
beginfig(1);
fill(0,0)..(0,3cm)..(3cm,1cm)..(1cm,5cm)..cycle withcolor green;
endfig;end;


  ___
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[right] draws figures inside framed text

2009-07-08 Thread Willi Egger

Hi,

use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the  
lines. Do not use a \vbox


Willi

On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote:


Hello,

I'm using framed text to display verbatim sourse code. The frame  
should use

the entire textwidth, so I use width=broad.
A problem occurs when I use a figure placed at the right side of  
the page,

before a framed text section: the figure is drawn *inside* the frame.
With non-framed text everything works fine.

I include an example. It consists of a d.tex file and METAPOST file
a.mp. To reproduce the problem, first convert a.mp to a-1.pdf using
the mptopdf utility. Then texexec --pdf d.tex

   d.tex -
\starttext

Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad  
shqpras,
rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf hyrarqrchy- 
rvrarlqp rulras
brayng qpplyrad braawraran such fyxrad shqpras. An rvrarcrnsarqyna  
rf ahys aypra
mygha bra rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp  
crnsarqynas
ahqa qrra cqusyng ya, qnd fyllyng up ahra rrasulayng gqps  
braawraran ahra
fyxrad shqpras. Syncra ahra crmpqcayrn rangynra cqnnra prarfrrm  
ahys kynd rf

rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

\placefigure
   [right][fig:nano]
   {nano}
   {\externalfigure[a-1][width=0.4\textwidth]}

Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad  
shqpras,
rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf hyrarqrchy- 
rvrarlqp rulras
brayng qpplyrad braawraran such fyxrad shqpras. An rvrarcrnsarqyna  
rf ahys aypra
mygha bra rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp  
crnsarqynas
ahqa qrra cqusyng ya, qnd fyllyng up ahra rrasulayng gqps  
braawraran ahra
fyxrad shqpras. Syncra ahra crmpqcayrn rangynra cqnnra prarfrrm  
ahys kynd rf

rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

\placefigure
   [right][fig:pico]
   {pico}
   {\externalfigure[a-1][width=0.4\textwidth]}

\framed[width=broad]{
\vbox{
\starttyping

Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad
shqpras, rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf
hyrarqrchy-rvrarlqp rulras brayng qpplyrad braawraran such
fyxrad shqpras. An rvrarcrnsarqyna rf ahys aypra mygha bra
rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp
crnsarqynas ahqa qrra cqusyng ya, qnd fyllyng up ahra
rrasulayng gqps braawraran ahra fyxrad shqpras. Syncra ahra
crmpqcayrn rangynra cqnnra prarfrrm ahys kynd rf rvrarcrnsarqyna
rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

\stoptyping
}}
\stoptext

  --- a.mp 
beginfig(1);
fill(0,0)..(0,3cm)..(3cm,1cm)..(1cm,5cm)..cycle withcolor green;
endfig;end;


__ 
_
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] placefigure[right] draws figures inside framed text (Willi Egger)

2009-07-08 Thread Jos van Gisbergen
Hello Willi,

Thanks for your answer.
Your suggestion works ... if I would be free to choose the framed text to be 0.5
textwidth. However, the framed text is source code and I do need the entire 
textwidth
because otherwise I'm going to get line wraps and that'll make things look ugly.
I expected  placefigure[right] to be clever enough to see that there is no room
beside the framed text, and either place the figure above it or beneath it.
My current workaround is to put the placefigure[right] macro earlier in the flow
of text if possible, or use placefigure[force].

Regards,

Jos






Message: 4
Date: Wed, 8 Jul 2009 16:44:11 +0200
From: Willi Egger w.eg...@boede.nl
Subject: Re: [NTG-context] placefigure[right] draws figures inside
framedtext
To: mailing list for ConTeXt users ntg-context@ntg.nl
Message-ID: c9d22320-b2b1-4a77-b38c-6dd553ec2...@boede.nl
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi,

use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the  
lines. Do not use a \vbox

Willi

On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote:

 Hello,

 I'm using framed text to display verbatim sourse code. The frame  
 should use
 the entire textwidth, so I use width=broad.
 A problem occurs when I use a figure placed at the right side of  
 the page,
 before a framed text section: the figure is drawn *inside* the frame.
 With non-framed text everything works fine.

 I include an example. It consists of a d.tex file and METAPOST file
 a.mp. To reproduce the problem, first convert a.mp to a-1.pdf using
 the mptopdf utility. Then texexec --pdf d.tex


  ___
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] get rid of placefigure and startcombination captions

2009-06-27 Thread Thomas Floeren


On Jun 26, 2009, at 1:42 PM, Vyatcheslav Yatskovsky wrote:


Hello

I used \placefigure just for centering the figure. And even if I put  
\startcombination directly, won't it reserve blank space for empty  
subcaptions?


Actually, I found nice snipped that works like a charm for my needs:

\hbox to \hsize{
\externalfigure[serg1][width=3.5cm]
\hss\externalfigure[serg2][width=3.5cm]
\hss\externalfigure[serg4][width=3.5cm]
\hss\externalfigure[serg3][width=3.5cm]}

...and no combinations needed! ))

Vyatcheslav


Hello,

 Another urgent problem:

 how to get rid of placefigure and startcombination captions
 altogether?

 When I use the following, I get too much wasted space after the
 illustration.

 \placefigure
 [fit]
 {none}
 {\startcombination[4*1]
{\externalfigure[serg1][width=4cm]} {}
{\externalfigure[serg2][width=4cm]} {}
{\externalfigure[serg3][width=4cm]} {}
{\externalfigure[serg4][width=4cm]} {}
 \stopcombination}

 Best,
 Vyatcheslav


I'm not sure I understand your problem. If you don't want a caption
and don't want the figure to float, why do you use \placefigure at
all? Just remove the wrapper and put \startcombination etc. directly
into your source file.

Thomas


pay also attention to the syntax
(1) \placefigure[...]{none}
vs.
 (2) \placefigure[...,none]{}

In MkII the two delivered the same output, in MkIV variant (1) will  
reserve some kind of space for the non-existant caption.

I don’t know if this is intended or a bug.

Example:

\starttext
\placefigure[here]{none}{\externalfigure[dummy]}
\dorecurse{30}{blabla }

\placefigure[here,none]{}{\externalfigure[dummy]}
\dorecurse{30}{blabla }
\stoptext

Greetings
Tom

_


___
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] get rid of placefigure and startcombination captions

2009-06-26 Thread Vyatcheslav Yatskovsky

Hello

I used \placefigure just for centering the figure. And even if I put 
\startcombination directly, won't it reserve blank space for empty 
subcaptions?


Actually, I found nice snipped that works like a charm for my needs:

\hbox to \hsize{
\externalfigure[serg1][width=3.5cm]
\hss\externalfigure[serg2][width=3.5cm]
\hss\externalfigure[serg4][width=3.5cm]
\hss\externalfigure[serg3][width=3.5cm]}

...and no combinations needed! ))

Vyatcheslav


Hello,

  Another urgent problem:

  how to get rid of placefigure and startcombination captions
  altogether?

  When I use the following, I get too much wasted space after the
  illustration.

  \placefigure
  [fit]
  {none}
  {\startcombination[4*1]
  {\externalfigure[serg1][width=4cm]} {}
  {\externalfigure[serg2][width=4cm]} {}
  {\externalfigure[serg3][width=4cm]} {}
  {\externalfigure[serg4][width=4cm]} {}
  \stopcombination}

  Best,
  Vyatcheslav
   


I'm not sure I understand your problem. If you don't want a caption
and don't want the figure to float, why do you use \placefigure at
all? Just remove the wrapper and put \startcombination etc. directly
into your source file.

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

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


[NTG-context] get rid of placefigure and startcombination captions

2009-06-24 Thread Vyatcheslav Yatskovsky

Hello,

Another urgent problem:

how to get rid of placefigure and startcombination captions altogether?

When I use the following, I get too much wasted space after the 
illustration.


\placefigure
[fit]
{none}
{\startcombination[4*1]
{\externalfigure[serg1][width=4cm]} {}
{\externalfigure[serg2][width=4cm]} {}
{\externalfigure[serg3][width=4cm]} {}
{\externalfigure[serg4][width=4cm]} {}
\stopcombination}

Best,
Vyatcheslav
___
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] get rid of placefigure and startcombination captions

2009-06-24 Thread Thomas A. Schmitz


On Jun 24, 2009, at 4:48 PM, Vyatcheslav Yatskovsky wrote:


Hello,

Another urgent problem:

how to get rid of placefigure and startcombination captions  
altogether?


When I use the following, I get too much wasted space after the  
illustration.


\placefigure
[fit]
{none}
{\startcombination[4*1]
   {\externalfigure[serg1][width=4cm]} {}
   {\externalfigure[serg2][width=4cm]} {}
   {\externalfigure[serg3][width=4cm]} {}
   {\externalfigure[serg4][width=4cm]} {}
\stopcombination}

Best,
Vyatcheslav


I'm not sure I understand your problem. If you don't want a caption  
and don't want the figure to float, why do you use \placefigure at  
all? Just remove the wrapper and put \startcombination etc. directly  
into your source file.


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

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


[NTG-context] anyway to treat placefigure as a frame?

2008-12-08 Thread Yue Wang
Hi, Hans:

Is there some command to treat figure (both the caption and graphic)
as a frame? setupfloats only deside what the graphics side should be
like.
I want to add a background to the caption+graphic.

Yue Wang
___
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] anyway to treat placefigure as a frame?

2008-12-08 Thread Hans Hagen

Yue Wang wrote:

Hi, Hans:

Is there some command to treat figure (both the caption and graphic)
as a frame? setupfloats only deside what the graphics side should be
like.
I want to add a background to the caption+graphic.


currently not

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

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


Re: [NTG-context] \placefigure not centering

2008-08-28 Thread Taco Hoekwater
Marcin Borkowski wrote:
 Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisa#322;(a):
 Why this does not center the figure horizontally?  What should I do to
 center it?

 \placefigure{none}{
   \starttikzpicture[scale=0.3]
 \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
   \stoptikzpicture
 }

 I discovered that using combinations with 1*1 helps, but this is a
 dirty trick;).  (Also, none as a label does not work with combinations
 - is it a bug or a feature?)
 
 OK, so I'm answering myself.  The problem is (I guess so at least) that
 the second parameter somehow gets typeset as a paragraph - that is,
 with full paragraph's width (=width of the whole column).  Since nothing
 is said about centering, it is flush left.  This helps:
 
 \placefigure{none}{\hbox{
   \starttikzpicture[scale=0.5]
 \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
   \stoptikzpicture
 }}
 
 Maybe it's not very clean, but it seems to work.  If anyone has a
 cleaner (more ConTeXt-way-ish solution), I'd be thankful for a hint.

You could probably use \framed[frame=off]{} instead of \hbox{}

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


[NTG-context] \placefigure not centering

2008-08-27 Thread Marcin Borkowski
Hey!

Seems I'm going to ask lots of questions here - I'm starting to _really_
use ConTeXt;).

Why this does not center the figure horizontally?  What should I do to
center it?

\placefigure{none}{
  \starttikzpicture[scale=0.3]
\draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
  \stoptikzpicture
}

I discovered that using combinations with 1*1 helps, but this is a
dirty trick;).  (Also, none as a label does not work with combinations
- is it a bug or a feature?)

Thanks in advance

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

 _   _   _
/ \ / \ / \  OSTRE SŁOWA
\_/ \_/ \_/  OSTRA MUZYKA
/ \ / \ / \  OSTRA PŁYTA
\_/ \_/ \_/  2 Tm 2,3
___
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 not centering

2008-08-27 Thread Marcin Borkowski
Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisa#322;(a):
 Why this does not center the figure horizontally?  What should I do to
 center it?
 
 \placefigure{none}{
   \starttikzpicture[scale=0.3]
 \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
   \stoptikzpicture
 }
 
 I discovered that using combinations with 1*1 helps, but this is a
 dirty trick;).  (Also, none as a label does not work with combinations
 - is it a bug or a feature?)

OK, so I'm answering myself.  The problem is (I guess so at least) that
the second parameter somehow gets typeset as a paragraph - that is,
with full paragraph's width (=width of the whole column).  Since nothing
is said about centering, it is flush left.  This helps:

\placefigure{none}{\hbox{
  \starttikzpicture[scale=0.5]
\draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
  \stoptikzpicture
}}

Maybe it's not very clean, but it seems to work.  If anyone has a
cleaner (more ConTeXt-way-ish solution), I'd be thankful for a hint.

Greets

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)
___
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 not centering

2008-08-27 Thread Hans Hagen
Marcin Borkowski wrote:
 Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisa#322;(a):
 Why this does not center the figure horizontally?  What should I do to
 center it?

 \placefigure{none}{
   \starttikzpicture[scale=0.3]
 \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
   \stoptikzpicture
 }

 I discovered that using combinations with 1*1 helps, but this is a
 dirty trick;).  (Also, none as a label does not work with combinations
 - is it a bug or a feature?)
 
 OK, so I'm answering myself.  The problem is (I guess so at least) that
 the second parameter somehow gets typeset as a paragraph - that is,
 with full paragraph's width (=width of the whole column).  Since nothing
 is said about centering, it is flush left.  This helps:
 
 \placefigure{none}{\hbox{
   \starttikzpicture[scale=0.5]
 \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
   \stoptikzpicture
 }}
 
 Maybe it's not very clean, but it seems to work.  If anyone has a
 cleaner (more ConTeXt-way-ish solution), I'd be thankful for a hint.

often

  \placefigure{none}{\dontleavehmode
\starttikzpicture[scale=0.5]
  \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
\stoptikzpicture
  }

works as well; the second ars to placefigure goes into a vbox

Hans


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

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


Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-23 Thread Wolfgang Schuster
On Thu, 22 Nov 2007 22:02:24 +0100
Peter Schorsch [EMAIL PROTECTED] wrote:

  \placefigure
[force][fig:xy]
{captiontext}
{\placelegend
   {\startcombination[2*1]
  {\externalfigure[xxx]}{}
  {\externalfigure[yyy]}{}
\stopcombination}
   {Quelle: XY}}
 
 Thanks, both solutions work. Is there something simelar for placelegend in 
 splitfloat?
 
 \splitfloat
  {\placetable[][]{tablecaptiontext}}
  {very very long HTML-Table}
 
 I need to add a legend - also as a HTML-Table, so I tried:
 
 \splitfloat
 {\placetable[][]{tablecaptiontext}}
 {\placelegend 
   {very very long HTML-Table}
   {legend HTML-Table}}
 
 But this is not working  - strangly an Missing-} error comes up but all 
 brakets are closed. Is there any other way to put a legend at the end of a 
 multi-page HTML-Table?
 
 Ciao, P.

You don't need \splitfloat because you can use the split parameter
for \placetable.

\placelegend can not be used for content that has to split after pages
but you my the following trick for tables.

\starttext

\placetable
  [split]
  {Table Caption}
  {\bTABLE
   \bTABLEbody
 \dorecurse{50}{\bTR\bTD Text text text \eTD\bTD Text text text \eTD
\eTR} \eTABLEbody
   \bTABLEfoot
   \bTR\bTD[frame=off,nx=2,align=middle] Taken from book xx \eTD\eTR
   \eTABLEfoot
   \eTABLE}

\stoptext

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] combination with an additional line centered in a placefigure?

2007-11-22 Thread Peter Schorsch
 \placefigure
   [force][fig:xy]
   {captiontext}
   {\placelegend
  {\startcombination[2*1]
 {\externalfigure[xxx]}{}
 {\externalfigure[yyy]}{}
   \stopcombination}
  {Quelle: XY}}

Thanks, both solutions work. Is there something simelar for placelegend in 
splitfloat?

\splitfloat
 {\placetable[][]{tablecaptiontext}}
 {very very long HTML-Table}

I need to add a legend - also as a HTML-Table, so I tried:

\splitfloat
{\placetable[][]{tablecaptiontext}}
{\placelegend 
{very very long HTML-Table}
{legend HTML-Table}}

But this is not working  - strangly an Missing-} error comes up but all 
brakets are closed. Is there any other way to put a legend at the end of a 
multi-page HTML-Table?

Ciao, P.

___
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] combination with an additional line centered in a placefigure?

2007-11-16 Thread Wolfgang Schuster
2007/11/16, Peter Schorsch [EMAIL PROTECTED]:
 Hi,

 as soon I enter the cbox-line the combination is not longer centered. I tried
 to embed the combination in a cbox, but that had no effect. Has anyone a hint
 how to center the combination successfullly?

 \starttext
 \placefigure
 [force][fig:xy]
 {captiontext}
 {\startcombination[2*1]
 {\externalfigure[xxx][]}{}
 {\externalfigure[yyy][]}{}
 \stopcombination
 \cbox{\tfx Quelle: XY}
 }
 \stoptext

 Thanks, P.

\setuplegend
  [align=middle,
   bodyfont=small]

\starttext

\placefigure
  [force][fig:xy]
  {captiontext}
  {\placelegend
 {\startcombination[2*1]
{\externalfigure[xxx]}{}
{\externalfigure[yyy]}{}
  \stopcombination}
 {Quelle: XY}}

\stoptext

You can define legend commands with \definepairedbox (see core-mis.tex)
and you can skip the second pair of brackets after \externalfigure.

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

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


[NTG-context] combination with an additional line centered in a placefigure?

2007-11-15 Thread Peter Schorsch
Hi,

as soon I enter the cbox-line the combination is not longer centered. I tried 
to embed the combination in a cbox, but that had no effect. Has anyone a hint 
how to center the combination successfullly? 

\starttext
\placefigure
[force][fig:xy]
{captiontext}
{\startcombination[2*1]
{\externalfigure[xxx][]}{}
{\externalfigure[yyy][]}{}
\stopcombination
\cbox{\tfx Quelle: XY}
}
\stoptext

Thanks, P.
___
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] combination with an additional line centered in a placefigure?

2007-11-15 Thread Thomas A. Schmitz

On Nov 16, 2007, at 8:14 AM, Peter Schorsch wrote:

 Hi,

 as soon I enter the cbox-line the combination is not longer  
 centered. I tried
 to embed the combination in a cbox, but that had no effect. Has  
 anyone a hint
 how to center the combination successfullly?

 \starttext
 \placefigure
   [force][fig:xy]
   {captiontext}
   {\startcombination[2*1]
   {\externalfigure[xxx][]}{}
   {\externalfigure[yyy][]}{}
   \stopcombination
   \cbox{\tfx Quelle: XY}
   }
 \stoptext

 Thanks, P.

Hmm, untested: isn't that because you're lying to ConTeXt? I'm not  
quite sure what you want to achieve, but it looks like you don't want  
a 2*1 combination. Rather, you're looking for a 1*2 combination, the  
first part of which is a 2*1 combination, so I would guess that  
nesting those combinations would be the way to go.

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

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


[NTG-context] placefigure[hang] in columns

2007-10-01 Thread Christof Meigen


Hi,

I'm quite new to ConTeXT, so excuse me if the solution is obvious.  

I'm trying to typeset a document with three columns which contains _a
lot_ of graphics, most of which are pretty small, about one third of a
column.

Unfortunately, while \placefigure[left,hang] works fine with one
column, the text doesn't float around the picture when using two or
more columns, so when I do
--
\starttext
\startcolumns[n=2]
\placefigure[left,hang]{none}{\externalfigure[somepic][width=1.6cm]} 
sometext
\stopcolumns
\stoptext
--
sometext appears in the second column, instead of next to the
figure in the first column.

To get an impression of what I want to achive you might try the
following link:

http://213.239.210.141/cgi-bin/lex.pl?titel=David%20Lynchdb=Berlinid=58,165,166,638,2298,3749,6687,6889,8070,10392,11347,12117,14491,15640

While this comes close to what I mean (it's done in LaTeX), there are
some limitations in LaTeX which make the job very painful, one of which
is that it's impossible to have floats in columns for larger pictures
that span one column (this works fine in Context).

Am I just missing something?

Ok, if that was too easy, here is the tough problem: *Actually* I
would like to let the small pictures float _within_ the paragraph, so
that if, say, the paragraph starts three lines before the end of the
column, the picture would be set after the first three lines of the
paragraph (and thus in the next column). I've experimented with
writing \pdflastypos to logfiles, analysing them with a perl script,
changing automatically the TeX-File and rerunning latex for days, but
the results are ... well, ok, but not perfect.

Thanks in advance for any hints,
   Christof Meigen
___
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[hang] in columns

2007-10-01 Thread Hans Hagen
Christof Meigen wrote:
 
 Hi,
 
 I'm quite new to ConTeXT, so excuse me if the solution is obvious.  
 
 I'm trying to typeset a document with three columns which contains _a
 lot_ of graphics, most of which are pretty small, about one third of a
 column.
 
 Unfortunately, while \placefigure[left,hang] works fine with one
 column, the text doesn't float around the picture when using two or
 more columns, so when I do

this is not supported in column mode

Hans

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

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


Re: [NTG-context] placefigure

2007-07-28 Thread Sanjoy Mahajan
 you can load the eps graphic in ghostview, then hit the i-key.
 but i agree, that this method is a pain in the ???, if you have many
 graphics.

The following command often finds the right bounding box:

  gs -sDEVICE=bbox -dSAFER -dBATCH -dNOPAUSE -q file.eps

-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] placefigure

2007-07-28 Thread Liesbeth van der Plas
Hallo Sanjoy,

I tried your command but it doens't work on my pc.

Liesbeth


2007/7/28, Sanjoy Mahajan [EMAIL PROTECTED]:

  you can load the eps graphic in ghostview, then hit the i-key.
  but i agree, that this method is a pain in the ???, if you have many
  graphics.

 The following command often finds the right bounding box:

 gs -sDEVICE=bbox -dSAFER -dBATCH -dNOPAUSE -q file.eps

 -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

 ___




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


Re: [NTG-context] placefigure

2007-07-28 Thread Wolfgang Schuster
On Sat, 28 Jul 2007 09:19:45 +0200
Liesbeth van der Plas [EMAIL PROTECTED] wrote:

 Hallo Sanjoy,
 
 I tried your command but it doens't work on my pc.
 
 Liesbeth

try gswin32c -sDEVICE=bbox -dSAFER -dBATCH -dNOPAUSE -q file.eps

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-28 Thread Sanjoy Mahajan
 I tried your command but it doesn't work on my pc.

Maybe ghostscript isn't installed?  What was the exact error?  On my
system (i386 laptop with Ubuntu GNU/Linux):

$ gs -h
GPL Ghostscript 8.54 (2006-05-17)

but most versions of ghostscript should 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] 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] placefigure

2007-07-26 Thread Patrick Gundlach
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 / 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-26 Thread Peter Rolf
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
___


Re: [NTG-context] placefigure

2007-07-26 Thread olivier Turlier
Le Thu, 26 Jul 2007 08:36:53 +0200, Liesbeth van der Plas a écrit :

 Hallo Patrick,
 
 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.
 
 Liesbeth
 
 
 
 2007/7/25, Liesbeth van der Plas [EMAIL PROTECTED]:

 Hallo Patrick,

 Here the map with alle files; .tex, .eps, .pdf, ...

 Liesbeth


 2007/7/25, Patrick Gundlach [EMAIL PROTECTED]:
 
  Hello Liesbeth,
 
  do you have a small sample eps file which gives you a problem? That
  way we might be able to help you better.
 
  Patrick
 
  ___
  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


Hi Liesbeth,
If you cannot convert correctly your image, I can try to 'pstopdf' it.
Send it directly to my mail address if it's under 9.5 M, an if bigger,
winrar can cut it into smaller chunks.
Maybe it'll solve your pb.

-- 
Olivier TURLIER
CRP La Rouguière
101 Bd des Libérateurs
13367 MARSEILLE CEDEX 11
tel : (33) 04 91 18 56 00
[EMAIL PROTECTED]


___
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-26 Thread Peter Rolf
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.

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.

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
___


Re: [NTG-context] placefigure

2007-07-26 Thread Patrick Gundlach


 I use Windows XP.

Sorry Liesbeth, I am out of my wits then, perhaps there is somebody
out here with some tricks. Perhaps you can use some special printer
driver that is able to create different kind of eps or pdf and then
use 'print to file' to create the pdf. Does ghostscript offer such
a thing? I have no idea.

Patrick
___
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-26 Thread Liesbeth van der Plas

I use Windows XP.

2007/7/26, Patrick Gundlach [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 /
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 / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure

2007-07-25 Thread Liesbeth van der Plas

In GhostScript: Options àEPS Clip

File à Convert à pdfwrite, Variable Page

File à Convert à pdfwrite, Fixed Page Size

File à Convert à pdfwrite, Shrink to fit Page Size


I do get the picture now, but it is inbedded in a (small) 'page'; the frame
is too big.

Liesbeth



2007/7/24, Martin Schröder [EMAIL PROTECTED]:


2007/7/24, Roelof Langman [EMAIL PROTECTED]:
 This is a simple case of rtfm. From chapter 7 of the pdftex manual:

 pdfTEX supports inclusion of pictures in png, jpeg, tiff and pdf
format.

Please update. tiff is long gone...

Best
  Martin

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


Re: [NTG-context] placefigure

2007-07-25 Thread Patrick Gundlach
Hello Liesbeth,

do you have a small sample eps file which gives you a problem? That
way we might be able to help you better.

Patrick
___
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] placefigure

2007-07-24 Thread Liesbeth van der Plas

Hallo context users,



I have a basic problem on laoding vector drawings.

The photograph loads all right, the cat-drawing doensn't show up.







\useexternalfigure[jpgPhotoSmall][photo][type=jpg,width=2cm]
\useexternalfigure[jpgPhotoBig][photo][type=jpg,width=4cm]
\useexternalfigure[epsDrawingCat][cat][type=eps,width=4cm]

\starttext

\placefigure{A cat drawing (eps)}{\externalfigure[epsDrawingCat]}
\placefigure{A small photo (jpg)}{\externalfigure[jpgPhotoSmall]}

\placefigure{A big photo (jpg) }{\externalfigure[jpgPhotoBig]}

\stoptext
___


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


Re: [NTG-context] placefigure

2007-07-24 Thread luigi scarso
On 7/24/07, Liesbeth van der Plas [EMAIL PROTECTED] wrote:


 Hallo context users,



 I have a basic problem on laoding vector drawings.

 The photograph loads all right, the cat-drawing doensn't show up.



 



 \useexternalfigure[jpgPhotoSmall][photo][type=jpg,width=2cm]
 \useexternalfigure[jpgPhotoBig][photo][type=jpg,width=4cm]
 \useexternalfigure[epsDrawingCat][cat][type=eps,width=4cm]

 \starttext

 \placefigure{A cat drawing
 (eps)}{\externalfigure[epsDrawingCat]}
 \placefigure{A small photo
 (jpg)}{\externalfigure[jpgPhotoSmall]}

 \placefigure{A big photo (jpg) }{\externalfigure[jpgPhotoBig]}

 \stoptext
 

maybe eps to pdf  epsDrawingCat ?
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  : 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] placefigure

2007-07-24 Thread Patrick Gundlach
Hello,


 I have a basic problem on laoding vector drawings.

 The photograph loads all right, the cat-drawing doensn't show up.

Perhaps this is due to the fact that pdftex doesn't handle eps? If
this is true, you can convert eps files to pdf with epstopdf, that
ships with texlive.

Patrick
___
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-24 Thread Liesbeth van der Plas

I don't succeed in using the program epstopdf for my drawing. Probably it is
also not very handy to alter a lot of drawings bij hand first? Or
maybe there is a way to make MetaPost drawings without learning the MetaPost
language?
I have a lot of drawings made in Macromedia(=Adobe) Flash (or FreeHand).
These programs have no export option to pdf or MetaPost.

following the instructions of

2007/7/24, Patrick Gundlach [EMAIL PROTECTED]:


Hello,


 I have a basic problem on laoding vector drawings.

 The photograph loads all right, the cat-drawing doensn't show up.

Perhaps this is due to the fact that pdftex doesn't handle eps? If
this is true, you can convert eps files to pdf with epstopdf, that
ships with texlive.

Patrick

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


Re: [NTG-context] placefigure

2007-07-24 Thread Roelof Langman
This is a simple case of rtfm. From chapter 7 of the pdftex manual:

pdfTEX supports inclusion of pictures in png, jpeg, tiff and pdf format.
The most common technique
-the inclusion of eps figures- is replaced by pdf inclusion. eps files can
be converted to pdf by
GhostScript, Acrobat Distiller or other PostScript--to--pdf convertors.

Cheers Roelof

---%--
Roelof Langman
Kerkstraat 184
1017 GT  Amsterdam
M 0622413491


 The photograph loads all right, the cat-drawing doensn't show up.


 \useexternalfigure[jpgPhotoBig][photo][type=jpg,width=4cm]
 \useexternalfigure[epsDrawingCat][cat][type=eps,width=4cm]


 maybe eps to pdf  epsDrawingCat ?
 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure

2007-07-24 Thread Martin Schröder
2007/7/24, Roelof Langman [EMAIL PROTECTED]:
 This is a simple case of rtfm. From chapter 7 of the pdftex manual:

 pdfTEX supports inclusion of pictures in png, jpeg, tiff and pdf format.

Please update. tiff is long gone...

Best
   Martin
___
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 problems in Xetex

2007-04-23 Thread Mojca Miklavec
Hello,

Just to let you all know: ConTeXt with pdfTeX creates PDF version 1.5
by default, and xdvipdfmx driver of XeTeX (which became the default
one) isn't capable to handle those files. It handles PDF 1.4 OK, so if
you have some PDFs with a too recent version, you should convert them
to a lower version first. (I suppose that it's possible to use a lower
version as a setting in pdfTeX, and probably you can use gs to convert
an existing PDF.)

xdv2pdf handles recent PDFs OK.

So, in case that you have problems with image inclusion, you know what
the problem might be, and it's not sure when it will be solved. (The
problem described below has different kind of problems though.)

Mojca


On 4/13/07, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote:
 Hello

 Unfortunately, I get dummy boxes instead of .pdf figures in the
 XeteXed document. I know, it has been discussed already in the list. However, 
 I downloaded and installed the fresh
 version of TexLive2007 today, and no problems from updating shouldn't arise.

 The log says:
 figures : dimensions of ./f01.pdf calculated by rlxtools
 system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
 figures : dimensions of ./f01.pdf calculated by rlxtools
 figures : figure f01.pdf can not be found

 Surely, the figure is present in the same directory as the .tex document
 itself.

 (The same running pdftex works fine).
___
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 problems in Xetex

2007-04-23 Thread luigi scarso
On 4/23/07, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Hello,

 Just to let you all know: ConTeXt with pdfTeX creates PDF version 1.5
 by default, and xdvipdfmx driver of XeTeX (which became the default
 one) isn't capable to handle those files. It handles PDF 1.4 OK, so if
 you have some PDFs with a too recent version, you should convert them
 to a lower version first. (I suppose that it's possible to use a lower
 version as a setting in pdfTeX, and probably you can use gs to convert
 an existing PDF.)
In spec-tpd.tex:
\pdfminorversion=5
(ie. PDF version 1.5)
So one can say
\pdfminorversion=4
and cross the fingers

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


Re: [NTG-context] \placefigure problems in Xetex

2007-04-17 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello

 Unfortunately, I get dummy boxes instead of .pdf figures in the
 XeteXed document. I know, it has been discussed already in the list. However, 
 I downloaded and installed the fresh
 version of TexLive2007 today, and no problems from updating shouldn't arise.

 The log says:
 figures : dimensions of ./f01.pdf calculated by rlxtools
 system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
 figures : dimensions of ./f01.pdf calculated by rlxtools
 figures : figure f01.pdf can not be found

 Surely, the figure is present in the same directory as the .tex document
 itself.

 (The same running pdftex works fine).
   
can you try the new release i just uploaded

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placefigure problems in Xetex

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello

Unfortunately, I get dummy boxes instead of .pdf figures in the
XeteXed document. I know, it has been discussed already in the list. However, I 
downloaded and installed the fresh
version of TexLive2007 today, and no problems from updating shouldn't arise.

The log says:
figures : dimensions of ./f01.pdf calculated by rlxtools
system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
figures : dimensions of ./f01.pdf calculated by rlxtools
figures : figure f01.pdf can not be found

Surely, the figure is present in the same directory as the .tex document
itself.

(The same running pdftex works fine).

Best,
Vyatcheslav Yatskovsky














___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placefigure problems in Xetex

2007-04-13 Thread Oliver Buerschaper
Hi,

again, I've been through this a couple of days ago so I'm happy to  
share my experience with you ;-)

For me the problem was not having installed ImageMagick in the first  
place. But judging from your log this doesn't seem to be the problem.

Let me think ... perhaps your glitch might be related to a funny  
thing I stumbled upon: including a PDF figure with \externalfigure  
resulted in a crazy distortion of the image although I didn't specify  
any height or width arguments (i.e. I didn't override its natural  
dimensions)... Hans, Mojca, do you have any ideas? I'm going to send  
a test file tomorrow ...

Best,
Oliver



 Hello

 Unfortunately, I get dummy boxes instead of .pdf figures in the
 XeteXed document. I know, it has been discussed already in the  
 list. However, I downloaded and installed the fresh
 version of TexLive2007 today, and no problems from updating  
 shouldn't arise.

 The log says:
 figures : dimensions of ./f01.pdf calculated by rlxtools
 system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
 figures : dimensions of ./f01.pdf calculated by rlxtools
 figures : figure f01.pdf can not be found

 Surely, the figure is present in the same directory as the .tex  
 document
 itself.

 (The same running pdftex works fine).

 Best,
 Vyatcheslav Yatskovsky
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placefigure problems in Xetex

2007-04-13 Thread Aditya Mahajan
On Fri, 13 Apr 2007, Vyatcheslav Yatskovsky wrote:

 Hello

 Unfortunately, I get dummy boxes instead of .pdf figures in the
 XeteXed document. I know, it has been discussed already in the list. However, 
 I downloaded and installed the fresh
 version of TexLive2007 today, and no problems from updating shouldn't arise.

 The log says:
 figures : dimensions of ./f01.pdf calculated by rlxtools
 system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
 figures : dimensions of ./f01.pdf calculated by rlxtools
 figures : figure f01.pdf can not be found

I do not run XeTeX, but guessing from the error message, is write18 
enabled on your system?

Aditya
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Gap above \placefigure[top] ?

2007-02-12 Thread Taco Hoekwater
Hi Steffen,

Steffen Wolfrum wrote:
 Hi,
 
 sorry, the next looks so simple, it's probably an often answered thing 
 (I just could not find the answer anywhere…)
 
 Why is there a little gap above the figure, though it should be top.
 How to avoid it?
 
 \starttext 
 \showframe
 \placefigure[top]{}{\externalfigure[../Figures/Test][frame=off]} 
 \stoptext 

The gap is the difference between the height of a typical line
(\blank) and TeX's \topskip parameter. That explains it, but
I do not see a nice way to correct the behaviour.


Best, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Gap above \placefigure[top] ?

2007-02-12 Thread Hans Hagen
Taco Hoekwater wrote:
 Hi Steffen,

 Steffen Wolfrum wrote:
   
 Hi,

 sorry, the next looks so simple, it's probably an often answered thing 
 (I just could not find the answer anywhere$B!D(B)

 Why is there a little gap above the figure, though it should be top.
 How to avoid it?

 \starttext 
 \showframe
 \placefigure[top]{}{\externalfigure[../Figures/Test][frame=off]} 
 \stoptext 
 

 The gap is the difference between the height of a typical line
 (\blank) and TeX's \topskip parameter. That explains it, but
 I do not see a nice way to correct the behaviour.
   
i'll add a switch:

\unprotect

\chardef\topinserttopskipmode=0 % 1 no topskip

\def\OTRONEdotopinsertions
  {\ifvoid\topins\else
 \ifgridsnapping
   \box\topins
   \vskip-\topskip
   \vskip\strutheight % [xx] new: see icare topbleed
 \else
   \ifcase\topinserttopskipmode
 % 0: default, do nothing
   \or
 % 1: no topskip (crossed fingers)
 \vskip-\topskip
 \vskip\strutheight
   \fi
   \unvbox\topins
 \fi
   \fi
   \global\topinserted\zeropoint}

\protect

\starttext
\showframe
\placefigure[top]{}{\externalfigure[dummy][frame=on]}
\stoptext

so, 

\chardef\topinserttopskipmode=1

will remove topskip; undocumented, not interfaced, etc 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Gap above \placefigure[top] ?

2007-02-10 Thread Steffen Wolfrum
Hi,

sorry, the next looks so simple, it's probably an often answered thing 
(I just could not find the answer anywhere…)

Why is there a little gap above the figure, though it should be top.
How to avoid it?

\starttext 
\showframe
\placefigure[top]{}{\externalfigure[../Figures/Test][frame=off]} 
\stoptext 


(With or without figure/path has the same gap)

Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Two misfeatures in placefigure

2006-10-25 Thread Taco Hoekwater


Aditya Mahajan wrote:
 Hi,
 
   I found two misfeatures in placefigure.
 
 1) with \placefigure[top] the figure can float to the top of the page, 
 even if the page starts a title or a chapter.
 
 2) The paragraph after the figure is indented, even if it comes right 
 after a \section.

For moral support only: Yes, twice!

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Two misfeatures in placefigure

2006-10-25 Thread Hans Hagen
Taco Hoekwater wrote:
 Aditya Mahajan wrote:
   
 Hi,

   I found two misfeatures in placefigure.

 1) with \placefigure[top] the figure can float to the top of the page, 
 even if the page starts a title or a chapter.

 2) The paragraph after the figure is indented, even if it comes right 
 after a \section.
 

 For moral support only: Yes, twice!

   
two misfeatures are below my threshold -) 

one problem with figures is that one (tex) never really knows where they end up 
but when i have time i will look into it 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Two misfeatures in placefigure

2006-10-25 Thread Sanjoy Mahajan
  2) The paragraph after the figure is indented, even if it comes right 
  after a \section.

wild speculation

Thinking about how I prevented such parindents in my plain TeX days,
by using \ignorespaces\noindent in the definition of \section.  If
that's what ConTeXt does, perhaps the \placefigure code inserts a
spurious space, which normally doesn't show up because it's inserted
in vertical mode, but it is enough to confuse the \ignorespaces?

/wild speculation

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Two misfeatures in placefigure

2006-10-25 Thread Aditya Mahajan
On Wed, 25 Oct 2006, Hans Hagen wrote:

 Taco Hoekwater wrote:
 Aditya Mahajan wrote:

 Hi,

   I found two misfeatures in placefigure.

 1) with \placefigure[top] the figure can float to the top of the page,
 even if the page starts a title or a chapter.

 2) The paragraph after the figure is indented, even if it comes right
 after a \section.


 For moral support only: Yes, twice!


 two misfeatures are below my threshold -)

 one problem with figures is that one (tex) never really knows where they end 
 up but when i have time i will look into it

Is it possible to provide an option, say topofnextpage, which is just 
like top, but does not attempt to place the figure on the top current 
page? This way, as an author, I can ask tex not to place the figure on 
the top of current page.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Two misfeatures in placefigure

2006-10-25 Thread Peter Münster
On Tue, 24 Oct 2006, Aditya Mahajan wrote:

 2) The paragraph after the figure is indented, even if it comes right 
 after a \section.

Hello,
this seems to be already in the bug-database:
http://context.literatesolutions.com/collector/65
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Two misfeatures in placefigure

2006-10-24 Thread Aditya Mahajan
Hi,

  I found two misfeatures in placefigure.

1) with \placefigure[top] the figure can float to the top of the page, 
even if the page starts a title or a chapter.

2) The paragraph after the figure is indented, even if it comes right 
after a \section.

For example,

\setupindenting[medium,yes]
\setupfloats[indentnext=no]
\starttext
\chapter{This is a test}

\section{Introduction}

\placefigure[top][test]
   {Sample Figure}{}
\input knuth
\stoptext

Notice that the figure is on the top of the page and the first 
paragraph of knuth is indented. I could not find any options to turn 
these features off. I think that (2) is hard to detect, and \noindent 
before the paragraph is a workaround, but I could not find any 
work-around for (1) other than moving the \placefigure invocation to 
somewhere later.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] itemize and placefigure

2006-10-04 Thread plink
Mojca Miklavec wrote:
 \placefigure will always start a new paragraph, but usually you don't
 notice that since you want it in a separate paragraph anyway. It has
 to do with boxes, although I have no idea how exactly Hans implemented
 itemize/itemgroup environment.
 
 You can help yourself a bit by using
 \item \strut\vskip -\lineheight\placefigure...

I'll give the vskip a try. In the meantime I tried to relive my 
knowledge about \offset, but it didn't seem a good idea to try that in 
this case. Sigh, one day I'll be able to understand the source ...



150MB of disk space, Webmail over SSL with address book, calendar, 
and organizer. Access thru Imap, Imap-SSL, Pop3, Pop3-SSL and Smtp. 
5 different domains, antispam (spamassassin, bayes, razor, dcc) and mime filter,

Up to 200mb per outgoing message.
All free, is your current email having this functionalities ?
Check http://www.nemail.it for registration and more info.

This message is added automatically, for any information or support 
contact: [EMAIL PROTECTED]; if it is spam dont hesitate to report it.
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] itemize and placefigure

2006-10-03 Thread plink
Hi,

as soon as I put a placefigure in an \item paragraph, the whole 
paragraph starts one line below the stopper. Is this a conceptual issue 
or just a weirdness?

What is the best way to start at the same height? I couldn´t find 
anything in the wiki or the details ...

As an example, see:

\starttext

\startitemize
\item \input tufte
\item \placefigure[right,none]{}{\framed[height=1cm]{foo bar}}
\input tufte
\item \input tufte
\stopitemize

\stopttext



thanks,
Jak






















150MB of disk space, Webmail over SSL with address book, calendar, 
and organizer. Access thru Imap, Imap-SSL, Pop3, Pop3-SSL and Smtp. 
5 different domains, antispam (spamassassin, bayes, razor, dcc) and mime filter,

Up to 200mb per outgoing message.
All free, is your current email having this functionalities ?
Check http://www.nemail.it for registration and more info.

This message is added automatically, for any information or support 
contact: [EMAIL PROTECTED]; if it is spam dont hesitate to report it.
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] itemize and placefigure

2006-10-03 Thread Mojca Miklavec
On 10/3/06, plink wrote:
 Hi,

 as soon as I put a placefigure in an \item paragraph, the whole
 paragraph starts one line below the stopper. Is this a conceptual issue
 or just a weirdness?

 What is the best way to start at the same height? I couldn´t find
 anything in the wiki or the details ...

 As an example, see:

 \starttext

 \startitemize
 \item \input tufte
 \item \placefigure[right,none]{}{\framed[height=1cm]{foo bar}}
 \input tufte
 \item \input tufte
 \stopitemize

 \stopttext

\placefigure will always start a new paragraph, but usually you don't
notice that since you want it in a separate paragraph anyway. It has
to do with boxes, although I have no idea how exactly Hans implemented
itemize/itemgroup environment.

You can help yourself a bit by using
\item \strut\vskip -\lineheight\placefigure...

although there should be a better solution. (I would agree that the
empty line makes no sense in that special case and should better
disappear, but I have no right to judge about how serious backward
compatibility issue that is and how difficult it would be to fix it
without breaking the behaviour in other special cases) Hopefully
someone on the list will be able to help you better.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-25 Thread Hans Hagen
Jeff Smith wrote:
 On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
   
 - You need to install ImageMagic if you don't have it yet.

 - My files didn't want to compile either. I deleted everything and
 installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
 W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
 why it didn't work before (complained as in your case) - now it works
 perfectly.
 

 I've followed this thread with interest What about the windows
 stand-alone distribution, here? Would it be any different? I installed
 ImageMagick and enabled the shell-escape, but I still get the dummy
 boxes.
   
hm, i only test xetex on windows (two broken macs now) and it works ok; is 
rlxtools called ? if not you can try 

rlxtools --ident somefile.jpg 

to see what happens 

btw, make sure that you use 

texexec --xtx somefile

i.e. use dvipdfmx and not the other one 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-25 Thread Jeff Smith
Huh...lo and behold! This morning, it works. But I have done nothing?!
That's really strange... but I sure won't complain. :-)

One thing...

 But what exactly do you mean by I enabled the shell-escape? Isn't it
 enabled by default already (contrary to other distributions such as
 MikTeXt)?

Yes, well... actually I just wanted to say that I had _checked_ if it
were enabled, but somehow it got worded very poorly. Sorry!

Anyway thanks again all, you're very helpful.
Jeff Smith
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Ricard Roca
It works with jpg, pdf and png, with ConTeXt 2006-08-16 (beta).

Thanks,

Ricard
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Hans Hagen wrote:
 Pepe Barbe wrote:
  Hello,
 
  I've been trying to compile my document using XeTeX and it gives me
  the following error:
 
 you probably need a newer context

Hmmm ... most probably ImageMagic then. From rlxtools:

result = `identify -units PixelsPerCentimeter -format
\x=%x,y=%y,w=%w,h=%h,b=%b\ #{filename}`.chomp.split(',')

Mojca

(From time to time it helps to delete the whole ConTeXt and then
istall it again. I have no idea what went wrong before, but at least
the document compiles now, although I don't get the images yet.)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Pepe Barbe
On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 (From time to time it helps to delete the whole ConTeXt and then
 istall it again. I have no idea what went wrong before, but at least
 the document compiles now, although I don't get the images yet.)

I have reinstalled ConTeXt several times in the last few days and I
think I have a pretty recent version of ConTeXt.

I tried including miscellaneous PNG and JPG archives, and the only
thing it would show when using XeTeX was a dummy box. When using TeX
proper it would include the images correctly.

Any ideas?

Thanks,
Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Pepe Barbe wrote:
 On 8/24/06, Hans Hagen wrote:
 
  Pepe Barbe wrote:
   I've been trying to compile my document using XeTeX and it gives me
   the following error:
  
  you probably need a newer context

 This is what I am running right now:

 TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
 TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
 TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD

 TeXExec | testing interface en
 TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 TeXExec | ConTeXt ver: 2006.08.22 16:28 fmt: 2006.8.24 int: english mes: 
 english
 Is there anything more recent? If not what else could be the problem?

- You need to install ImageMagic if you don't have it yet.

- My files didn't want to compile either. I deleted everything and
installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
why it didn't work before (complained as in your case) - now it works
perfectly.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Pepe Barbe
On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 Can you take a look at write18 (or shell-escape)? Try to google for it
 since I don't know MacOS, but I'm sure you'll find it. You have to
 enable it on your computer, usually it's residing in texmf.cnf, but
 that depends on the system used (on windows it's under miktex.ini for
 example).

Thanks! That did it.

Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Hans Hagen
Pepe Barbe wrote:
 On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
   
 (From time to time it helps to delete the whole ConTeXt and then
 istall it again. I have no idea what went wrong before, but at least
 the document compiles now, although I don't get the images yet.)
 

 I have reinstalled ConTeXt several times in the last few days and I
 think I have a pretty recent version of ConTeXt.

 I tried including miscellaneous PNG and JPG archives, and the only
 thing it would show when using XeTeX was a dummy box. When using TeX
 proper it would include the images correctly.
   
can you run rlxtools? 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Hans Hagen
Pepe Barbe wrote:how does you rlog (of the tex run look), i.e. the real log

texexec --xetex yourfile  some.log

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Jeff Smith
On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
 - You need to install ImageMagic if you don't have it yet.

 - My files didn't want to compile either. I deleted everything and
 installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
 W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
 why it didn't work before (complained as in your case) - now it works
 perfectly.

I've followed this thread with interest What about the windows
stand-alone distribution, here? Would it be any different? I installed
ImageMagick and enabled the shell-escape, but I still get the dummy
boxes.

Thanks,
Jeff Smith
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Jeff Smith wrote:
 On 8/24/06, Mojca Miklavec wrote:
  - You need to install ImageMagic if you don't have it yet.
 
  - My files didn't want to compile either. I deleted everything and
  installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
  W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
  why it didn't work before (complained as in your case) - now it works
  perfectly.

 I've followed this thread with interest What about the windows
 stand-alone distribution, here? Would it be any different? I installed
 ImageMagick and enabled the shell-escape, but I still get the dummy
 boxes.

Can you send the logs? The only explanation that I might have is that either:

- texmfstart.exe hasn't been updated for some time (cont-win.zip has
to be fetched and the old exe file has to be replaced every now and
then)

- or you need at least ConTeXt beta version 2006-08-16 (so you really
need to ctxtools --update or to unzip the latest beta over existing
files)

- which version of XeTeX do you use (I have 0.995, but I doubt that
some major change has been made recently; contrary: making diff
against the latest stable ConTeXt version resulted in a file of
approximate size 660 kB)

(I'm also working with the standalone distro on Windows.)

But what exactly do you mean by I enabled the shell-escape? Isn't it
enabled by default already (contrary to other distributions such as
MikTeXt)?

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XeTeX and \placefigure

2006-08-23 Thread Pepe Barbe
Hello,

I've been trying to compile my document using XeTeX and it gives me
the following error:

! Emergency stop.
to be read again
   b
\setPDFmediabox ...#3 #4 #5]#6\done -\dimen 2=#2b
  p\dimen 2=-\dimen 2 \dimen...

\checkPDFmediabox ...se \setPDFmediabox #2#3\done
  \fileprocessedtrue \fi
\doprocessline ... to \fileline \doprocessPDFline
  \relax \expandafter \dopro...

\dogetPDFmediabox ...chread {#1}\doprocessPDFline
  \egroup \ifx \PDFxoffset \...

\getfiguredimensionsA ...heightb } \executedfalse
  \ifexecuted \donetrue \ifd...
...
l.40[height=.25\textheight] }

It comes from the following code.

\placefigure [here] [fig:cell_type_diag]
{Typical diagram of the main cell types \cite[Web:2006aa],
\cite[Web:2006ab]}
\startcombination[2*1]
{ \externalfigure[chp1_prokaryote_diagram]
[height=.25\textheight] }{Prokaryote}
{ \externalfigure[chp1_eukaryote_diagram]
[height=.25\textheight] } {Eukaryote}
\stopcombination

Any ideas?

Thanks,
Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure

2006-07-21 Thread Taco Hoekwater


Hans van der Meer wrote:
 
 Is this known behaviour?

 Can it perhaps be massaged with parameter settings or is ConText here 
 taking just somewhat oversized vertical space?


You can try to do \setupfloats[after=] to remove the whitespace
below the image.

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] placefigure

2006-07-20 Thread Hans van der Meer
I found a small flaw in the placement of floats.	\placefigure[left]...ended at the bottom of the page (before the footnotes), but on the next page the text began as if the figure was still there:  flowing textx figure x  flowing text  flowing text(some whitespace followed by footnotes)...pagebreak (open space)         flowing text first linesecond line of text starts normal at the left marginIs this known behaviour?Can it perhaps be massaged with parameter settings or is ConText here taking just somewhat oversized vertical space?Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] brace error after a \placefigure

2006-05-14 Thread Taco Hoekwater
nico wrote:
 
 
 Yes, strange. Looks like a grouping issue around this in page-flt:

Yes.

It works ok with

   \leavevmode {test}.

Also. The problem is the timing of \everypar, what TeX actually
executes is this:

\bgroup
\everypar {\egroup}
\par
{test}

Cheers, Taco





___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] brace error after a \placefigure

2006-05-14 Thread Sanjoy Mahajan
From:Hans Hagen [EMAIL PROTECTED]
 \def\dodocomplexplacefloat[#1][#2][#3]#4%
 [magic code snipped]
 may work better

Tested and working here, thanks!

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] brace error after a \placefigure

2006-05-13 Thread nico
On Sat, 13 May 2006 04:08:58 -0400, Sanjoy Mahajan [EMAIL PROTECTED]  
wrote:

 I can't figure out what causes the brace error with this test.tex
 example file:

 \starttext
 \placefigure[margin]{A caption}{\externalfigure[]}

 {test}.
 \stoptext

Yes, strange. Looks like a grouping issue around this in page-flt:

\ifmargeblokken % waarschijnlijk gebroken ! ! ! !
  \doifinset\v!margin{#2}
{\endgraf
 \bgroup\everypar{\egroup\the\everypar}%
 \hsize\@@mbwidth}%
\fi

inmargin seems to work, but i don't know if it should do the same thing.

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-18 Thread Aditya Mahajan
On Fri, 14 Apr 2006, Hans Hagen wrote:

 Hans Hagen wrote:
 Aditya Mahajan wrote:

 Hi,
   When I use \placefigure[left] with some test, the text wraps around
 the figure. But if the paragraph, contains some formula, it does not
 wrap even after the figure is complete. How can I prevent such a
 behaviour.

 btw, can you make three (or more) examples: (yes|nocheck|text) with 
 left/bottom/fallback placement for the testsuits (see other threads)

I tried playing around with the fallback option, but had unexpected 
results. When I give fallback=left (does that make sense?) I get text 
in the right margin!! See example below.


% first a new key

\unprotect
\startconstantsdutch english
germanczech
italian   romanian
french

  fallback: terugval  fallback
fallback  fallback
fallback  fallback
fallback
\stopconstants

% use that key

\long\def\dofloat#1#2#3#4%
   {\dosetfloatbox{#1}{#2}{#3}{#4}%
\doifelsevaluenothing{\??fl#4\c!criterium}
  {\dogetfloatbox{#1}\empty}
  {\ifdim\wd\floatbox\getvalue{\??fl#4\c!criterium}\relax
 \postcenterfloatbox{\wd\floatbox}% else we get left aligned
 %dogetfloatbox{#1}\v!here% see details/pascal
\dogetfloatbox{#1}{\executeifdefined{\??fl#4\c!fallback}\v!here}% 
PATCHED
   \else
 \dogetfloatbox{#1}\empty
   \fi}}

% pass the new location (will be done differently, hack

\def\dogetfloatbox#1#2%
   {\ifvisible
  \doifelsenothing{#2}
{\getfromcommalist[#1][1]%
 [EMAIL PROTECTED]:\to\floatmethod
 [EMAIL PROTECTED] \commalistelement\at:\to\floatcolumn
 [EMAIL PROTECTED] \floatcolumn\at*\to\floatrow
 [EMAIL PROTECTED]
 % todo: nog algemeen otr
 \ifx\OTRSETsetpreferedcolumnslot\undefined\else
   \OTRSETsetpreferedcolumnslot\floatcolumn\floatrow
 \fi}
{\let\floatcolumn\empty
 \let\floatrow\empty
 \edef\floatmethod{#2}}%
  \doifundefined{\string\floatmethod\floatmethod}
{\let\floatmethod\v!here}%
  \getvalue{\string\floatmethod\floatmethod}[\floatmethod,#1]% 
PATCHED
\fi}


  \def\redofloatorder#1%
{\doifnotinset\@@bknumbering{\v!nocheck,\v!text}
   {\doglobal\increment\nofplacedfloats\relax
\gettwopassdata\s!float
\iftwopassdatafound
  \doifnot\composedsectionnumber\twopassdata
{\edef\oldcomposedsectionnumber{\composedsectionnumber}%
 \xdef\composedsectionnumber{\twopassdata}%
 \showmessage\m!floatblocks1{\nofplacedfloats,#1
  \oldcomposedsectionnumber,\composedsectionnumber}}%
\fi}}

\protect


\setupfloats[numbering=text]

  % we use the marginwidth as criterium

\setupfloat[figure][criterium=\marginwidth,fallback=left]

  \starttext

  \placefigure[bottom]{1}{\framed[width=.9\marginwidth]{}} \input tufte
  \placefigure[bottom]{2}{} \input tufte
  \placefigure[left]{3}{} \input tufte
  \placefigure[left]{4}{\framed[width=.9\marginwidth]{}} \input tufte

  \stoptext

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-18 Thread Hans Hagen
Aditya Mahajan wrote:
 On Fri, 14 Apr 2006, Hans Hagen wrote:

   
 Hans Hagen wrote:
 
 Aditya Mahajan wrote:

   
 Hi,
   When I use \placefigure[left] with some test, the text wraps around
 the figure. But if the paragraph, contains some formula, it does not
 wrap even after the figure is complete. How can I prevent such a
 behaviour.

 
 btw, can you make three (or more) examples: (yes|nocheck|text) with 
 left/bottom/fallback placement for the testsuits (see other threads)
 

   
first of all, take the beta in order to get renumbering right

the next variant let's fallbacks step in earlier

\long\def\dofloat#1#2#3#4%
  {\dosetfloatbox{#1}{#2}{#3}{#4}%
   \dogetfloatbox{#1}\empty}


\def\dodocomplexplacefloat[#1][#2][#3]#4%
  {\flushnotes
   \flushsidefloats % here !
   \ifsomefloatwaiting
 % this was \checkwaitingfloats spread all over
 \doifinsetelse\v!always{#2}
   {\showmessage\m!floatblocks5\empty}
   
{\expanded{\doifcommonelse{#2}{\flushfloatslist}}\doflushfloats\donothing}%
 % but which should be done before using box \floatbox
   \fi
   \ifmargeblokken % waarschijnlijk gebroken ! ! ! !
 \doifinset\v!margin{#2}
   {\endgraf
\bgroup\everypar{\egroup\the\everypar}%
\hsize\@@mbwidth}%
   \fi
   \global\insidefloattrue
   \begingroup % **
   \the\everyinsidefloat
   \let\@@extrafloat\empty
   \presetmorefloatvariables{#2}%
   \dowithnextboxcontent % better a \the\everyfloattoks
 {\setlocalfloathsize
  \getvalue{\??fl#1\c!inner}%
  \fuzzysnappingfalse
  \postponenotes} % new
 {%
\doifvaluesomething{\??fl#1\c!criterium}
  {\ifdim\wd\nextbox\getvalue{\??fl#1\c!criterium}\relax
 \edef\forcedfloatmethod{\executeifdefined{\??fl#1\c!fallback}\v!here}%
  \fi}%
   \xdocompletefloat{#1}{#3}{#1}{#2}{#1}{#4}% ** not yet done
   % we need to carry over the par because of side floats
  \doifnotinset\v!text{#2}{\carryoverpar\endgroup}%
  \global\sidefloatdownshift \zeropoint
  \global\sidefloatextrashift\zeropoint
  \ifparfloat
\doifinset\v!reset{#2}\forgetsidefloats
\doinhibitblank
  \fi}% better move this to side floats
 \vbox}




 I tried playing around with the fallback option, but had unexpected 
 results. When I give fallback=left (does that make sense?) I get text 
 in the right margin!! See example below.


 % first a new key

 \unprotect
 \startconstantsdutch english
 germanczech
 italian   romanian
 french

   fallback: terugval  fallback
 fallback  fallback
 fallback  fallback
 fallback
 \stopconstants

 % use that key

 \long\def\dofloat#1#2#3#4%
{\dosetfloatbox{#1}{#2}{#3}{#4}%
 \doifelsevaluenothing{\??fl#4\c!criterium}
   {\dogetfloatbox{#1}\empty}
   {\ifdim\wd\floatbox\getvalue{\??fl#4\c!criterium}\relax
  \postcenterfloatbox{\wd\floatbox}% else we get left aligned
  %dogetfloatbox{#1}\v!here% see details/pascal
 \dogetfloatbox{#1}{\executeifdefined{\??fl#4\c!fallback}\v!here}% 
 PATCHED
\else
  \dogetfloatbox{#1}\empty
\fi}}

 % pass the new location (will be done differently, hack

 \def\dogetfloatbox#1#2%
{\ifvisible
   \doifelsenothing{#2}
 {\getfromcommalist[#1][1]%
  [EMAIL PROTECTED]:\to\floatmethod
  [EMAIL PROTECTED] \commalistelement\at:\to\floatcolumn
  [EMAIL PROTECTED] \floatcolumn\at*\to\floatrow
  [EMAIL PROTECTED]
  % todo: nog algemeen otr
  \ifx\OTRSETsetpreferedcolumnslot\undefined\else
\OTRSETsetpreferedcolumnslot\floatcolumn\floatrow
  \fi}
 {\let\floatcolumn\empty
  \let\floatrow\empty
  \edef\floatmethod{#2}}%
   \doifundefined{\string\floatmethod\floatmethod}
 {\let\floatmethod\v!here}%
   \getvalue{\string\floatmethod\floatmethod}[\floatmethod,#1]% 
 PATCHED
 \fi}


   \def\redofloatorder#1%
 {\doifnotinset\@@bknumbering{\v!nocheck,\v!text}
{\doglobal\increment\nofplacedfloats\relax
 \gettwopassdata\s!float
 \iftwopassdatafound
   \doifnot\composedsectionnumber\twopassdata
 {\edef\oldcomposedsectionnumber{\composedsectionnumber}%
  \xdef\composedsectionnumber{\twopassdata}%
  \showmessage\m!floatblocks1{\nofplacedfloats,#1
   \oldcomposedsectionnumber,\composedsectionnumber}}%
 \fi}}

 \protect


 \setupfloats[numbering=text]

   % we use the marginwidth as criterium

 \setupfloat[figure][criterium=\marginwidth,fallback=left]

   \starttext

   \placefigure[bottom]{1}{\framed[width=.9\marginwidth]{}} \input tufte
   \placefigure[bottom]{2}{} \input tufte
   \placefigure[left

Re: [NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-18 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 18 Apr 2006, Hans Hagen wrote:

   
 Aditya Mahajan wrote:
 
 On Fri, 14 Apr 2006, Hans Hagen wrote:


   
 Hans Hagen wrote:

 
 Aditya Mahajan wrote:


   
 Hi,
   When I use \placefigure[left] with some test, the text wraps around
 the figure. But if the paragraph, contains some formula, it does not
 wrap even after the figure is complete. How can I prevent such a
 behaviour.


 
 btw, can you make three (or more) examples: (yes|nocheck|text) with
 left/bottom/fallback placement for the testsuits (see other threads)

 
   
 first of all, take the beta in order to get renumbering right

 the next variant let's fallbacks step in earlier
 

 Using the beta, the numbering is correct. What is fallback=left 
 supposed to do? I thought that with

 \setupfloat[figure][criterium=\marginwidth,fallback=left]

 \placefigure[bottom]{1}{\framed[width=.9\marginwidth]{}} \input tufte
 \placefigure[bottom]{2}{} \input tufte

 the first figure should float to the left, while the second will go to 
 the bottom. But both of them float to the bottom. I am completely 
 misunderstanding the feature.
   

left means left of text; you should test with the beta + the patch i 
sent a few mails ago

(the problem is that otherwise the width is set to the hsize (centered))

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-14 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
   When I use \placefigure[left] with some test, the text wraps around 
 the figure. But if the paragraph, contains some formula, it does not 
 wrap even after the figure is complete. How can I prevent such a 
 behaviour.

 Example
 \startbuffer[figure]
 \placefigure
[left]
{}{}
 \stopbuffer

 \startbuffer[test]
 \dorecurse{3}{\input knuth}
 \stopbuffer

 \startbuffer[mathtest]
 \dorecurse{3}{
 This is a dummy paragraph to support a little bit of math to show the 
 trouble
 with placefigure
 \startformula
a = b
 \stopformula
 This is a dummy paragraph to support a little bit of math to show the 
 trouble
 with placefigure
 This is a dummy paragraph to support a little bit of math to show the 
 trouble
 with placefigure}
 \stopbuffer

 \starttext
 \getbuffer[figure]
 \getbuffer[test]

 \page

 \getbuffer[figure]
 \getbuffer[mathtest]


 \stoptext
   
add empty lines around the \start\stop pair 

(somehow display does not go well with the parshape (i must discuss this with 
taco) 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-14 Thread Hans Hagen
Hans Hagen wrote:
 Aditya Mahajan wrote:
   
 Hi,
   When I use \placefigure[left] with some test, the text wraps around 
 the figure. But if the paragraph, contains some formula, it does not 
 wrap even after the figure is complete. How can I prevent such a 
 behaviour.
 
btw, can you make three (or more) examples: (yes|nocheck|text) with 
left/bottom/fallback placement for the testsuits (see other threads) 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure feature request ?

2006-04-14 Thread Hans Hagen
Sanjoy Mahajan wrote:
 [code for text key]
 \setupfloats[numbering=text]
 

 I included the code for numbering=text, to make the tex file below.
 Sadly, the figures are numbered 3-1-2 (i.e. as if numbering=nocheck
 were given).  I also tried the context live and got the same order.  Am
 I doing something silly?
   
also redefine:

\def\redofloatorder#1%
  {\doifnotinset\@@bknumbering{\v!nocheck,\v!text}
 {\doglobal\increment\nofplacedfloats\relax
  \gettwopassdata\s!float
  \iftwopassdatafound
\doifnot\composedsectionnumber\twopassdata
  {\edef\oldcomposedsectionnumber{\composedsectionnumber}%
   \xdef\composedsectionnumber{\twopassdata}%
   \showmessage\m!floatblocks1{\nofplacedfloats,#1 
\oldcomposedsectionnumber,\composedsectionnumber}}%
  \fi}}

and the text options works as expected

 -Sanjoy

 ==
 % first a new key

 \startconstantsdutch english
germanczech
italian   romanian
french

  fallback: terugval  fallback
fallback  fallback
fallback  fallback
fallback
 \stopconstants

 % use that key

 \unprotect

 \long\def\dofloat#1#2#3#4%
   {\dosetfloatbox{#1}{#2}{#3}{#4}%
\doifelsevaluenothing{\??fl#4\c!criterium}
  {\dogetfloatbox{#1}\empty}
  {\ifdim\wd\floatbox\getvalue{\??fl#4\c!criterium}\relax
 \postcenterfloatbox{\wd\floatbox}% else we get left aligned
 %dogetfloatbox{#1}\v!here% see details/pascal
 
 \dogetfloatbox{#1}{\executeifdefined{\??fl#4\c!fallback}\v!here}% PATCHED
   \else
 \dogetfloatbox{#1}\empty
   \fi}}

 % pass the new location (will be done differently, hack

 \def\dogetfloatbox#1#2%
   {\ifvisible
  \doifelsenothing{#2}
{\getfromcommalist[#1][1]%
 [EMAIL PROTECTED]:\to\floatmethod
 [EMAIL PROTECTED] \commalistelement\at:\to\floatcolumn
 [EMAIL PROTECTED] \floatcolumn\at*\to\floatrow
 [EMAIL PROTECTED]
 % todo: nog algemeen otr
 \ifx\OTRSETsetpreferedcolumnslot\undefined\else
   \OTRSETsetpreferedcolumnslot\floatcolumn\floatrow
 \fi}
{\let\floatcolumn\empty
 \let\floatrow\empty
 \edef\floatmethod{#2}}%
  \doifundefined{\string\floatmethod\floatmethod}
{\let\floatmethod\v!here}%
  \getvalue{\string\floatmethod\floatmethod}[\floatmethod,#1]% PATCHED
\fi}

 \def\dofloatreference
   {\doifnot\@@bknumbering\v!text
  {\doglobal\increment\numberedfloat
   \doifelse\@@bknumbering\v!text % alternative to yes|page
 {\let\next\immediatewriteutilitycommand}
 {\let\next\writeutilitycommand}%
   \expanded{\next
 {\noexpand\twopassentry
 {\s!float}%
 {\numberedfloat}%
 {\composedsectionnumber}

 \protect

 \setupfloats[numbering=text]

 % we use the marginwidth as criterium

 \setupfloat[figure][criterium=\marginwidth,fallback=bottom]

 \starttext

 \placefigure[bottom]{1}{} \input tufte
 \placefigure[left]{2}{} \input tufte
 \placefigure[left]{3}{\framed[width=.9\marginwidth]{}} \input tufte

 \stoptext
 ==
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   


-- 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure feature request ?

2006-04-13 Thread Hans Hagen
Sanjoy Mahajan wrote:
 this 'choose between locations' feature is kind of present but only
 with 'here' as fallback but it's trivial to make that configurable:
 

 I've been experimenting a bit with the code, and it is much appreciated.

 I added \unprotect..\protect and it compiled fine.  The figure numbering
 is the order in the source files, thanks to the numbering=nocheck;
 reading down the page it is 3-1-2.  Then I felt bold and commented out
 the numbering=nocheck.  It does one clockwise rotation of the numbers:

   
\unprotect

\def\dofloatreference
  {\doifnot\@@bknumbering\v!text
 {\doglobal\increment\numberedfloat
  \doifelse\@@bknumbering\v!text % alternative to yes|page
{\let\next\immediatewriteutilitycommand}
{\let\next\writeutilitycommand}%
  \expanded{\next
{\noexpand\twopassentry
{\s!float}%
{\numberedfloat}%
{\composedsectionnumber}

\protect

\setupfloats[numbering=text]

subtle difference in some cases 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure feature request ?

2006-04-13 Thread Sanjoy Mahajan
 [code for text key]
 \setupfloats[numbering=text]

I included the code for numbering=text, to make the tex file below.
Sadly, the figures are numbered 3-1-2 (i.e. as if numbering=nocheck
were given).  I also tried the context live and got the same order.  Am
I doing something silly?

-Sanjoy

==
% first a new key

\startconstantsdutch english
   germanczech
   italian   romanian
   french

 fallback: terugval  fallback
   fallback  fallback
   fallback  fallback
   fallback
\stopconstants

% use that key

\unprotect

\long\def\dofloat#1#2#3#4%
  {\dosetfloatbox{#1}{#2}{#3}{#4}%
   \doifelsevaluenothing{\??fl#4\c!criterium}
 {\dogetfloatbox{#1}\empty}
 {\ifdim\wd\floatbox\getvalue{\??fl#4\c!criterium}\relax
\postcenterfloatbox{\wd\floatbox}% else we get left aligned
%dogetfloatbox{#1}\v!here% see details/pascal

\dogetfloatbox{#1}{\executeifdefined{\??fl#4\c!fallback}\v!here}% PATCHED
  \else
\dogetfloatbox{#1}\empty
  \fi}}

% pass the new location (will be done differently, hack

\def\dogetfloatbox#1#2%
  {\ifvisible
 \doifelsenothing{#2}
   {\getfromcommalist[#1][1]%
[EMAIL PROTECTED]:\to\floatmethod
[EMAIL PROTECTED] \commalistelement\at:\to\floatcolumn
[EMAIL PROTECTED] \floatcolumn\at*\to\floatrow
[EMAIL PROTECTED]
% todo: nog algemeen otr
\ifx\OTRSETsetpreferedcolumnslot\undefined\else
  \OTRSETsetpreferedcolumnslot\floatcolumn\floatrow
\fi}
   {\let\floatcolumn\empty
\let\floatrow\empty
\edef\floatmethod{#2}}%
 \doifundefined{\string\floatmethod\floatmethod}
   {\let\floatmethod\v!here}%
 \getvalue{\string\floatmethod\floatmethod}[\floatmethod,#1]% PATCHED
   \fi}

\def\dofloatreference
  {\doifnot\@@bknumbering\v!text
 {\doglobal\increment\numberedfloat
  \doifelse\@@bknumbering\v!text % alternative to yes|page
{\let\next\immediatewriteutilitycommand}
{\let\next\writeutilitycommand}%
  \expanded{\next
{\noexpand\twopassentry
{\s!float}%
{\numberedfloat}%
{\composedsectionnumber}

\protect

\setupfloats[numbering=text]

% we use the marginwidth as criterium

\setupfloat[figure][criterium=\marginwidth,fallback=bottom]

\starttext

\placefigure[bottom]{1}{} \input tufte
\placefigure[left]{2}{} \input tufte
\placefigure[left]{3}{\framed[width=.9\marginwidth]{}} \input tufte

\stoptext
==
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-13 Thread Aditya Mahajan
Hi,
  When I use \placefigure[left] with some test, the text wraps around 
the figure. But if the paragraph, contains some formula, it does not 
wrap even after the figure is complete. How can I prevent such a 
behaviour.

Example
\startbuffer[figure]
\placefigure
   [left]
   {}{}
\stopbuffer

\startbuffer[test]
\dorecurse{3}{\input knuth}
\stopbuffer

\startbuffer[mathtest]
\dorecurse{3}{
This is a dummy paragraph to support a little bit of math to show the 
trouble
with placefigure
\startformula
   a = b
\stopformula
This is a dummy paragraph to support a little bit of math to show the 
trouble
with placefigure
This is a dummy paragraph to support a little bit of math to show the 
trouble
with placefigure}
\stopbuffer

\starttext
\getbuffer[figure]
\getbuffer[test]

\page

\getbuffer[figure]
\getbuffer[mathtest]


\stoptext

Thanks,
Aditya


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


<    1   2   3   4   >