Figures (images) at a special position
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!
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
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
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
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
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
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
On 1/22/07, Peter Rolf
http://wiki.contextgarden.net/TABLE#Designing_complex_TABLEs and core-ntb.tex or texmfstart texexec --pdf --modu core-ntb
luigi
On Mon, 22 Jan 2007, luigi scarso 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
On 1/22/07, Peter Rolf
wrote: 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
participants (4)
-
Aditya Mahajan
-
Claudia Lanzl
-
luigi scarso
-
Peter Rolf