diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2015-03-31 09:44:15 -0700 | 
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2015-03-31 09:44:15 -0700 | 
| commit | 9a79538ac9d924f159836f0681655f06b493b57e (patch) | |
| tree | e5229a5ef66c6b8a4b558aa6b296ac24063d94d1 /tests/latex-reader.latex | |
| parent | 2b2f7fe15e2632fe123934ec105c8cc72cd593fd (diff) | |
| parent | f1eb1ab9cf6678cabbdb5b312bbd757ed32d8a76 (diff) | |
| download | pandoc-9a79538ac9d924f159836f0681655f06b493b57e.tar.gz | |
Merge pull request #2042 from lierdakil/issue1866
LaTeX Reader: check for block-level newcommand aliases in blockCommand
Diffstat (limited to 'tests/latex-reader.latex')
| -rw-r--r-- | tests/latex-reader.latex | 27 | 
1 files changed, 27 insertions, 0 deletions
| diff --git a/tests/latex-reader.latex b/tests/latex-reader.latex index 2ebdfed99..4324dbfbe 100644 --- a/tests/latex-reader.latex +++ b/tests/latex-reader.latex @@ -845,4 +845,31 @@ indented.  \$ \% \& \# \_ \{ \} +\section{Block newcommands} + +See e.g. issues #1866, #1835 + +\newcommand{\FIG}[3]{ +        \begin{figure}[h!] +                \centering +                \includegraphics[width=#2\columnwidth,angle=0]{#1} +                \caption{#3} +                \label{fig:#1} +        \end{figure} +} + +\newcommand{\separator}{\vspace{4em}} + +\separator + +\FIG{lalune.jpg}{0.5}{Test caption} + +\newcommand{\wbal}{The Wikibook about \LaTeX} + +\wbal is a good resource for learning \LaTeX. + +\separator with trailing inlines + +\FIG{lalune.jpg}{0.5}{Test caption} with trailing inlines +  \end{document} | 
