My $\rm \LaTeX$ Macros for Math Writing
Basically, I just copied all the custom macros defined in
the local configuration file MathJaxLocal.js
and
adapted it for mymacros.sty
.
Sample output
Using the macros
Since I want both the simplicity of Markdown syntax and the
convenience of using Vim-$\rm \LaTeX$, I use .tex
as the file
extension of the pandoc document. If you mind the wrong syntax
highlighting, you may use .mkd
or whatever way you want.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
Here’s the sample output PDF file and the picture used in the document. I refered to the following pages while writing the above example.
- Pandoc markdown syntax
- Using YAML metadata block as header.1
- Adding numbered equations in pandoc.2
Source code for the macros
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
The use of the varwidth
option before the standalone
class is for
line breaks and the displayed equation at the first line in the sample
output.3 Loading the amsfonts
packages avoid an
“undefined control sequence error”.4