clip
format in normal documents with \includegraphics
environment to get rid of the extra white space around a figure.However, it does not work while using the beamer class. Could be there a way out?
clip
format in normal documents with \includegraphics
environment to get rid of the extra white space around a figure.Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass{beamer}
\begin{document}
\begin{frame}{Clip image}
\centering
\includegraphics[trim=2cm 2cm 2cm 2cm,clip=true,width=5cm]{figure1}
\end{frame}
\end{document}
Code: Select all
\documentclass[xcolor=svgnames,10pt]{beamer}
\usetheme{classic}
\usepackage{graphicx}
\begin{document}
\frame{
\frametitle{Sample Title}
\begin{tabular}{l l}
%
\begin{minipage}{0.5\textwidth}
\begin{figure}
\includegraphics[height=5cm,trim=.5cm .5cm .5cm .5cm,clip]{Fig1.png}
\end{figure}
\end{minipage}
%
\begin{minipage}{0.5\textwidth}
\begin{figure}
\includegraphics[height=5cm,trim=.5cm .5cm .5cm .5cm,clip]{Fig2.png}
\end{figure}
\end{minipage}
\end{tabular}
}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis