[TxMt] pbs with LaTeX labels

Charilaos Skiadas skiadas at hanover.edu
Sat Jun 30 02:00:11 UTC 2007


On Jun 29, 2007, at 4:43 PM, Charilaos Skiadas wrote:

> On Jun 5, 2007, at 3:34 AM, Allan Odgaard wrote:
>
>> On 2. Jun 2007, at 13:39, Édouard Gilbert wrote:
>>
>>> Yes, that was it. Nearly perfect for me. Just got to remove the  
>>> uppercase letter. Would that be something like :
>>>
>>> ${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|(\W+)/(?4:_:\L$1\L$2\L$3)/g}
>>>
>>> ?
>>
>> Yes, though you only need one \L (it lowercases until it sees a \E).
>>
>>> Can I suggest to think about including this in every section/ 
>>> subsection/paragraph snippet of the LaTeX bundle? Well, if it's  
>>> behaviour match other users expectation, of course.
>>
>> Seeing how it already tries to do a smart transform, I don’t see  
>> why not go all the way.
>>
>> Though I’ll wait to see if Haris has any comments.
>
> Sorry for the late response, seems fine to me at first glance, I'll  
> try it a bit in the next couple of days and then commit it.
>
Looking at this again, the current commands in the bundle use this:

${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}

which differs from the above only in the (\W+) part. So I am  
confused: Which cases are not covered by the already existing  
commands? I.e. what is the label, and how is it transformed in the  
two cases?

As for the non-ascii characters, we could probably create a command  
that would scan the entire document and try to fix all the sectioning  
commands, including adding labels if there are none, and changing the  
labels appropriately.

> Haris Skiadas

Haris Skiadas






More information about the textmate mailing list