Debian Codegraph @

texmf-dist/doc/latex/mathfixs/mathfixs-samp.tex

raw
1 %%
2 %% This is file `mathfixs-samp.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% mathfixs.dtx (with options: `sample')
8 %%
9 %% Copyright (C) 2018-2026 Niklas Beisert
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% https://www.latex-project.org/lppl.txt
16 %% and version 1.3c or later is part of all distributions of LaTeX
17 %% version 2008 or later.
18 %%
19 \NeedsTeXFormat{LaTeX2e}[1996-12-01]
20 \ProvidesFile{mathfixs-samp.tex}[2026-04-08 v1.2.1 sample for mathfixs]
21 \documentclass[12pt]{article}
22
23 \usepackage{geometry}
24 \geometry{layout=a4paper}
25 \geometry{paper=a4paper}
26 \geometry{margin=3cm}
27 \parindent0pt
28
29 \RequirePackage{amsmath,amssymb}
30 \RequirePackage[autobold]{mathfixs}
31
32 \ProvideMathFix{greekcaps,mathbold}
33 \ProvideMathFix{frac,rfrac,vfrac}
34 \ProvideMathFix{multskip}
35 \ProvideMathFix{der,diff}
36
37 \begin{document}
38
39 \paragraph{Fractions.}
40
41 \[
42 x\frac{a+b}{c+d}\frac{e}{f}.
43 \]
44
45 Recipe for $\approx 3$ pancakes (scale accordingly):
46 Whisk together one large egg, $\vfrac{1}{8} \ell$ milk,
47 $50\mathinner{\mathrm{g}}$ flour
48 (mix \vfrac{2}{3} wholemeal flour and \vfrac{1}{3} white flour); fry in pan.
49 Feel free to use more flour than indicated.
50
51 \[
52 \rfrac{1}{2}x^2 + \rfrac{1}{6} y^3 + \rfrac{1}{4} x^2 y^2
53 \]
54
55 \paragraph{Radicals.}
56
57 \[
58 y\sqrt{x}z,\qquad
59 y\sqrt[]{x}z,\qquad
60 y\sqrt[i]{x}z,\qquad
61 y\sqrt[n]{x}z,\qquad
62 y\sqrt[3]{x}z,\qquad
63 y\sqrt[123]{x}z
64 \]
65
66 \ProvideMathFix{root}
67 \[
68 y\sqrt{x}z,\qquad
69 y\sqrt[]{x}z,\qquad
70 y\sqrt[i]{x}z,\qquad
71 y\sqrt[n]{x}z,\qquad
72 y\sqrt[3]{x}z,\qquad
73 y\sqrt[123]{x}z
74 \]
75
76 \[
77 \ProvideMathFix{rootclose}
78 y\sqrt{x}z,\qquad
79 y\sqrt[]{x}z,\qquad
80 y\sqrt[i]{x}z,\qquad
81 y\sqrt[n]{x}z,\qquad
82 y\sqrt[3]{x}z,\qquad
83 y\sqrt[123]{x}z
84 \]
85
86 \[
87 \ProvideMathFix{rootclass={\mathinner}}
88 y\sqrt{x}z,\qquad
89 y\sqrt[]{x}z,\qquad
90 y\sqrt[i]{x}z,\qquad
91 y\sqrt[n]{x}z,\qquad
92 y\sqrt[3]{x}z,\qquad
93 y\sqrt[123]{x}z
94 \]
95
96 \paragraph{Spaces Representing Multiplication and Derivative Symbols.}
97
98 \[
99 \int x\.\der x
100 \]
101
102 \[
103 \int x\diff{x}
104 \]
105
106 \paragraph{Greek Letters.}
107
108 \[
109 \Gamma \qquad
110 \mathrm{\Gamma} \qquad
111 c\operatorname{\Gamma}(x)
112 \]
113
114 \paragraph{Bold Text with Math Symbols: $abc123\alpha\Gamma$.}
115
116 \[
117 aG\alpha\Gamma
118 \qquad\mathbold{aG\alpha\Gamma}
119 \qquad\ProvideMathFix{greeklower}\mathbold{aG\alpha\Gamma}
120 \]
121
122 \paragraph{Real and Imaginary Parts.}
123
124 \[
125 \Re(z),\Im(z)
126 \qquad\ProvideMathFix{reim}
127 \Re(z),\Im(z)
128 \qquad\ProvideMathFix{reim={\nRe\nIm}}
129 \nRe(z),\nIm(z)
130 \]
131
132 \paragraph{Functions, Operators, Symbols.}
133
134 \[
135 \ProvideMathFix{vecdiff,lapl,defeq}
136 \lapl f=\div\grad f,
137 \qquad
138 \lapl v=\grad\div v-\curl\curl v,
139 \]
140 \[
141 \ProvideMathFix{econst,iunit,piconst}
142 \econst^{\iunit\piconst}=-1,
143 \qquad
144 \ProvideMathFix{econst*,iunit*,piconst*}
145 \econst^{\iunit\piconst}=-1,
146 \qquad
147 \ProvideMathFix{econst,defeq,iunit*nb,numsets}
148 z\defeq x+\iunit y=r\econst^{\iunit\theta}\in\Complex,
149 \quad x,y,r,\theta\in\Real
150 \]
151 \[
152 \ProvideMathFix{res,hyp,iunit*,piconst*}
153 \res_{z=\iunit \piconst n} \csch(z)=(-1)^n
154 \]
155
156 \end{document}
157 \endinput
158 %%
159 %% End of file `mathfixs-samp.tex'.