Skip to content

Commit

Permalink
Merge branch 'release/v2.02b'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpiggi committed Nov 12, 2018
2 parents 7a60fcc + d7dfb74 commit 26dd5bb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Copyright (C) Philip Ilten <philten@cern.ch>, 2012-2016
Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2017-

svg 2018/10/17 v2.02a
svg 2018/11/12 v2.02b

----------------------------------------------------------------------------

Expand Down Expand Up @@ -34,8 +34,11 @@ it is rendered within the LaTeX document using either ***ImageMagick*** or
Versions
--------

**v2.02b** (2018/11/12)
+ fix bug for package **tikzscale** which changes `includgraphics` globally

**v2.02a** (2018/10/17)
+ fix bug of package **polyglossia** which fakes **babel** poorly
+ fix bug for package **polyglossia** which fakes **babel** poorly

**v2.02** (2018/09/08)
+ distortion of included and extracted graphics supported with options `distort`
Expand Down
28 changes: 18 additions & 10 deletions source/svg.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ svg-extract -- Extract independent graphic files from SVG pictures
%<package&option&base>\ProvidesPackage{svg}[%
%<package&option&extract>\ProvidesPackage{svg-extract}[%
%<*driver|package&option>
2018/10/17 v2.02a\space%
2018/11/12 v2.02b\space%
%<package&option&base> (include SVG pictures)%
%<package&option&extract> (extract independent graphics from SVG pictures)%
]
Expand Down Expand Up @@ -251,7 +251,11 @@ svg-extract -- Extract independent graphic files from SVG pictures
% as well as rotation for extractions (\opt{extractangle})
% }^^A
% \changes{v2.02a}{2018/10/17}{%
% fix bug of package \pkg{polyglossia} which fakes \pkg{babel} poorly%
% fix bug for package \pkg{polyglossia} which fakes \pkg{babel} poorly%
% }^^A
% \changes{v2.02b}{2018/11/12}{%
% fix bug for package \pkg{tikzscale} which changes \cs{includegraphics}
% globally%
% }^^A
% \ToDo{Workaround for missing \cs{transparent} (Lua\TeX lacks support)}[v2.03]
%
Expand Down Expand Up @@ -3220,26 +3224,34 @@ svg-extract -- Extract independent graphic files from SVG pictures
% \subsection{Patches}
%
% \begin{macro}{\svg@patches}
% \changes{v2.02b}{2018/11/12}{%
% fix bug for package \pkg{tikzscale}: store original definitions of
% \cs{picture} and \cs{includegraphics} right after loading package \pkg{svg}
% }^^A
% \begin{macro}{\svg@picture@saved}
% \begin{macro}{\svg@includegraphics@saved}
% For including the export results from \app{Inkscape} with \LaTeX~support
% enabled, there are some patches necessary for environment \env{picture} and
% \cs{includegraphics}. Those patches are done with \cs{svg@patches}.
% \begin{macrocode}
\newcommand*\svg@picture@saved{}
\let\svg@picture@saved\picture
\newcommand*\svg@includegraphics@saved{}
\let\svg@includegraphics@saved\includegraphics
\newcommand*\svg@patches[1]{%
\let\svg@picture@saved\picture%
\let\picture\svg@picture@patched%
\let\svg@includegraphics@saved\includegraphics%
\let\includegraphics\svg@includegraphics@patched%
\edef\svg@includegraphics@file{#1}%
}
% \end{macrocode}
% \end{macro}^^A \svg@includegraphics@saved
% \end{macro}^^A \svg@picture@saved
% \end{macro}^^A \svg@patches
% \begin{macro}{\svg@picture@saved}
% \begin{macro}{\svg@pictur@patched}
% In order to provide the possibility specify the desired width of a graphic,
% the appropriate \cs{unitlength} is calculated at the beginning of the
% \env{picture}~environment.
% \begin{macrocode}
\newcommand*\svg@picture@saved{}
\newcommand*\svg@picture@patched{}
\newcommand*\svg@pictur@patched{}
\long\def\svg@picture@patched#1{\svg@pictur@patched@#1}
Expand Down Expand Up @@ -3279,8 +3291,6 @@ svg-extract -- Extract independent graphic files from SVG pictures
}
% \end{macrocode}
% \end{macro}^^A \svg@pictur@patched
% \end{macro}^^A \svg@picture@saved
% \begin{macro}{\svg@includegraphics@saved}
% \begin{macro}{\svg@includegraphics@patched}
% \begin{macro}{\svg@includegraphics@file}
% The patch to \cs{includegraphics} is meant to dissolve the \app{Inkscape} bug
Expand All @@ -3297,7 +3307,6 @@ svg-extract -- Extract independent graphic files from SVG pictures
\FamilyCounterKey{SVGpatch}{page}{svg@param@currpage}
\DefineFamilyKey{SVGpatch}{width}{\FamilyKeyStateProcessed}
\newcommand*\svg@includegraphics@file{}
\newcommand*\svg@includegraphics@saved{}
\newcommand*\svg@includegraphics@patched[2][]{%
\FamilyOptions{SVGpatch}{#1}%
% \end{macrocode}
Expand Down Expand Up @@ -3326,7 +3335,6 @@ svg-extract -- Extract independent graphic files from SVG pictures
% \end{macrocode}
% \end{macro}^^A \svg@includegraphics@file
% \end{macro}^^A \svg@includegraphics@patched
% \end{macro}^^A \svg@includegraphics@saved
%
% \iffalse
%</body>
Expand Down

0 comments on commit 26dd5bb

Please sign in to comment.