ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Figures (images) at a special position
@ 2007-01-22 10:00 Claudia Lanzl
  2007-01-22 12:47 ` Peter Rolf
  2007-01-22 13:56 ` luigi scarso
  0 siblings, 2 replies; 9+ messages in thread
From: Claudia Lanzl @ 2007-01-22 10:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

Hello,

I have a question on (absolute) positionning of figures/images.
I try to position my images in that way shown in the layout in this 
attachment (hope I can post images this way?).

I try to do it with the following lines:

\useexternalfigure[pic01][pic01]     \useexternalfigure[pic02][pic02]
   \useexternalfigure[pic03][pic03]
   \useexternalfigure[pic04][pic04]
   \useexternalfigure[pic05][pic05]
          \placefigure[left][]{none}
       {
       \startcombination[2*3] %\startcombination[2*2]
              %the following 3 lines don´t work!
       %probably I can not use \placeexternalfigure in the 
\startcombination !???

           {\placeexternalfigure[left]
               {Caption}
               {\externalfigure[pic01.jpg]}}

           {\externalfigure[pic02.jpg]}{}
           {\externalfigure[pic03.jpg]}{Caption}
           {\externalfigure[pic04.jpg]}{}
           {\externalfigure[pic05.jpg]}{}
       \stopcombination
       }

So if I position the images with {\externalfigure[pic0001.jpg]}{} and so 
on, I don´t get the layout I want to have.
I found floating objects, can I use these to position the pictures in 
the way I want to?

ANY COMMENT IS USEFUL!

Thank you very much!

[-- Attachment #2: layoutSW.jpg --]
[-- Type: image/jpeg, Size: 15713 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 10:00 Figures (images) at a special position Claudia Lanzl
@ 2007-01-22 12:47 ` Peter Rolf
  2007-01-22 16:44   ` Claudia Lanzl
  2007-01-22 13:56 ` luigi scarso
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2007-01-22 12:47 UTC (permalink / raw)


Hi Claudia,

Claudia Lanzl wrote:
> Hello,
> 
> I have a question on (absolute) positionning of figures/images.
> I try to position my images in that way shown in the layout in this
> attachment (hope I can post images this way?).
> 
> I try to do it with the following lines:
> 
> \useexternalfigure[pic01][pic01]     \useexternalfigure[pic02][pic02]
>   \useexternalfigure[pic03][pic03]
>   \useexternalfigure[pic04][pic04]
>   \useexternalfigure[pic05][pic05]

This is obsolete, as long as the file name and the label are the same
and you don't want to change the picture at definition time
(scaling,...). I did the same some time ago.

>          \placefigure[left][]{none}
>       {
>       \startcombination[2*3] %\startcombination[2*2]
>              %the following 3 lines don´t work!
>       %probably I can not use \placeexternalfigure in the
> \startcombination !???
> 
>           {\placeexternalfigure[left]
>               {Caption}
>               {\externalfigure[pic01.jpg]}}
> 
>           {\externalfigure[pic02.jpg]}{}
>           {\externalfigure[pic03.jpg]}{Caption}

I have only used start|stopcombinations with equal sized pictures so
far. Don't know if you can get the desired layout with only one combination.


Anyhow you can combine pic02 and pic03

{\vbox{\externalfigure[pic02.jpg][scale=1000]
  \blank[whatever is needed]
  \externalfigure[pic03.jpg][scale=1000]}} {Caption}

and use two [2*1] combinations.

Just a fast example with \framed instead of \externalfigure

% - - - - - - - -
\setupoutput[pdftex]

\starttext

\def\Double{\vbox{\framed[width=0.3\textwidth,height=.14\textheight]{}
  \blank[.02\textheight]
  \framed[width=0.3\textwidth,height=.14\textheight]{}}}

\startcombination[2*1]
{\framed[width=0.6\textwidth,height=.3\textheight]{}}{1}
{{\Double}}{2 and 3}
\stopcombination

\blank

\startcombination[2*1]
{\framed[width=0.45\textwidth,height=.2\textheight]{}}{4}
{\framed[width=0.45\textwidth,height=.2\textheight]{}}{5}
\stopcombination

\stoptext


I hope this works for you. Happy fiddling with the picture dimensions
and the space inbetween.


Greetings, Peter

>           {\externalfigure[pic04.jpg]}{}
>           {\externalfigure[pic05.jpg]}{}
>       \stopcombination
>       }
> 
> So if I position the images with {\externalfigure[pic0001.jpg]}{} and so
> on, I don´t get the layout I want to have.
> I found floating objects, can I use these to position the pictures in
> the way I want to?

yes, if you mean the whole combination (else no).

> 
> ANY COMMENT IS USEFUL!
>
> Thank you very much!
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 10:00 Figures (images) at a special position Claudia Lanzl
  2007-01-22 12:47 ` Peter Rolf
@ 2007-01-22 13:56 ` luigi scarso
  2007-01-22 16:00   ` Peter Rolf
  1 sibling, 1 reply; 9+ messages in thread
From: luigi scarso @ 2007-01-22 13:56 UTC (permalink / raw)


My 2 cents:
Why not use a table ?

luigi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 13:56 ` luigi scarso
@ 2007-01-22 16:00   ` Peter Rolf
  2007-01-22 16:52     ` Claudia Lanzl
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2007-01-22 16:00 UTC (permalink / raw)


luigi scarso wrote:
> My 2 cents:
> Why not use a table ?
>
maybe also an option, but how will you set the different widths for
pic01 and pic04 (2,3 and 5) in the same column? i know that you can span
columns, but can you set the width of every column at row level? i must
say, that i haven't tried that yet.

greetings, peter

> luigi
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 12:47 ` Peter Rolf
@ 2007-01-22 16:44   ` Claudia Lanzl
  0 siblings, 0 replies; 9+ messages in thread
From: Claudia Lanzl @ 2007-01-22 16:44 UTC (permalink / raw)


Hi Peter,

your simple but great idea works fantastically!
Thank you very much!

>Anyhow you can combine pic02 and pic03
>
>{\vbox{\externalfigure[pic02.jpg][scale=1000]
>  \blank[whatever is needed]
>  \externalfigure[pic03.jpg][scale=1000]}} {Caption}
>
>and use two [2*1] combinations.
>
>Just a fast example with \framed instead of \externalfigure
>
>% - - - - - - - -
>\setupoutput[pdftex]
>
>\starttext
>
>\def\Double{\vbox{\framed[width=0.3\textwidth,height=.14\textheight]{}
>  \blank[.02\textheight]
>  \framed[width=0.3\textwidth,height=.14\textheight]{}}}
>
>\startcombination[2*1]
>{\framed[width=0.6\textwidth,height=.3\textheight]{}}{1}
>{{\Double}}{2 and 3}
>\stopcombination
>
>\blank
>
>\startcombination[2*1]
>{\framed[width=0.45\textwidth,height=.2\textheight]{}}{4}
>{\framed[width=0.45\textwidth,height=.2\textheight]{}}{5}
>\stopcombination
>
>\stoptext
>  
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 16:00   ` Peter Rolf
@ 2007-01-22 16:52     ` Claudia Lanzl
  2007-01-22 19:42       ` Peter Rolf
  0 siblings, 1 reply; 9+ messages in thread
From: Claudia Lanzl @ 2007-01-22 16:52 UTC (permalink / raw)


Hi Peter, hi Luigi,

didn´t think of tables and I don´t know much about it,
but maybe a combination of your ideas?
Two tables (the first for picture 1, 2 and 3) and a second one
for picture 4 and 5?

Greetings,
Claudia


Peter Rolf wrote:

>luigi scarso wrote:
>  
>
>>My 2 cents:
>>Why not use a table ?
>>
>>    
>>
>maybe also an option, but how will you set the different widths for
>pic01 and pic04 (2,3 and 5) in the same column? i know that you can span
>columns, but can you set the width of every column at row level? i must
>say, that i haven't tried that yet.
>
>greetings, peter
>
>  
>
>>luigi
>>    
>>
>
>  
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 16:52     ` Claudia Lanzl
@ 2007-01-22 19:42       ` Peter Rolf
  2007-01-22 22:26         ` luigi scarso
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2007-01-22 19:42 UTC (permalink / raw)


Claudia Lanzl wrote:
> Hi Peter, hi Luigi,
> 
> didn´t think of tables and I don´t know much about it,
> but maybe a combination of your ideas?
> Two tables (the first for picture 1, 2 and 3) and a second one
> for picture 4 and 5?
>

i don't think that using two tables brings you any advantage (especially
the second one would be only overhead). instead you can use a table with
tree columns (is this what you ment, luigi?)

the idea is to add a column every time a picture ends in a new tab
position. simply draw long vertical lines at every right picture border
in your example layout and you can see the columns.

the 1st column has the width of pic04
the 2nd column has the width of (pic01-pic04)
the 3rd column has the width of pic02

pic01 spans the first two columns.
pic02 and pic03 are in the third column.
pic04 is in the first column.
pic05 spans the second and third column.

pic01 has also vertical spanning (first two rows).
feel free to try it (i think TABLE is good for this).

see

http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs

for the details or better: ask luigi ;)


greetings, peter

> Greetings,
> Claudia
> 
> 
> Peter Rolf wrote:
> 
>> luigi scarso wrote:
>>  
>>
>>> My 2 cents:
>>> Why not use a table ?
>>>
>>>    
>>>
>> maybe also an option, but how will you set the different widths for
>> pic01 and pic04 (2,3 and 5) in the same column? i know that you can span
>> columns, but can you set the width of every column at row level? i must
>> say, that i haven't tried that yet.
>>
>> greetings, peter
>>
>>  
>>
>>> luigi
>>>    
>>>
>>  
>>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 19:42       ` Peter Rolf
@ 2007-01-22 22:26         ` luigi scarso
  2007-01-23  4:32           ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: luigi scarso @ 2007-01-22 22:26 UTC (permalink / raw)


On 1/22/07, Peter Rolf <indiego@gmx.net> wrote:
> Claudia Lanzl wrote:
> > Hi Peter, hi Luigi,
> >
> > didn´t think of tables and I don´t know much about it,
> > but maybe a combination of your ideas?
> > Two tables (the first for picture 1, 2 and 3) and a second one
> > for picture 4 and 5?
> >
>
> i don't think that using two tables brings you any advantage (especially
> the second one would be only overhead). instead you can use a table with
> tree columns (is this what you ment, luigi?)
~Yes.
The first time i saw it i thought something like this
width(pic02) = 2*U
width(pic03) = 2*U
width(pic05) = 3*U
width(pic04) = 3*U
width(pic01) = 4*U
plus some rows for labels and maybe some 0.2*U for columns for separations.

> http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs
and core-ntb.tex
or texmfstart texexec --pdf --modu core-ntb

luigi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Figures (images) at a special position
  2007-01-22 22:26         ` luigi scarso
@ 2007-01-23  4:32           ` Aditya Mahajan
  0 siblings, 0 replies; 9+ messages in thread
From: Aditya Mahajan @ 2007-01-23  4:32 UTC (permalink / raw)


On Mon, 22 Jan 2007, luigi scarso wrote:

> On 1/22/07, Peter Rolf <indiego@gmx.net> wrote:
>> Claudia Lanzl wrote:
>>> Hi Peter, hi Luigi,
>>>
>>> didn´t think of tables and I don´t know much about it,
>>> but maybe a combination of your ideas?
>>> Two tables (the first for picture 1, 2 and 3) and a second one
>>> for picture 4 and 5?
>>>
>>
>> i don't think that using two tables brings you any advantage (especially
>> the second one would be only overhead). instead you can use a table with
>> tree columns (is this what you ment, luigi?)
> ~Yes.
> The first time i saw it i thought something like this
> width(pic02) = 2*U
> width(pic03) = 2*U
> width(pic05) = 3*U
> width(pic04) = 3*U
> width(pic01) = 4*U
> plus some rows for labels and maybe some 0.2*U for columns for separations.
>
>> http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs
> and core-ntb.tex
> or texmfstart texexec --pdf --modu core-ntb

Actually

texmfstart texexec --module kpse:core-ntb.tex

which will work from any directory.

Aditya

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-01-23  4:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-22 10:00 Figures (images) at a special position Claudia Lanzl
2007-01-22 12:47 ` Peter Rolf
2007-01-22 16:44   ` Claudia Lanzl
2007-01-22 13:56 ` luigi scarso
2007-01-22 16:00   ` Peter Rolf
2007-01-22 16:52     ` Claudia Lanzl
2007-01-22 19:42       ` Peter Rolf
2007-01-22 22:26         ` luigi scarso
2007-01-23  4:32           ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).