Giter VIP home page Giter VIP logo

Comments (7)

LeeJZh avatar LeeJZh commented on May 23, 2024 33

I made a mistake. Sovled

from svg.

LinqLover avatar LinqLover commented on May 23, 2024 7

@LeeJZh It would be a good manner to tell us what went wrong, at least in a couple of words. I'm just having the same problem, how did you solve it?

from svg.

mrpiggi avatar mrpiggi commented on May 23, 2024 1
  1. RTFM
  2. Make the inkscape executable known to your OS by adding its path to PATH variable.
  3. Run (pdf|lua|xe)latex with -shell-escape flag

Edit: enhanced answer

from svg.

LinqLover avatar LinqLover commented on May 23, 2024 1

Alright, my misunderstanding was that the svg package would work stand-alone such as \includegraphics does. I did not want to additionally install inkscape for this purpose, so I simply converted my svg online into an eps.

from svg.

mrpiggi avatar mrpiggi commented on May 23, 2024 1

Well, it's actually the other way around. This package is meant to automate the facilities of exporting LaTeX material with Inkscape. This is mentioned in the description of this repository as well as in README.md and the package documentation.

Maybe a different name for this bundle would be more reasonable, but it was already established when I took over maintenance.

from svg.

mrpiggi avatar mrpiggi commented on May 23, 2024

I can not replicate your issue. This works as expected:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{svg}
\usepackage{relsize}
\begin{document}

\begin{figure}
\centering
\includesvg[width=.5\textwidth, pretex=\relscale{0.6}]
{C:/texlive/2018/texmf-dist/doc/latex/svg/svg-example}
\end{figure}
\end{document}

Did you run pdflatex with --shell-escape option? Is Inkscape installed and registered to your PATH variable?

from svg.

mrpiggi avatar mrpiggi commented on May 23, 2024

@LeeJZh It would be a good manner to tell us what went wrong, at least in a couple of words...

...as well as giving feedback on whether a proposed solution worked or not. :/

from svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.