signchart directive#
The signchart directive generates a sign chart for a function, showing where it is positive, negative, and zero.
Basic usage#
```{signchart}
---
function: x**2 - 4, f(x)
factors: true
width: 80%
---
```
Syntax overview#
The function key takes an expression and an optional label separated by a comma. When factors: true is set, the chart also shows the sign of each factor.
Options#
Option |
Meaning |
Default |
|---|---|---|
|
Function expression and optional label (e.g. |
(required) |
|
Show sign rows for individual factors |
|
|
Left bound of the x-axis |
auto |
|
Right bound of the x-axis |
auto |
|
CSS width |
— |
|
|
— |
|
Extra CSS classes |
— |
|
Stable anchor / reference name |
— |
|
Alt text |
— |
|
Force regeneration |
— |
|
Keep debug output |
— |
Notes#
Aliases:
sign-chartFor broader function support (trig, rational, etc.), see
signchart-2.