diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-24 20:39:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-24 20:39:43 +0000 |
commit | b020be45a1707a13bbd46e48edc392e60d96dcb8 (patch) | |
tree | d9df42f55b465184defd8d64fa472583dca60491 /Master/texmf-dist/tex/latex/picinpar | |
parent | 357637f662b6d1e080a92685dc01102ba935157b (diff) |
picinpar (24nov22)
git-svn-id: svn://tug.org/texlive/trunk@65097 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/picinpar')
-rw-r--r-- | Master/texmf-dist/tex/latex/picinpar/picinpar.sty | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/picinpar/picinpar.sty b/Master/texmf-dist/tex/latex/picinpar/picinpar.sty index 47e1688420b..3314d0aedfe 100644 --- a/Master/texmf-dist/tex/latex/picinpar/picinpar.sty +++ b/Master/texmf-dist/tex/latex/picinpar/picinpar.sty @@ -1,6 +1,6 @@ \typeout{% -Pictures in Paragraphs. Version 1.2a, July 13, 1993} -% This is picinpar.sty version 1.2a as of july 13, 1993 +Pictures in Paragraphs. Version 1.3, November 22, 2022} +% This is picinpar.sty version 1.3 as of November 22, 2022 % Macros for making windows with LaTeX % % By Friedhelm Sowa, Heinrich-Heine-University D\"usseldorf, @@ -51,7 +51,11 @@ Pictures in Paragraphs. Version 1.2a, July 13, 1993} % Reported by Stephan Seidl, seidl@rcs.urz.tu-dresden.de % +% 1.3 An option to insert the picture/table without a caption (Argument #4 in \figwindow[.., #4] or \tabwindow[.., #4] is empty. +% see https://tex.stackexchange.com/questions/656810/using-if-with-an-empty-argument % +% +% Changed by Stefan Blochwitz, stefan.blochwitz@bundesbank.de % % Here we go % @@ -108,7 +112,7 @@ Pictures in Paragraphs. Version 1.2a, July 13, 1993} % #2 is l, r or c what means left, right or centered % default is, that the picture is printed at the left side % #3 is the material for setting a graphic box -% #4 is the explanation for the graphic +% #4 is the explanation for the graphic (if empty, then no caption) \vskip\parskip\everypar{} \global\cumpar=0pt \global\cumpartcl=0 @@ -122,6 +126,7 @@ Pictures in Paragraphs. Version 1.2a, July 13, 1993} \pictoc={#3} \setbox\windowbox=\vbox{\hbox{#3}} \setbox\wbox=\vbox{\hbox{\noindent#4}} +%\setbox\wbox=\vbox{\hbox{\noindent#4}} \picwd=\wd\windowbox \hpic=\picwd \vpic=\ht\windowbox\advance\vpic\dp\windowbox @@ -522,13 +527,16 @@ to\rtside{\box\bslice\hfil}} \long\def\figwindow[#1,#2,#3,#4] {% \advance\c@figure -1 - \begin{window}[#1,#2,{#3},{\def\@captype{figure}% - \wincaption#4\par}] } + \begin{window}[#1,#2,{#3},\if\relax\detokenize{#4}\relax {} \else {\def\@captype{figure}% + \wincaption#4\par}\fi] + } + \long\def\tabwindow[#1,#2,#3,#4] {% \advance\c@table -1 - \begin{window}[#1,#2,{#3},{\def\@captype{table}% - \wincaption#4\par}] } + \begin{window}[#1,#2,{#3},\if\relax\detokenize{#4}\relax {} \else {\def\@captype{table}% + \wincaption#4\par}\fi] + } \def\endfigwindow{\end{window}} \def\endtabwindow{\end{window}} |