Debian Codegraph @

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

raw
1 <!-- Copyright (C) 2021-2026 by Jinwen XU -->
2
3 <!-- ![image](https://github.com/Jinwen-XU/ProjLib/raw/main/logo/ProjLib-logo.png) -->
4 <div align=center><img height="150" src="https://github.com/Jinwen-XU/ProjLib/raw/main/logo/ProjLib-logo.png"/></div>
5
6 # The `ProjLib` Toolkit
7
8 > **This bundle is dated 2026/02/20.**
9
10 > **New documentations are still being written. For now, only the core code is included in TeX Live 2024 and MiKTeX (old documentations have been removed from the distribution).**
11
12 ## Introduction
13
14 > **ProjLib** can be interpreted as "***Proj**ect **Lib**rary*" (in English), or as "***Proj**et **Lib**re*" (in French, meaning "*Free Project*").
15
16 `ProjLib` is a collection of tools that help you write LaTeX document. With the main package `ProjLib` loaded (note that it is *case-sensitive*), you no longer need to manually configure the appropriate multilingual settings nor to set up the theorem-like environments. In addition, a series of auxiliary functionalities are introduced.
17
18 To get started, simply put this line in your preamble:
19 ```latex
20 \usepackage{ProjLib}
21 ```
22 > For the options and detailed usage, please refer to the documentation.
23
24
25 ## The modules
26
27 > Each module corresponds to a separate package, for example, the module `theorem` is `projlib-theorem.sty`. These modules are managed by the main package `ProjLib.sty`.
28
29 The modules include:
30 1. module `author` - *Enhanced author information block*
31 - Offering `\address`, `\curraddr` and `\email`, etc.
32 - Allow writing in the AMS fashion (with option `ams-fashion`):
33 - support `\dedicatory`, `\keywords` and `\subjclass`;
34 - `\thanks` can be written outside `\author`;
35 - the `abstract` environment can be placed before `\maketitle`.
36 1. module `datetime` - *Convert numeric date-time string to natural language*
37 - `\TheDate` and `\Thedate` for converting numeric date-time string to natural language, with multi-language support (if the command names `\TheDate` or `\Thedate` are occupied, then one can switch to the longer version `\ProjLibDate` and `\ProjLibdate`).
38 - `\ProjLibToday` and `\ProjLibToday` (with the module `language` enabled, `\today` is redefined into `\ProjLibToday`, and thus supports additional arguments like `only-year-month`).
39 - Multiple input and output format available.
40 1. module `draft` - *Useful commands during draft stage*
41 - `\DNF` for marking unfinished part. In addition, a report of all unfinished places shall be printed at the last of your document.
42 - Reimplemented `\blindtext` to support more languages.
43 1. module `font` - *Font selection and configuration*
44 - Supporting New Computer Modern / Latin Modern, Palatino, Times, Garamond, Bembo, Biolinum, Noto, etc.
45 1. module `language` - *Multi-language configuration*
46 - `\UseLanguage`, `\UseOtherLanguage` for selecting languages, and `\AddLanguageSetting` for adding language-specific settings.
47 - `\DefineMultilingualText` for defining multilingual text strings.
48 - Currently support Chinese (simplified and traditional), English, French, German, Italien, Japanese, Portuguese (European and Brazilian), Russian and Spanish.
49 1. module `logo` - *The ProjLib logo*
50 - Draw the `ProjLib` logo in colorful or colorless fashion.
51 1. module `math` - *Efficient math setup*
52 - `\DefineOperator` and `\DefineShortcut` for setting up math macros efficiently.
53 - `\ListOfSymbols` for printing list of symbols.
54 1. module `paper` - *Configuration of the paper style*
55 - Paper style configuration, with the themes `light yellow`, `yellow`, `green`, `light gray`, `gray`, `dark`, etc.
56 1. module `text` - *Text-related commands*
57 - Provide a few useful commands such as `\ie`, `\eg`, `\cf`, `\etc` ; and if you have your own version defined, they won't interfere with your definition.
58 - `\ItemDescription` for writing leading description to items in `itemize` or `enumerate`.
59 1. module `theorem` - *Configuration of theorem-like environments*
60 - Setting up theorem-like environments based on the package `create-theorem`
61 - `\CreateTheorem`, `\SetTheorem` and more...
62 - In particular, supporting the modes `name as is` and `name as context` for the referencing names.
63 - Offering two modes `complex names` (default) and `simple names` (better visual effect but less correct grammar) for the referencing names of those supported theorem-like environments.
64 - `\SwitchTheoremNumbering` and `\DisableTheoremNumbering` for manipulating the numbering.
65 - Preset environments include: `application`, `assertion`, `assumption`, `axiom`, `claim`, `commentary`, `conclusion`, `conjecture`, `construction`, `convention`, `corollary`, `definition`, `definition-proposition`, `definition-theorem`, `example`, `exercise`, `fact`, `hypothesis`, `lemma`, `motivation`, `notation`, `observation`, `postulate`, `problem`, `property`, `proposition`, `question`, `recall`, `remark`, `theorem`, their plural version (among the most commonly used are `examples`, `facts` and `notations`), and the corresponding unnumbered version with an asterisk `*` in the name.
66 1. module `titlepage` - *Interface for title page rendering*
67 - Currently support four title page styles: `default`, `academic`, `simple` and `fancy`.
68
69 > Since the module `theorem` uses `cleveref`, it should be loaded after `varioref` and `hyperref` (same for the main package `ProjLib`).
70
71 > Package dependencies:
72 > - module `author`: [`regexpatch`](https://ctan.org/pkg/regexpatch), [`scontents`](https://ctan.org/pkg/scontents); it loads the module `language` internally.
73 > - module `datetime`: [`relsize`](https://ctan.org/pkg/relsize).
74 > - module `draft`: [`pgf`](https://ctan.org/pkg/pgf), [`ulem`](https://ctan.org/pkg/ulem); it loads the module `language` internally.
75 > - module `font`: [`anyfontsize`](https://ctan.org/pkg/anyfontsize), [`microtype`](https://ctan.org/pkg/microtype), [`setspaceenhanced`](https://ctan.org/pkg/setspaceenhanced), and a number of font packages depending on the specified option.
76 > - module `language`: [`babel`](https://ctan.org/pkg/babel), [`csquotes`](https://ctan.org/pkg/csquotes), [`setspaceenhanced`](https://ctan.org/pkg/setspaceenhanced), [`silence`](https://ctan.org/pkg/silence).
77 > - module `logo`: [`pgf`](https://ctan.org/pkg/pgf).
78 > - module `math`: [`amsfonts`](https://ctan.org/pkg/amsfonts), [`mathrsfs`](https://ctan.org/pkg/mathrsfs), [`mathtools`](https://ctan.org/pkg/mathtools).
79 > - module `paper`: [`xcolor`](https://ctan.org/pkg/xcolor).
80 > - module `text`: it loads the module `paper` internally.
81 > - module `theorem`: [`amsthm`](https://ctan.org/pkg/amsthm), [`create-theorem`](https://ctan.org/pkg/create-theorem), [`mathtools`](https://ctan.org/pkg/mathtools), [`silence`](https://ctan.org/pkg/silence); it loads the module `language` internally.
82 > - module `titlepage`: [`pgf`](https://ctan.org/pkg/pgf); it loads the modules `logo` and `paper` internally.
83
84
85 <!-- ## Regarding the files and the compilation of documentations -->
86
87 ### How to get these files
88 You can get the `.sty` files mentioned above by compiling `ProjLib.ins`:
89 ```
90 latex ProjLib.ins
91 ```
92 <!--
93 ### How to get the source of the documentation
94 You can get the `.tex` source files of the documentation by compiling `ProjLib-doc.ins`:
95 ```
96 latex ProjLib-doc.ins
97 ```
98
99 ### How to compile the documentation
100 It is recommended to use `latexmk` with option `-xelatex`:
101 ```
102 latexmk -xelatex ProjLib-doc-**.tex
103 ```
104 Here `**` should be replaced with the language identifier, such as `en`.
105
106 ### Automation
107 All these can be done with the given script `MakeFile.sh`.
108 -->
109
110 ## License
111
112 This work is released under the LaTeX Project Public License, v1.3c or later.