Debian Codegraph @

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

raw
1 # latex-shortmathj
2
3 Automatically shortify titles of mathematical journals
4
5 This small dummy package just contains a simple list of full and short journal names
6 ([AMS standard](https://mathscinet.ams.org/msnhtml/serials.pdf)).
7
8 ## Usage
9 ```latex
10 % In the preamble
11 \usepackage{shortmathj}
12
13 % In the document
14 \shortifyAMSjournalname{Discrete \& Computational Geometry}
15 % Result: Discrete Comp. Geom.
16 ```
17
18 ### In case of any problems
19 Please, don't hesitate to open an [issue at GitLab](https://gitlab.com/Nickkolok/latex-shortmathj/-/issues/new)
20 or to mail me: [email protected]
21
22 ### Tweaking BibLaTex
23
24 BibLaTeX is a great tool that does many things for you.
25 To ask BibLaTeX to abbreviate the journal names, do smth like
26 ```latex
27 \DeclareFieldFormat[article]{titlecase}{\shortifyAMSjournalname{#1}}
28 ```
29 **Note that `shortmathj` itself does not require BibLaTeX to be used, unlike other abbreviating packages.**
30 `shortmathj` follows the UNIX-way: it just takes a full title and returns the shortified one.
31
32 Tip: for more sophsticated ways, see [plk@github/biblatex/#974](https://github.com/plk/biblatex/issues/974).
33
34 ### Custom abbreviations
35
36 Edit `custom.csv` and rebuild the package.
37 See also [#2](https://gitlab.com/Nickkolok/latex-shortmathj/-/issues/2).
38
39 ### Be careful!
40
41 `shortmathj.template.sty` from this repo is NOT what you want.
42 You should obtain `shortmathj.sty` somehow: build it youtself or download from CTAN (see below).
43
44 ## Building
45
46 The build process requires NodeJS and NPM.
47
48 First of all, you may want to update the basic CSV file from
49 https://mathscinet.ams.org/msnhtml/annser.csv
50
51 Make sure that no journals have been excluded (otherwise add them to `custom.csv`).
52 `git` is a good tool for investigating that.
53
54 Then, run `npm install` to install all the dependencies.
55 Run `node index.js` to build `shortmathj.sty`.
56
57 ## Repostories
58
59 + [CTAN](https://ctan.org/pkg/shortmathj)
60
61 + [GitLab](https://gitlab.com/Nickkolok/latex-shortmathj)
62
63 ## License
64
65 LPPL - LaTeX Project Public License v1.3c+, DFSG compat.
66
67 ## Authors
68
69 + Nikolai Avdeev aka @nickkolok