texlive[65291] Master: namedtensor (16dec22)

commits+karl at tug.org commits+karl at tug.org
Fri Dec 16 22:04:27 CET 2022


Revision: 65291
          http://tug.org/svn/texlive?view=revision&revision=65291
Author:   karl
Date:     2022-12-16 22:04:26 +0100 (Fri, 16 Dec 2022)
Log Message:
-----------
namedtensor (16dec22)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/namedtensor/
    trunk/Master/texmf-dist/doc/latex/namedtensor/LICENSE.md
    trunk/Master/texmf-dist/doc/latex/namedtensor/README.md
    trunk/Master/texmf-dist/tex/latex/namedtensor/
    trunk/Master/texmf-dist/tex/latex/namedtensor/namedtensor.sty
    trunk/Master/tlpkg/tlpsrc/namedtensor.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/namedtensor/LICENSE.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/namedtensor/LICENSE.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/namedtensor/LICENSE.md	2022-12-16 21:04:26 UTC (rev 65291)
@@ -0,0 +1,7 @@
+Copyright 2022 by the University of Notre Dame, Cornell University, and Harvard University.
+
+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.


Property changes on: trunk/Master/texmf-dist/doc/latex/namedtensor/LICENSE.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/namedtensor/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/namedtensor/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/namedtensor/README.md	2022-12-16 21:04:26 UTC (rev 65291)
@@ -0,0 +1,44 @@
+# Named tensor notation in LaTeX
+
+This style file provides macros for named tensor notation. Please see
+the paper [Named Tensor Notation](https://arxiv.org/abs/2102.13196)
+for background on this notation.
+
+To use the style file, put
+
+    \usepackage{namedtensor}
+
+into the preamble of your LaTeX source file (after
+`\documentclass{article}` but before `\begin{document}`).
+
+We write axis names in sans-serif font. To make this easier,
+`\name{axis}` prints the axis name "axis", and `\ndef{\ax}{axis}`
+defines a macro `\ax` that prints the axis name "axis".
+
+Binary operators
+
+- Use `A \ndot{\ax} B` for contractions. You can use `\\` to stack up
+  several names.
+
+- You can use `\nbin` to make new binary operators. For example, `A
+  \nbin{\ax}{\star} B` gives you a star operator with "axis" written
+  under it.
+
+Functions
+
+- Use `\nsum{\ax} A` for summation over a named axis.
+
+- You can use `\nfun` to make new functions. For example,
+  `\nfun{\ax}{qux} A` defines a function "qux" with "axis" written
+  under it.
+
+## Credits
+
+- David Chiang, University of Notre Dame, dchiang at nd.edu
+- Alexander M. Rush, Cornell University, arush at cornell.edu
+- Boaz Barak, Harvard University, b at boazbarak.org
+
+## License
+
+This software is licensed under the MIT License. Please see LICENSE.md
+for copyright notice.


Property changes on: trunk/Master/texmf-dist/doc/latex/namedtensor/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/namedtensor/namedtensor.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/namedtensor/namedtensor.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/namedtensor/namedtensor.sty	2022-12-16 21:04:26 UTC (rev 65291)
@@ -0,0 +1,13 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{namedtensor}[2021/02/22 v0.4 Named tensors]
+\RequirePackage{amsmath}
+
+\newcommand{\namedtensorstrut}{\vphantom{fg}} % milder than \mathstrut
+
+\newcommand{\name}[1]{\ensuremath{\mathsf{\namedtensorstrut #1}}}
+\newcommand{\nbin}[2]{\mathbin{\underset{\substack{#1}}{\namedtensorstrut #2}}}
+\newcommand{\ndot}[1]{\nbin{#1}{\odot}}
+\newcommand{\ncat}[1]{\nbin{#1}{\oplus}}
+\newcommand{\nsum}[1]{\sum\limits_{\substack{#1}}}
+\newcommand{\nfun}[2]{\mathop{\underset{\substack{#1}}{\namedtensorstrut\mathrm{#2}}}}
+\newcommand{\ndef}[2]{\newcommand{#1}{\name{#2}}}


Property changes on: trunk/Master/texmf-dist/tex/latex/namedtensor/namedtensor.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2022-12-16 21:03:41 UTC (rev 65290)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2022-12-16 21:04:26 UTC (rev 65291)
@@ -568,7 +568,8 @@
     musixtex musixtex-fonts musixtnt musuos muthesis
     mversion mwcls mwe mweights mxedruli
     mycv mylatex mylatexformat mynsfc
-  na-box na-position nag nameauth namedef namespc nanicolle nanumtype1 nar
+  na-box na-position nag nameauth namedef namedtensor namespc
+    nanicolle nanumtype1 nar
     natbib natded nath nature
     navigator navydocs
     ncclatex ncctools nchairx ncntrsbk

Modified: trunk/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc	2022-12-16 21:03:41 UTC (rev 65290)
+++ trunk/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc	2022-12-16 21:04:26 UTC (rev 65291)
@@ -152,6 +152,7 @@
 depend miller
 depend mismath
 depend multiobjective
+depend namedtensor
 depend natded
 depend nath
 depend nchairx

Added: trunk/Master/tlpkg/tlpsrc/namedtensor.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.