[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Insertion of braces when the last argument of a macro is
From: |
Mosè Giordano |
Subject: |
[AUCTeX-devel] Insertion of braces when the last argument of a macro is optional |
Date: |
Mon, 9 Sep 2013 19:45:33 +0200 |
Hi all,
in *TeX empty groups aren't harmless and I think AUCTeX shouldn't
append braces to a macro when its last argument is optional. Consider
for example the following code
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{ll}
\toprule{}
foo & bar \\
\midrule
foo & bar \\
\bottomrule
\end{tabular}
\end{document}
--8<---------------cut here---------------end--------------->8---
The first cell of the first row has a wrong spacing. The attached
patch should fix this problem. Objections or better solutions?
Bye,
Mosè
last-optional-argument.patch
Description: Binary data
- [AUCTeX-devel] Insertion of braces when the last argument of a macro is optional,
Mosè Giordano <=