summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-04 22:28:55 +0000
committerKarl Berry <karl@freefriends.org>2022-01-04 22:28:55 +0000
commit7a4b2dbccb7935c20880c89d10fd42100bafeb24 (patch)
treefe61e0b6da26129fccbd9cd1d4956a380b3ca26d /Master/texmf-dist
parent02788973cf9eb2069962d1c6eab78288ef6f40e8 (diff)
swfigure (4jan22)
git-svn-id: svn://tug.org/texlive/trunk@61493 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/swfigure/README.txt4
-rw-r--r--Master/texmf-dist/doc/latex/swfigure/swfigure.pdfbin1150386 -> 1178086 bytes
-rw-r--r--Master/texmf-dist/source/latex/swfigure/swfigure.dtx56
-rw-r--r--Master/texmf-dist/tex/latex/swfigure/swfigure.sty7
4 files changed, 42 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/latex/swfigure/README.txt b/Master/texmf-dist/doc/latex/swfigure/README.txt
index 921fe427eb3..5852a0aa98d 100644
--- a/Master/texmf-dist/doc/latex/swfigure/README.txt
+++ b/Master/texmf-dist/doc/latex/swfigure/README.txt
@@ -1,12 +1,12 @@
%%
%% This is file `README.txt',
%%
-%% Copyright (C) 2020 Claudio Beccari all rights reserved.
+%% Copyright (C) 2020-2022 Claudio Beccari all rights reserved.
%% License information appended
%%
File README.txt for package swfigure
- [2020-12-23 v.0.9.18 Managing large and spread wide figures]
+ [2022-01-04 v.0.9.19 Managing large and spread wide figures]
This bundle contains the swfigure.dtx, swfigure-examples.tex,
and README.txt files plus eight fake figures with extension .jpg
or .pdf and a screenshot with extension .pdf.
diff --git a/Master/texmf-dist/doc/latex/swfigure/swfigure.pdf b/Master/texmf-dist/doc/latex/swfigure/swfigure.pdf
index d5195dea5e2..85bd2b11e1e 100644
--- a/Master/texmf-dist/doc/latex/swfigure/swfigure.pdf
+++ b/Master/texmf-dist/doc/latex/swfigure/swfigure.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/swfigure/swfigure.dtx b/Master/texmf-dist/source/latex/swfigure/swfigure.dtx
index 54fc18ba647..fe53b10e92e 100644
--- a/Master/texmf-dist/source/latex/swfigure/swfigure.dtx
+++ b/Master/texmf-dist/source/latex/swfigure/swfigure.dtx
@@ -7,7 +7,7 @@
\keepsilent
\preamble
- Copyright (C) 2020 Claudio Beccari all rights reserved.
+ Copyright (C) 2020-2022 Claudio Beccari all rights reserved.
License information appended
\endpreamble
@@ -43,7 +43,7 @@ files swfigure.sty and swfigure.pdf
%</driver>
%<+package>\ProvidesPackage{swfigure}%
%<*package>
- [2020-12-23 v.0.9.18 Managing large and spread wide figures]
+ [2022-01-04 v.0.9.19 Managing large and spread wide figures]
%</package>
%<*driver>
\documentclass[a4paper]{ltxdoc}\errorcontextlines=9
@@ -107,7 +107,7 @@ Managing large and spread wide figures}
%</driver>
% \fi
%
-% \CheckSum{1040}
+% \CheckSum{1042}
%
% \begin{abstract}
% This package defines a single command that with different options can
@@ -169,11 +169,13 @@ Managing large and spread wide figures}
% lines of both text blocks are aligned.
%\item
% The slim tall image is set to the side of the text block with text
-% wrapping it. Recurse is made to the |wrapfig| package, therefore the
+% wrapping it. Recurse is made either to the |wrapfig| package
+% or the newer |wrapfig2| one if the latter exists, therefore the
% software might sometimes hick-up a little bit, because of the
-% idiosyncrasies of |wrapfig| that performs very well in most but not
-% all circumstances; see that package documentation for such |wrapfig|
-% limitations. With this |wsfigure| package we limit the use of this
+% idiosyncrasies of both |wrapfig| and |wrapfig2| that perform
+% very well in most but not all circumstances; see that package
+% documentation for such |wrapfig| and |wrapfig2|
+% limitations. With one of these packages we limit the use of this
% display mode to images that have a “height over width” aspect ratio
% not lower than~2; we provide also some option arguments so as to correct
% small imperfections in the sizing of the text indention
@@ -316,7 +318,11 @@ Managing large and spread wide figures}
% little vertical space around the image and its caption; by examining
% the document draft it is possible to correct the predetermined
% number of indented lines by increasing or decreasing the vertical
-% space by any (integer) number of lines.
+% space by any (integer) number of lines. With |wrapfig2| it is
+% possible to use a final optional asterisk that changes the
+% information relative to the number of indented lines into a
+% correction of such number; its easier to count the missing or
+% the extra indented lines, that the whole number of such lines.
%
%\item[\meta{width test}] this further vertical bar-delimited argument
% is used only when dealing with vertical slim images; when they are
@@ -369,14 +375,14 @@ Managing large and spread wide figures}
% not lower than~2; but for obvious reasons, it should not be too
% large, let's say, not larger than about~3 or~4. As always this depends
% on the page design and the caption size. The limitations of the
-% underlying |wrapfig| package forbid its usage too close to
-% explicit lists and texts typeset in special modes with a different
-% measure from normal text. Again it is up to the user to chose
+% underlying |wrapfig| or |wrapfig2| packages forbid their usage too
+% close to explicit lists and texts typeset in special modes with a
+% different measure from normal text. Again it is up to the user to chose
% where to insert the |DFfigure| environment or the |\DFimage| command.
-% The |wrapfig| package documentation and our experience, show that the
-% best position is just before a new paragraph; the environment end
-% should be placed after a suitable number of full paragraphs, even
-% if not all of them are involved with wrapping.
+% The |wrapfig| or |wrapfig2| package documentation, and our experience,
+% show that the best position is just before a new paragraph; the
+% environment end should be placed after a suitable number of full
+% paragraphs, even if not all of them are involved with wrapping.
%
% If the aspect ratio of the image to include is lower than~2, the
% following message is printed in the document where the image
@@ -517,6 +523,8 @@ Managing large and spread wide figures}
%\bibitem{bib:lscape} D.P. Carlisle, \emph{The \texttt{lscape} package}. Version 3.02 released on 2020-05-28. PDF document readable with \texttt{texdoc lscape}.
%\bibitem{bib:afterpage} D.P. Carlisle, \emph{The \texttt{afterpage} package}. Version 1.08 released on 2014-10-28. PDF document readable with \texttt{texdoc afterpage}.
%\bibitem{bib:wrapfig} D. Arseneau, \emph{The \texttt{wrapfig} package}. Version 3.6 released on 2003-01-31.
+%\bibitem{bib:wrapfig2} C. Beccari, \emph{The \texttt{wrapfig2} package}.
+% Versione 4.0.4 released on 2022-01-04.
%\bibitem{bib:memman} P. Wilson, \emph{The Memoir Class for Configurable Typesetting} ---User guide. Version 3.7m released 2020-09-10. PDF document readable with \texttt{texdoc memman}.
%\end{thebibliography}
%
@@ -577,13 +585,20 @@ Managing large and spread wide figures}
% to be executed if the test is true or false; the test is true if
% \meta{string} is listed into the \meta{named list}.
%
-% Packages |graphicx|, |afterpage|, and |wrapfig| are functional
-% for this package. In order to avoid “Option Clash” error messages,
-% such packages are loaded without any option; should the user load
-% some or all of them with options, the user should load them
+% Packages |graphicx|, |afterpage|, and |wrapfig| or |wrapfig2| are
+% functional for this package. In order to avoid “Option Clash” error
+% messages, such packages are loaded without any option; should the user
+% load some or all of them with options, the user should load them
% \emph{before} loading this package. This particular documentation
% does not require the |graphicx| package, because it is already
% loaded by |swfigure|.
+% Notice that |wrapfig2|, is loaded only if the \TeX\ system
+% installation is sufficiently recent; if the package si not part
+% of the installation the older |wrapfig| gets loaded. Moreover
+% if |wrapfig| is implicitly loaded by other packages, such as
+% |caption| or |subcaption|, that redefine some |wrapfig| internals,
+% the newer package |wrapfig2| aborts its own loading, because those
+% redefined internals are incompatible with it.
% \begin{macrocode}
\RequirePackage{etoolbox}
\RequirePackage{xfp}
@@ -606,7 +621,8 @@ Managing large and spread wide figures}
\RequirePackage{graphicx}
\RequirePackage{afterpage}
-\RequirePackage{wrapfig}
+\IfFileExists{wrapfig2.sty}{%
+ \RequirePackage{wrapfig2}}{\RequirePackage{wrapfig}}
% \end{macrocode}
% We define some dimension and some counter registers; to some dimensions
diff --git a/Master/texmf-dist/tex/latex/swfigure/swfigure.sty b/Master/texmf-dist/tex/latex/swfigure/swfigure.sty
index f63332322e5..e0fda2484b8 100644
--- a/Master/texmf-dist/tex/latex/swfigure/swfigure.sty
+++ b/Master/texmf-dist/tex/latex/swfigure/swfigure.sty
@@ -6,12 +6,12 @@
%%
%% swfigure.dtx (with options: `package')
%%
-%% Copyright (C) 2020 Claudio Beccari all rights reserved.
+%% Copyright (C) 2020-2022 Claudio Beccari all rights reserved.
%% License information appended
%%
\NeedsTeXFormat{LaTeX2e}[2020/01/01]
\ProvidesPackage{swfigure}%
- [2020-12-23 v.0.9.18 Managing large and spread wide figures]
+ [2022-01-04 v.0.9.19 Managing large and spread wide figures]
\RequirePackage{etoolbox}
\RequirePackage{xfp}
@@ -33,7 +33,8 @@
\RequirePackage{graphicx}
\RequirePackage{afterpage}
-\RequirePackage{wrapfig}
+\IfFileExists{wrapfig2.sty}{%
+ \RequirePackage{wrapfig2}}{\RequirePackage{wrapfig}}
\newdimen\internalmargin
\internalmargin=\dimexpr\oddsidemargin+1in+1bp\relax