Skip to content

Commit

Permalink
Add a documentation about matrices (ForNeVeR#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Aug 19, 2019
1 parent 2f3e330 commit 3d700b1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ You may also pass your own `IElementRenderer` implementation to `TexFormula.Rend
Documentation
-------------

- [How to prepare `DefaultTexFont.xml` from the font file][docs-prepare-font]

- [Matrices and Matrix-Like Constructs][docs-matrices]
- [How to improve blurred formulas][docs-blurred-text-issue]

- [How to prepare `DefaultTexFont.xml` from the font file][docs-prepare-font]

- [Licensing history][docs-licensing-history]

Build and Maintenance Instructions
Expand Down Expand Up @@ -133,6 +134,7 @@ We're very grateful to JMathTeX authors for their work and allowing to redistrib
[docs-prepare-font]: docs/prepare-font.md
[docs-blurred-text-issue]: docs/blurred-text-issue.md
[docs-licensing-history]: docs/licensing-history.md
[docs-matrices]: docs/matrices.md
[example]: WpfMath.Example/
[fonts]: src/WpfMath/Fonts/
[license]: LICENSE.md
Expand Down
5 changes: 5 additions & 0 deletions WpfMath.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{39669369-C
ProjectSection(SolutionItems) = preProject
docs\example-screenshot.png = docs\example-screenshot.png
docs\licensing-history.md = docs\licensing-history.md
docs\blurred-text-issue.md = docs\blurred-text-issue.md
docs\cleartype.png = docs\cleartype.png
docs\default.png = docs\default.png
docs\matrices.md = docs\matrices.md
docs\prepare-font.md = docs\prepare-font.md
EndProjectSection
EndProject
Global
Expand Down
26 changes: 26 additions & 0 deletions docs/matrices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Matrices and Matrix-Like Constructs
===================================

WPF-Math supports multiple types of matrices and similar constructs (that allow to build the items into rows and columns).

All commands offer a similar syntax, but a bit different features. Rows inside of a matrix are separated by two commands:

- `\cr`
- `\\`

Cells inside of a row are separated by `&`.

For example, the following command creates a matrix with 2 rows and 3 columns:

```
\matrix{1 & 2 & 3 \\ 4 & 5 & 6}
```

There're two matrix types supported:

- `\matrix`: a matrix without brackets
- `\pmatrix`: a matrix within square brackets

There's also a matrix-like construct:

- `\cases`: for piecewise functions etc

0 comments on commit 3d700b1

Please sign in to comment.