views:

1458

answers:

3

Hi,

I'm using the LaTeX-Beamer class for making presentations. Every once in a while I need to include screenshots. Those graphics are pixel-based, of course. I use includegraphics like this:

\begin{figure}
   \includegraphics[width= \paperwidth]{img/analyzer.png}
\end{figure}

or usually something like this:

\begin{figure}
   \includegraphics[width= 0.8\linewidth]{img/analyzer.png}
\end{figure}

This leads to pretty bad readibility of the contained text, so I'm asking for your best practices: How would you include screenshots containing text considering, that I will do the output PDF with pdflatex?

EDIT: I suppose I'm looking for something like an 1:1 presetation of the image within beamer. However, [scale = 1.0] doesn't achieve what I'm looking for.

+1  A: 

Have you tried to convert the image to .eps or .pdf file and use this file in LaTeX?

Maybe try also latex, dvips and ps2pdf.

Problem might be in used viewer, in Linux I use Document viewer or ePDFViewer and output is much worse than in Adobe Reader or Acrobat, which I use in Windows...

Crowley
I tried to convert it, however I think it's a scaling issue...
rdoubleui
But the viewer seems to be an issue, looks a lot better in Acrobat Reader on Windows.
rdoubleui
+2  A: 

I have done exactly what you do and e.g defined

\newcommand{\screenshot}[1]{\centerline{%
    \includegraphics[height=7.8cm,transparent]{#1}}}  % 7.8in

which worked with whatever style I was using at the time. The files included with this macro were all PNGs created with one the usual Linux screen capture tools.

Edit: You may have to play with the size (height and width) of your input files. It came out rather nice for me (and this was from a presentation in 2006).

Dirk Eddelbuettel
What does `transparent` parameter do?
Crowley
+3  A: 
Alok
makes sense, but how do I determine, what the size has to be for the 1:1 ratio? If I try images around 800x600 and just pass them in, I only get to see a scaled version, which only shows the upper left corner of the image..
rdoubleui
The only solution I can see is to put something like: `\message{width = \the\textwidth}` in your document, and see what the current text width, `w`, is (it should be in points, which is `1/72.27` inches). Then, if your PDF is `n` dpi in resolution, you need `w*n/72.27` pixels wide image.
Alok