【发布时间】:2012-10-11 07:35:28
【问题描述】:
问:在 Textmate 2 中编辑 .tex 文件时:如何以更大的字体打印 Latex 部分?
我在 Latex 包中添加了以下语法:
{ patterns = (
{ begin = 'section\{';
end = '\}';
name = 'markup.heading.1.latex';
},
);
}
此外,我还添加了以下应用于新定义的 markup.heading.1.latex 范围的设置:
{ fontName = 'Baskerville';
fontSize = '2.25em';
}
问题:它只匹配没有前导的部分:
...当我将范围定义更改为以下内容时(在“部分”前面添加 \\):
{ patterns = (
{ begin = '\\section\{';
end = '\}';
name = 'markup.heading.1.latex';
},
);
}
.. 范围不适用。
有什么想法吗?
【问题讨论】:
-
由于这里没有回复,我在 tex.stackexchange 上问了一个类似的问题:tex.stackexchange.com/questions/98574/…
标签: scope textmate textmatebundles