forked from cysec-lab/bachelor-thesis-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
latex.json.code-snippets
117 lines (110 loc) · 3.08 KB
/
latex.json.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
// Place your snippets for latex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
// prefix で指定した文字列を入力すると,body で指定した文字列が挿入される.
"deviding-line": {
"prefix": "dividing-line",
"body": ["% -------------------------------------------------------- % "],
"description": "区切り線"
},
"itemize": {
"prefix": "itemize",
"body": ["\\begin{itemize}", " \\item $1", "\\end{itemize}"],
"description": "箇条書き"
},
"input-soruce-code": {
"prefix": "input-source-code",
"body": [
"\\begin{figure}[tb]",
" \\centering",
" \\lstinputlisting[caption=$1, label=list:$2]{$3}",
"\\end{figure}"
],
"description": "ソースコードの読み込み"
},
"source-code": {
"prefix": "source-code",
"body": [
"\\begin{figure}[tb]",
"\\begin{lstlisting}[language=$1, caption={$2}, label={list:$3}]",
"$4",
"\\end{lstlisting}",
"\\end{figure}"
],
"description": "ソースコード"
},
"minted-source-code": {
"prefix": "minted-source-code",
"body": [
"\\begin{listing}[tb]",
"\\begin{minted}[bgcolor=bg]{$1}",
"$2",
"\\end{minted}",
"\\caption{$3}",
"\\label{list:$4}",
"\\end{listing}"
],
"description": "色付きソースコード"
},
"figure": {
"prefix": "figure",
"body": [
"\\begin{figure}[tb]",
" \\centering",
" \\includegraphics[clip,width=$1]{assets/$2.png}",
" \\caption{$3}",
" \\label{fig:$4}",
"\\end{figure}"
],
"description": "図"
},
"row-figure": {
"prefix": "row-figure",
"body": [
"\\begin{figure}[tb]",
" \\begin{minipage}{0.5hsize}",
" \\centering",
" \\includegraphics[width=70mm]{$1}",
" \\caption{$2}",
" \\label{fig:$3}",
" \\end{minipage}",
" \\begin{minipage}{0.5hsize}",
" \\centering",
" \\includegraphics[width=70mm]{$4}",
" \\caption{$5}",
" \\label{fig:$6}",
" \\end{minipage}",
"\\end{figure}"
],
"description": "横並びの図"
},
"formula": {
"prefix": "formula",
"body": ["\\begin{eqnarray}", " $1", "\\end{eqnarray}"],
"description": "数式"
},
"refferences": {
"prefix": ["refferences", "bibliography"],
"body": [
"\\begin{thebibliography}{}",
" \\bibitem{$1} $2",
"\\end{thebibliography}"
]
},
"refference": {
"prefix": ["refference", "bibitem"],
"body": ["\\bibitem{$1} $2"],
"description": "参考文献"
}
}