Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f7def5

Browse files
fix(latex): move label to avoid error (rafamadriz#472)
1 parent2c0e75a commit1f7def5

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

‎snippets/latex/latex-snippets.json‎

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"Chapter": {
1818
"prefix":"cha",
1919
"body": [
20-
"\\chapter{$1} % (fold)",
21-
"\\label{chap:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
20+
"\\chapter{$1}\\label{chap:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
2221
"${0:$TM_SELECTED_TEXT}",
2322
"% chapter $1 (end)"
2423
],
@@ -182,8 +181,7 @@
182181
"Paragraph": {
183182
"prefix":"par",
184183
"body": [
185-
"\\paragraph{${1:paragraph name}} % (fold)",
186-
"\\label{par:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
184+
"\\paragraph{${1:paragraph name}}\\label{par:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
187185
"${0:$TM_SELECTED_TEXT}",
188186
"% paragraph $1 (end)"
189187
],
@@ -192,8 +190,7 @@
192190
"Part": {
193191
"prefix":"part",
194192
"body": [
195-
"\\part{${1:part name}} % (fold)",
196-
"\\label{prt:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
193+
"\\part{${1:part name}}\\label{prt:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
197194
"${0:$TM_SELECTED_TEXT}",
198195
"% part $1 (end)"
199196
],
@@ -222,8 +219,7 @@
222219
"Section": {
223220
"prefix":"sec",
224221
"body": [
225-
"\\section{$1} % (fold)",
226-
"\\label{sec:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
222+
"\\section{$1}\\label{sec:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
227223
"${0:$TM_SELECTED_TEXT}",
228224
"% section $1 (end)"
229225
],
@@ -232,8 +228,7 @@
232228
"Sub Paragraph": {
233229
"prefix":"subp",
234230
"body": [
235-
"\\subparagraph{$1} % (fold)",
236-
"\\label{subp:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
231+
"\\subparagraph{$1}\\label{subp:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
237232
"${0:$TM_SELECTED_TEXT}",
238233
"% subparagraph $1 (end)"
239234
],
@@ -242,8 +237,7 @@
242237
"Sub Section": {
243238
"prefix":"sub",
244239
"body": [
245-
"\\subsection{$1} % (fold)",
246-
"\\label{sub:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
240+
"\\subsection{$1}\\label{sub:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
247241
"${0:$TM_SELECTED_TEXT}",
248242
"% subsection $1 (end)"
249243
],
@@ -252,8 +246,7 @@
252246
"Sub Sub Section": {
253247
"prefix":"subs",
254248
"body": [
255-
"\\subsubsection{${1:subsubsection name}} % (fold)",
256-
"\\label{sec:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}}",
249+
"\\subsubsection{${1:subsubsection name}}\\label{sec:${1/([a-zA-Z]+)|([^a-zA-Z]+)/${1:/downcase}${2:+_}/g}} % (fold)",
257250
"${0:$TM_SELECTED_TEXT}",
258251
"% subsubsection $1 (end)"
259252
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp