summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-09-22 20:09:41 +0000
committerKarl Berry <karl@freefriends.org>2022-09-22 20:09:41 +0000
commitebdfa47ce7700ac5de8a81e419b37bce25e117b5 (patch)
treed1e6fd6f05cb36280136d6ebb94b11cabc775e0a /Master/texmf-dist/doc/latex
parent3f060d2839506eafd970497ca60c3dccd3db39d0 (diff)
abspos (22sep22)
git-svn-id: svn://tug.org/texlive/trunk@64465 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/abspos/LICENSE21
-rw-r--r--Master/texmf-dist/doc/latex/abspos/README.md10
-rw-r--r--Master/texmf-dist/doc/latex/abspos/abspos.pdfbin0 -> 452109 bytes
-rw-r--r--Master/texmf-dist/doc/latex/abspos/demo.tex67
4 files changed, 98 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/abspos/LICENSE b/Master/texmf-dist/doc/latex/abspos/LICENSE
new file mode 100644
index 00000000000..70e7d55dd6f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/abspos/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021–2022 Magnus Lie Hetland
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/Master/texmf-dist/doc/latex/abspos/README.md b/Master/texmf-dist/doc/latex/abspos/README.md
new file mode 100644
index 00000000000..419cf0bf4a3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/abspos/README.md
@@ -0,0 +1,10 @@
+The **abspos** package lets you place contents at an absolute position, anchored
+at some specified part of the content, similar to how **tikz** nodes work,
+though without using the two-pass strategy of **tikz**. It also avoids messing
+with the order of **beamer** overlays, which is what happens when one uses the
+**textpos** package with the **overlay** option. The solution used is quite
+straightforward, combining *coffins* (using **l3coffins**) with the placement
+mechanisms of **atbegshi**.
+
+The package is written by [Magnus Lie Hetland](mailto:mlh@ntnu.no) and released
+under the [MIT license](LICENSE).
diff --git a/Master/texmf-dist/doc/latex/abspos/abspos.pdf b/Master/texmf-dist/doc/latex/abspos/abspos.pdf
new file mode 100644
index 00000000000..a6514d83706
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/abspos/abspos.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/abspos/demo.tex b/Master/texmf-dist/doc/latex/abspos/demo.tex
new file mode 100644
index 00000000000..ba2b7ab8674
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/abspos/demo.tex
@@ -0,0 +1,67 @@
+\documentclass{beamer}
+\usefonttheme{serif}
+\beamertemplatenavigationsymbolsempty
+
+\usepackage{xcoffins}
+\usepackage{abspos}
+\usepackage{ragged2e}
+\usepackage{lipsum}
+\usepackage{tikz}
+\usepackage{newfile}
+
+\newoutputstream{io}
+
+\ExplSyntaxOn
+
+\cs_generate_variant:Nn \tl_replace_all:Nnn { Nxx }
+
+\NewDocumentCommand \ExampleFrame { m +v } {
+
+ \tl_set:Nn \l_tmpa_tl {#2}
+ \tl_replace_all:Nxx \l_tmpa_tl { \iow_char:N \^^M } { \iow_char:N \^^J }
+ \regex_replace_once:nnN { ^\v* } { } \l_tmpa_tl
+
+ \openoutputfile{demo#1.tex}{io}
+ \addtostream{io}{\l_tmpa_tl}
+ \closeoutputstream{io}
+
+ \frame{\input{demo#1}}
+
+}
+
+\ExplSyntaxOff
+
+\begin{document}
+
+\ExampleFrame{1}{
+% In preamble:
+% \usepackage{tikz}
+\absput{\tikz{
+ \draw[line width=8pt, lightgray] circle[radius=3.25];
+}}
+\absput[angle=10, scale=5]{Hello!}
+\absput[pg-b, y=.5cm]{\thepage}
+}
+
+\ExampleFrame{2}{
+% In preamble:
+% \usepackage{ragged2e}
+% \usepackage{lipsum}
+\absput[width=8cm]{
+ \justifying
+ \lipsum[1][1-5] % Example text
+}
+}
+
+\ExampleFrame{3}{
+\absposset{scale=5}
+\absput{Scaled!}
+}
+
+\begin{frame}
+\NewCoffin \MyCoffin
+\SetHorizontalCoffin \MyCoffin {My Coffin}
+\absputcoffin[scale=2] \MyCoffin
+\end{frame}
+
+\end{document}