# 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.

## 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.

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.

1. Pandoc markdown syntax
3. Adding numbered equations in pandoc.2

## Source code for the macros

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