# -*- mode: snippet -*- # key: cha # contributor: Translated from TextMate Snippet # name: Chapter # -- \chapter{${1:chapter name}} % (fold) \label{cha:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}} `yas/selected-text`$0 % chapter $2 (end)