git.iko.soy/typeable/pandoc
on master help sign in
Documented LaTeX macros.
commit3a799f44829a20d2de0c600d4e2444132803b202 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 26 Oct 2010, 19:57 (16 years ago) parent7fdf3f5
1 file changed+12
README+12
README+12
@@ -1254,6 +1254,18 @@ command-line options selected:
12541254 with the URL provided. If no URL is specified, the Google Chart
12551255 API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`).
12561256
1257+LaTeX Macros
1258+------------
1259+
1260+For output formats other than LaTeX, pandoc will parse LaTeX `\newcommand` and
1261+`\renewcommand` definitions and apply the resulting macros to all LaTeX
1262+math. So, for example, the following will work in all output formats,
1263+not just LaTeX:
1264+
1265+ \newcommand{\tuple}[1]{\langle #1 \rangle}
1266+
1267+ $\tuple{a, b, c}$
1268+
12571269Inline TeX
12581270----------
12591271