Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aa:macros:macros [2016/07/15 15:30] malex |
aa:macros:macros [2016/10/05 16:47] (current) pdmatei |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{## This is a macro for definitions ##}} | {{## This is a macro for definitions ##}} | ||
{{$environment=**@0 (@1)**: <blockquote>$}} | {{$environment=**@0 (@1)**: <blockquote>$}} | ||
+ | {{$justenvironment=**@0**: <blockquote>$}} | ||
{{$end=</blockquote>$}} {{## Unique end, since all environments look the same ##}} | {{$end=</blockquote>$}} {{## Unique end, since all environments look the same ##}} | ||
Line 6: | Line 7: | ||
{{## These are macros for definitions and examples. More will follow ##}} | {{## These are macros for definitions and examples. More will follow ##}} | ||
+ | {{$exercise=$environment[Exercise|@0]$}} | ||
{{$example=$environment[Example|@0]$}} | {{$example=$environment[Example|@0]$}} | ||
{{$def=$environment[Definition|@0]$}} | {{$def=$environment[Definition|@0]$}} | ||
+ | {{$remark=$environment[Remark|@0]$}} | ||
+ | {{$prop=$environment[Proposition|@0]$}} | ||
+ | {{$justprop=$justenvironment[Proposition]$}} | ||
+ | {{$proof=$justenvironment[Proof]$}} | ||
{{## This is a macro for math mode, to avoid confusion in expressions of the form $text ... ##}} | {{## This is a macro for math mode, to avoid confusion in expressions of the form $text ... ##}} | ||
Line 16: | Line 21: | ||
{{## This is a macro for algorithm writing. ##}} | {{## This is a macro for algorithm writing. ##}} | ||
- | {{$environment=**@0 (@1)**: <blockquote>$}} | + | {{$algorithm=$environment[Algorithm|@0]$}} |
+ | |||
+ | {{$todo=<color red>Todo:@0</color>$}} |