【LaTex】latex VS Code snippets(代码片段)

尹弘壮
2023-12-01
	"figure": {
		"prefix": "fig",
		"body": [
			"\\begin{figure}",
				"\t\\centering",
				"\t\\includegraphics[scale=${2:0.3}]{$1}",
			"\\end{figure}",
			"$3"
		],
		"description": "insert a figure in latex"
	},

	"frame": {
		"prefix": "frame",
		"body": [
			"\\begin{frame}[${2:allowframebreaks}]{$1}",
			"\t$3",
			"\\end{frame}"
		],
		"description": "insert a frame"
	},

	"itemize": {
		"prefix": "itm",
		"body": [
			"\\begin{itemize}",
			"\t\\item $1",
			"\t\\item $2",
			"\t\\item $3",
			"\\end{frame}"
		],
		"description": "itemize"
	},


	"enumerate": {
		"prefix": "enum",
		"body": [
			"\\begin{enumerate}",
			"\t\\item $1",
			"\t\\item $2",
			"\t\\item $3",
			"\\end{enumerate}"
		],
		"description": "enumerate"
	},


	"table": {
		"prefix": "table",
		"body": [
			"\\begin{table}",
			"\t\\centering",
			"\t\\resizebox{\\textwidth}{!}",
			"\t{",
			"\t\t\\begin{tabular}{lll}",
			"\t\t\\toprule",
			"\t\t${1:colum1}&\t${2:colum2}&\t${3:colum3}\\\\\\",
			"\t\t\\midrule",
			"\t\t${4:item1}&\t${5:item2}&\t${6:item3}\\\\\\",
			"\t\t${7:item4}&\t${8:item5}&\t${9:item6}\\\\\\",
			"\t\t\\bottomrule",
			"\t\t\\end{tabular}",
			"\t}",
			"\\end{table}"
		],
		"description": "table"
	}
 类似资料: