From dc71274f16f7ff65145e034900f582b62453a033 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 14 Oct 2017 11:43:11 +0900 Subject: rename and update ketpic -> ketcindy --- .../ketcindy/ketlib/ketpicscifiles6/Closefile.sci | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 texmf-dist/scripts/ketcindy/ketlib/ketpicscifiles6/Closefile.sci (limited to 'texmf-dist/scripts/ketcindy/ketlib/ketpicscifiles6/Closefile.sci') diff --git a/texmf-dist/scripts/ketcindy/ketlib/ketpicscifiles6/Closefile.sci b/texmf-dist/scripts/ketcindy/ketlib/ketpicscifiles6/Closefile.sci new file mode 100644 index 00000000..f2928103 --- /dev/null +++ b/texmf-dist/scripts/ketcindy/ketlib/ketpicscifiles6/Closefile.sci @@ -0,0 +1,24 @@ +// +// 13.05.19 openfile error tackled +// 13.11.01 Endpicture joined optionally +// 13.11.05 debugged + +function Closefile(varargin) + global Wfile FID; + if length(varargin)>=1 then + Pa=varargin(1); + if type(Pa)==10 then + if Pa=="1" then // 2013.11.05 + Endpicture(1) + end; + if Pa=="0" then + Endpicture(0) + end // + end + end + if Wfile~='default' then + mclose(FID); + FID=[]; // 2013.05.19 + end + Wfile='default'; +endfunction -- cgit v1.2.3