Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to fix my figure in slide (latex frame) as per my wish with x,y position specification. Kindly someone help me to do it.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You could use the textpos package for absolute positioning of figures or text boxes.

Here's an example:

\documentclass[demo]{beamer}
\usepackage[absolute,overlay]{textpos}
  \setlength{\TPHorizModule}{1mm}
  \setlength{\TPVertModule}{1mm}
\begin{document}
 \begin{frame}
   \begin{textblock}{20}(40,20)
      \includegraphics{file}
    \end{textblock}
 \end{frame}
\end{document}

with the syntax \begin{textblock}{*width*}(*x-position,y-position*)

share|improve this answer
    
\begin{picture}(50,50) \put(250,0){\hbox{\includegraphics[scale=0.3]{figs/set}}} \end{picture} This works simply to locate picture... Kindly give your suggestion over this code with your code. –  Palani Kannan Oct 25 '11 at 14:11
    
@PalaniKannan: good! You could make an answer from that code in your comment. –  Stefan Kottwitz Oct 25 '11 at 14:13
    
@PalaniKannan: with textpos you could use a grid, relative positioning, and positioning on the background, For a simple single placement a picture environment is also fine. –  Stefan Kottwitz Oct 25 '11 at 14:17
add comment

As far as I remember,

\usepackage{tikz}
\usepackage{graphicx}

...

\begin{tikzpicture}[remember picture,overlay]
  \node[anchor=south west,inner sep=0pt] at ($(current page.south west)+(2cm,5cm)$) {
     \includegraphics{imgfile}
  };
\end{tikzpicture}

should place imgfile.pdf at x=2cm and y=5cm from the lower left page corner.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.