我正在尝试从TextMate包中的一个LaTeX片段中修改代码。这是代码:
\section{${1:section name}} % (fold)
\label{sec:${2:${1/\\\\\w+\{(.*?)\}|\\\\(.)|(\w+)|([^\w\\\\]+)/(?4:_:\L$1$2$3)/g}}}
${0:$TM_SELECTED_TEXT}
% section $2 (end)
我希望它也将unicode重音字符更改为非重音字符,例如:
将a
转化为a
将é
转化为e
将í
转化为i
将ó
转化为o
将ú
转化为u
将ñ
转化为n
这就是它所做的:
\section{Configuración de diseño} % (fold)
\label{sec:configuración_de_diseño}
% section configuración_de_diseño (end)
这就是我想要做的,因为胶乳标签不支持这些字符:
\section{Configuración de diseño} % (fold)
\label{sec:configuracion_de_diseno}
% section configuracion_de_diseno (end)
发布于 2014-09-14 16:19:52
https://stackoverflow.com/questions/25796076
复制相似问题