Basic syntax
You might want to read basic Scribble documentation, But it should not be necessary, because the syntax should be clear from the source file of these pages. More examples can be found here.
Simple formulas
To insert formula , type:
@f{x^2/y^2} |
Curly brackets inside are usually not a problem: for just type
@f{y_{ij}} |
it works. If however something goes wrong, you might want to use better protection:
@f|{y_{ij}}| or even @f|-{y_{ij}}-| |
Whether you need to use @f|-{...}-|, or @f{...} is enough, depends on
the structure of parentheses inside your formula. If parentheses are well-balanced then
@f{...} is enough. If not, then better protection is needed. For example, if the formula
is: ,
then you absolutely need to use @f|-{...}-|, since the is unbalanced
There is also the display-style @e{...} which allows formula labeling using @e[#:tag "FormulaName"]{...}.
It is also possible to manually align the formulas, for example
@f+4{x^2} produces
Multiline formulas
Example:
@align[r.l |
@list[ |
@f{{2\over 1 - x^2} = } @f{1+x+x^2 + \ldots +} |
]@list[ |
"" @f{1-x+x^2- \ldots} |
] |
] |
produces:
The only problem is, there is a small alignment defect. To fix it, do this:
@align[r.l |
@list[ |
@f{{2\over 1 - x^2} = } @v+[3 @f{1+x+x^2 + \ldots +}] |
]@list[ |
"" @f{1-x+x^2- \ldots} |
] |
] |
Notice that in the first line stands the symbol "r.l" which defines the alignment (right, then left). The "v+" is a padding,
it serves for vertical adjustment, see the
manual page.
The numbered version of the same formula will be
@align[r.l.n |
@list[ |
@f{{2\over 1 - x^2} = } @v+[3 @f{1+x+x^2 + \ldots +}] "" |
]@list[ |
"" @f{1-x+x^2- \ldots} @label{SumOfGeometricProgressions} |
] |
] |
Notice that the alignment symbol is now r.l.n, we added letter n for the number. The function @label[] is defined in the slides’ header.
Fun with Unicode
To get