Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

beamer includegraphics with screenshots

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.

like image 373
rdoubleui Avatar asked Jan 07 '10 22:01

rdoubleui


People also ask

How is Beamer different from other LaTeX documents?

However, and this is the main point where beamer differs from other LaTeX documents, the position specifiers have no effect in beamer presentations. They are ignored, and the image is simply placed in the same position as in the source code. In the following example, we show how to use the figure environment to insert images:

How do I insert a picture in a beamer document?

1. How do I insert a picture in Beamer? In beamer, figures are inserted essentially in the same way as in any other LaTeX document, with very small differences. In LaTeX, we use the graphicx package to insert images (although in beamer we will not have to import it explicitly, since beamer does it for us), which provides the command:

What do you use latex-Beamer for?

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.


2 Answers

How about scaling it as follows:

\includegraphics[scale=0.5]{images/myimage.jpg}

This works for me.

like image 84
CEGRD Avatar answered Sep 19 '22 14:09

CEGRD


Your best bet is to scale the image outside of Latex for inclusion, and include it in 1:1 ratio. The scaling done by graphics packages in Latex isn't going to be anywhere near as good as possible from other tools. Latex (Tex) has limited floating-point arithmetic capabilities, whereas an external tool can use sophisticated algorithms to get the scaling better.

Another option is to use only a part of the screenshot, the one you want to concentrate on.

Edit: If you can change the font size before taking the screenshot, that's another option—just increase the font size for the screenshots.

Of course, you can combine the two methods.

like image 42
Alok Singhal Avatar answered Sep 19 '22 14:09

Alok Singhal