@@ -14,6 +14,7 @@ of approval tests used to help test the library for regressions.
1414- [ Subscripts and Superscripts] ( #subscripts-and-superscripts )
1515- [ Fractions] ( #fractions )
1616- [ Radicals] ( #radicals )
17+ - [ Matrices] ( #matrices )
1718- [ Big Operators] ( #big-operators )
1819- [ Accents] ( #accents )
1920- [ Overlining and Underlining] ( #overlining-and-underlining )
@@ -29,36 +30,49 @@ of approval tests used to help test the library for regressions.
2930 - [ Punctuation] ( #punctuation )
3031 - [ Others] ( #others )
3132- [ Spaces] ( #spaces )
32-
3333
3434## Subscripts and Superscripts
3535
3636Subscripts and superscripts including all levels of nesting are supported:
3737
3838![ ] ( ./../tests/approval_tests/approved_files/docs.subscripts_and_superscripts.approved.svg )
3939
40-
4140## Fractions
4241
4342There is full support for the standard ` \frac ` command - again, including all levels of nesting:
4443
4544![ ] ( ./../tests/approval_tests/approved_files/docs.fractions.approved.svg )
4645
47- The ` \binom ` command is also supported and anything that is not covered by either ` \frac ` or
46+ The ` \binom ` command is also supported and anything that is not covered by either ` \frac ` or
4847` \binom ` can be achieved using the generalized fraction command ` \genfrac ` :
4948
5049![ ] ( ./../tests/approval_tests/approved_files/docs.genfrac.approved.svg )
5150
52- Note that in generalized fractions the third argument - the line thickness - is always in points and that currently
51+ Note that in generalized fractions the third argument - the line thickness - is always in points and that currently
5352the fourth argument - the style - is ignored and treated as if ` \displaystyle ` was set.
5453
55-
5654## Radicals
5755
5856* mfl* has full support for radicals, including the optional degree and unlimited nesting:
5957
6058![ ] ( ./../tests/approval_tests/approved_files/docs.radicals.approved.svg )
6159
60+ ## Matrices
61+
62+ TeX-style matrices are supported via the ` \matrix ` command:
63+
64+ ![ ] ( ./../tests/approval_tests/approved_files/docs.matrix.approved.svg )
65+
66+ For example, * J* in the second row above is defined as follows:
67+
68+ ```
69+ J = \left(\matrix{
70+ \frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_n} \cr
71+ \frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_n} \cr
72+ \vdots & \vdots & \ddots & \vdots \cr
73+ \frac{\partial f_m}{\partial x_1} & \frac{\partial f_m}{\partial x_2} & \cdots & \frac{\partial f_m}{\partial x_n}
74+ }\right)
75+ ```
6276
6377## Big Operators
6478
@@ -75,7 +89,6 @@ The extended integral symbols are also considered big operators:
7589
7690![ ] ( ./../tests/approval_tests/approved_files/docs.big_ops_integrals.approved.svg )
7791
78-
7992## Accents
8093
8194There is support for the common mathematical accents:
@@ -90,14 +103,12 @@ There is also support for some additional mathematical accents:
90103
91104![ ] ( ./../tests/approval_tests/approved_files/docs.additional_accents.approved.svg )
92105
93-
94106## Overlining and Underlining
95107
96108The automatic positioning and sizing of overlines and underlines is fully supported:
97109
98110![ ] ( ./../tests/approval_tests/approved_files/docs.lines.approved.svg )
99111
100-
101112## Functions and User Defined Operators
102113
103114Unlike variables, known functions are typeset in roman instead of italics. * mfl* also
@@ -110,7 +121,6 @@ behave like built-in functions:
110121
111122![ ] ( ./../tests/approval_tests/approved_files/docs.operatorname.approved.svg )
112123
113-
114124## Delimiters
115125
116126The following symbols are recognized as opening and closing delimiters:
@@ -122,17 +132,20 @@ available, and the dot variants `\left.` and `\right.` can be used to omit one o
122132
123133![ ] ( ./../tests/approval_tests/approved_files/docs.sized_delimiters.approved.svg )
124134
135+ If supported by the font, * mfl* will also assemble delimiters from "parts" allowing the use of
136+ oversized - and effectively arbitrarily sized - delimiters:
137+
138+ ![ ] ( ./../tests/approval_tests/approved_files/docs.extra_large_delimiters.approved.svg )
125139
126140## Fonts
127141
128142* mfl* only supports the scoped font switches (like ` \mathrm ` , ` \mathit ` etc.) and not the
129143deprecated state switches (like ` \rm ` , ` \it ` etc.). * mfl* recognises the font
130- commands in the examples below. Availability and appearance of glyphs will of course
144+ commands in the examples below. Availability and appearance of glyphs will of course
131145depend on the actual fonts that are being used. This is what the * Stix2* fonts look like:
132146
133147![ ] ( ./../tests/approval_tests/approved_files/docs.fonts.approved.svg )
134148
135-
136149## Symbols
137150
138151* mfl* recognises most mathematical symbols. Here is an overview of the most important ones
@@ -142,12 +155,11 @@ for reference.
142155
143156![ ] ( ./../tests/approval_tests/approved_files/docs.greek_alphabet_lowercase.approved.svg )
144157
145- As per mathematical convention, Greek capitals are automatically set in roman font and
158+ As per mathematical convention, Greek capitals are automatically set in roman font and
146159not in italics.
147160
148161![ ] ( ./../tests/approval_tests/approved_files/docs.greek_alphabet_uppercase.approved.svg )
149162
150-
151163### Binary Operators
152164
153165* mfl* supports the basic TeX binary operators:
@@ -158,7 +170,6 @@ as well as various binary operators from additional packages like the AMS packag
158170
159171![ ] ( ./../tests/approval_tests/approved_files/docs.additional_binary_operators.approved.svg )
160172
161-
162173### Relational Operators
163174
164175Similarly to the binary operators, * mfl* supports the fundamental relational operators:
@@ -169,7 +180,6 @@ but also recognises many others:
169180
170181![ ] ( ./../tests/approval_tests/approved_files/docs.additional_relational_operators.approved.svg )
171182
172-
173183#### Negations
174184
175185Many relations can be negated by prepending ` \not ` :
@@ -180,7 +190,6 @@ and some further negated relational operators are also supported:
180190
181191![ ] ( ./../tests/approval_tests/approved_files/docs.additional_negations.approved.svg )
182192
183-
184193### Arrows
185194
186195The TeX arrow symbols are supported:
@@ -191,14 +200,12 @@ and *mfl* will also recognise the following extended set of arrow symbols:
191200
192201![ ] ( ./../tests/approval_tests/approved_files/docs.additional_arrows.approved.svg )
193202
194-
195203### Punctuation
196204
197205* mfl* recognises the following symbols as punctuation:
198206
199207![ ] ( ./../tests/approval_tests/approved_files/docs.punctuation.approved.svg )
200208
201-
202209### Others
203210
204211For completeness, the following tables show the remaining supported symbols:
@@ -207,7 +214,6 @@ For completeness, the following tables show the remaining supported symbols:
207214![ ] ( ./../tests/approval_tests/approved_files/docs.combining_symbols.approved.svg )
208215![ ] ( ./../tests/approval_tests/approved_files/docs.dots.approved.svg )
209216
210-
211217## Spaces
212218
213219The following mathematical spacing commands are recognized by * mfl* :
0 commit comments