mirror of
https://github.com/josdejong/mathjs.git
synced 2026-02-01 16:07:46 +00:00
Some markdown fixes in the docs
This commit is contained in:
parent
d467f1f5db
commit
cedb5e04c6
@ -159,6 +159,7 @@ functions of that name.
|
||||
|
||||
|
||||
**Examples for option 2**
|
||||
|
||||
```js
|
||||
var customFunctions = {
|
||||
binomial: function (n, k) {
|
||||
@ -179,6 +180,7 @@ var customLaTeX = {
|
||||
```
|
||||
|
||||
You can simply use your custom toTex functions by passing them to `toTex`:
|
||||
|
||||
```js
|
||||
math.import(customFunctions);
|
||||
var expression = math.parse('binomial(factorial(2),1)');
|
||||
@ -214,7 +216,9 @@ var expression = math.parse('1+2');
|
||||
var latex = expression.toTex(customLaTeX);
|
||||
//latex now contains '\mbox{one} plus \mbox{two}'
|
||||
```
|
||||
|
||||
Another example in conjunction with custom functions:
|
||||
|
||||
```js
|
||||
var customFunctions = {
|
||||
binomial: function (n, k) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user