Re: [NTG-context] placefigure, usetikzlibrary and readfile

2021-08-02 Thread Hans Hagen via ntg-context

On 8/1/2021 10:27 PM, Jigé via ntg-context wrote:

Hello all.

It seems that \usetikzlibrary is sometimes read, sometimes not, and I don't 
understand why.

Rationale:

I would like, using one file, to use it to produce a picture, as with LaTeX's 
Standalone class,
but to be able to include it in a calling document as well, for better 
management of fonts, etc.
Thus this is most convenient. I have everything in the main document and I can 
quickly reuse any figure elsewhere.


What I did:

I use \readfile in a main ConTeXt file document.tex to include the file 
included.tex .
The file included.tex should contain *just* the TikZ picture and what is needed to 
compile it "standalone".


The issue:

It seems I can call the file with the TikZ picture description multiple times, 
with \readfile,
from within the very same \placefigure.

However, if I call it by using two successive \placefigure commands,
the \usetikzlibrary[blabla] in the included file doesn't seem to be recognised.
E.g. with the provided example below, the key "right angle" is not understood, 
as if \usetikzlibrary[angles] was not there.

One workaround would be to use 
\usetikzlibrary[allTheLibrariesISupposeMightEverBeNeeded]
in the calling file. But I don't like it. I would rather have only the TikZ 
libraries relevant to some picture included in the corresponding file.

I'm quite startled by the fact that :
   >  \placefigure[here][]{This is a figure}{
   >\readfile{included}{}{File not found.}
   >\readfile{included}{}{File not found.}
   >  }
compiles but
   >  \placefigure[here][]{This is a figure}{
   >\readfile{included}{}{File not found.}
   >  }
   >  \placefigure[here][]{This is a figure}{
   >\readfile{included}{}{File not found.}
   >  }
does not.
modules are loaded only once so you just have to call it in the main 
document (more efficient than reloading each time anyway)


loading some module inside a figure is actually problemantic because you 
can end up with a mix of global and local definitions depending on how a 
module is set up (and tikz being pretty large it might be that at some 
point you can expect problems, apart from loading taking time)


you can try to do \input {m-tikz.mlxl} or whatever but don't expect much 
help when there is an isseu due to multiple loading of tikz


if there's a lot of extra tikz stuff then you can put that in a privane 
module or environment (these are also loaded once) and load that one


if you use the project structure you can actually share environments and 
again these are then loaded once


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure right or left error in ver: 2018.04.04 00:51 MKIV

2019-09-27 Thread Pablo Rodriguez
On 9/27/19 2:33 PM, Philippe Oechslin wrote:
> Hello there,
>
> I recently upgraded to  ConTeXt  ver: 2018.04.04 00:51 MKIV  and found that
> the following simple code gives an error, where as it compiled without
> complaining in ver: 2017.05.15 21:48.
> [...]
> I am running a freshly installed Ubuntu 19.04. Has anybody run into this 
> issues,
> is there a known workaround ?

Hi Philippe,

it works fine with latest ConTeXt Suite beta from 2019.09.10 20:03.

Since ConTeXt Suite is a portable distribution (you may have it with TeX
Live installed), I'd rather install the latest beta.

So you avoid dealing with already solved issues.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure and listoffigures

2016-03-15 Thread Alan BRASLAU
On Tue, 15 Mar 2016 23:01:46 +0100
Wolfgang Schuster  wrote:

> \startplacefigure [location={inmargin,none}]

Thank you, clean and elegant (and much easier than Willi's suggestion).
The syntax is a bit magical, though ("location" of the caption).

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

2016-03-15 Thread Wolfgang Schuster

Alan BRASLAU 
15. März 2016 um 21:43
Hi,

How can one suppress the addition of a placed figure to the
listoffigures?

In the following MWE, list=no places "no" as an alternative to the
(blank) title.

Alan


\starttext

\startplacefigure [location=inmargin,number=no,list=no]

\startplacefigure [location={inmargin,none}]

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

2016-03-15 Thread Willi Egger
I would define another float and assign this not to be listed float to this new 
float-type something like \definefloat[Notlisted][figure] and then
\startplaceNotlisted
\externalf…
\stopplaceNotlisted

Best wishes

Willi
> On 15 mrt. 2016, at 21:43, Alan BRASLAU  wrote:
> 
> Hi,
> 
> How can one suppress the addition of a placed figure to the
> listoffigures?
> 
> In the following MWE, list=no places "no" as an alternative to the
> (blank) title.
> 
> Alan
> 
> 
> \starttext
> 
> \startplacefigure [location=inmargin,number=no,list=no]
>  \externalfigure [cow] [width=1cm]
> \stopplacefigure
> \input knuth
> 
> \blank
> 
> \placelistoffigures [criterium=all]
> 
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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 and title bug in latest beta

2014-04-06 Thread Otared Kavian
Hi,

I can confirm this…
This is probably due to the new features Hans added today.

Also, the new feature 

\placelist[figure][criterium=text]

places indeed the list of the figures, but the names of the figures, or rather 
their captions are all indicated by the word « list ».

Best regards: OK


On 6 avr. 2014, at 16:26, Alan Bowen bowenala...@gmail.com wrote:

 Hans—
 
 In today’s beta, the following produces a figure entitled “Figure 1 title”:
 
 \setupexternalfigures[location={local,default}]
 \starttext
 \useexternalfigure[cow.pdf]
 \startplacefigure[title={A cow}]
   {\externalfigure[Graphic][cow.pdf]}
 \stopplacefigure
 \stoptext
 
 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
 ___

___
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[right or left] failing in footnotes

2014-03-03 Thread Wolfgang Schuster

Am 03.03.2014 um 16:04 schrieb Alan Bowen bowenala...@gmail.com:

 The following does not work as it should:
 
 setupexternalfigures[location={local,default}]
 
 \starttext
 text%
 \footnote{\hangsidefloat[2]
   \placefigure[right,none]{}
   {\externalfigure[cow][width=.1\textwidth]}
   \dorecurse{3}{\input ward}}
  
 %for comparison
 \hangsidefloat[2]
 \placefigure[right,none]{}
   {\externalfigure[cow][width=.1\textwidth]}
   \dorecurse{3}{\input ward}%
  \stoptext
 
 The text and image in the main body are as they should be.
  
 But note that the first line of the footnote is blank and that, while the 
 image is placed as it should be, the text runs through it.

1. The vertical distance before and after floats can be changed with 
\setupfloat[spacebefore=…,spaceafter=…].

2. Some features like floats or columns don’t work or can be used only with 
limitations in footnotes.

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[right or left] failing in footnotes

2014-03-03 Thread Alan Bowen
Again, thanks.

My tests so far indicate that the only way to go in footnotes is with
\starthanging[location-right]...\stophanging--and to be happy with the output
as it is (which is quite nice, when all is said and done).

Alan


On Mon, Mar 3, 2014 at 11:24 AM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 03.03.2014 um 16:04 schrieb Alan Bowen bowenala...@gmail.com:

 The following does not work as it should:

 setupexternalfigures[location={local,default}]

 \starttext
 text%
 \footnote{\hangsidefloat[2]
  \placefigure[right,none]{}
 {\externalfigure[cow][width=.1\textwidth]}
 \dorecurse{3}{\input ward}}

 %for comparison
 \hangsidefloat[2]
 \placefigure[right,none]{}
 {\externalfigure[cow][width=.1\textwidth]}
 \dorecurse{3}{\input ward}%
  \stoptext

 The text and image in the main body are as they should be.

 But note that the first line of the footnote is blank and that, while the
 image is placed as it should be, the text runs through it.


 1. The vertical distance before and after floats can be changed with
 \setupfloat[spacebefore=...,spaceafter=...].

 2. Some features like floats or columns don't work or can be used only
 with limitations in footnotes.

 Wolfgang



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

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

 ___

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

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

Re: [NTG-context] Placefigure without Caption-Numbering

2013-12-01 Thread Alan Braslau
On Sat, 30 Nov 2013 21:06:20 +0100
Jan Tosovsky j.tosov...@email.cz wrote:

 Indeed much cleaner. But that numbering option seems to be ignored ;-)
 Does it work for you?

Sorry, it is number=no.

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] Placefigure without Caption-Numbering

2013-11-30 Thread Jan Tosovsky
On 2013-04-16 Wolfgang Schuster wrote:
 Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezoguz at mmnetz.de:
 
  How to deactive the Caption-Numbering:
  
  \starttext
  
  \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
  
  \stoptext
  
  I want the caption Blub, but not the Figure 1 label.

 \placefigure[here,nonumber]{.}{.}

It helped me now. 

Btw, there is no such an option mentioned in the WIKI or user guide...

http://wiki.contextgarden.net/Command/placefigure

But I'd like to add:
(1) caption=none renders 'none' instead of nothing...
(2) when key=none is combined, e.g. [none, page], the numbering is
suppressed, but the second option is ignored. But [page, none] works fine.
The order matters. It is same for [page, nonumber].

It would be nice to fix those examples in Wiki or if MkIV behaves
differently, add an appropriate alternative there.

Thanks, Jan


___
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 without Caption-Numbering

2013-11-30 Thread Alan Braslau
On Sat, 30 Nov 2013 19:42:54 +0100
Jan Tosovsky j.tosov...@email.cz wrote:

 On 2013-04-16 Wolfgang Schuster wrote:
  Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezoguz at mmnetz.de:
  
   How to deactive the Caption-Numbering:
   
   \starttext
   
   \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
   
   \stoptext
   
   I want the caption Blub, but not the Figure 1 label.
 
  \placefigure[here,nonumber]{.}{.}
 
 It helped me now. 
 
 Btw, there is no such an option mentioned in the WIKI or user guide...
 
 http://wiki.contextgarden.net/Command/placefigure
 
 But I'd like to add:
 (1) caption=none renders 'none' instead of nothing...
 (2) when key=none is combined, e.g. [none, page], the numbering is
 suppressed, but the second option is ignored. But [page, none] works
 fine. The order matters. It is same for [page, nonumber].
 
 It would be nice to fix those examples in Wiki or if MkIV behaves
 differently, add an appropriate alternative there.
 
 Thanks, Jan

I find that the \startplacefigure \stopplacefigure interface is much
cleaner:

\startplacefigure [location=here,numbering=no,title=Blub]
  \externalfigure [image] [width=6cm]
\stopplacefigure

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] Placefigure without Caption-Numbering

2013-11-30 Thread Jan Tosovsky
On 2013-11-30 Alan Braslau wrote:
 On Sat, 30 Nov 2013 19:42:54 +0100
 Jan Tosovsky j.tosov...@email.cz wrote: 
  On 2013-04-16 Wolfgang Schuster wrote:
   Am 16.04.2013 um 18:56 schrieb H. Özoguz
   
How to deactive the Caption-Numbering:
   
\starttext
   
\placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
   
\stoptext
   
I want the caption Blub, but not the Figure 1 label.
  
   \placefigure[here,nonumber]{.}{.}
 
  It helped me now.
 
  Btw, there is no such an option mentioned in the WIKI or user
  guide...
 
  http://wiki.contextgarden.net/Command/placefigure
 
  But I'd like to add:
  (1) caption=none renders 'none' instead of nothing...
  (2) when key=none is combined, e.g. [none, page], the numbering is
  suppressed, but the second option is ignored. But [page, none] works
  fine. The order matters. It is same for [page, nonumber].
 
  It would be nice to fix those examples in Wiki or if MkIV behaves
  differently, add an appropriate alternative there.
 
 I find that the \startplacefigure \stopplacefigure interface is much
 cleaner:
 
 \startplacefigure [location=here,numbering=no,title=Blub]
   \externalfigure [image] [width=6cm]
 \stopplacefigure
 

Indeed much cleaner. But that numbering option seems to be ignored ;-)
Does it work for you?

Jan

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

2013-08-20 Thread Hans Hagen

On 8/20/2013 12:08 PM, Wim W. Wilhelm wrote:

Dear all,
I encountered a problem with TexLive 2013 context.
The problem persisted with the context beta.
With
LuaTex version beta-0.77.0-2013081719 (rev 4640)
and
ConTeXt  ver: 2013.08.18 18:32 MKIV beta  fmt: 2013.8.20  int:
english/english
I compiled:
\starttext
\chapter{c-titel}
\section{s1-titel}
text
\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/hemelbol.pdf][height=6cm]}
text
\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/afplatting.pdf][height=4cm]}
text
\section{s2-title}
text
\stoptext
The figures were placed in the middle of the page and the text did not wrap
around the figures.
Everything worked fine in TexLive 2012 context.
I'm a bit lost, any idea?
cheerio


[left,none] ... the first keyword determines the place

Hans

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

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


Re: [NTG-context] Placefigure inner/outer

2013-08-04 Thread Marco Patzer
On 2013–08–04 Tim Steenvoorden wrote:

 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}

What do you want to do? Place it in the margin?

  \placefigure[inleft]{}{\externalfigure[figurename]}

Marco


signature.asc
Description: Digital signature
___
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 inner/outer

2013-08-04 Thread Tim Steenvoorden
No. I want to place the figure to the left of the text if it is on a
odd page and to the right of the text if it is on a even page. Thus
the same effect left and right have as keywords, but depending on
the page it is on.

Cheers,
Tim

2013/8/4 Marco Patzer home...@lavabit.com:
 On 2013–08–04 Tim Steenvoorden wrote:

 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}

 What do you want to do? Place it in the margin?

   \placefigure[inleft]{}{\externalfigure[figurename]}

 Marco

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

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
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 inner/outer

2013-08-04 Thread Wolfgang Schuster

Am 04.08.2013 um 22:40 schrieb Marco Patzer home...@lavabit.com:

 On 2013–08–04 Tim Steenvoorden wrote:
 
 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}
 
 What do you want to do? Place it in the margin?
 
  \placefigure[inleft]{}{\externalfigure[figurename]}

With the “inner” and “outer” keywords context uses
the “left” and “right” locations dependent on the page.

The feature doesn’t work in MkIV because two commands
are processed in the wrong order.

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 inner/outer

2013-08-04 Thread Tim Steenvoorden
Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
fixed someday?

2013/8/4 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 04.08.2013 um 22:40 schrieb Marco Patzer home...@lavabit.com:

 On 2013–08–04 Tim Steenvoorden wrote:

 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}

 What do you want to do? Place it in the margin?

  \placefigure[inleft]{}{\externalfigure[figurename]}

 With the “inner” and “outer” keywords context uses
 the “left” and “right” locations dependent on the page.

 The feature doesn’t work in MkIV because two commands
 are processed in the wrong order.

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

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

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

Re: [NTG-context] Placefigure inner/outer

2013-08-04 Thread Wolfgang Schuster

Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden tim.steenvoor...@gmail.com:

 Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
 fixed someday?

It depends on Hans, I’ll send him a mail about the problem.

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 inner/outer

2013-08-04 Thread Tim Steenvoorden
Thanks Wolfgang!

2013/8/4 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden tim.steenvoor...@gmail.com:

 Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
 fixed someday?

 It depends on Hans, I’ll send him a mail about the problem.

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

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

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

Re: [NTG-context] Placefigure without Caption-Numbering

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezo...@mmnetz.de:

 How to deactive the Caption-Numbering:
 
 \starttext
 
 \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
 
 \stoptext
 
 I want the caption Blub, but not the Figure 1 label.

\placefigure[here,nonumber]{…}{…}

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

2013-03-21 Thread Sietse Brouwer
On 21 March 2013 17:26, Hans Hagen pra...@wxs.nl wrote:
 while fixing some buglets that showed up in the test suite I ran into 
 \placenamedfloat
 maybe worth wikifying (bug will be solved in beta)

Wikified:
http://wiki.contextgarden.net/Command/placenamedfloat

Below is what I wrote; is that correct?

Groetjes,
Sietse

== Description ==

If a float is placed (with \placefloat) location argument
somewhere:name, it is not placed immediately. Instead, it may be
manually placed elsewhere with \placenamedfloat.

== Example ==

This example declares four figures to be placed elsewhere: alpha,
beta, gamma, and delta. The first \placenamedfloat call places all
figures with l in their name (i.e. alpha and delta; the next two calls
place gamma and beta, respectively.
___
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

2013-03-21 Thread Hans Hagen

On 3/21/2013 11:04 PM, Sietse Brouwer wrote:

On 21 March 2013 17:26, Hans Hagen pra...@wxs.nl wrote:

while fixing some buglets that showed up in the test suite I ran into 
\placenamedfloat
maybe worth wikifying (bug will be solved in beta)


Wikified:
http://wiki.contextgarden.net/Command/placenamedfloat

Below is what I wrote; is that correct?


indeed, thanks,

Hans

--

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

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


Re: [NTG-context] Placefigure without numbering

2013-02-01 Thread Marco Patzer
On 2013–02–01 H. Özoguz wrote:

 how to deactivate numbering for the following (empty) picture?
 
 \placefigure[here][fig:demo]{My description under the picture.}{}

\startplacefigure [title=My description, reference=fig:demo, number=no]
  …
\stopplacefigure

Marco


signature.asc
Description: Digital signature
___
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 without numbering

2013-02-01 Thread H. Özoguz

Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl:

\startplacefigure [title=My description, reference=fig:demo, number=no]
   ?
\stopplacefigure
Thanks Marco, and how to align the title at the center under the 
picture? (Now it is flushright)


Thanks
Huseyin
___
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 without numbering

2013-02-01 Thread H. Özoguz

Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl:

\startplacefigure [title=My description, reference=fig:demo, number=no]
   ?
\stopplacefigure
Thanks Marco, and how to align the title at the center under the 
picture? (Now it is flushright)


Thanks
Huseyin
___
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 without numbering

2013-02-01 Thread Alan BRASLAU
On Fri, 1 Feb 2013 22:42:10 +0100
H. Özoguz h.oezo...@mmnetz.de wrote:

 Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl:
  \startplacefigure [title=My description, reference=fig:demo,
  number=no] ?
  \stopplacefigure
 Thanks Marco, and how to align the title at the center under the 
 picture? (Now it is flushright)
 

Untested:
\setupcaption [figure] [align=middle]

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] \placefigure[margin] but in left margin?

2013-01-03 Thread Wolfgang Schuster

Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:

 Dear list,
 
 I want to have the effect I get with \placefigure[margin] but I want it 
 _always_ in the left margin instead of the right margin where it ends up by 
 default. I have tried several other keys but with leftmargin, inleft the 
 figure is not put in the top of the page, independent of the text. Can I 
 fix this with some setup?
 
 Small test file:

\setupmarginblocks
  [location=left]

 \starttext
 \input tufte
 
 \placefigure[leftmargin][none]{With the key 
 leftmargin}{\externalfigure[cow][width=1cm]}
 \input tufte
 
 \placefigure[inleft][none]{With the key 
 inleft}{\externalfigure[cow][width=1cm]}
 \input tufte
 
 \placefigure[margin][none]{With the key 
 margin}{\externalfigure[cow][width=1cm]}
 \input tufte
 % This is the way I want it, but I want it in the left margin instead
 \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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \placefigure[margin] but in left margin?

2013-01-03 Thread Mikael P. Sundqvist
On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


 Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:

  Dear list,
 
  I want to have the effect I get with \placefigure[margin] but I want it
 _always_ in the left margin instead of the right margin where it ends up by
 default. I have tried several other keys but with leftmargin, inleft the
 figure is not put in the top of the page, independent of the text. Can I
 fix this with some setup?
 
  Small test file:

 \setupmarginblocks
   [location=left]

  \starttext
  \input tufte
 
  \placefigure[leftmargin][none]{With the key
 leftmargin}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[inleft][none]{With the key
 inleft}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[margin][none]{With the key
 margin}{\externalfigure[cow][width=1cm]}
  \input tufte
  % This is the way I want it, but I want it in the left margin instead
  \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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___



Thank you very much for your fast reply, Wolfgang. That is what I looked
for. However, a new problem appeared now. The example file

\setuppapersize[A5][A5]

\setuplayout[
footer=0cm,
header=0.6cm,
headerdistance=0.2cm,
footerdistance=0cm,
topspace=1cm,
backspace=4cm,
leftmargin=3cm,
rightmargin=0cm,
leftmargindistance=0.5cm,
height=fit,
width=fit,
]

\setupmarginblocks[location=left]


\starttext
\showlayout

\placefigure[margin][none]{With the key
margin}{\externalfigure[cow][width=3cm]}
\input tufte

\stoptext

does not work as intended for me. The layout looks OK if I read the
\showlayout output correctly, but the cow is not put entirely in the
margin, but sticks out outside the page. I attach the output of the code
above.

Best regards, Mikael


test.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \placefigure[margin] but in left margin?

2013-01-03 Thread Wolfgang Schuster

Am 03.01.2013 um 17:13 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster 
 wolfgang.schus...@gmail.com wrote:
 
 Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:
 
  Dear list,
 
  I want to have the effect I get with \placefigure[margin] but I want it 
  _always_ in the left margin instead of the right margin where it ends up by 
  default. I have tried several other keys but with leftmargin, inleft the 
  figure is not put in the top of the page, independent of the text. Can I 
  fix this with some setup?
 
  Small test file:
 
 \setupmarginblocks
   [location=left]
 
  \starttext
  \input tufte
 
  \placefigure[leftmargin][none]{With the key 
  leftmargin}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[inleft][none]{With the key 
  inleft}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[margin][none]{With the key 
  margin}{\externalfigure[cow][width=1cm]}
  \input tufte
  % This is the way I want it, but I want it in the left margin instead
  \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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 Thank you very much for your fast reply, Wolfgang. That is what I looked for. 
 However, a new problem appeared now. The example file
 
 \setuppapersize[A5][A5]
 
 \setuplayout[
 footer=0cm,
 header=0.6cm,
 headerdistance=0.2cm,
 footerdistance=0cm,
 topspace=1cm,
 backspace=4cm,
 leftmargin=3cm,
 rightmargin=0cm,
 leftmargindistance=0.5cm,
 height=fit,
 width=fit,
 ]
 
 \setupmarginblocks[location=left]

\setupmarginblocks
  [location=left,
   width=\leftmarginwidth]

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[margin] but in left margin?

2013-01-03 Thread Mikael P. Sundqvist
On Thu, Jan 3, 2013 at 5:16 PM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


 Am 03.01.2013 um 17:13 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster 
 wolfgang.schus...@gmail.com wrote:


 Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:

  Dear list,
 
  I want to have the effect I get with \placefigure[margin] but I want it
 _always_ in the left margin instead of the right margin where it ends up by
 default. I have tried several other keys but with leftmargin, inleft the
 figure is not put in the top of the page, independent of the text. Can I
 fix this with some setup?
 
  Small test file:

 \setupmarginblocks
   [location=left]

  \starttext
  \input tufte
 
  \placefigure[leftmargin][none]{With the key
 leftmargin}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[inleft][none]{With the key
 inleft}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[margin][none]{With the key
 margin}{\externalfigure[cow][width=1cm]}
  \input tufte
  % This is the way I want it, but I want it in the left margin instead
  \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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___



 Thank you very much for your fast reply, Wolfgang. That is what I looked
 for. However, a new problem appeared now. The example file

 \setuppapersize[A5][A5]

 \setuplayout[
 footer=0cm,
 header=0.6cm,
 headerdistance=0.2cm,
 footerdistance=0cm,
 topspace=1cm,
 backspace=4cm,
 leftmargin=3cm,
 rightmargin=0cm,
 leftmargindistance=0.5cm,
 height=fit,
 width=fit,
 ]

 \setupmarginblocks[location=left]


 \setupmarginblocks
   [location=left,
width=\leftmarginwidth]

 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

 ___


Thank you very much, Wolfgang! Now it looks as it should.

Mikael
___
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 adds break

2012-04-12 Thread Alan BRASLAU
Hello,

A follow-up on the solution
\startpostponing [+0]
\startplacefigure
…
\stopplacefigure
\stoppostponing

As a side effect, one then needs to be careful to surround
ALL placefigures with \startpostponing[+0]\stoppostponing,
even those that occur after a paragraph end
(where one is not concerned about adding a paragraph break),
else the floating figures may get placed out of order,
e.g. figure 4 before figure 3.

As this makes for somewhat sloppy tex files,
should not placefigure/table/other get FIXED
so as not to introduce a paragraph break?

Alan


On Thu Apr 5 15:38:05 CEST 2012 Alan BRASLAU wrote:

 On Thu, 5 Apr 2012 13:39:42 +0200
 Steffen Wolfrum context at st.estfiles.de wrote:
 
  
  Am 05.04.2012 um 13:25 schrieb luigi scarso:
  
   On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adityam at umich.edu
   wrote:
   (Untested)
   
   \startpostponing[+1]
   \placefigure[top]{}{...}
   \stoppostponing
   
   Rest of the text
   
   
   Aditya
   \starttext
   
   \switchtobodyfont[rm,10pt]
   
   \input tufte \input ward \input zapf \input tufte \input ward \input
   zapf \input tufte \input ward %
   \input zapf \input tufte \input ward %
   \input zapf HERE%
   \startpostponing[+1]
   \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]}
   \stoppostponing%
   AND HERE \input tufte \input ward %
   \input zapf \input tufte \input ward \input zapf \input tufte \input
   ward \input zapf \input tufte %
   \input ward \input zapf \input tufte \input ward \input zapf
   
   \stoptext
   
   seems ok
  
  
  
  indeed, a great result.
  (searching for this command now, I saw that it's a quite old
  command ... only I never knew it)
  
  thanks a lot Aditya and Luigi!
 
 
 I have been looking for a trick to place figures near their reference
 in the text, without imposing a paragraph break.
 This trick works (so thanks again to Aditya and Luigi):
 
 \starttext
 
 Some text is described \in{figure}[fig:reference].
 \startpostponing[+0]
 \startplacefigure[location=here,reference=fig:reference,
   title={This figure gets placed somewhere near its reference.}]
   \externalfigure[cow][width=\textwidth]
 \stopplacefigure
 \stoppostponing
 The text continues here without a paragraph break.
 
 \stoptext
 
 A few comments:
 
 1. The \startpostponing...\stoppostponing is necessary,
 although some other wrapper around the placefigure might also work.
 
 2. The % at the end of the lines in the above examples is not necessary
 unless one seeks to kill the spacing between {HERE}{AND HERE}.
 
 3. One should preferably be using \startplacefigure\stopplacefigure
 (rather than \placefigure). Besides being cleaner, as a bonus
 one gets to use title={},list={} for the figure caption and
 list of figure entry.
 
 Should placefigure be fixed somehow so as to hide its paragraph
 break itself?
___
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 padding

2012-03-11 Thread Wolfgang Schuster

Am 11.03.2012 um 04:12 schrieb Kip Warner:

 Hey list,
 
 The following minimal typesets a dummy figure. Note how there is about
 two lines of empty space below the figure. How do I control the amount
 of padding that surrounds the figure, such as the bottom?

With

\setupfloats
  [spacebefore=…,
   spaceafter=…]

you can control the space before and after the float, accepted are all values 
for \blank (dimensions and keywords).

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 padding

2012-03-11 Thread Kip Warner
On Sun, 2012-03-11 at 10:01 +0100, Wolfgang Schuster wrote:
 \setupfloats
   [spacebefore=,
spaceafter=]
 
 you can control the space before and after the float, accepted are all values 
 for \blank (dimensions and keywords).

That's probably the command I need, but I can't find any useful
documentation for it. I found this on the wiki, but all of the different
parameters aren't explained:

http://wiki.contextgarden.net/Reference/en/setupfloats

The User Manual PDF doesn't elaborate on the parameters either much.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] placefigure shifting up?

2012-01-11 Thread Hans Hagen

On 11-1-2012 20:01, Meer, H. van der wrote:

In my document I have a number of \placefigures, some pdf's, some jpg's etc.. 
Mostly the figure are placed correct with respect to, the caption but sometimes 
for no apparent reason I can spot, the picture is shifted up. In the first 
illustration taken from the document this is clearly seen, picture and caption 
should be close together. Compare this with the other one.

I do not have a minimal example at hand, the document is too big for that and 
as said, I could not yet force the behaviour. Both \placefigure's are exactly 
the same apart from their specific contents.

Anyone who knows about this problem? For me it is quite a problem, because it 
ruins the document layout considerably.


no clue ... maybe put a frame around it to see the boundingboxes

Hans


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

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


Re: [NTG-context] placefigure shifting up?

2012-01-11 Thread Hans van der Meer
I might add to this report the following observation:

In a document with  \setuppapersize [S8][S8] the shifts appear now and then, 
whereas these are typeset normally when the document is place on   
\setuppapersize [A4][A4].

It seems that the papersize and placefigure sometimes have a problem with each 
other.

Hans van der Meer

On 11 jan. 2012, at 20:01, H. van der Meer wrote:

 In my document I have a number of \placefigures, some pdf's, some jpg's etc. 
 Mostly the figure are placed correct with respect to, the caption but 
 sometimes for no apparent reason I can spot, the picture is shifted up. In 
 the first illustration taken from the document this is clearly seen, picture 
 and caption should be close together. Compare this with the other one. 
 
 I do not have a minimal example at hand, the document is too big for that and 
 as said, I could not yet force the behaviour. Both \placefigure's are exactly 
 the same apart from their specific contents. 
 
 Anyone who knows about this problem? For me it is quite a problem, because it 
 ruins the document layout considerably.
 
 Hans van der Meer
 
 
 shifted.jpg
 notshifted.jpg

___
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 shifting up?

2012-01-11 Thread Meer, H. van der
I think I can nail the responsible one.

As far as I can see the problem is tightly coupled with the following structure:
  
\placefigure[][]{caption}{\startcombination[]{contents}{}{contents}{}\stopcombination}
The other figures I have seem to placed well enough, the above structures 
behaving erratic. I could not completely ascertain whether empty desciptions 
parts in the combination-members plays a role.

I really hope this will point the way to a fast solution from the gurus ;-)

Hans van der Meer



On 11 jan. 2012, at 20:21, Hans van der Meer wrote:

I might add to this report the following observation:

In a document with  \setuppapersize [S8][S8] the shifts appear now and then, 
whereas these are typeset normally when the document is place on  
\setuppapersize [A4][A4].

It seems that the papersize and placefigure sometimes have a problem with each 
other.

Hans van der Meer

On 11 jan. 2012, at 20:01, H. van der Meer wrote:

In my document I have a number of \placefigures, some pdf's, some jpg's etc. 
Mostly the figure are placed correct with respect to, the caption but sometimes 
for no apparent reason I can spot, the picture is shifted up. In the first 
illustration taken from the document this is clearly seen, picture and caption 
should be close together. Compare this with the other one.

I do not have a minimal example at hand, the document is too big for that and 
as said, I could not yet force the behaviour. Both \placefigure's are exactly 
the same apart from their specific contents.

Anyone who knows about this problem? For me it is quite a problem, because it 
ruins the document layout considerably.

Hans van der Meer


shifted.jpg
notshifted.jpg

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

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

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

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

Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Henning Hraban Ramm

Am 2011-02-25 um 08:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


---

\starttext
 \placefigure
   [left,none]
   {}
   { \startMPcode
   draw (0,0)--(6cm,6cm);
 \stopMPcode
   }

 This is a normal text -- it flows around the picture on the left  
side of the page as expected.


 {\em This empathized text starting a new paragraph} should not  
scratch the picture left.


 When some text contains {\em an empathized text inside the  
paragraph}, text flows normally as expected.


 \input tufte
\stoptext

---


You can add a \strut in front of {\em - that’s a usual workaround for  
problems with non-letters starting a paragraph.



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

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

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


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Wolfgang Schuster

Am 25.02.2011 um 08:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 sorry for repeating this topic, maybe it's not too attractive.
 
 Please, have a look to the following problem.
 
 I wonder why the behaviour described bellow occurs and how to typeset a 
 paragraph starting with some text enclosed into {\em ...} group inside the 
 free area formed (affected) by \placefigure.
 
 ---
 
 \starttext
  \placefigure
[left,none]
{}
{ \startMPcode
draw (0,0)--(6cm,6cm);
  \stopMPcode
}
 
  This is a normal text -- it flows around the picture on the left side of the 
 page as expected.
 
  {\em This empathized text starting a new paragraph} should not scratch the 
 picture left.

\dontleavehmode{\em …}

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 and \em (again)

2011-02-25 Thread Wolfgang Schuster

Am 25.02.2011 um 09:16 schrieb Henning Hraban Ramm:

 You can add a \strut in front of {\em - that’s a usual workaround for 
 problems with non-letters starting a paragraph.

The usual workaround is \dontleavehmode.

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 and \em (again)

2011-02-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks for the answers.

I'm familiar with using \dontleavehmode when needing to keep a figure 
midaligned; I had no idea that this would be a similar situation (and solution).

Best regards,

Lukas


On Fri, 25 Feb 2011 09:37:40 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 25.02.2011 um 09:16 schrieb Henning Hraban Ramm:


You can add a \strut in front of {\em - that’s a usual workaround for problems 
with non-letters starting a paragraph.


The usual workaround is \dontleavehmode.

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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 and \em (again)

2011-02-25 Thread Willi Egger
Hello,

of course I do not have the solution for the underlaying problem. I found out, 
that you can put a \strut in front of the problematic text and then it comes 
out ok.
Another point is, that placing the whole text-part i.e. all 4 paragraphs in 
your example between \bgroup \egroup results in more problems. In this case the 
tufte-text is also not flowing around the picture.


Kind regards

Willi


On 25 Feb 2011, at 08:56, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 Hello,
 
 sorry for repeating this topic, maybe it's not too attractive.
 
 Please, have a look to the following problem.
 
 I wonder why the behaviour described bellow occurs and how to typeset a 
 paragraph starting with some text enclosed into {\em ...} group inside the 
 free area formed (affected) by \placefigure.
 
 ---
 
 \starttext
  \placefigure
[left,none]
{}
{ \startMPcode
draw (0,0)--(6cm,6cm);
  \stopMPcode
}
 
  This is a normal text -- it flows around the picture on the left side of the 
 page as expected.
 
  {\em This empathized text starting a new paragraph} should not scratch the 
 picture left.
 
  When some text contains {\em an empathized text inside the paragraph}, text 
 flows normally as expected.
 
  \input tufte
 \stoptext
 
 ---
 
 Thank you in advance.
 
 Best regards
 
 Lukas
 
 
 -- 
 Ing. Lukáš Procházka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezová 1658
 147 14 Praha 4
 
 Tel: +420 244 062 238
 Fax: +420 244 461 
 038t-Hang3.mkivt-Hang3.pdf___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Hans Hagen

On 25-2-2011 9:44, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

... Thanks for the answers.

I'm familiar with using \dontleavehmode when needing to keep a figure
midaligned; I had no idea that this would be a similar situation (and
solution).


{\em xxx ..}

the first x triggers the start of a paragraph but it happens inside a 
group so it has side effects


\dontleavehmode{\em xxx ..}

here the paragraph is started outside the group


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

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


Re: [NTG-context] placefigure ?

2010-09-30 Thread Wolfgang Schuster

Am 29.09.2010 um 19:44 schrieb R. Bastian:

 On Tue, 28 Sep 2010 13:39:56 +0300
 Mari Voipio mari.voi...@iki.fi scribit:
 
 On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote:
 In Mk II, I need to place figures - with numbers and captions -
 but \placefigure is for floats and never places the figure [here].
 Is there another way?
 
 I've found that mostly [here,force] will do the trick, but sometimes a
 judiciously placed \page helps, too. That is a bit of cheap and sleazy
 way of doing it and I only do that in the final round of layouting,
 but works for me.
 
 [here, force] does when it wants :-)

You need only “force”.

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 ?

2010-09-29 Thread R. Bastian
On Tue, 28 Sep 2010 13:39:56 +0300
Mari Voipio mari.voi...@iki.fi scribit:

 On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote:
  In Mk II, I need to place figures - with numbers and captions -
  but \placefigure is for floats and never places the figure [here].
  Is there another way?
 
 I've found that mostly [here,force] will do the trick, but sometimes a
 judiciously placed \page helps, too. That is a bit of cheap and sleazy
 way of doing it and I only do that in the final round of layouting,
 but works for me.

[here, force] does when it wants :-)

I will reduce the  size of the 3 figures, add a 4th and play with 'combinatie' 
(2 x 2)
 
 I think the 'real' way would be using layers, but haven't gotten as
 far as to teaching myself *that*. See
 http://wiki.contextgarden.net/Layers for more information.

Layers are a graphic technique. 
 
 
 Regards,
 
 Mari
 ___

René Bastian
www.pythoneon.org
www.musiques-rb.org
___
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 ?

2010-09-28 Thread Mari Voipio
On Tue, Sep 28, 2010 at 13:22, R. Bastian rbast...@free.fr wrote:
 In Mk II, I need to place figures - with numbers and captions -
 but \placefigure is for floats and never places the figure [here].
 Is there another way?

I've found that mostly [here,force] will do the trick, but sometimes a
judiciously placed \page helps, too. That is a bit of cheap and sleazy
way of doing it and I only do that in the final round of layouting,
but works for me.

I think the 'real' way would be using layers, but haven't gotten as
far as to teaching myself *that*. See
http://wiki.contextgarden.net/Layers for more information.


Regards,

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


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


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


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


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


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


Re: [NTG-context] placefigure feature request ?

2006-04-12 Thread Sanjoy Mahajan
 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:

floatblocks : no block given
floatblocks : 1 renumbered / figure 1 = 3
(/home/sanjoy/texmf/tex/context/base/pdfr-ec.tex)
floatblocks : 1 placed
(/home/sanjoy/texmf/tex/context/sample/tufte.tex)
floatblocks : no block given
floatblocks : 2 renumbered / figure 2 = 1
floatblocks : 2 placed
(/home/sanjoy/texmf/tex/context/sample/tufte.tex)
floatblocks : 3 renumbered / figure 3 = 2
floatblocks : 3 placed

If it had done a anticlockwise rotation, the figure numbers would have
been right (1-2-3 reading down the page).  Is it because the figure
renumbering does not know of the change to fallback=bottom (from
fallback=here)?

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2006.03.25 13:21
   cont-en : ver: 2006.03.25 13:21  fmt: 2006.4.11  mes: english


Here's the .tex file itself with the above modifications:

==
% 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}

\protect

% \setupfloats[numbering=nocheck]

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

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure feature request ?

2006-04-06 Thread Taco Hoekwater


Sanjoy Mahajan wrote:
 
 $ texexec 3.tex
 $ dvips 3
 $ ps2pdf 3.ps   = 3.pdf is in color

This is 'wrong'. Normally, your output should be b/w unless
you have \setupcolors[state=start] in your document somewhere,
but ConTeXt does not know how to convert your images to
greyscale in the dvips case.

(actually, with a newish dvips, it should be possible to add
a postscript header file to do the conversion, but I do not
know enough about that to set it up).

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


Re: [NTG-context] placefigure: mysterious whitespace with 'rightmargi n'figures

2006-04-06 Thread Sanjoy Mahajan
 Hans had me do the following and it worked.
 
 \placefigure
 [inright,reset][fig:graphmap]
 {A mapping diagram for $f$.}
 {\externalfigure[graph1][width=\marginwidth]}

Thanks.  I added 'reset' to the [rightmargin] option and it worked.
Do you add that everywhere, or does 'reset' have side effects?
Presumably it does, otherwise it would be the default?

-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] placefigure: mysterious whitespace with 'rightmargi n'figures

2006-04-06 Thread Hans Hagen
Sanjoy Mahajan wrote:
 Hans had me do the following and it worked.

 \placefigure
 [inright,reset][fig:graphmap]
 {A mapping diagram for $f$.}
 {\externalfigure[graph1][width=\marginwidth]}
 

 Thanks.  I added 'reset' to the [rightmargin] option and it worked.
 Do you add that everywhere, or does 'reset' have side effects?
 Presumably it does, otherwise it would be the default?
   
well, it may make the next 'sidefloat' run over the previous one

\placefigure[left]{}{} \input tufte 
\placefigure[left]{}{} \input tufte 

\placefigure[left]{}{} whatever 
\placefigure[left]{}{} whatever  

\placefigure[left,reset]{}{} whatever 
\placefigure[left]{}{} whatever  


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-05 Thread Taco Hoekwater


Hans Hagen wrote:
So 'numbering=yes' will number according to position on the page?

 no

To avoid confusion:

When 'page' refers to the typeset result, then Hans' answer actually
means 'yes'. Or it should, at least. I remember files where I had to
run texexec twice though. I am not sure if that bug still happens,
so be careful.

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


Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Sanjoy Mahajan
Taco Hoekwater [EMAIL PROTECTED] wrote:
 Hans Hagen wrote:
 So 'numbering=yes' will number according to position on the page?
 
  no
 
 To avoid confusion:
 
 When 'page' refers to the typeset result, then Hans' answer actually
 means 'yes'. Or it should, at least. I remember files where I had to
 run texexec twice though. I am not sure if that bug still happens,
 so be careful.

Right, I meant in pages of the typeset result.  I'll watch for the need
to run texexec and make a minimal example if I find the problem.  

Meanwhile I've been experimenting in baby steps, and numbering=yes does
what I want, as does specifying nothing about numbering.  But
numbering=nocheck doesn't stop it, so I'm confused by what the nocheck
option does (doesn't cause me problems since the default is what I want,
but I'm curious).

Probaby I'm just using an old version of context since the texshow-web
says that numbering=nocheck is a new option.  My last attempt at
upgrading didn't go well (I have tetex-3.0) but maybe it's time to try
again.

$ texexec --version

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2005.01.31
   cont-en : ver: 2005.01.31  fmt: 2006.3.28  mes: english

With this output on the file 

$ texexec 2m
[...snip...]
systems : begin file 2m at line 6
(/usr/share/texmf-tetex/tex/context/sample/tufte.tex)
figures : dimensions of ./a.1 loaded from figurefile itself
(./2m.tuo)
floatblocks : 1 renumbered / figure 1 = 2
floatblocks : 1 placed
(/usr/share/texmf-tetex/tex/context/sample/knuth.tex)
figures : dimensions of ./a.2 loaded from figurefile itself
floatblocks : 2 renumbered / figure 2 = 1
floatblocks : 2 placed
[1.1]
systems : end file 2m at line 13
[...snip...]

So the figures get renumbered.


Here's the 2m.tex file:
==
\setuplayout[textwidth=3.6in, rightmargin=2in]
\useexternalfigure[mpg][a.1]
\useexternalfigure[mpg2][a.2]
\setupfloats[numbering=nocheck]

\starttext
\input tufte 
\placefigure[rightmargin]{first in source file.}{\externalfigure[mpg]}
\par
\input knuth 
\placefigure[top]{second in source file.}{\externalfigure[mpg2]}
\par
\stoptext
==

Where a.mp to produce a.1 and a.2 is:
==
beginfig(1)
fill unitsquare scaled 1in withcolor red;
endfig;
beginfig(2)
fill unitsquare scaled 1in withcolor green;
endfig;
end
==


-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Sanjoy Mahajan
Hans Hagen [EMAIL PROTECTED] wrote:
 Sanjoy Mahajan wrote:
  Here \figuremacro figures out (sorry) that narrow figures go in the
  margin and wide figures go at the top of the page.  But the page will
  look funny: The narrow figure will be numbered, say, Figure 10, and
  the wide figure will be Figure 11, but Figure 11 will appear before
  Figure 10 on the page.  Which is disconcerting to the reader.  

 this 'choose between locations' feature is kind of present but only with 
 'here' as fallback but it's trivial to make that configurable:
 

[useful code snipped]

Thanks very much -- I'll work through the code and learn some conTeXt to
boot.

 no, actually floats will be renumbered automatically unless nocheck is
 given; the problem is that the order in which margins etc flush plays
 a role then.
 
 I can imagine another solution but i need a dark rainy non-busy day
 for that

Taco's msg about no meaning yes made me wonder: what's the special case
or problem you were thinking of?

Perhaps Holland in the winter can offer the dark, rainy day (just like
here in Boston, USA) but the 'non-busy' may be more difficult.

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Hans Hagen
Sanjoy Mahajan wrote:
 Taco's msg about no meaning yes made me wonder: what's the special case
 or problem you were thinking of?
   
probably that the automatic renumbering sometimes interferes with non 
trivial sequential flushing
 Perhaps Holland in the winter can offer the dark, rainy day (just like
 here in Boston, USA) but the 'non-busy' may be more difficult.
   
i remember a pretty hot boston made even more hot because i had to carry 
the nice big book inventing the charles river around -)

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-05 Thread Hans Hagen
Sanjoy Mahajan wrote:
 Meanwhile I've been experimenting in baby steps, and numbering=yes does
 what I want, as does specifying nothing about numbering.  But
 numbering=nocheck doesn't stop it, so I'm confused by what the nocheck
 option does (doesn't cause me problems since the default is what I want,
 but I'm curious).
   
even more minimal:

\useMPlibrary[dum]

\setupfloats[numbering=nocheck]

\starttext
\input tufte \placefigure[rightmargin]{first} {\externalfigure[dummy]} \par
\input knuth \placefigure[top]{second}{\externalfigure[dummy]} \par
\stoptext


does commenting the no check line makes a differnece? 

nocheck: top=2, margin=1 
yes: top=1, margin=2  (default behaviour) 



-
  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-05 Thread Sanjoy Mahajan
From:Hans Hagen [EMAIL PROTECTED]
 \useMPlibrary[dum]
 \setupfloats[numbering=nocheck]
 \starttext
 \input tufte \placefigure[rightmargin]{first} {\externalfigure[dummy]} \par
 \input knuth \placefigure[top]{second}{\externalfigure[dummy]} \par
 \stoptext
 
 does commenting the no check line makes a differnece? 
 
 nocheck: top=2, margin=1 
 yes: top=1, margin=2  (default behaviour) 

No difference.  I get the default behavior in both cases, and both log
files mention the renumbering:

$ texexec 3.tex  somewhere
$ mv 3.log 3-nocheck.log
[comment out the nocheck line]
$ texexec 3.tex  somewhereelse
$ grep renumber 3{,-nocheck}.log
3.log:floatblocks : 1 renumbered / figure 1 = 2
3.log:floatblocks : 2 renumbered / figure 2 = 1
3-nocheck.log:floatblocks : 1 renumbered / figure 1 = 2
3-nocheck.log:floatblocks : 2 renumbered / figure 2 = 1

TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE
   1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE
   1992-2004
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2005.01.31
   cont-en : ver: 2005.01.31  fmt: 2006.3.28  mes: english

Maybe this context installation is too old for nocheck.  On the other
hand, it should complain then?

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


Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Hans Hagen
Sanjoy Mahajan wrote:
context : ver: 2005.01.31
cont-en : ver: 2005.01.31  fmt: 2006.3.28  mes: english

 Maybe this context installation is too old for nocheck.  On the other
 hand, it should complain then?
   
i remember a bug (actually the mechanism is rather old, so the bug must have 
been a temp 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] placefigure: mysterious whitespace with 'rightmargi n'figures

2006-04-05 Thread David Arnold
Sanjoy,

Hans had me do the following and it worked.

\placefigure
[inright,reset][fig:graphmap]
{A mapping diagram for $f$.}
{\externalfigure[graph1][width=\marginwidth]}


On Apr 5, 2006, at 9:49 PM, Sanjoy Mahajan wrote:

 I tested the following on the context live.  Both figures are in the
 margin, but the first and second paragraphs have a large gap between
 them with figure 1 in the margin, beside the gap.  My first theory was
 that the margin figure requires the whitespace (unlikely, I know).   
 But
 that theory didn't last long: If I restore the commented-out '\input
 knuth' line, then the layout has no gaps.

 ==
 \useMPlibrary[dum]

 \starttext
 \input tufte
 \placefigure[rightmargin]{first}{\externalfigure[dummy]} \par
 %\input knuth
 \placefigure[rightmargin]{third}{\externalfigure[dummy]} \par
 \input knuth
 \stoptext
 ==


 -Sanjoy

 `A society of sheep must in time beget a government of wolves.'
- Bertrand de Jouvenal
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

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


Re: [NTG-context] placefigure feature request ?

2006-04-04 Thread Hans Hagen
Renaud AUBIN wrote:

 Hi all,

 It seems this is for you, Hans:

 It would be nice if placefigure can be able to detect if the best 
 place is the top or the bottom of the page accordingly to its call, i.e.:
 if placefigure call is near to the top - figure will go to the top
 else figure will go to the bottom...
hm, as long as it's ok that it's a rough heuristic ... i'll send you something 
to play with 

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


  1   2   >