summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/swfigure
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/swfigure')
-rw-r--r--macros/latex/contrib/swfigure/README.txt2
-rw-r--r--macros/latex/contrib/swfigure/swfigure-examples.pdfbin547458 -> 1903378 bytes
-rw-r--r--macros/latex/contrib/swfigure/swfigure-examples.tex13
-rw-r--r--macros/latex/contrib/swfigure/swfigure.dtx22
-rw-r--r--macros/latex/contrib/swfigure/swfigure.pdfbin1178086 -> 1178100 bytes
5 files changed, 23 insertions, 14 deletions
diff --git a/macros/latex/contrib/swfigure/README.txt b/macros/latex/contrib/swfigure/README.txt
index 5852a0aa98..dc03f25574 100644
--- a/macros/latex/contrib/swfigure/README.txt
+++ b/macros/latex/contrib/swfigure/README.txt
@@ -6,7 +6,7 @@
%%
File README.txt for package swfigure
- [2022-01-04 v.0.9.19 Managing large and spread wide figures]
+ [2022-04-24 v.0.9.20 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/macros/latex/contrib/swfigure/swfigure-examples.pdf b/macros/latex/contrib/swfigure/swfigure-examples.pdf
index be47bf44e9..89092c2a87 100644
--- a/macros/latex/contrib/swfigure/swfigure-examples.pdf
+++ b/macros/latex/contrib/swfigure/swfigure-examples.pdf
Binary files differ
diff --git a/macros/latex/contrib/swfigure/swfigure-examples.tex b/macros/latex/contrib/swfigure/swfigure-examples.tex
index ebc8d3fd7f..e0dd722ba4 100644
--- a/macros/latex/contrib/swfigure/swfigure-examples.tex
+++ b/macros/latex/contrib/swfigure/swfigure-examples.tex
@@ -1,9 +1,10 @@
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = pdflatex
\documentclass[a4paper]{book}\errorcontextlines=100
-\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}
-\usepackage{lmodern,textcomp,multicol,enumitem,mflogo,xcolor,fancyvrb}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern,multicol,enumitem,mflogo,xcolor,fancyvrb}
\usepackage{swfigure}
+\usepackage[german,italian,english]{babel}
\usepackage{hyperref}\hypersetup{pdfpagelayout=TwoColumnRight}
\providecommand*\diff{\mathop{}\!\mathrm{d}}
@@ -82,6 +83,11 @@
\date{Version \fileversion~---~ Last revised \filedate}
\maketitle
+% Uncomment one of these lines just to test the correct prefix to the
+% figure number
+%\selectlanguage{italian}
+%\selectlanguage{german}
+
\begin{abstract}
Managing large images is not that straightforward to do. Package \pack{swfigure} was initially created to handle such large figures that required a whole spread to display them; the package initial letters SW are the acronym of Spread Wide. While developing this package, other display modes were introduced, so that with a single user command it is possible to display a large image in five different modes, that are to be chosen according to the figure aspect ratio, and the page design of the document.
This package works pretty well with two side printed documents with a symmetrical page design, i.e. with the same dimension for the inner margins and, respectively, the outer margins. The documented \TeX\ file that describes the software does not have a symmetrical design, therefore this second file is necessary in order to show some examples.
@@ -330,7 +336,8 @@ them the objects in space and time. Because of our necessary ignorance
of the conditions, it must not be supposed that, then, formal logic
(and what we have alone been able to show is that this is true) is a
representation of the never-ending regress in the
-\begin{DFimage}[HS]{HSfakeimage}{A Horizontal Slim fake image}[fig:HSfake]
+%\begin{DFimage}[HS]{HSfakeimage}{A Horizontal Slim fake image}[fig:HSfake]
+\begin{DFimage}[HS]{felsen-wasser-small}{A Horizontal Slim fake image}[fig:HSfake]
series of empirical
conditions, but the discipline of pure reason, in so far as this
expounds the contradictory rules of metaphysics, depends on the
diff --git a/macros/latex/contrib/swfigure/swfigure.dtx b/macros/latex/contrib/swfigure/swfigure.dtx
index fe53b10e92..7c10e67613 100644
--- a/macros/latex/contrib/swfigure/swfigure.dtx
+++ b/macros/latex/contrib/swfigure/swfigure.dtx
@@ -43,7 +43,7 @@ files swfigure.sty and swfigure.pdf
%</driver>
%<+package>\ProvidesPackage{swfigure}%
%<*package>
- [2022-01-04 v.0.9.19 Managing large and spread wide figures]
+ [2022-04-24 v.0.9.20 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{1042}
+% \CheckSum{1046}
%
% \begin{abstract}
% This package defines a single command that with different options can
@@ -295,7 +295,9 @@ Managing large and spread wide figures}
% better to enter a shorter text in that list.
%
%\item[\meta{caption}]
-% is the caption text.
+% is the caption text. Its number prefix is adapted to the main or the
+% current language setting as it happens with any figure in standard
+% \LaTeX.
%
%\item[\meta{label}]
% this optional argument is the string that forms the \cs{label} command
@@ -437,9 +439,9 @@ Managing large and spread wide figures}
% image, besides occupying an A3 page, should have a minimum white
% margin around, so that a caption can be superimposed to the image white
% part if its original bottom margin that, upon rotation, becomes the
-% right one, is large nough. If the original image has no margins, the
-% caption is typeset ove the image, but it may be colored with contrasting
-% color compared to the average background one.
+% right one, is large enough. If the original image has no margins, the
+% caption is typeset ove the image, but it may be coloured with
+% contrasting color compared to the average background one.
%
% \item[\texttt{TH}]
% This mode is suited for tall figures that do not show well when their
@@ -462,7 +464,7 @@ Managing large and spread wide figures}
% and examines the \texttt{.log} file where he finds the explanation
% of the possibly too bad result.
% \item[\texttt{TW}]
-% A another Total Width mode is is defined such that the scaled
+% A another Total Width mode is defined such that the scaled
% image and its (side) caption occupy the upper part of the page/paper.
% The given image is scaled to occupy the internal margin plus 80\%
% of the text block width; the remaining horizontal space is provided
@@ -477,7 +479,7 @@ Managing large and spread wide figures}
% aspect ratio images, from a not so slim tall portrait image to
% a landscape image. A square image, scaled as described above,
% may occupy approximately the upper half of the page.
-% The caption is always well typedset in the adjacent free space,
+% The caption is always well typeset in the adjacent free space,
% and it is possible to slightly modify its measure by using an
% optional argument.
%\end{description}
@@ -680,14 +682,14 @@ Managing large and spread wide figures}
% \begin{macrocode}
\NewDocumentCommand\DFcaption{O{#2} m o}{\refstepcounter{figure}%
\vtop to 0pt{\hsize=\textheight\parindent=0pt\leavevmode
- Figure \thefigure\quad #2\vss}%
+ \figurename\ \thefigure\quad #2\vss}%
\addcontentsline{lof}{figure}{\protect\numberline{\thefigure}#1}
\IfValueT{#3}{\label{#3}}\relax%
}
\NewDocumentCommand\DFcaptionP{O{#2} m o D!!{\color{black}}}%
{\refstepcounter{figure}%
\vbox to 0pt{\vss\hsize=\textheight\parindent=0pt\leavevmode
- #4\relax Figure \thefigure\quad #2}%
+ #4\relax \figurename\ \thefigure\quad #2}%
\addcontentsline{lof}{figure}{\protect\numberline{\thefigure}#1}
\IfValueT{#3}{\label{#3}}\relax%
}
diff --git a/macros/latex/contrib/swfigure/swfigure.pdf b/macros/latex/contrib/swfigure/swfigure.pdf
index 85bd2b11e1..c4007ea2d2 100644
--- a/macros/latex/contrib/swfigure/swfigure.pdf
+++ b/macros/latex/contrib/swfigure/swfigure.pdf
Binary files differ