VS Codeの設定とフォーマット
目次
クリックで飛べます。
setting.jsonの中身
{ "files.exclude": { "**/.DS_Store": false, "**/.git": false, "**/.hg": false, "**/.svn": false, "**/CVS": false, "**/Thumbs.db": false }, "editor.codeActionsOnSave": { }, "files.autoSave": "off", "latex-workshop.latex.tools": [ { "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "-outdir=%OUTDIR%", "%DOC%" ], "env": {} }, { "name": "lualatexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-lualatex", "-outdir=%OUTDIR%", "%DOC%" ], "env": {} }, { "name": "xelatexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-xelatex", "-outdir=%OUTDIR%", "%DOC%" ], "env": {} }, { "name": "latexmk_rconly", "command": "latexmk", "args": [ "%DOC%" ], "env": {} }, { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ], "env": {} }, { "name": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ], "env": {} }, { "name": "rnw2tex", "command": "Rscript", "args": [ "-e", "knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')" ], "env": {} }, { "name": "jnw2tex", "command": "julia", "args": [ "-e", "using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")" ], "env": {} }, { "name": "jnw2texminted", "command": "julia", "args": [ "-e", "using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")" ], "env": {} }, { "name": "pnw2tex", "command": "pweave", "args": [ "-f", "tex", "%DOC_EXT%" ], "env": {} }, { "name": "pnw2texminted", "command": "pweave", "args": [ "-f", "texminted", "%DOC_EXT%" ], "env": {} }, { "name": "tectonic", "command": "tectonic", "args": [ "--synctex", "--keep-logs", "%DOC%.tex" ], "env": {} } ] }
プリアンブル(フォーマット)
\documentclass[uplatex, fleqn]{jsarticle} \usepackage[dvipdfmx]{graphicx} \usepackage{amsmath,amssymb} \usepackage{bm} \usepackage{braket} \usepackage{mathtools} \usepackage{physics} \usepackage{amsthm} \usepackage{ascmac} \usepackage{fancybox} %余白の設定 \usepackage[top=17mm, left=14mm, right=14mm, bottom=17mm]{geometry} %セクション番号の設定 \setcounter{tocdepth}{3} \makeatletter %式番号の付け方設定 \renewcommand{\theequation}{\thesection.\arabic{equation}} \@addtoreset{equation}{section} %図番号の付け方設定 \renewcommand{\thefigure}{\thesection.\arabic{figure}} \@addtoreset{figure}{section} %丸囲み数字の設定 \newcommand{\ctext}[1]{\raise0.2ex\hbox{\textcircled{\scriptsize{#1}}}} \makeatother \title{タイトル} \author{名前} \date{\today} \begin{document} \maketitle %タイトルを表示させる \tableofcontents %目次を表示する 本文はここから書き始める \end{document}
修論・卒論のプリアンブル(フォーマット)
\documentclass[a4j,dvipdfmx]{ujsarticle} \textwidth=160mm \textheight=210mm \topmargin=0mm \oddsidemargin=0mm \evensidemargin=0mm \usepackage[dvipdfmx]{graphicx} \usepackage{amsmath,amssymb,bm} \usepackage{braket} \usepackage{pdfpages} \usepackage{here} \usepackage{mathtools} \usepackage{physics} \usepackage{multicol} \usepackage{subcaption} \usepackage{comment} \usepackage{caption} \usepackage{color} %\captionsetup[sub]{labelformat=empty} \begin{document} \makeatletter \renewcommand{\theequation}{% 式番号の付け方 \thesection.\arabic{equation}} \@addtoreset{equation}{section} \renewcommand{\thefigure}{% 図番号の付け方 \thesection.\arabic{figure}} \@addtoreset{figure}{section} \renewcommand{\thetable}{% 表番号の付け方 \thesection.\arabic{table}} \@addtoreset{table}{section} \makeatother \begin{titlepage} \begin{center} \Large{令和XXX年度 卒業論文}\\ \vspace*{2cm} \noindent \Huge{タイトル}\\ \vspace*{11.5cm} \Large{所属\\ 田仲・川口研究室\\ 学生番号 \ \ XXXXXXXXXX}\\ \huge{氏名}\\ \vspace*{1cm} \end{center} \end{titlepage} \tableofcontents \newpage 本文はここから \end{document}