Last active
September 18, 2023 01:32
-
-
Save s-naoya/4f6d09879827b13453b4cfa45cd3fa6e to your computer and use it in GitHub Desktop.
VS Code LaTeX Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Figure": { | |
"prefix": "figure", | |
"body": [ | |
"\\begin{figure}[${1:tbp}]\\centering", | |
"\\includegraphics[${2:width=\\linewidth}]{$3}", | |
"\\caption{$4}", | |
"\\label{fig:$5}\\vspace{${6:0zh}}\\end{figure}" | |
], | |
"description": "set figure" | |
}, | |
"Table": { | |
"prefix": "table", | |
"body": [ | |
"\\begin{table}[${1:t}]", | |
"\\centering\\caption{$2}\\label{tabl:$3}", | |
"\\begin{tabular}{$4}\\hline", | |
"$5", | |
"\\end{tabular}\\end{table}" | |
], | |
"description": "set table" | |
}, | |
"Multi Fig": { | |
"prefix": "mfigure", | |
"body": [ | |
"\\begin{figure}[${1:tbp}]", | |
"${4:figureitem}", | |
"\\caption{$2}\\label{fig:$3}\\end{figure}" | |
], | |
"description": "set multi fig. Please use 'mfigitem'" | |
}, | |
"Vertical Multi Fig": { | |
"prefix": "vmfigure", | |
"body": [ | |
"\\begin{figure}[${1:tbp}]\\begin{tabular}{$2}", | |
"${5:figureitem}", | |
"\\end{tabular}", | |
"\\caption{$3}\\label{fig:$4}\\end{figure}" | |
], | |
"description": "set vertical multi fig. Please use 'mfigitem'" | |
}, | |
"Multi fig item": { | |
"prefix": "figureitem", | |
"body": [ | |
"\\begin{minipage}[t]{${1:size}\\hsize}\\centering", | |
"\\includegraphics[${2:width=\\linewidth}]{$3}", | |
"\\subcaption{$4}\\end{minipage}" | |
], | |
"description": "set multi fig item" | |
}, | |
"TeX templete": { | |
"prefix": "templete", | |
"body": [ | |
"\\documentclass[a4j, dvipdfmx]{jsarticle}\n", | |
"\\usepackage[dvipdfmx]{graphicx}", | |
"% \\usepackage[dvipdfmx, draft]{graphicx} % Output only frame of figure", | |
"\\usepackage{amsmath, amssymb} % Extend math", | |
"\\usepackage{float} % Improved interface for floating objects", | |
"\\usepackage{multirow} % Create complex table", | |
"\\usepackage{url} % Display URL", | |
"\\usepackage{subcaption} % Use subcaption", | |
"\\usepackage{tabularx} % Newline in table cell\n", | |
"\\begin{document}", | |
"$1", | |
"\\end{document}" | |
], | |
"description": "documentclass and packages" | |
}, | |
"Report Title":{ | |
"prefix": "title", | |
"body": [ | |
"\\title{$1}", | |
"\\author{$2}", | |
"\\date{$3}" | |
], | |
"description": "set title. In document, set command ``\\maketitle''" | |
}, | |
"Bibliography":{ | |
"prefix": "bibliography", | |
"body": [ | |
"\\begin{thebibliography}{99}", | |
"\\bibitem{$1}", | |
"$2", | |
"\\end{thebibliography}" | |
], | |
"description": "thebibliography" | |
}, | |
"J-Figure Reference": { | |
"prefix": "jfigref", | |
"body": "図~\\ref{fig:${1:label}}", | |
"description": "japanese figure reference" | |
}, | |
"E-Figure Reference": { | |
"prefix": "efigref", | |
"body": "Fig.~\\ref{fig:${1:label}}", | |
"description": "english figure reference" | |
}, | |
"J-Table Reference": { | |
"prefix": "jtablref", | |
"body": "表~\\ref{tabl:${1:label}}", | |
"description": "japanese table reference" | |
}, | |
"E-Table Reference": { | |
"prefix": "etablref", | |
"body": "Table~\\ref{tabl:${1:label}}", | |
"description": "english table reference" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment