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

Allan Odgaard throw-away-1 at macromates.com
Mon Jan 23 02:21:46 UTC 2006


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
	';
}





More information about the textmate mailing list