Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Makefile with SVG vector images in the template #2

Open
mxochicale opened this issue Jul 24, 2018 · 0 comments
Open

Error in Makefile with SVG vector images in the template #2

mxochicale opened this issue Jul 24, 2018 · 0 comments

Comments

@mxochicale
Copy link

Having an SVG file in the path 1_introduction as follow:

$ tree
.
├── figures
│   ├── jpg
│   │   └── largepotato.jpg
│   └── svg
│       └── largepotato.svg
└── introduction.tex

and calling the SVG file as

\begin{figure}[htb]
  \centering
  %\includegraphics[width=1\columnwidth]{jpg/largepotato}
  \includegraphics[width=1\columnwidth]{svg/largepotato}
  \caption[A common glucose polymers]{\textbf{A common glucose polymers} - The figure shows starch granules in potato cells, taken from 
  \href{http://molecularexpressions.com/micro/gallery/burgersnfries/burgersnfries4.html}{Molecular Expressions}.}
  \label{fig:largepotato}
\end{figure}

Makefile produce an error:

$ make
NOTE: You may ignore warnings about the following files:

     thesis.d

Makefile:2824: thesis.d: No such file or directory
= thesis.tex --> thesis.d thesis.pdf.1st.make (0-1) =
make: *** No rule to make target 'svg/largepotato', needed by 'thesis.d'. Stop.

and partial output of thesis.d

269 .SECONDEXPANSION:
270 # MISSING stem "svg/largepotato" - allowed extensions are ".tikz,.TIKZ,.TikZ,.pgf,.PGF,.png,.jpg,.jpeg,.pdf,.gif,.eps" - leave comment here - it affects the build
271 -include svg/largepotato.gpi.d

I am wondering if I am missing some configuration parameter in the Makefile, which indeed has the following rule:

# Converts svg files into .eps files
#
# $(call convert-svg,<svg file>,<eps/pdf file>,[gray])
convert-svg	= $(INKSCAPE) --without-gui $(if $(filter %.pdf,$2),--export-pdf,--export-eps)='$2' '$1'

Thanks for your help and time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant