summaryrefslogtreecommitdiff
path: root/graphics/pgf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-01 03:01:47 +0000
committerNorbert Preining <norbert@preining.info>2022-11-01 03:01:47 +0000
commit7ad25021e74ea26e33d705fbb402d29aabaf6314 (patch)
tree56c2d0c14fba2ebe57cb45ad1a2eff04f901378d /graphics/pgf
parentc7892fe1a11367872de6f3ee0fa074b39824e59c (diff)
CTAN sync 202211010301
Diffstat (limited to 'graphics/pgf')
-rw-r--r--graphics/pgf/contrib/tikz-ext/README.md1
-rw-r--r--graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-scalepicture.tex113
-rw-r--r--graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-body.tex9
-rw-r--r--graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-preamble.tex1
-rw-r--r--graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.pdfbin574442 -> 424759 bytes
-rw-r--r--graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.tex4
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgfcalendar-ext.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgfcalendar-ext.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgfkeyslibraryext.pgfkeys-plus.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgfkeyslibraryext.pgfkeys-plus.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.pgfkeys-plus.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.pgfkeys-plus.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.circlearrow.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.circlearrow.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.circlecrosssplit.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.circlecrosssplit.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.heatmark.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.heatmark.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.rectangleroundedcorners.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.rectangleroundedcorners.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.superellipse.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.superellipse.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.uncenteredrectangle.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.uncenteredrectangle.code.tex)4
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.transformations.mirror.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.transformations.mirror.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.calendar-plus.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.calendar-plus.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.misc.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.misc.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.node-families.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.node-families.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.node-families.shapes.geometric.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.node-families.shapes.geometric.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.arcto.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.arcto.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.ortho.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.ortho.code.tex)5
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.timer.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.timer.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.patterns.images.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.patterns.images.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.positioning-plus.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.positioning-plus.code.tex)2
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.scalepicture.code.tex194
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.topaths.arcthrough.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.topaths.arcthrough.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.transformations.mirror.code.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.transformations.mirror.code.tex)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/latex/pgfcalendar-ext.sty (renamed from graphics/pgf/contrib/tikz-ext/tex/latex/tikz-ext/pgfcalendar-ext.sty)0
-rw-r--r--graphics/pgf/contrib/tikz-ext/tex/plain/pgfcalendar-ext.tex (renamed from graphics/pgf/contrib/tikz-ext/tex/plain/tikz-ext/pgfcalendar-ext.tex)2
30 files changed, 325 insertions, 10 deletions
diff --git a/graphics/pgf/contrib/tikz-ext/README.md b/graphics/pgf/contrib/tikz-ext/README.md
index 76ea094357..33ec46d366 100644
--- a/graphics/pgf/contrib/tikz-ext/README.md
+++ b/graphics/pgf/contrib/tikz-ext/README.md
@@ -31,7 +31,6 @@ These are
* `ext.shapes.heatmark`
* `ext.shapes.rectangleroundedcorners`
* `ext.shapes.superellipse`
- * `ext.shapes.uncenteredrectangle`
These were developed in response to questions on tex.stackexchange.com.
Some of these can be find by searching for my [user id](https://tex.stackexchange.com/search?q=user%3A16595+%22my+library%22). \ No newline at end of file
diff --git a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-scalepicture.tex b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-scalepicture.tex
new file mode 100644
index 0000000000..b14c4c4f0f
--- /dev/null
+++ b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-scalepicture.tex
@@ -0,0 +1,113 @@
+% !TeX spellcheck = en_US
+% !TeX root = tikz-ext-manual.tex
+% Copyright 2022 by Qrrbrbirlbel
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Free Documentation License.
+%
+\clearpage
+\section{Scaling Pictures to a Specific Size}
+\label{library:scalepicture}
+
+\begin{tikzlibrary}{ext.scalepicture}
+ This library scales \tikzname\ pictures to a specific width or height
+ by scaling the whole picture.
+\end{tikzlibrary}
+
+\begin{multicols}{2}
+If one of the keys below are used on a \tikzname\ picture, i.\,e.
+as an option to |\tikzpicture| or \texttt{\textbackslash begin\{tikzpicture\}}
+the size of the picture\footnote{This is the size of the pseudo-node \texttt{current bounding box}.}
+will be measured and written to the \filetype{aux} file
+so that it will be available at the next compilation run
+and an appropriate scaling for the picture can be installed.
+
+\begin{command}{\tikzextpicturewidth}
+ Returns the last measured width of the picture.
+
+ This will expand to |0pt| if the picture hasn't been measured before.
+\end{command}
+\begin{command}{\tikzextpictureheight}
+ Returns the last measured height of the picture.
+
+ This will expand to |0pt| if the picture hasn't been measured before.
+\end{command}
+
+\begin{stylekey}{/tikz/save picture size}
+ This key is usually used by the keys provided by this library.
+ Normally, this is not needed to be explicitly given.
+\end{stylekey}
+\subsection{Keeping the aspect ratio}
+The following \emph{unstarred} keys do not change the aspect ratio of the picture.
+
+\begin{key}{/tikz/picture width=\meta{dimension}}
+ Scales the picture so that the width of the picture will be \meta{dimension}.
+ This will keep the aspect ratio the same.
+\end{key}
+
+\begin{key}{/tikz/minimum picture width=\meta{dimension}}
+ As above but will not change the size of the picture
+ if its width is greater than \meta{dimension}.
+\end{key}
+
+\begin{key}{/tikz/maximum picture width=\meta{dimension}}
+ As above but will not change the size of the picture
+ if its width is less than \meta{dimension}.
+\end{key}
+
+\begin{key}{/tikz/picture height=\meta{dimension}}
+ Scales the picture so that the height of the picture will be \meta{dimension}.
+ This will keep the aspect ratio the same.
+\end{key}
+
+\begin{key}{/tikz/minimum picture height=\meta{dimension}}
+ As above but will not change the size of the picture
+ if its height is greater than \meta{dimension}.
+\end{key}
+
+\begin{key}{/tikz/maximum picture height=\meta{dimension}}
+ As above but will not change the size of the picture
+ if its height is less than \meta{dimension}.
+\end{key}
+
+\begin{key}{/tikz/minimum picture size=\marg{width}\marg{height}}
+ Scales the picture so that its height will be at least \meta{width}
+ and its height will be at least \meta{height}.
+\end{key}
+
+\begin{key}{/tikz/maximum picture size=\marg{width}\marg{height}}
+ Scales the picture so that its height will be at most \meta{width}
+ and its height will be at most \meta{height}.
+\end{key}
+
+\subsection{Changing the aspect ratio.}
+The following \emph{starred} keys do change the aspect ratio.
+\begin{key}{/tikz/picture width*=\meta{dimension}}
+ Scales the picture so that the width of the picture will be \meta{dimension}.
+ This will only scale the $x$ axis.
+\end{key}
+
+\begin{key}{/tikz/minimum picture width*=\meta{dimension}}
+ As above but will not change the size of the picture
+ if its width is greater than \meta{dimension}.
+\end{key}
+
+\begin{key}{/tikz/maximum picture width*=\meta{dimension}}
+ As above but will not change the size of the picture
+ if its width is less than \meta{dimension}.
+\end{key}
+
+\begin{key}{/tikz/picture height*=\meta{dimension}}
+ Scales the picture so that the height of the picture will be \meta{dimension}.
+ This will only scale the $y$ axis.
+\end{key}
+
+\begin{key}{/tikz/picture size*=\marg{width}\marg{height}}
+ Scales the picture so that its width will be \meta{width}
+ and its height will be \meta{height}.
+
+ This will scale both axes but independent from each other.
+\end{key}
+\end{multicols} \ No newline at end of file
diff --git a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-body.tex b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-body.tex
index 41e56c390e..bf6620a2be 100644
--- a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-body.tex
+++ b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-body.tex
@@ -8,7 +8,7 @@
% 2. under the GNU Free Documentation License.
%
\newcommand*\tikzextname{Ti\textit kZ-Extensions}
-\newcommand*\tikzextversion{0.4.1}
+\newcommand*\tikzextversion{0.4.2}
\begin{document}
{\colorlet{blue}{black}% links shall be black
\title{\bfseries The \tikzextname\space Package\\
@@ -71,6 +71,8 @@ These libraries only work with \tikzname.
\tikzsetfigurename{patterns.images} \include{tikz-ext-manual-en-library-patterns.images}
\tikzsetfigurename{positioning-plus}
\include{tikz-ext-manual-en-library-positioning-plus}
+\tikzsetfigurename{scalepicture}
+\include{tikz-ext-manual-en-library-scalepicture}
\tikzsetfigurename{topaths.arcthrough}
\include{tikz-ext-manual-en-library-topaths.arcthrough}
\tikzsetfigurename{trans}
@@ -170,6 +172,11 @@ These libraries (should) work with both \pgfname\space and \tikzname.
\section*{Changelog}\addcontentsline{toc}{section}{Changelog}
\begin{multicols}{2}\raggedright
\noindent
+Version 0.4.2
+\begin{itemize}
+\item \addTikz{scalepicture}
+\item Bugfixes to |shapes.uncenteredrectangle|, |paths.ortho|, |positioning-plus| and |pgfcalender-ext|.
+\end{itemize}
Version 0.4.1
\begin{itemize}
\item Cleaned up directory structure of documentary.
diff --git a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-preamble.tex b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-preamble.tex
index 2ba6defa10..682b83b435 100644
--- a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-preamble.tex
+++ b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-main-preamble.tex
@@ -115,6 +115,7 @@
ext.paths.timer,
ext.patterns.images,
ext.positioning-plus,
+ ext.scalepicture,
ext.shapes.heatmark,
ext.shapes.circlearrow,
ext.shapes.circlecrosssplit,
diff --git a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.pdf b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.pdf
index 51ba04c7d1..855ee19374 100644
--- a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.pdf
+++ b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.pdf
Binary files differ
diff --git a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.tex b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.tex
index 253944ca7d..3070585487 100644
--- a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.tex
+++ b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual.tex
@@ -19,8 +19,8 @@
%mode=list and make,
%mode=list only,export=true,% simply skips EVERY picture -> good for debugging the text.
]
- \tikzexternalenable
-% \tikzexternaldisable
+% \tikzexternalenable
+ \tikzexternaldisable
\tikzifexternalizing{
\pgfkeys{/pdflinks/codeexample links=false}
}{}
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgfcalendar-ext.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgfcalendar-ext.code.tex
index fae3508e15..fae3508e15 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgfcalendar-ext.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgfcalendar-ext.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgfkeyslibraryext.pgfkeys-plus.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgfkeyslibraryext.pgfkeys-plus.code.tex
index 49aedb64c6..49aedb64c6 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgfkeyslibraryext.pgfkeys-plus.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgfkeyslibraryext.pgfkeys-plus.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.pgfkeys-plus.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.pgfkeys-plus.code.tex
index 6101ca8cad..6101ca8cad 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.pgfkeys-plus.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.pgfkeys-plus.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.circlearrow.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.circlearrow.code.tex
index 9eb1c6ab09..9eb1c6ab09 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.circlearrow.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.circlearrow.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.circlecrosssplit.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.circlecrosssplit.code.tex
index 7bc2761fb4..7bc2761fb4 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.circlecrosssplit.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.circlecrosssplit.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.heatmark.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.heatmark.code.tex
index 477d0442da..477d0442da 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.heatmark.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.heatmark.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.rectangleroundedcorners.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.rectangleroundedcorners.code.tex
index 37baf7abbf..37baf7abbf 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.rectangleroundedcorners.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.rectangleroundedcorners.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.superellipse.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.superellipse.code.tex
index 9a89b5a8a6..9a89b5a8a6 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.superellipse.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.superellipse.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.uncenteredrectangle.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.uncenteredrectangle.code.tex
index 630a22da14..182ebbbcb7 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.shapes.uncenteredrectangle.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.shapes.uncenteredrectangle.code.tex
@@ -6,8 +6,8 @@
% 2. under the GNU Free Documentation License.
%
\pgfutil@IfUndefined{pgfnodepartthreebox}{%
- \newbox\pgfnodepartleftbox
- \newbox\pgfnodepartrightbox
+ \csname newbox\endcsname\pgfnodepartleftbox
+ \csname newbox\endcsname\pgfnodepartrightbox
}{%
\let\pgfnodepartleftbox\pgfnodeparttwobox
\let\pgfnodepartrightbox\pgfnodepartthreebox
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.transformations.mirror.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.transformations.mirror.code.tex
index 4d962ccb1c..4d962ccb1c 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/pgflibraryext.transformations.mirror.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/pgflibraryext.transformations.mirror.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.calendar-plus.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.calendar-plus.code.tex
index 195ecf9414..195ecf9414 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.calendar-plus.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.calendar-plus.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.misc.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.misc.code.tex
index a5a982020f..a5a982020f 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.misc.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.misc.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.node-families.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.node-families.code.tex
index c0ecda441a..c0ecda441a 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.node-families.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.node-families.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.node-families.shapes.geometric.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.node-families.shapes.geometric.code.tex
index 58384960a8..58384960a8 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.node-families.shapes.geometric.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.node-families.shapes.geometric.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.arcto.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.arcto.code.tex
index e97bbf939d..e97bbf939d 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.arcto.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.arcto.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.ortho.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.ortho.code.tex
index 9740c39cc2..216d3e74e3 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.ortho.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.ortho.code.tex
@@ -42,8 +42,9 @@
%% TikZ interjects are done, the rest is independent:
-\newlength\tikzext@tikz@udlr@distance
-\newlength\tikzext@tikz@hvvh@distance
+
+\newdimen\tikzext@tikz@udlr@distance
+\newdimen\tikzext@tikz@hvvh@distance
\newif\iftikzext@tikz@hvvh@middle % checks whether spacing = 0 was selected
\newif\iftikzext@tikz@hvvh@fromcenter
\newif\iftikzext@ortho@preflush
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.timer.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.timer.code.tex
index 3a4d30e68f..3a4d30e68f 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.paths.timer.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.paths.timer.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.patterns.images.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.patterns.images.code.tex
index aa732ab835..aa732ab835 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.patterns.images.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.patterns.images.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.positioning-plus.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.positioning-plus.code.tex
index 98de181c27..e430f42a7e 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.positioning-plus.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.positioning-plus.code.tex
@@ -67,7 +67,7 @@
\tikzset{east below/.code=\tikz@lib@place@handle@{#1}{north east}{0}{-1}{south east}{1}}
\newif\iftikzext@tikz@lib@place@postransform
-\tikzset{node distance transformation/.is if=qrr@tikz@lib@place@postransform}
+\tikzset{node distance transformation/.is if=tikzext@tikz@lib@place@postransform}
\def\tikz@lib@place@handle@@#1#2#3#4{%
\pgfutil@in@{of }{#1}%
\ifpgfutil@in@
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.scalepicture.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.scalepicture.code.tex
new file mode 100644
index 0000000000..5ae055bb5d
--- /dev/null
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.scalepicture.code.tex
@@ -0,0 +1,194 @@
+% Copyright 2022 by Qrrbrbirlbel
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Free Documentation License.
+%
+\def\tikzext@scalepicture@savepicturesize{%
+ \pgf@process{%
+ \pgfpointdiff
+ {\pgfpointanchor{current bounding box}{south west}}
+ {\pgfpointanchor{current bounding box}{north east}}}%
+ \immediate\write\pgfutil@auxout{%
+ \noexpand\expandafter\gdef
+ \noexpand\csname tikzext@scalepicture@\pgfpictureid\endcsname{{\the\pgf@x}{\the\pgf@y}}%
+ }%
+ \let\tikzext@scalepicture@savepicturesize\relax
+}
+
+\def\tikzext@scalepicture@width{%
+ \expandafter\expandafter\expandafter\pgfutil@firstoftwo
+ \csname tikzext@scalepicture@\pgfpictureid\endcsname
+}
+\def\tikzext@scalepicture@height{%
+ \expandafter\expandafter\expandafter\pgfutil@secondoftwo
+ \csname tikzext@scalepicture@\pgfpictureid\endcsname
+}
+
+\def\tikzextpicturewidth{%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{0pt}{\tikzext@scalepicture@width}}
+\def\tikzextpictureheight{%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{0pt}{\tikzext@scalepicture@height}}
+\tikzset{
+ save picture size/.style={execute at end picture=\tikzext@scalepicture@savepicturesize},
+ save picture size/.value forbidden,
+ %%% keep aspect ratio
+ %% width and height
+ minimum picture size/.code 2 args={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@xa{#1}%
+ \pgfmathsetlength\pgf@ya{#2}%
+ \def\tikz@tempa{0}%
+ \def\tikz@temp{0}%
+ \ifdim\tikzext@scalepicture@width<\pgf@xa
+ \pgfmathsetmacro\tikz@tempa{\pgf@xa/\tikzext@scalepicture@width}%
+ \fi
+ \ifdim\tikzext@scalepicture@height<\pgf@ya
+ \pgfmathsetmacro\tikz@temp{\pgf@ya/\tikzext@scalepicture@height}%
+ \fi
+ \ifdim\tikz@tempa pt>\tikz@temp pt
+ \let\tikz@temp\tikz@tempa
+ \fi
+ \ifdim\tikz@temp pt>0pt
+ \tikzset{scale/.expand once=\tikz@temp}%
+ \fi
+ }%
+ },
+ maximum picture size/.code 2 args={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@xa{#1}%
+ \pgfmathsetlength\pgf@ya{#2}%
+ \def\tikz@tempa{0}%
+ \def\tikz@temp{0}%
+ \ifdim\tikzext@scalepicture@width>\pgf@xa
+ \pgfmathsetmacro\tikz@tempa{\pgf@xa/\tikzext@scalepicture@width}%
+ \fi
+ \ifdim\tikzext@scalepicture@height>\pgf@ya
+ \pgfmathsetmacro\tikz@temp{\pgf@ya/\tikzext@scalepicture@height}%
+ \fi
+ \ifdim\tikz@tempa pt<\tikz@temp pt
+ \let\tikz@temp\tikz@tempa
+ \fi
+ \ifdim\tikz@temp pt>0pt
+ \tikzset{scale/.expand once=\tikz@temp}%
+ \fi
+ }%
+ },
+ %%% keep aspect ratio
+ %% width
+ picture width/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \tikzset{scale={(#1)/\tikzext@scalepicture@width}}%
+ }%
+ },
+ minimum picture width/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@xa{#1}%
+ \ifdim\tikzext@scalepicture@width<\pgf@xa
+ \tikzset{scale={\pgf@xa/\tikzext@scalepicture@width}}
+ \fi
+ }%
+ },
+ maximum picture width/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@xa{#1}%
+ \ifdim\tikzext@scalepicture@width>\pgf@xa
+ \tikzset{scale={\pgf@xa/\tikzext@scalepicture@width}}
+ \fi
+ }%
+ },
+ %%% xscale only
+ %% width
+ picture width*/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \tikzset{xscale={(#1)/\tikzext@scalepicture@width}}%
+ }%
+ },
+ minimum picture width*/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@xa{#1}%
+ \ifdim\tikzext@scalepicture@width<\pgf@xa
+ \tikzset{xscale={\pgf@xa/\tikzext@scalepicture@width}}
+ \fi
+ }%
+ },
+ maximum picture width*/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@xa{#1}%
+ \ifdim\tikzext@scalepicture@width>\pgf@xa
+ \tikzset{xscale={\pgf@xa/\tikzext@scalepicture@width}}
+ \fi
+ }%
+ },
+ %%% keep aspect ratio
+ %% height
+ picture height/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \tikzset{yscale={(#1)/\tikzext@scalepicture@height}}%
+ }%
+ },
+ minimum picture height/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@ya{#1}%
+ \ifdim\tikzext@scalepicture@height<\pgf@ya
+ \tikzset{scale={\pgf@ya/\tikzext@scalepicture@height}}
+ \fi
+ }%
+ },
+ maximum picture height/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@ya{#1}%
+ \ifdim\tikzext@scalepicture@height<\pgf@ya
+ \tikzset{scale={\pgf@ya/\tikzext@scalepicture@height}}
+ \fi
+ }%
+ },
+ %%% yscale only
+ %% height
+ picture height*/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \tikzset{yscale={(#1)/\tikzext@scalepicture@height}}%
+ }%
+ },
+ minimum picture height*/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@ya{#1}%
+ \ifdim\tikzext@scalepicture@height<\pgf@ya
+ \tikzset{yscale={\pgf@ya/\tikzext@scalepicture@height}}
+ \fi
+ }%
+ },
+ maximum picture height*/.code={%
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \pgfmathsetlength\pgf@ya{#1}%
+ \ifdim\tikzext@scalepicture@height<\pgf@ya
+ \tikzset{yscale={\pgf@ya/\tikzext@scalepicture@height}}
+ \fi
+ }%
+ },
+ %%% xscale or yscale
+ picture size*/.code 2 args={% #1 = width, #2 = height
+ \tikzset{save picture size}%
+ \pgfutil@IfUndefined{tikzext@scalepicture@\pgfpictureid}{}{%
+ \tikzset{
+ xscale={(#1)/\tikzext@scalepicture@width},
+ yscale={(#2)/\tikzext@scalepicture@height}}%
+ }%
+ },
+}
+\endinput \ No newline at end of file
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.topaths.arcthrough.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.topaths.arcthrough.code.tex
index d90a2edc78..d90a2edc78 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.topaths.arcthrough.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.topaths.arcthrough.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.transformations.mirror.code.tex b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.transformations.mirror.code.tex
index 026b39ab2f..026b39ab2f 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/generic/tikz-ext/tikzlibraryext.transformations.mirror.code.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/generic/tikzlibraryext.transformations.mirror.code.tex
diff --git a/graphics/pgf/contrib/tikz-ext/tex/latex/tikz-ext/pgfcalendar-ext.sty b/graphics/pgf/contrib/tikz-ext/tex/latex/pgfcalendar-ext.sty
index a0f5ef3bc0..a0f5ef3bc0 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/latex/tikz-ext/pgfcalendar-ext.sty
+++ b/graphics/pgf/contrib/tikz-ext/tex/latex/pgfcalendar-ext.sty
diff --git a/graphics/pgf/contrib/tikz-ext/tex/plain/tikz-ext/pgfcalendar-ext.tex b/graphics/pgf/contrib/tikz-ext/tex/plain/pgfcalendar-ext.tex
index 30c44187a4..11507d5a7a 100644
--- a/graphics/pgf/contrib/tikz-ext/tex/plain/tikz-ext/pgfcalendar-ext.tex
+++ b/graphics/pgf/contrib/tikz-ext/tex/plain/pgfcalendar-ext.tex
@@ -6,7 +6,7 @@
% 2. under the GNU Free Documentation License.
%
-\input pgfcalendar.text
+\input pgfcalendar.tex
\catcode`\@=11
\input pgfcalendar-ext.code.tex
\catcode`\@=\pgfcalendaratcode