Enrico Forestieri wrote:
Declan O'Byrne <[EMAIL PROTECTED]> writes:
Thanks. for this. I think your instructions apply to lyx. But I'm
attempting to do the same thing in kile.
I suppose if I knew how to define the position according to
coordinates, I'd be better off. I just want the pictures to "grow"
from the bottom right hand side of the slide.
What are the coordinates of a slide? How are they defined?
What is, for example, the bottom left?
The bottom right?
The top left?
The top right?
The centre?
I should be able to work from there.
Unless there's an easier way to do it. I see that latex speaks about
"center," but it won't let me choose "right".
Here is a trick I use to position a figure.
Put the following in the preamble:
\newcommand{\putat}[3]{\begin{picture}(0,0)(0,0)\put(#1,#2){#3}\end{picture}}
and then in the text:
\putat{130}{-100}{\includegraphics{...}}
In LyX it would be:
\putat{130}{-100}{ <- in ERT
<graphics inset>
} <- in ERT
The horizontal (first parameter) and vertical (second parameter)
displacements are in terms of \unitlength (default is 1pt) and are
relative to the position where the \putat command appears.
Note that when \putat is defined as done above, the figure
(or whatever) does not take space in LaTeX.
Hope this helps.
--
Enrico
You can also do this with the textpos package. In the preamble of the
beamer file, add \usepackage[absolute,overlay]{textpos}. In the slide
where the graphic should go:
\begin{textblock*}{50mm}[1,1](118mm,86mm)
\includegraphics...
\end{textblock*}
The width 50mm should be changed to the estimated width of the graphic.
The option [1,1] says that the position specified is for the bottom
right corner of the block. The coordinates (118mm,86mm) are based on
the default 1cm margins on a 128mm x 96mm beamer slide.
This approach suffers from exactly the same problem as the \putat
approach: the image occupies no space, so text on the page will
overprint it.
An alternative is to create a 2x2 table with no borders, merge the two
columns in the first row, and give the merged first row and the left
column of the second row fixed widths (so that text in them will wrap,
and multiple lines are allowed). Put the graphic in the lower right
cell. This introduces some extra vertical space between lines in the
first row of the table and lines in the second row, left column, plus it
requires you to manually juggle lines to balance the two rows. Not very
satisfactory, but at least the graphic will not be overprinted.
/Paul