texmodel 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- texmodel/__init__.py +6 -0
- texmodel/_internal/__init__.py +1 -0
- texmodel/_internal/render.py +323 -0
- texmodel/_internal/scan.py +23 -0
- texmodel/body.py +364 -0
- texmodel/bundle.py +69 -0
- texmodel/cli.py +211 -0
- texmodel/components.py +757 -0
- texmodel/config.py +32 -0
- texmodel/drift.py +55 -0
- texmodel/errors.py +38 -0
- texmodel/package.py +482 -0
- texmodel/plan.py +92 -0
- texmodel/pointer.py +70 -0
- texmodel/preamble.py +110 -0
- texmodel/py.typed +0 -0
- texmodel/spec.py +235 -0
- texmodel/std/__init__.py +37 -0
- texmodel/std/adjustbox.py +19 -0
- texmodel/std/anyfontsize.py +7 -0
- texmodel/std/calc.py +7 -0
- texmodel/std/enumitem.py +18 -0
- texmodel/std/eso_pic.py +49 -0
- texmodel/std/etoolbox.py +127 -0
- texmodel/std/fontspec.py +36 -0
- texmodel/std/geometry.py +17 -0
- texmodel/std/graphicx.py +26 -0
- texmodel/std/hyphenat.py +7 -0
- texmodel/std/latex.py +516 -0
- texmodel/std/microtype.py +27 -0
- texmodel/std/pdfrender.py +17 -0
- texmodel/std/tcolorbox.py +43 -0
- texmodel/std/tikz.py +36 -0
- texmodel/std/xcolor.py +47 -0
- texmodel/testing.py +297 -0
- texmodel/types.py +264 -0
- texmodel-0.2.0.dist-info/METADATA +525 -0
- texmodel-0.2.0.dist-info/RECORD +61 -0
- texmodel-0.2.0.dist-info/WHEEL +4 -0
- texmodel-0.2.0.dist-info/entry_points.txt +9 -0
- texmodel-0.2.0.dist-info/licenses/LICENSE +21 -0
- texmodel_build/__init__.py +10 -0
- texmodel_build/_internal/__init__.py +1 -0
- texmodel_build/_internal/converge.py +19 -0
- texmodel_build/_internal/env.py +42 -0
- texmodel_build/_internal/logparse.py +170 -0
- texmodel_build/_internal/proofpdf.py +52 -0
- texmodel_build/_internal/spawn.py +36 -0
- texmodel_build/_internal/styscan.py +37 -0
- texmodel_build/cli.py +349 -0
- texmodel_build/compiler.py +341 -0
- texmodel_build/config.py +58 -0
- texmodel_build/diagnostics.py +225 -0
- texmodel_build/engines.py +35 -0
- texmodel_build/errors.py +17 -0
- texmodel_build/py.typed +0 -0
- texmodel_build/result.py +65 -0
- texmodel_build/roots.py +41 -0
- texmodel_build/targets.py +43 -0
- texmodel_build/testkit.py +59 -0
- texmodel_build/verify.py +158 -0
texmodel/std/etoolbox.py
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
r"""etoolbox: Patching and programming tools.
|
|
2
|
+
|
|
3
|
+
A header (the package is adopted): it declares the interface, `texmodel` writes calls and never the package."""
|
|
4
|
+
|
|
5
|
+
from texmodel.components import Command
|
|
6
|
+
from texmodel.package import Package
|
|
7
|
+
from texmodel.types import Raw
|
|
8
|
+
|
|
9
|
+
package = Package("etoolbox", prefix="", adopted=True)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@package.command
|
|
13
|
+
class Appto(Command):
|
|
14
|
+
r"""Append code to a macro."""
|
|
15
|
+
|
|
16
|
+
cs = "appto"
|
|
17
|
+
macro: Raw
|
|
18
|
+
code: Raw
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@package.command
|
|
22
|
+
class GAppto(Command):
|
|
23
|
+
r"""Append code to a macro, globally."""
|
|
24
|
+
|
|
25
|
+
cs = "gappto"
|
|
26
|
+
macro: Raw
|
|
27
|
+
code: Raw
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@package.command
|
|
31
|
+
class Preto(Command):
|
|
32
|
+
r"""Prepend code to a macro."""
|
|
33
|
+
|
|
34
|
+
cs = "preto"
|
|
35
|
+
macro: Raw
|
|
36
|
+
code: Raw
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@package.command
|
|
40
|
+
class GPreto(Command):
|
|
41
|
+
r"""Prepend code to a macro, globally."""
|
|
42
|
+
|
|
43
|
+
cs = "gpreto"
|
|
44
|
+
macro: Raw
|
|
45
|
+
code: Raw
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@package.command
|
|
49
|
+
class IfBlank(Command):
|
|
50
|
+
r"""Choose by whether an argument is blank."""
|
|
51
|
+
|
|
52
|
+
cs = "ifblank"
|
|
53
|
+
argument: Raw
|
|
54
|
+
yes: Raw
|
|
55
|
+
no: Raw
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@package.command
|
|
59
|
+
class IfStrEqual(Command):
|
|
60
|
+
r"""Choose by whether two strings are equal."""
|
|
61
|
+
|
|
62
|
+
cs = "ifstrequal"
|
|
63
|
+
first: Raw
|
|
64
|
+
second: Raw
|
|
65
|
+
yes: Raw
|
|
66
|
+
no: Raw
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@package.command
|
|
70
|
+
class NewToggle(Command):
|
|
71
|
+
r"""Declare a switch."""
|
|
72
|
+
|
|
73
|
+
cs = "newtoggle"
|
|
74
|
+
name: Raw
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@package.command
|
|
78
|
+
class ToggleTrue(Command):
|
|
79
|
+
r"""Set a switch to true."""
|
|
80
|
+
|
|
81
|
+
cs = "toggletrue"
|
|
82
|
+
name: Raw
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
@package.command
|
|
86
|
+
class ToggleFalse(Command):
|
|
87
|
+
r"""Set a switch to false."""
|
|
88
|
+
|
|
89
|
+
cs = "togglefalse"
|
|
90
|
+
name: Raw
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@package.command
|
|
94
|
+
class SetToggle(Command):
|
|
95
|
+
r"""Set a switch to `true` or `false`."""
|
|
96
|
+
|
|
97
|
+
cs = "settoggle"
|
|
98
|
+
name: Raw
|
|
99
|
+
value: Raw
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@package.command
|
|
103
|
+
class IfToggle(Command):
|
|
104
|
+
r"""Choose by a switch."""
|
|
105
|
+
|
|
106
|
+
cs = "iftoggle"
|
|
107
|
+
name: Raw
|
|
108
|
+
yes: Raw
|
|
109
|
+
no: Raw
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@package.command
|
|
113
|
+
class AtBeginEnvironment(Command):
|
|
114
|
+
r"""Code at the start of an environment."""
|
|
115
|
+
|
|
116
|
+
cs = "AtBeginEnvironment"
|
|
117
|
+
environment: Raw
|
|
118
|
+
code: Raw
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@package.command
|
|
122
|
+
class AtEndEnvironment(Command):
|
|
123
|
+
r"""Code at the end of an environment."""
|
|
124
|
+
|
|
125
|
+
cs = "AtEndEnvironment"
|
|
126
|
+
environment: Raw
|
|
127
|
+
code: Raw
|
texmodel/std/fontspec.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
r"""fontspec: System fonts under LuaLaTeX and XeLaTeX.
|
|
2
|
+
|
|
3
|
+
A header (the package is adopted): it declares the interface, `texmodel` writes calls and never the package."""
|
|
4
|
+
|
|
5
|
+
from texmodel.components import Command
|
|
6
|
+
from texmodel.package import Package
|
|
7
|
+
from texmodel.types import Raw
|
|
8
|
+
|
|
9
|
+
package = Package("fontspec", prefix="", adopted=True)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@package.command
|
|
13
|
+
class SetMainFont(Command):
|
|
14
|
+
r"""The main font: `\setmainfont[Path=fonts/]{Nunito-Regular.ttf}`."""
|
|
15
|
+
|
|
16
|
+
cs = "setmainfont"
|
|
17
|
+
font: Raw
|
|
18
|
+
options: Raw | None = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@package.command
|
|
22
|
+
class SetSansFont(Command):
|
|
23
|
+
r"""The sans-serif font."""
|
|
24
|
+
|
|
25
|
+
cs = "setsansfont"
|
|
26
|
+
font: Raw
|
|
27
|
+
options: Raw | None = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@package.command
|
|
31
|
+
class SetMonoFont(Command):
|
|
32
|
+
r"""The monospaced font."""
|
|
33
|
+
|
|
34
|
+
cs = "setmonofont"
|
|
35
|
+
font: Raw
|
|
36
|
+
options: Raw | None = None
|
texmodel/std/geometry.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
r"""geometry: Page dimensions.
|
|
2
|
+
|
|
3
|
+
A header (the package is adopted): it declares the interface, `texmodel` writes calls and never the package."""
|
|
4
|
+
|
|
5
|
+
from texmodel.components import Command
|
|
6
|
+
from texmodel.package import Package
|
|
7
|
+
from texmodel.types import Raw
|
|
8
|
+
|
|
9
|
+
package = Package("geometry", prefix="", adopted=True)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@package.command
|
|
13
|
+
class Geometry(Command):
|
|
14
|
+
r"""Set page dimensions: `\geometry{a4paper,margin=10mm}`."""
|
|
15
|
+
|
|
16
|
+
cs = "geometry"
|
|
17
|
+
options: Raw
|
texmodel/std/graphicx.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
r"""graphicx: Pictures: `\includegraphics` and where to look for them.
|
|
2
|
+
|
|
3
|
+
A header (the package is adopted): it declares the interface, `texmodel` writes calls and never the package."""
|
|
4
|
+
|
|
5
|
+
from texmodel.components import Command
|
|
6
|
+
from texmodel.package import Package
|
|
7
|
+
from texmodel.types import Raw
|
|
8
|
+
|
|
9
|
+
package = Package("graphicx", prefix="", adopted=True)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@package.command
|
|
13
|
+
class IncludeGraphics(Command):
|
|
14
|
+
r"""Place a picture: `\includegraphics[width=3cm]{a.png}`."""
|
|
15
|
+
|
|
16
|
+
cs = "includegraphics"
|
|
17
|
+
path: Raw
|
|
18
|
+
options: Raw | None = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@package.command
|
|
22
|
+
class GraphicsPath(Command):
|
|
23
|
+
r"""Directories searched for pictures; the first group `{}` keeps the current one."""
|
|
24
|
+
|
|
25
|
+
cs = "graphicspath"
|
|
26
|
+
directories: Raw
|
texmodel/std/hyphenat.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
r"""hyphenat: Hyphenation control. Loaded with `Package.require`; its commands are not declared.
|
|
2
|
+
|
|
3
|
+
A header (the package is adopted): it declares the interface, `texmodel` writes calls and never the package."""
|
|
4
|
+
|
|
5
|
+
from texmodel.package import Package
|
|
6
|
+
|
|
7
|
+
package = Package("hyphenat", prefix="", adopted=True)
|