diff options
author | Nikolay Yakimov <root@livid.pp.ru> | 2015-03-21 22:39:07 +0300 |
---|---|---|
committer | Nikolay Yakimov <root@livid.pp.ru> | 2015-03-30 05:37:00 +0300 |
commit | f3e8274d0425b3bf7a2459a2d88af585b491507f (patch) | |
tree | 91ec28f8ec2b3b63114ec2f442cc4fe04a45caf5 /tests/latex-reader.latex | |
parent | 34c6ff1f602cefa6c68af096a69bd1483e613606 (diff) |
LaTeX Reader: check for block-level newcommand aliases in blockCommand
Diffstat (limited to 'tests/latex-reader.latex')
-rw-r--r-- | tests/latex-reader.latex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/latex-reader.latex b/tests/latex-reader.latex index 2ebdfed99..0e5983d6a 100644 --- a/tests/latex-reader.latex +++ b/tests/latex-reader.latex @@ -845,4 +845,23 @@ 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} + \end{document} |