aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-10-26 19:57:05 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-10-26 19:57:05 -0700
commit3a799f44829a20d2de0c600d4e2444132803b202 (patch)
treecbcd51ccd695e12d7ab4dc173215e9b51ab28b01
parent7fdf3f5a4604401187dd3db52036c92c38e07a25 (diff)
downloadpandoc-3a799f44829a20d2de0c600d4e2444132803b202.tar.gz
Documented LaTeX macros.
-rw-r--r--README12
1 files changed, 12 insertions, 0 deletions
diff --git a/README b/README
index fe22e19f7..af229b9f4 100644
--- a/README
+++ b/README
@@ -1254,6 +1254,18 @@ command-line options selected:
with the URL provided. If no URL is specified, the Google Chart
API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`).
+LaTeX Macros
+------------
+
+For output formats other than LaTeX, pandoc will parse LaTeX `\newcommand` and
+`\renewcommand` definitions and apply the resulting macros to all LaTeX
+math. So, for example, the following will work in all output formats,
+not just LaTeX:
+
+ \newcommand{\tuple}[1]{\langle #1 \rangle}
+
+ $\tuple{a, b, c}$
+
Inline TeX
----------