Graphics, Figures & TablesAutomatic Cropping of EPS Images

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
taddam
Posts: 4
Joined: Sun Sep 30, 2012 9:34 pm

Automatic Cropping of EPS Images

Post by taddam »

Hello,

I have a problem concerning including EPS graphics on a poster (baposter, A0 paper). The EPS were create in ChemDraw and exported, while including them they are being cropped. Any ideas what to do?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Automatic Cropping of EPS Images

Post by cgnieder »

Hi taddam,

Welcome to the LaTeX community!

Would you mind describe in more detail what you're doing and how you're including the EPS into your document, which documentclass you're using etc? Preferably provide a Infominimal working example (if you do not know what that is please follow the link) that shows the undesired behavior.

Regards
site moderator & package author
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Automatic Cropping of EPS Images

Post by CrazyHorse »

taddam wrote:I have a problem concerning including EPS graphics on a poster (baposter, A0 paper). The EPS were create in ChemDraw and exported, while including them they are being cropped. Any ideas what to do?
try

Code: Select all

epstool --bbox --copy <input> <output>
the program is available for all platforms. However, you can crop your image also inside LaTeX:

Code: Select all

\includegraphics[trim=x0 y0 x1 y1,clip]{image}
then it is cropped by the given four values.
taddam
Posts: 4
Joined: Sun Sep 30, 2012 9:34 pm

Automatic Cropping of EPS Images

Post by taddam »

It seems that the a0paper is the problem for other paper sizes it works perfectlly.
That's why i decided to go as close as I can to ao size

Code: Select all

\documentclass[portrait,paperwidth=820mm,paperheight=1100mm,fontscale=0.300]{baposter}

\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{chemstyle}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{multirow}
\usepackage[utf8]{inputenc}
\usepackage{multicol}

Code: Select all

    \begin{scheme}[H]
      \schemeref[TMP1]{cmpd:benzylchloride}
      \schemeref[TMP2]{cmpd:propargylalcohol}
      \schemeref[TMP3]{cmpd:propargyloxybenzylether}
      \includegraphics[scale=0.35]{schemes/eps/synth_propargyloxybenzylether.eps}
      \caption{Synthesis of p-propargyloxybenzaldehyde.}
      \label{sch:sch11}
  \end{scheme}
Post Reply