[TxMt] adding to or modifying the symbol list for LaTeX?

Gary L. Gray gray at engr.psu.edu
Mon Jan 23 05:18:42 UTC 2006


On Jan 22, 2006, at 9:21 PM, Allan Odgaard wrote:

> On 23/1/2006, at 1:26, Gary L. Gray wrote:
>
>> [...] With that said, as you can see from the screen shots  
>> included in my previous message, the indentation you describe does  
>> not seem to be happening. Something else must be missing.  
>> Chapters, sections, subsections, subsubsections, and paragraphs  
>> are all included, but they are all shown the same way. In fact, I  
>> am writing a paper that has unnumbered section headings and the  
>> function pop-up is recognizing them but it is not indenting anything:
>>
>> <Picture 1.png>
>>
>> Is this the intended behavior for starred section headings?
>
> That's an oversight. I've changed the preferences to:
>
> /* preferences */
> {  showInSymbolList = 1;
>    symbolTransformation = '
>       s/(?<=\\|sub)sub/ /g;             # replace all leading  
> "sub" with an em-space
>       s/^\\( *)section\*?(?:\[[^]]*\])?\{(.+)\}/$1$2/;   # then  
> strip all but em-space + name
> 	';
> }

I inserted what you have above, except I changed the first s in the  
third so that it also recognizes sectioning commands that begin with  
an uppercase letter. I now have:

/* preferences */
{  showInSymbolList = 1;
    symbolTransformation = '
       (s|S)/(?<=\\|sub)sub/ /g;             # replace all leading  
"sub" with an em-space
       s/^\\( *)section\*?(?:\[[^]]*\])?\{(.+)\}/$1$2/;   # then  
strip all but em-space + name
	';
}

and I am still not seeing the indenting as you can see in the  
following screen shots:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 2.png
Type: image/png
Size: 16824 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060123/6ec6e678/attachment.png>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 141156 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060123/6ec6e678/attachment-0001.png>
-------------- next part --------------

-- Gary


More information about the textmate mailing list