[NTG-context] \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
Hi all,
I am generating a quiz, with eight questions, each
with text and a figure following it. The output was fine till the
fifth question, but then the margin separating the  text of
each question disappeared and the figure got put on the
next page one after the other.
Can anyone suggest what I could be doing wrong?
Do I need to increase the buffer? how?


This is what I have used to place each figure
\startplacefigure[location=here,reference=fig:blah][]{}
 \externalfigure[blah.jpeg][scale=300]
\stopplacefigure
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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
___


[NTG-context] placefigure, usetikzlibrary and readfile

2021-08-01 Thread Jigé via ntg-context
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.


All the best!


Example:

 Begin document.tex

\usemodule[tikz]

\starttext

\usetikzlibrary[angles] % Doesn't compile if this is commented out.

%\placefigure[here][]{This is a figure}{
%  \readfile{included}{}{File not found.}
%  \readfile{included}{}{File not found.}
%}

\placefigure[here][]{This is a figure}{
  \ReadFile{included}{}
}
\placefigure[here][]{This is a figure}{
  \ReadFile{included}{}
}

\stoptext
 End document.tex

 Begin included.tex
\usemodule[tikz]
\usetikzlibrary[angles]
%\doifnotmode{*text,*bodypart}{ \startTEXpage[fit] }
\doifnotmode{*text,*bodypart}{ \startTEXpage[fit] \usemodule[tikz] 
\usetikzlibrary[angles] }
\hbox{\starttikzpicture[]
  \draw[]
   (0,0) coordinate (A) node[left] {$A$}
-- (4,0) coordinate (B) node[right] {$B$}
-- (0,3) coordinate (C) node[left] {$C$}
-- cycle
pic [draw, angle radius=0.5cm] {right angle = B--A--C} ;
\stoptikzpicture}
\doifnotmode{*text,*bodypart}{ \stopTEXpage }
 End included.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] placefigure RTL

2021-03-05 Thread Mohammad Hossein Bateni
Hello,

Is there a way to make \placefigure[left,right] work in RTL documents?
Here's a MWE:


\starttext
\setupalign[r2l]
\placefigure[none,right]{}{\externalfigure[cow]}
\input knuth
\placefigure[none,left]{}{\externalfigure[cow]}
\input knuth
\page
\setupalign[l2r]
\placefigure[none,right]{}{\externalfigure[cow]}
\input knuth
\placefigure[none,left]{}{\externalfigure[cow]}
\input knuth
\stoptext


Thanks a lot,
--MHB
___
If your question is of interest to others as well, please add 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
___


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

2019-09-27 Thread Philippe Oechslin
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.


\setupexternalfigures[location={local,default}]

\starttext
\input ward

\placefigure[left,none]{}{\externalfigure[cow][width=3cm]}

\input ward
\stoptext

The error happens when the location of placefigure is left or right, but not
with center. The error is the following:

context test.tex
resolvers   | trees | analyzing 'home:.texlive2018/texmf-config'
mtx-context | run 1: luatex
--fmt="/home/philippe/.texlive2018/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/lua
tex/cont-en" --jobname="test"
--lua="/home/philippe/.texlive2018/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luate
x/cont-en.lui" --no-parse-first-line --c:currentrun=1
--c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1
--c:maxnofruns=9 "co
nt-yes.mkiv"

This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian)
 system commands enabled.

resolvers   > trees > analyzing 'home:.texlive2018/texmf-config'
open source > level 1, order 1, name
'/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2019.9.25  int:
english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/philippe/test.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/usr/share/texmf/tex/context/sample/common/ward.tex'
close source> level 3, order 4, name
'/usr/share/texmf/tex/context/sample/common/ward.tex'
floatblocks > '1' placed (left)

tex error   > tex error on line 6 in file /home/philippe/test.tex: !
Illegal unit of measure (pt inserted)


\global
\strc_floats_wrap_free_region ->\global
\setbox \floatbox \hpack {\ifconditi...
\strc_floats_mark_as_free ...ats_wrap_free_region
  \anch_mark_tagged_box_free...
\strc_floats_mark_par_as_free ...sides_bottomskip
  \or \strc_floats_mark_as_f...
\page_sides_push_float_inline ...mark_par_as_free
  \ifcase \c_page_sides_floa...
\page_sides_place_float ...des_place_float_normal
  \fi \par \kern -\d_page_si...
...
l.6 ...left,none]{}{\externalfigure[cow][width=3cm]}


 1 \setupexternalfigures[location={local,default}]
 2
 3 \starttext
 4 \input ward
 5
 6 >>  \placefigure[left,none]{}{\externalfigure[cow][width=3cm]}
 7
 8 \input ward


I am running a freshly installed Ubuntu 19.04. Has anybody run into this issues,
is there a known workaround ?

 thanks in advance,

   Philippe


___
If your question is of interest to others as well, please add 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
___

[NTG-context] placefigure and listoffigures

2016-03-15 Thread Alan BRASLAU
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
___

[NTG-context] \placefigure[right,high] in two column mode

2015-06-11 Thread Mojca Miklavec
Hello,

Is it possible to place a figure to the right in two column mode? I
always get it centered for some reason.

\setupexternalfigures[location={local,global,default}]

\starttext

\startcolumns[two]

% doesn't work
\startplacefigure[location={nonumber,right,high}]
\externalfigure[cow][width=2cm]
\stopplacefigure
\input tufte

\stopcolumns

% works
\startplacefigure[location={nonumber,right,high}]
\externalfigure[cow][width=2cm]
\stopplacefigure
\input tufte

\stoptext

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

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

[NTG-context] \placefigure and title bug in latest beta

2014-04-06 Thread Alan Bowen
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
___

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
___


[NTG-context] \placefigure[right or left] failing in footnotes

2014-03-03 Thread Alan Bowen
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.

I am running ConTeXt  ver: 2014.02.14 17:07 MKIV beta.

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

[NTG-context] placefigure problem

2013-08-20 Thread Wim W. Wilhelm
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
Wim W. Wilhelm

___
If your question is of interest to others as well, please add 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
___


[NTG-context] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Hi all! 

This worked in MkII but doesn't in MkIV. Did something changed?

Cheers,
Tim



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




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

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


Re: [NTG-context] 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
___

[NTG-context] Placefigure without Caption-Numbering

2013-04-16 Thread 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.

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


[NTG-context] placefigure

2013-03-21 Thread Hans Hagen

Hi,

while fixing some buglets that showed up in the test suite I ran into:

\starttext

test \placefigure[somewhere:alpha][whatever]{alpha}{}
test \placefigure[somewhere:beta] [whatever]{beta}{}
test \placefigure[somewhere:gamma][whatever]{gamma}{}
test \placefigure[somewhere:delta][whatever]{delta}{}
test \placefigure{}{}

in \in{figure}[whatever] bla bla

\placenamedfloat[figure][*l*]

\placenamedfloat[figure][gamma]
\placenamedfloat[figure][beta]

\stoptext


maybe worth wikifying (bug will be solved in beta)

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

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


Re: [NTG-context] 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
___


[NTG-context] Placefigure without numbering

2013-02-01 Thread H. Özoguz

Hi there,

how to deactivate numbering for the following (empty) picture?

\placefigure[here][fig:demo]{My description under the picture.}{}

Thanks,
Huseyin

P.S.: I know that for multi-line code my email-client seems to format 
the code with many spaces, how to control that, I am using Mozilla 
Thunderbird? (I can't see the spaces, but after copying them out of the 
send email, I see the problem, too)

___
If your question is of interest to others as well, please add 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
___

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

2013-01-03 Thread Mikael P. Sundqvist
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:

\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
___
If your question is of interest to others as well, please add 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
___

[NTG-context] placefigure vs grid problem

2012-03-20 Thread Honza Hejzl
Hello,

I have found that placing figures in grid mode does problems with
[left,right...] parameters. The figure brokes the text flow. (It suffice to
turn grid=yes.)

Any solution, please?

Thanks, Honza

\enableregime[utf]
\mainlanguage[cz]

\setuppapersize[A5][A5]
\setuplayout[
*grid=yes*
]
\setupindenting[1em]
\indenting[yes]

\setupexternalfigures[]
\setupfloats[spaceafter=none]
\setupcaptions[location={bottom,left}]
\setuptolerance[tolerant]

\starttext


\chapter{{Předmluva}}

Za výstup projektu je také možno považovat i fakt, že ze studií vznikly a
byly úspěšně obhájeny dvě diplomové práce a před dokončením jsou i dvě
práce doktorské.\footnote{Jedná se o~diplomové práce K. Kukanové a M.
Wagnera (na katedře právních dějin) a doktorské dizertace J. Pleskota a T.
Jablonického (na katedeře právních dějin a na Ústavu právních dějin
Právnické fakulty UK).}

\placefigure[left]{}{\externalfigure[none][width=3.5cm]}

Problematika různých forem majetkových perzekucí a zásadních změn
v majetkových vztazích v historické retrospektivě je nejen čistě historicko
právní otázkou, ale má i řadu přesahů do platného práva, do dalších oborů a
do současných celospolečenských diskuzí. Vlastnické právo a jeho ochrana
patří k základním atributům demokratického právního státu budovaného u~nás
po roce 1989 a ochrana soukromoprávních vztahů v oblasti věcných práv je
spojena i se šířeji pojatou svobodou jednotlivce a jejím zajištění proti
zásahům státní (veřejné) moci.
 \stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \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
___

[NTG-context] \placefigure padding

2012-03-10 Thread 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?

\setupexternalfigures
  [frame=off,
   corner=rectangular,
   rulethickness=0.5pt]

\starttext
\placefigure
[right, 2*hang]
[figure:SomeFigure]
{Caption}
{\externalfigure[SomeFigure.pdf][][width=.2\textwidth]}

This is a bunch of text. This is a bunch of text. This is a bunch of
text. This is a bunch of text. This is a bunch of text. This is a bunch
of text. This is a bunch of text. This is a bunch of text. This is a
bunch of text. This is a bunch of text. This is a bunch of text. This is
a bunch of text. This is a bunch of text. This is a bunch of text. This
is a bunch of text. This is a bunch of text. This is a bunch of text.
This is a bunch of text. This is a bunch of text. This is a bunch of
text. This is a bunch of text. This is a bunch of text. This is a bunch
of text. This is a bunch of text. This is a bunch of text. This is a
bunch of text. This is a bunch of text. This is a bunch of text. This is
a bunch of text. This is a bunch of text. This is a bunch of text. This
is a bunch of text. This is a bunch of text. This is a bunch of text. 
\stoptext

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

[NTG-context] placefigure shifting up?

2012-01-11 Thread Meer, H. van der
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


[cid:003D2B08-D3E6-491B-B30A-C6A5EA7C51A3@fritz.box]
[cid:FE6C2B84-C13F-467D-A2B9-FFE45A519496@fritz.box]
inline: shifted.jpginline: 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 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
___


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

2011-02-24 Thread 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.

  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 038

t-Hang3.mkiv
Description: Binary data


t-Hang3.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 ?

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
___


[NTG-context] \placefigure setups

2009-11-01 Thread Vyatcheslav Yatskovsky

Hello,

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

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

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

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


Re: [NTG-context] \placefigure setups

2009-11-01 Thread Wolfgang Schuster


Am 01.11.2009 um 15:23 schrieb Vyatcheslav Yatskovsky:


Hello,

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

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


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

Wolfgang

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

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


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

2009-10-16 Thread Hans Hagen

Alan BRASLAU wrote:


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

\usemodule[bib]

\starttext

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

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

\placepublications[criterium=all]

\stoptext

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


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


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

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


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

2009-10-16 Thread Vyatcheslav Yatskovsky

Hello,

Thanks, Wolfgang.

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

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

OK, but where this page is?

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


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

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


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

2009-10-16 Thread Wolfgang Schuster


Am 16.10.2009 um 15:29 schrieb Vyatcheslav Yatskovsky:


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


OK, but where this page is?


http://wiki.contextgarden.net/MkIV_Differences

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


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

Wolfgang

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

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


[NTG-context] placefigure broken in mkiv?

2009-10-15 Thread Vyatcheslav Yatskovsky

Hello,

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


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

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

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

\thirdofthreearguments #1#2#3-#3

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

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

?

What it could mean?

Regards,
Vyatcheslav

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

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


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

2009-10-15 Thread Wolfgang Schuster


Am 15.10.2009 um 16:04 schrieb Vyatcheslav Yatskovsky:


Hello,

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


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


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

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


Wolfgang

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

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


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

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

This indeed is a cleaner syntax.


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

\usemodule[bib]
...
\starttext

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

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

\placepublications[criterium=all]

\stoptext

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

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

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


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

2009-07-08 Thread Jos van Gisbergen
Hello,

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

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

   d.tex -
\starttext

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

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

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

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

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

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

\stoptyping
}}
\stoptext

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


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

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


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

2009-07-08 Thread Willi Egger

Hi,

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


Willi

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


Hello,

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

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

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

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

   d.tex -
\starttext

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

rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

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

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

rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf

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

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

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

\stoptyping
}}
\stoptext

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


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


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ 
ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


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

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


Re: [NTG-context] placefigure[right] draws figures inside framed text (Willi Egger)

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

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

Regards,

Jos






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

Hi,

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

Willi

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

 Hello,

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

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


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

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


Re: [NTG-context] \placefigure not centering

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

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

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

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

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

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


[NTG-context] \placefigure not centering

2008-08-27 Thread Marcin Borkowski
Hey!

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

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

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

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

Thanks in advance

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

 _   _   _
/ \ / \ / \  OSTRE SŁOWA
\_/ \_/ \_/  OSTRA MUZYKA
/ \ / \ / \  OSTRA PŁYTA
\_/ \_/ \_/  2 Tm 2,3
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \placefigure not centering

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

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

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

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

Greets

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \placefigure not centering

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

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

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

often

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

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

Hans


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

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


[NTG-context] placefigure[hang] in columns

2007-10-01 Thread Christof Meigen


Hi,

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

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

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

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

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

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

Am I just missing something?

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

Thanks in advance for any hints,
   Christof Meigen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] placefigure[hang] in columns

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

this is not supported in column mode

Hans

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

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


Re: [NTG-context] placefigure

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

The following command often finds the right bounding box:

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

-Sanjoy

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

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


Re: [NTG-context] placefigure

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

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

Liesbeth


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

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

 The following command often finds the right bounding box:

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

 -Sanjoy

 Creativity can be a social contribution, but only in so
 far as society is free to use the results. --Richard Stallman

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

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

 ___




-- 
[EMAIL PROTECTED]
www.wiskunde-interactief.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] placefigure

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

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

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

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

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


Re: [NTG-context] placefigure

2007-07-28 Thread Sanjoy Mahajan
 I tried your command but it doesn't work on my pc.

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

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

but most versions of ghostscript should work.

-Sanjoy

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

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


Re: [NTG-context] placefigure

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

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

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

you don't need to guess.

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

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

peter

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

Re: [NTG-context] placefigure

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

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

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

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

  

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

  

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

  
 Liesbeth

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

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

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

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


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

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

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

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

Re: [NTG-context] placefigure

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


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

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



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



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

Liesbeth


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

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

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

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


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

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


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

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

 ___




-- 
[EMAIL PROTECTED]
www.wiskunde-interactief.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / 

Re: [NTG-context] placefigure

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

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

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

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

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

-Sanjoy

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

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


Re: [NTG-context] placefigure

2007-07-26 Thread Patrick Gundlach
Hello Liesbeth,

 Yesterday I sent a few files, but I got a return that the message body was
 too big.
 Here are the three most important files from yesterday's map.

epstopdf breaks with this file. If, by chance, you use Mac OS X, you
can use 'pstopdf' (the distiller from adobe). Then the pdf files have
a tight bounding box.

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

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


Re: [NTG-context] placefigure

2007-07-26 Thread Peter Rolf
Peter Rolf schrieb:
 Hi Liesbeth,
 
 There is a problem with the bounding box (bb) of the eps file. Although
 gs shows it correctly (Info), it uses the media size (default A4) as
 border for the pdf.
 
 You can change the media size by hand (set it to bb), but it's less
 error prone to use extract... or ps to eps from the file menu.

sorry, this doesn't work. it seems, that i have made my tests with an
already modified (media size) eps graphic. so the only working way i
found, is to edit the media size.

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

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


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

DEL/

 Sorry, found no way to automatize it (I can't beleave this is not possible).
 
 HTH, Peter
 
 BTW: why don't you use MetaPost?
 
 
 Liesbeth van der Plas schrieb:
 I use Windows XP.

 2007/7/26, Patrick Gundlach [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

 Hello Liesbeth,

  Yesterday I sent a few files, but I got a return that the message
 body was
  too big.
  Here are the three most important files from yesterday's map.

 epstopdf breaks with this file. If, by chance, you use Mac OS X, you
 can use 'pstopdf' (the distiller from adobe). Then the pdf files have
 a tight bounding box.

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

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




 -- 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 www.wiskunde-interactief.nl http://www.wiskunde-interactief.nl


 

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

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

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

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


Re: [NTG-context] placefigure

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

 Hallo Patrick,
 
 Yesterday I sent a few files, but I got a return that the message body was
 too big.
 Here are the three most important files from yesterday's map.
 
 Liesbeth
 
 
 
 2007/7/25, Liesbeth van der Plas [EMAIL PROTECTED]:

 Hallo Patrick,

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

 Liesbeth


 2007/7/25, Patrick Gundlach [EMAIL PROTECTED]:
 
  Hello Liesbeth,
 
  do you have a small sample eps file which gives you a problem? That
  way we might be able to help you better.
 
  Patrick
 
  ___
  If your question is of interest to others as well, please add an entry
  to the Wiki!
 
  maillist : ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
 
  ___
 



 --
 [EMAIL PROTECTED]
 www.wiskunde-interactief.nl


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

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


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

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


Re: [NTG-context] placefigure

2007-07-26 Thread Peter Rolf
Hi Liesbeth,

There is a problem with the bounding box (bb) of the eps file. Although
gs shows it correctly (Info), it uses the media size (default A4) as
border for the pdf.

You can change the media size by hand (set it to bb), but it's less
error prone to use extract... or ps to eps from the file menu.

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

Sorry, found no way to automatize it (I can't beleave this is not possible).

HTH, Peter

BTW: why don't you use MetaPost?


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

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

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


Re: [NTG-context] placefigure

2007-07-26 Thread Patrick Gundlach


 I use Windows XP.

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

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

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


Re: [NTG-context] placefigure

2007-07-26 Thread Liesbeth van der Plas

I use Windows XP.

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


Hello Liesbeth,

 Yesterday I sent a few files, but I got a return that the message body
was
 too big.
 Here are the three most important files from yesterday's map.

epstopdf breaks with this file. If, by chance, you use Mac OS X, you
can use 'pstopdf' (the distiller from adobe). Then the pdf files have
a tight bounding box.

Patrick

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

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

___





--
[EMAIL PROTECTED]
www.wiskunde-interactief.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] placefigure

2007-07-25 Thread Liesbeth van der Plas

In GhostScript: Options àEPS Clip

File à Convert à pdfwrite, Variable Page

File à Convert à pdfwrite, Fixed Page Size

File à Convert à pdfwrite, Shrink to fit Page Size


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

Liesbeth



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


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

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

Please update. tiff is long gone...

Best
  Martin

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

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

___





--
[EMAIL PROTECTED]
www.wiskunde-interactief.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] placefigure

2007-07-25 Thread Patrick Gundlach
Hello Liesbeth,

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

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

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


[NTG-context] placefigure

2007-07-24 Thread Liesbeth van der Plas

Hallo context users,



I have a basic problem on laoding vector drawings.

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







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

\starttext

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

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

\stoptext
___


--
[EMAIL PROTECTED]
www.wiskunde-interactief.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] placefigure

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


 Hallo context users,



 I have a basic problem on laoding vector drawings.

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



 



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

 \starttext

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

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

 \stoptext
 

maybe eps to pdf  epsDrawingCat ?
luigi

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

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

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


Re: [NTG-context] placefigure

2007-07-24 Thread Patrick Gundlach
Hello,


 I have a basic problem on laoding vector drawings.

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

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

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

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


Re: [NTG-context] placefigure

2007-07-24 Thread Liesbeth van der Plas

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

following the instructions of

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


Hello,


 I have a basic problem on laoding vector drawings.

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

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

Patrick

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

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

___





--
[EMAIL PROTECTED]
www.wiskunde-interactief.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


  1   2   >