Debian Codegraph @

texmf-dist/doc/latex/tensorstyles/README.md

raw
1 # tensorstyles
2
3 <!-- Logo -->
4 <!-- <p align="center">
5 <a href="https://gitlab.com/RomainNOEL/tensorstyles">
6 <img src="support/logo.png" width="100" alt="logo">
7 </a>
8 </p> -->
9
10 <!-- BADGES -->
11 <p align="center">
12 <a href="https://ctan.org/pkg/tensorstyles"><img src="https://img.shields.io/ctan/v/tensorstyles?logo=LaTeX&logoColor=%23008080&color=%23008080"/></a>
13 <a href="https://gitlab.com/RomainNOEL/tensorstyles/-/release/"><img src="https://img.shields.io/badge/Latest_Release-v1.0.1.4-FC6D26?logo=Gitlab&logoColor=%#FC6D26"/></a>
14 <a href="https://gitlab.com/RomainNOEL/tensorstyles/-/pipelines?page=1&scope=all&ref=main"><img src="https://img.shields.io/gitlab/pipeline-status/RomainNOEL%2Ftensorstyles?branch=main&logo=githubactions&label=pipeline"/></a>
15 <a href="https://gitlab.com/RomainNOEL/tensorstyles/-/blob/main/LICENSE.txt"><img src="https://img.shields.io/badge/License-LPPL_1.3c-blue?logo=opensourceinitiative"/></a>
16 <a href="https://gitlab.com/api/v4/projects/46402127/jobs/artifacts/main/raw/tensorstyles.pdf?job=deploy-files"><img src="https://img.shields.io/badge/Documentation-PDF_online-green?logo=readthedocs"/></a>
17 <a href="https://www.repostatus.org/lifecycle"><img src="https://img.shields.io/badge/repo_status-active-FC6D26?logo=framework&color=#F10001"/></a>
18 </p>
19 <!-- Latest_Release-v1.0.1.4 Date: 2026-04-28 -->
20
21
22 ## What is tensorstyles ?
23 The `tensorstyles` is a `LaTeX(3)` package to display tensors (including vector, matrix, etc.) separating them from their form.
24
25
26 ## Table of Contents
27 [[_TOC_]]
28
29
30 ## Why this package ?
31 They are different notation conventions for tensors.
32 And according to the context (or the local rules) one would like to switch between conventions: keeping the meaning of each tensor, just changing the display.
33 So, this package is here to print tensors independently from their meaning in a very customizable way.
34
35
36 ## Some of the features included
37 - can change globally the options by default of a command or only for a command call
38 - can set delimiters (bracket, brace, etc.) and scale them (auto or set manually)
39 - can adapt to `mleftright` (a package that improve `\left(` and `\right)` and their variant)
40 - generate new commands as a variant from defined categories
41
42
43 ## See it in action
44 Here is a latex code:
45 ```latex
46 \documentclass{article}
47 \usepackage{tensorstyles}
48 \begin{document}
49 % \tensor{<order>}{<variable>}
50 $\tensor{2}{t}$
51 \end{document}
52 ```
53 is yielding the following:
54 <img src="support/tensor_full.png" width="100">
55
56
57 ## Documentation
58 The complete `pdf` documentation can be found through an [artefact](https://gitlab.com/api/v4/projects/46402127/jobs/artifacts/main/raw/tensorstyles.pdf?job=deploy-files).
59
60
61 ## How to install ?
62 Several possibilities are available and tested:
63 - download the `.sty` released zip files,
64 - build from sources using `l3build`,
65 - download or update from [CTAN](https://ctan.org/pkg/tensorstyles),
66 <!-- - fork a example from [Overleaf](https://www.overleaf.com/read/ybdcnjxjrwgq#3ae7f9) . -->
67
68 ### Download from release
69 The zip file containing the `.sty` files is downloadable through our latest [release link](https://gitlab.com/RomainNOEL/tensorstyles/-/releases/)
70
71 ### Build from sources
72 You can also install the theme from sources, in which case you need a working LaTeX installation with `l3build` installed.
73 Then just follow these steps:
74 ```bash
75 git clone https://gitlab.com/RomainNOEL/tensorstyles.git
76 cd tensorstyles
77 l3build install
78 ```
79
80 Additionally you can use the other `l3build` target:
81 - `l3build unpack` builds the theme style files.
82 - `l3build doc` builds this documentation manual and the examples.
83 - `l3build check` builds the theme and manual.
84 - `l3build install` installs the theme into your local texmf folder.
85 - **STOP** unless you want remove it.
86 - `l3build uninstall` removes the theme from your local texmf folder.
87 - `l3build clean` removes the files generated by `l3build`.
88
89 ### Download from CTAN
90 The CTAN repository is available through the tensorstyles [package](https://ctan.org/pkg/tensorstyles), so you can install it using your favorite LaTeX package manager. For example, with `tlmgr`:
91 ```bash
92 tlmgr install tensorstyles
93 ```
94
95
96 ## License
97 The LaTeX Project Public License, version 1.3c [(LPPL1.3c)](/LICENSE.txt)
98
99
100 ## Project status & contributions
101 The status of the project is "maintained".
102 The changelog file is tracking the [changes](https://gitlab.com/RomainNOEL/tensorstyles/-/blob/main/CHANGELOG.md?ref_type=heads) made across versions.
103 However, if you have a bit of free time and good will to help the maintenance, it will be very appreciated and welcomed.
104 If you intend to contribute to this project, you can read the dedicated [document](https://gitlab.com/RomainNOEL/tensorstyles/-/blob/main/CONTRIBUTING.md?ref_type=heads).
105
106 Contributors:
107 - Maelwen THOMAS
108 - Laurent NAVARRO