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.
Files changed (61) hide show
  1. texmodel/__init__.py +6 -0
  2. texmodel/_internal/__init__.py +1 -0
  3. texmodel/_internal/render.py +323 -0
  4. texmodel/_internal/scan.py +23 -0
  5. texmodel/body.py +364 -0
  6. texmodel/bundle.py +69 -0
  7. texmodel/cli.py +211 -0
  8. texmodel/components.py +757 -0
  9. texmodel/config.py +32 -0
  10. texmodel/drift.py +55 -0
  11. texmodel/errors.py +38 -0
  12. texmodel/package.py +482 -0
  13. texmodel/plan.py +92 -0
  14. texmodel/pointer.py +70 -0
  15. texmodel/preamble.py +110 -0
  16. texmodel/py.typed +0 -0
  17. texmodel/spec.py +235 -0
  18. texmodel/std/__init__.py +37 -0
  19. texmodel/std/adjustbox.py +19 -0
  20. texmodel/std/anyfontsize.py +7 -0
  21. texmodel/std/calc.py +7 -0
  22. texmodel/std/enumitem.py +18 -0
  23. texmodel/std/eso_pic.py +49 -0
  24. texmodel/std/etoolbox.py +127 -0
  25. texmodel/std/fontspec.py +36 -0
  26. texmodel/std/geometry.py +17 -0
  27. texmodel/std/graphicx.py +26 -0
  28. texmodel/std/hyphenat.py +7 -0
  29. texmodel/std/latex.py +516 -0
  30. texmodel/std/microtype.py +27 -0
  31. texmodel/std/pdfrender.py +17 -0
  32. texmodel/std/tcolorbox.py +43 -0
  33. texmodel/std/tikz.py +36 -0
  34. texmodel/std/xcolor.py +47 -0
  35. texmodel/testing.py +297 -0
  36. texmodel/types.py +264 -0
  37. texmodel-0.2.0.dist-info/METADATA +525 -0
  38. texmodel-0.2.0.dist-info/RECORD +61 -0
  39. texmodel-0.2.0.dist-info/WHEEL +4 -0
  40. texmodel-0.2.0.dist-info/entry_points.txt +9 -0
  41. texmodel-0.2.0.dist-info/licenses/LICENSE +21 -0
  42. texmodel_build/__init__.py +10 -0
  43. texmodel_build/_internal/__init__.py +1 -0
  44. texmodel_build/_internal/converge.py +19 -0
  45. texmodel_build/_internal/env.py +42 -0
  46. texmodel_build/_internal/logparse.py +170 -0
  47. texmodel_build/_internal/proofpdf.py +52 -0
  48. texmodel_build/_internal/spawn.py +36 -0
  49. texmodel_build/_internal/styscan.py +37 -0
  50. texmodel_build/cli.py +349 -0
  51. texmodel_build/compiler.py +341 -0
  52. texmodel_build/config.py +58 -0
  53. texmodel_build/diagnostics.py +225 -0
  54. texmodel_build/engines.py +35 -0
  55. texmodel_build/errors.py +17 -0
  56. texmodel_build/py.typed +0 -0
  57. texmodel_build/result.py +65 -0
  58. texmodel_build/roots.py +41 -0
  59. texmodel_build/targets.py +43 -0
  60. texmodel_build/testkit.py +59 -0
  61. texmodel_build/verify.py +158 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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)