Comments (6)
Maybe, choosing inkscapearea=drawing
would be a solution for you? Just see the difference between the outputs of the following example:
\begin{filecontents}[noheader]{foo-example.svg}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<text>Package svg: \LaTeX</text>
</g>
</svg>
\end{filecontents}
\documentclass[aspectratio=169]{beamer}
\usepackage{svg}
\svgsetup{inkscape=force,inkscapelatex=true}
\svgsetup{inkscapearea=page}
%\svgsetup{inkscapearea=drawing}
\begin{document}
\begin{frame}{Point process}
\begin{figure}
\centering
\fbox{\includesvg{foo-example}}
\caption{foo}
\end{figure}
\end{frame}
\end{document}
issue45_page.pdf
issue45_drawing.pdf
from svg.
Thanks for your help.
I managed to solve the problem by passing the flag inkscapelatex=true
like in your example. It had nothing to do with the inkscapearea
option.
With that being said, it would be useful if with the inkscapelatex=false
option we obtained the same result as with using the generated pdf image.
from svg.
Well, there is a huge difference between inkscapelatex=true
and inkscapelatex=false
how the graphic export is done by Inkscape and the result is output by package svg
. I would need the origin SVG file in order to do some investigations.
from svg.
Here is the file.
Thanks for taking the time to investigate this issue. It would be useful to know the main difference between inkscapelatex=true
and inkscapelatex=false
. I was mainly using this option to toggle between using LaTex fonts or Inkscape.
from svg.
It would be useful to know the main difference between
inkscapelatex=true
andinkscapelatex=false
. I was mainly using this option to toggle between using LaTex fonts or Inkscape.
That's exactly the purpose of this option. But if LaTeX support is enabled, the export done by Inkscape differs as all text snippets are exported to an additional *.pdf_tex
file, which has to be processed by package svg
in a different manner.
Concerning your provided file, I do not have any problems to use it with beamer
and get the expected result with this example and compiling via LuaLaTeX:
\documentclass[aspectratio=169]{beamer}
\usepackage{svg}
\begin{document}
\begin{frame}{Point process}
\begin{figure}
\centering
\includesvg{chart}
\caption{foo}
\end{figure}
\end{frame}
\end{document}
from svg.
Thanks! I can confirm I go the same results as you.
from svg.
Related Issues (20)
- Including some files from matplotlib fails, commandline works HOT 2
- Importing SVG doesn't work on Windows when the filename contains German special characters
- No helpful error message when inkscape conversion fails HOT 5
- Rendering twice removes the output HOT 1
- Bug color/colour of text not correct HOT 2
- Inkscape conversion command deprecated for Inkscape 1.2.2 (2022-12-09) HOT 5
- SVG extracted using `svg-extract` looks different from the original SVG HOT 4
- `svg` package takes the bounding box of the original SVG as opposed to the bounding box resulting from the text conversion HOT 2
- Exporting selected layers HOT 3
- Including two files by the same name results in duplication of the first file HOT 1
- Call inkscape --shell with batches of files for faster processing HOT 4
- Handling for package `svg-extract` only options is flawed when used with package `svg` instead
- TeXstudio autocomplete is not supported by svg package HOT 6
- add support for opt-in ImageMagick instead of Inkscape HOT 4
- Compilation fails for specific images
- Text Reference Displays Section Number Instead of Figure Number with \ref HOT 1
- svg-extract incompatibility with filecontents HOT 1
- includesvg incompatible with setkeys{Gin} HOT 16
- Enhanced support for pandoc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg.