summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/resmes
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-28 03:01:37 +0000
committerNorbert Preining <norbert@preining.info>2022-12-28 03:01:37 +0000
commitc593cd7fcc1d6af28601f82bf0354a13eca3ff93 (patch)
treea5dd863995adf7f9090c66b45a3aa95c31b54f4c /macros/latex/contrib/resmes
parent9dfeafbb128537c1633d77071d8cc9b9f8c5a800 (diff)
CTAN sync 202212280301
Diffstat (limited to 'macros/latex/contrib/resmes')
-rw-r--r--macros/latex/contrib/resmes/README.md9
-rw-r--r--macros/latex/contrib/resmes/resmes.dtx76
-rw-r--r--macros/latex/contrib/resmes/resmes.ins43
-rw-r--r--macros/latex/contrib/resmes/resmes.pdfbin0 -> 69170 bytes
4 files changed, 128 insertions, 0 deletions
diff --git a/macros/latex/contrib/resmes/README.md b/macros/latex/contrib/resmes/README.md
new file mode 100644
index 0000000000..0847b2a1a5
--- /dev/null
+++ b/macros/latex/contrib/resmes/README.md
@@ -0,0 +1,9 @@
+# resmes
+Restriction of measure in LaTeX
+
+## Package usage
+Just put in your preamble
+
+ \usepackage{resmes}
+
+It provides command `\resmes` that prints measure restriction symbol.
diff --git a/macros/latex/contrib/resmes/resmes.dtx b/macros/latex/contrib/resmes/resmes.dtx
new file mode 100644
index 0000000000..7497320eaf
--- /dev/null
+++ b/macros/latex/contrib/resmes/resmes.dtx
@@ -0,0 +1,76 @@
+% \iffalse meta-comment
+%
+% resmes Restriction of measures symbol in LaTeX
+%
+% Copyright (c) 2022 Paolo
+%
+% Licensed under MIT (https://github.com/Loara/resmes/blob/main/LICENSE)
+%
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{resmes.dtx}[2022/12/27 v1.0 Restriction of measures symbol in LaTeX]
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}
+%<package>\ProvidesPackage{resmes}[2022/12/27 v1.0 Restriction of measures symbol in LaTeX]
+%<package>\RequirePackage{xparse}
+%<package>\RequirePackage{tikz}
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{resmes}
+\begin{document}
+\DocInput{resmes.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+%\newcommand{\thpkg}{\texttt{resmes}}
+%
+%\title{\thpkg}
+%\author{Paolo De Donato}
+%\date{2022/21/27\ v1.0}
+%
+%\maketitle
+%
+% This package defines the |\resmes| command in order to print measure restriction symbol. For example in mathmode
+% \begin{verbatim}
+% \mu\resmes A
+% \end{verbatim}
+% expands as
+% \[
+% \mu\resmes A
+% \]
+%
+% This package works also in inline math mode ($\mu\resmes A$) and in subscript/superscript emvironments ($a^{\mu\resmes A}, b_{c^{\mu\resmes A}}$).
+%\StopEventually
+%
+%\section{Implementation}
+% \begin{macrocode}
+%<*package>
+% \end{macrocode}
+%
+% \begin{macrocode}
+
+\NewDocumentCommand{\ress@D}{}{
+ \tikz{\draw[thick, join=round, cap=round] (0.24, 0) -- (0,0) -- (0, 0.24);}}
+\NewDocumentCommand{\ress@T}{}{
+ \tikz{\draw[semithick, join=round, cap=round] (0.23, 0) -- (0,0) -- (0, 0.23);}}
+\NewDocumentCommand{\ress@S}{}{
+ \,\tikz{\draw[thin, join=round] (0.154, 0) -- (0,0) -- (0, 0.154);}}
+\NewDocumentCommand{\ress@SS}{}{
+ \tikz{\draw[very thin, join=round] (0.11, 0) -- (0,0) -- (0, 0.11);}}
+
+\NewDocumentCommand{\resmes}{}{
+ \mathchoice{\mathbin{\ress@D}}{\mathbin{\ress@T}}
+ {\mathbin{\ress@S}}{\mathbin{\ress@SS}}}
+
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</package>
+% \end{macrocode}
+%
+%\Finale
+%
+%\PrintIndex
diff --git a/macros/latex/contrib/resmes/resmes.ins b/macros/latex/contrib/resmes/resmes.ins
new file mode 100644
index 0000000000..58950cc880
--- /dev/null
+++ b/macros/latex/contrib/resmes/resmes.ins
@@ -0,0 +1,43 @@
+%%
+%% resmes Restriction of measures symbol in LaTeX
+%%
+%% Copyright (c) 2022 Paolo
+%%
+%% Licensed under MIT (https://github.com/Loara/resmes/blob/main/LICENSE)
+%%
+
+\input l3docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/resmes}
+
+\preamble
+
+This is a generated file.
+
+resmes Restriction of measures symbol in LaTeX
+
+Copyright (c) 2022 Paolo
+
+Licensed under MIT (https://github.com/Loara/resmes/blob/main/LICENSE)
+
+\endpreamble
+
+\askforoverwritefalse
+\generate{\file{resmes.sty}{\from{resmes.dtx}{package}}}
+
+\obeyspaces
+\Msg{:^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^)}
+\Msg{(*^.^*)}
+\Msg{*-* Hey dude, remember you have to move the following file *-*}
+\Msg{(*^.^*)}
+\Msg{resmes.sty}
+\Msg{(*^.^*)}
+\Msg{*-* into a directory searched by TeX!! *-*}
+\Msg{*-* To produce the documentation look it up on the Internet. *-*}
+\Msg{(*^.^*)}
+\Msg{*-* See ya! *-*}
+\Msg{(*^.^*)}
+\Msg{:^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^) :^)}
+
+\endbatchfile
diff --git a/macros/latex/contrib/resmes/resmes.pdf b/macros/latex/contrib/resmes/resmes.pdf
new file mode 100644
index 0000000000..ab9bb70f9e
--- /dev/null
+++ b/macros/latex/contrib/resmes/resmes.pdf
Binary files differ