0

I am getting problems while updating the eps files. Can anyone help me how to use this package. I used inkscape software to draw the image and saved it in .eps format. Then i used epstopdf package in my latex script then using includegraphics i gave the file name, but i am not getting proper output, and there is no error message also. Can anyone help how to use this command. Is that i have to use some more packages? or is that there is any other way to save eps files from inkscape? Please help...

Minimal example:

\documentclass[a4paper,12pt,oldfontcommands]{scrartcl}

\usepackage{siunitx} % to recognise the written description of si-units and   make the acronym. 
\sisetup{%
inter-unit-product=\ensuremath{{}\cdot{}},
per-mode=symbol
 }

\usepackage{nomencl} 

 \usepackage[titletoc]{appendix}
 \usepackage{import}
  \usepackage{gensymb} 
  \usepackage{textcomp}

  % ********* Font definition *************
  \usepackage{t1enc} % as usual
  \usepackage[latin1,utf8]{inputenc} % as usual
   \usepackage{times}
   \usepackage{epstopdf}
   \usepackage{nameref}

  %********For high quality figure (e.g: Matlab figures in latex )**********
  %\usepackage{tikz} 
  \usepackage{tikz-cd}
  \usepackage{pgfplots}
  \usepackage{epstopdf} % converts .eps image files to .pdf on the fly
  %\usepackage{xelatex} % converts all the image formats to .pdf on the fly
\DeclareGraphicsExtensions{.eps}
 \usetikzlibrary{intersections}
 \usetikzlibrary{decorations.pathreplacing}
 \usetikzlibrary{arrows.meta}
 \usetikzlibrary{arrows,positioning,shapes.geometric}
  %\usepackage{tikzpicture}
 \usepackage{supertabular}
 \usepackage{longtable}
 \usepackage{multirow}
  \usepackage{footnote}
 \usetikzlibrary{decorations.markings}
 \usetikzlibrary{patterns}
 %\usepackage{ucs}
 %\usepackage{subfigure}
 %\usepackage{subfiles}




 \begin{document}


 \begin{figure}[!h]
 \begin{center}
 \includegraphics[width=6cm]{thick}
 \caption{Thick walled pipe}\label{fig:Thick walled pipe}
  \end{center}
  \end{figure}

\end{document}

output of the image :

enter image description here

  • Please add a MWE to your question. This makes it easier to understand and answer. – Benjamin Nov 22 '16 at 12:41
  • @Benjamin i have added a minimal working problem. – prasadak.kle Nov 22 '16 at 12:59
  • The example is not really minimal. Try removing everything above \begin{document}, except for the \documentclass, and compile with pdflatex (which automatically uses epstopdf). Does the problem persist? If it is solved, then add the lines back one by one to see if the problem returns. – Marijn Nov 22 '16 at 13:17
  • probably not relevant: you have \usepackage{epstopdf} twice. the image looks very like what would be expected with a draft option active, but i don't see where that has been indicated. – barbara beeton Nov 22 '16 at 13:36
  • 1
    If I remove the two \usepackage{epstopdf} lines (not needed in recent versions of pdftex!---file.eps gets converted to file-eps-converted-to.pdf and that is automatically included) and also the \DeclareGraphicsExtensions{.eps} line everything just works for me. – Herb Schulz Nov 22 '16 at 14:17
0

It seems as if tikz-cd loads a graphic package with the draft option if none is loaded. To have the correct output you have to load the graphicx package before epstopdf.

A (more) minimal working example is:

% !TEX TS-program = pdflatex
\documentclass[a4paper,12pt]{scrartcl}

\usepackage{graphicx}
\usepackage{epstopdf}

\usepackage{tikz-cd}

\DeclareGraphicsExtensions{.eps}

\begin{document}

\includegraphics[width=6cm]{thick}

\end{document}

You will notice that if you comment out \usepackage{graphicx} and \usepackage{tikz-cd} compiling results in several errors and no graphic is shown.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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