summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-03 21:20:39 +0000
committerKarl Berry <karl@freefriends.org>2023-01-03 21:20:39 +0000
commit71556c69a46cf0b2fd7bb5504e59e67626746686 (patch)
treebd667809e721f6b391c75f0ceda6b61a9628e3d9 /Master/texmf-dist/tex/latex
parentc9eff6346e304c221ef22dc9f6c7b4aca4116a6f (diff)
xput (3jan23)
git-svn-id: svn://tug.org/texlive/trunk@65456 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/xput/xput.cls15
1 files changed, 7 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/xput/xput.cls b/Master/texmf-dist/tex/latex/xput/xput.cls
index 6da33ee25de..a7fdd1c2bf7 100644
--- a/Master/texmf-dist/tex/latex/xput/xput.cls
+++ b/Master/texmf-dist/tex/latex/xput/xput.cls
@@ -13,8 +13,8 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesClass{xput}[2022/12/19 declarative desktop publishing]
-\def\Xputversion{1.0.1}
+\ProvidesClass{xput}[2023/01/02 declarative desktop publishing]
+\def\Xputversion{1.0.2}
% packages
\RequirePackage{pgfopts}
@@ -3596,9 +3596,8 @@
\def\xput@err@noimportdir{errornoimportdir}
\def\xput@err@magicknotinstalled{errormagicknotinstalled}
\def\xput@err@inkscapenotinstalled{errorinkscapenotinstalled}
-\def\preventunrestrictedshellexecution{";-)" \%}
\newcommand\xput@getppi[1]{
- \immediate\openin\xput@scriptresult={|xputserver \preventunrestrictedshellexecution getwidth\% "#1"}
+ \immediate\openin\xput@scriptresult={|xputserver getwidth\% "#1"}
\ifeof\xput@scriptresult
\xput@errmsg@shellaccessforbidden{Ppi not calculated}
\else
@@ -3621,7 +3620,7 @@
\immediate\closein\xput@scriptresult
}
\newcommand\xput@optimizegraphic[2]{
- \immediate\openin\xput@scriptresult={|xputserver \preventunrestrictedshellexecution optimize\% "#1#2" \% "\xput@filename" \%\xput@optimizedext\%\the\numexpr\xput@originalgraphicwidth\%\the\numexpr\xput@originalgraphicheight\%\the\numexpr\xput@cropleft\%\the\numexpr\xput@cropright\%\the\numexpr\xput@croptop\%\the\numexpr\xput@cropbottom\%\the\numexpr\xput@density\%\the\numexpr\width\%\the\numexpr\height\%\xput@downsamplethreshold\%\xput@graphicoptionunsharp\%\xput@quality}
+ \immediate\openin\xput@scriptresult={|xputserver optimize\% "#1#2" \% "\xput@filename" \%\xput@optimizedext\%\the\numexpr\xput@originalgraphicwidth\%\the\numexpr\xput@originalgraphicheight\%\the\numexpr\xput@cropleft\%\the\numexpr\xput@cropright\%\the\numexpr\xput@croptop\%\the\numexpr\xput@cropbottom\%\the\numexpr\xput@density\%\the\numexpr\width\%\the\numexpr\height\%\xput@downsamplethreshold\%\xput@graphicoptionunsharp\%\xput@quality}
\ifeof\xput@scriptresult
\xput@errmsg@shellaccessforbidden{File not optimized}
\else
@@ -3639,7 +3638,7 @@
\immediate\closein\xput@scriptresult
}
\newcommand\xput@makeshadow[1]{
- \immediate\openin\xput@scriptresult={|xputserver \preventunrestrictedshellexecution makeshadow\%#1\%\xput@defaultshadowsize\%\xput@defaultshadowopacity\%\xput@defaultshadowcolor\%\the\xput@frameshadowwidth\%\the\xput@frameshadowheight\%\the\xput@frameshadowframewidth\%\the\xput@frameshadowframeheight\%\the\xput@frameshadowborder\%\the\xput@frameshadowradius}
+ \immediate\openin\xput@scriptresult={|xputserver makeshadow\%#1\%\xput@defaultshadowsize\%\xput@defaultshadowopacity\%\xput@defaultshadowcolor\%\the\xput@frameshadowwidth\%\the\xput@frameshadowheight\%\the\xput@frameshadowframewidth\%\the\xput@frameshadowframeheight\%\the\xput@frameshadowborder\%\the\xput@frameshadowradius}
\ifeof\xput@scriptresult
\edef\xput@processresult{\xput@err@shellaccessforbidden}
\xput@errmsg@shellaccessforbidden{Shadow not created}
@@ -3659,7 +3658,7 @@
\immediate\closein\xput@scriptresult
}
\def\xput@start{
- \immediate\openin\xput@scriptresult={|xputserver \preventunrestrictedshellexecution start\ifxput@import\%import\% "\ifdefined\Ginput@path\Ginput@path\fi" \fi\ifxput@isturbomode\%turbo\% "\jobname" \fi}
+ \immediate\openin\xput@scriptresult={|xputserver start\ifxput@import\%import\% "\ifdefined\Ginput@path\Ginput@path\fi" \fi\ifxput@isturbomode\%turbo\% "\jobname" \fi}
\ifeof\xput@scriptresult
\ifxput@import
\xput@errmsg@shellaccessforbidden{Import not working}
@@ -3689,7 +3688,7 @@
\global\edef\xput@batchlist{\xput@batchlist\% "#1#2" \% "\xput@filename" \%\xput@optimizedext\%\the\numexpr\xput@originalgraphicwidth\%\the\numexpr\xput@originalgraphicheight\%\the\numexpr\xput@cropleft\%\the\numexpr\xput@cropright\%\the\numexpr\xput@croptop\%\the\numexpr\xput@cropbottom\%\the\numexpr\xput@density\%\the\numexpr\width\%\the\numexpr\height\%\xput@downsamplethreshold\%\xput@graphicoptionunsharp\%\xput@quality}
}
\newcommand\xput@batchoptimize{
- \immediate\openin\xput@scriptresult={|xputserver \preventunrestrictedshellexecution batchoptimize\xput@batchlist}
+ \immediate\openin\xput@scriptresult={|xputserver batchoptimize\xput@batchlist}
\ifeof\xput@scriptresult
\else
\endlinechar=-1