Graphics, Figures & Tables ⇒ SVG with transparency in Latex
-
- Posts: 5
- Joined: Fri Jan 08, 2010 7:46 pm
SVG with transparency in Latex
I have an svg graphic that I would like to include in my latex doc. It has a transparent background, and I have converted it to png to include in the latex file and the edges of the image are pixelated. I opened it up in inkscape and tried to export to eps, but the edges were still pixelated. Does anyone have any ideas? Inkscape has an export to latex with pstricks, but I can't seem to figure out how to actually bring that into my latex doc.
Thank you everyone
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
Re: SVG with transparency in Latex
-
- Posts: 5
- Joined: Fri Jan 08, 2010 7:46 pm
SVG with transparency in Latex
Code: Select all
\documentclass{article}
\usepackage{calc}
\usepackage{framed}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\usepackage{lipsum}
\renewenvironment{shaded}{%
\def\FrameCommand{\colorbox{blue!20}}%
\MakeFramed {\FrameRestore}}%
{\endMakeFramed}
\newlength\mylena
\newlength\mylenb
\setlength\mylena{1.5cm}
\setlength\mylenb{.9\textwidth - \mylena}
\newenvironment{myenv}
{\begin{shaded}%
\begin{minipage}[c][1cm][c]{\mylena}
\includegraphics{dialog-information}
\end{minipage}%
\begin{minipage}[t]{\mylenb}}
{\end{minipage}\end{shaded}}
\begin{document}
\lipsum[1]
\begin{myenv}
Some short text.
\end{myenv}
\lipsum[1]
\begin{myenv}
\lipsum[1]
\end{myenv}
\lipsum[1]
\end{document}
thank you everyone
- Attachments
-
- test.pdf
- The output of the code
- (14.82 KiB) Downloaded 400 times
-
- images.zip
- The eps and png image
- (14.2 KiB) Downloaded 253 times
Re: SVG with transparency in Latex
Notice that the very first occurrence of info-sign in attached file is PNG file, while all others are PDF file(s).
- Attachments
-
- test.pdf
- (59.85 KiB) Downloaded 350 times
-
- Posts: 5
- Joined: Fri Jan 08, 2010 7:46 pm
Re: SVG with transparency in Latex
thanks,
- Attachments
-
- images2.zip
- (5.65 KiB) Downloaded 298 times
Re: SVG with transparency in Latex
