# [TxMt] Bug in LaTeX bundle

Guido Governatori guido at itee.uq.edu.au
Thu Nov 1 13:28:29 UTC 2007

On 01/11/2007, at 9:53 PM, Charilaos Skiadas wrote:

> On Oct 31, 2007, at 6:32 PM, Guido Governatori wrote:
>
>> I think I have discovered a bug in the LaTeX bundle:
>>
>> When I insert a tabular/array snippet when I go to the second tab
>> stop (specification of the column) Iget
>>
>> \begin{tabular}{rl}
>> & &
>> \end{tabular}
>>
>> the spec rl tells that there are two columns, but inside the
>> environment I have 3 columns (resulting in a LaTeX error).
>>
>> The same behaviour does not occur for example with r|l as column
>> spec.
>>
> I actually have the same problem with rll, how do you manage to
> make rll work properly?
>
> It's a known problem and I have found no way to fix it, sorry. It
> will always print one more entry than you want. Patches are welcome
> of course, but I have doubts as to whether it is possible at all.
>
Well the following seems to work for me.

\\begin{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${2:c}}$0${2/((?<=.)(c|l|r))|./(?1: & )/g} \\end{${1:t}${1/(t)$|(a)\$|(.*)/(?1:abular)(?2:rray)/}}

The difference is to group c|l|r in the second line.

All the best

Guido
--
Dr Guido Governatori
School of Information Technology and Electrical Engineering
The University of Queensland
Brisbane, Queensland, 4072, Australia
Phone: +61-(0)7-336 52907
Fax: +61-(0)7-336 54999
http://www.governatori.net/TextMate
http://www.defeasible.org