mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 11 forks source link

Package Warning after Update #18

Closed Goreak closed 4 years ago

Goreak commented 4 years ago

I updated MikTex today. Now I get the warning for every \ includesvg instruction:

Package scrbase Warning: Usage of deprecated command \ ifstr '. (scrbase) The command has been renamed because of a (scrbase) recommendation of The LaTeX Project Team. (scrbase) Please replace\ ifstr 'by` \ Ifstr' on input line xx.

Is there any way to fix this error?

I'm using TeXnicCenter with Komascript scrbook.

komascript commented 4 years ago

I would suggest to add something like the

\providecommand*\Ifstr{\ifstr}

to svg.sty after loading scrbase as recommnended on https://komascript.de/faq_deprecatedif and then use \Ifstr inside svg.sty. With this svg would be compatible with old and new KOMA-Script releases.

Goreak commented 4 years ago

Unfortunately, that doesn't really work. I don't use the scrbase package at all. The message comes with every svg graphic that I include in my script. The instructions do not change the amount of warnings either.

komascript commented 4 years ago

@Goreak My comment was not a suggestion to you as user of svg.sty but to mrpiggi as package author. And he would have to abstract the suggestion to other \if…/\If… from scrbase, i.e., \ifnumber/\Ifnumber, \ifisdimension/\Ifisdimension, in svg.sty.

I've added a fix for the issue. However, there seem to be other issues in source/svg.dtx that break making the manual. And one more issue in the test file using \ifpdftex. I could fix those too, but currently I've out of time.

mrpiggi commented 4 years ago

Thanks to @komascript. As the current develop branch is meant for version v2.03 I am going to prepare a hotfix release until the end of this week. Please be patient.