summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/optex/base/graphics.opm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-04-27 13:34:03 +0000
committerKarl Berry <karl@freefriends.org>2021-04-27 13:34:03 +0000
commit60b6bdc7cad5409422b39769269b516354b23025 (patch)
tree84a4ddd0f2d61f7821785df292a2ac38f86676b9 /Master/texmf-dist/tex/optex/base/graphics.opm
parent59f44df29bcc61c07c569ff2a8fe6fae91cf1d73 (diff)
optex (26apr21)
git-svn-id: svn://tug.org/texlive/trunk@59000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/graphics.opm')
-rw-r--r--Master/texmf-dist/tex/optex/base/graphics.opm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/optex/base/graphics.opm b/Master/texmf-dist/tex/optex/base/graphics.opm
index afff1c12843..1adb444b4ed 100644
--- a/Master/texmf-dist/tex/optex/base/graphics.opm
+++ b/Master/texmf-dist/tex/optex/base/graphics.opm
@@ -1,6 +1,6 @@
%% This is part of the OpTeX project, see http://petr.olsak.net/optex
-\_codedecl \inspic {Graphics <2020-04-12>} % preloaded in format
+\_codedecl \inspic {Graphics <2021-03-19>} % preloaded in format
\_doc -----------------------------
\`\inspic` accepts old syntax `\inspic <filename><space>`
@@ -40,13 +40,14 @@
\_def\_inkinspicA #1 {\_inkinspicB {#1}}
\_def\_inkinspicB #1{%
\_ifdim\_picwidth=0pt \_setbox0=\_hbox{\_inspic{#1}}\_picwidth=\_wd0 \_fi
+ \_tmptoks={#1}%
\_the\_inkdefs
\_opinput {\_the\_picdir #1_tex}% file with labels
\_egroup}
\_newtoks\_inkdefs \_inkdefs={%
\_def\makeatletter#1\makeatother{}%
- \_def\includegraphics[#1]#2{\_inkscanpage#1,page=,\_end \_inspic{#2}\_hss}%
+ \_def\includegraphics[#1]#2{\_inkscanpage#1,page=,\_end \_inspic{\_the\_tmptoks}\_hss}%
\_def\_inkscanpage#1page=#2,#3\_end{\_ifx,#2,\_else\_def\_picparams{page#2}\_fi}%
\_def\put(#1,#2)#3{\_nointerlineskip\_vbox to\_zo{\_vss\_hbox to\_zo{\_kern#1\_picwidth
\_pdfsave\_hbox to\_zo{#3}\_pdfrestore\_hss}\_kern#2\_picwidth}}%
@@ -440,6 +441,7 @@ the \^`\transformbox{<transformation>}{\copy\mypic}`.
\_endinput
+2021-03-19: \inkinspic: pictures in subdirectories, bug fixed
2020-12-21: \puttext: \box0 in goup, bugfix
2020-04-12: \_public \clipinoval \clipincircle ; added, bug fixed