mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-17 02:44:17 +00:00
Last commit before tagging and releasing
This commit is contained in:
9
extras/imported/LaTeX-mode/Sectioning/Chapter.yasnippet
Normal file
9
extras/imported/LaTeX-mode/Sectioning/Chapter.yasnippet
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- 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)
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: par
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Paragraph
|
||||
# --
|
||||
\paragraph{${1:paragraph name}} % (fold)
|
||||
\label{par:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% paragraph $2 (end)
|
||||
9
extras/imported/LaTeX-mode/Sectioning/Part.yasnippet
Normal file
9
extras/imported/LaTeX-mode/Sectioning/Part.yasnippet
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: part
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Part
|
||||
# --
|
||||
\part{${1:part name}} % (fold)
|
||||
\label{prt:${2:${1/(\w+)|\W+/(?1:\L$0:_)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% part $2 (end)
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: subp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Sub Paragraph
|
||||
# --
|
||||
\subparagraph{${1:subparagraph name}} % (fold)
|
||||
\label{subp:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% subparagraph $2 (end)
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sec
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Section
|
||||
# --
|
||||
\section{${1:section name}} % (fold)
|
||||
\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% section $2 (end)
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sub
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Sub Section
|
||||
# --
|
||||
\subsection{${1:subsection name}} % (fold)
|
||||
\label{sub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% subsection $2 (end)
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: subs
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Sub Sub Section
|
||||
# --
|
||||
\subsubsection{${1:subsubsection name}} % (fold)
|
||||
\label{ssub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% subsubsection $2 (end)
|
||||
Reference in New Issue
Block a user