猫ですの備忘録

ハンドルネームが「猫です」なだけであって, お嬢様言葉で「猫ですの」と言っているわけではありません.

Visual Studio CodeにおけるLaTeX執筆環境の構築及びテンプレート

Visual Studio CodeにおけるLaTeX執筆環境の構築及びテンプレートについて書くぞという強い意志がここにはある.

(2022/12/12 追記) 環境構築に関して書く余裕は未だに無いが, とりあえずsetting.jsonの中身だけコピペしておきます.

{
  // --------- General Setteing ---------

  // ミニマップを表示しない
  "editor.minimap.enabled": false,
  
  // 予測変換等を表示しない
  "editor.quickSuggestions": {
    "other": "off",
    "comments": "off",
    "strings": "off"
  },
  "editor.suggest.showClasses": false,
  "editor.suggest.showColors": false,
  "editor.suggest.showConstants": false,
  "editor.suggest.showConstructors": false,
  "editor.suggest.showCustomcolors": false,
  "editor.suggest.showDeprecated": false,
  "editor.suggest.showEnumMembers": false,
  "editor.suggest.showEnums": false,
  "editor.suggest.showEvents": false,
  "editor.suggest.showFields": false,
  "editor.suggest.showFiles": false,
  "editor.suggest.showFolders": false,
  "editor.suggest.showFunctions": false,
  "editor.suggest.showIcons": false,
  "editor.suggest.showInlineDetails": false,
  "editor.suggest.showInterfaces": false,
  "editor.suggest.showIssues": false,
  "editor.suggest.showKeywords": false,
  "editor.suggest.showMethods": false,
  "editor.suggest.showModules": false,
  "editor.suggest.showOperators": false,
  "editor.suggest.showProperties": false,
  "editor.suggest.showReferences": false,
  "editor.suggest.showSnippets": false,
  "editor.suggest.showStructs": false,
  "editor.suggest.showTypeParameters": false,
  "editor.suggest.showUnits": false,
  "editor.suggest.showUsers": false,
  "editor.suggest.showValues": false,
  "editor.suggest.showVariables": false,
  "editor.suggest.showWords": false,

  // ---------- LaTeX Workshop ----------

  // ビルドのレシピ
  "latex-workshop.latex.recipes": [
      {
          "name": "latexmk",
          "tools": [
              "latexmk"
          ]
      },
  ],

  // ビルドのレシピに使われるパーツ
  "latex-workshop.latex.tools": [
      {
          "name": "latexmk",
          "command": "latexmk",
          "args": [
              "%DOCFILE%" // icloud上のtexファイルをタイプセットするため, %DOC% -> %DOCFILE% とする. https://github.com/James-Yu/LaTeX-Workshop/issues/1773
          ],
      },
  ],

  // 削除対象とするファイルの拡張子
  "latex-workshop.latex.clean.fileTypes": [
      "*.aux",
      "*.bbl",
      "*.blg",
      "*.idx",
      "*.ind",
      "*.lof",
      "*.lot",
      "*.out",
      "*.toc",
      "*.acn",
      "*.acr",
      "*.alg",
      "*.glg",
      "*.glo",
      "*.gls",
      "*.ist",
      "*.fls",
      "*.log",
      "*.fdb_latexmk",
      "*.snm",
      "*.nav",
      "*.dvi",
  ],

  // 補助ファイルを削除. 削除するファイルは「OutDir」に入っている.
  "latex-workshop.latex.autoClean.run": "onBuilt",

  // 使用パッケージのコマンドや環境の補完を有効にする
  "latex-workshop.intellisense.package.enabled": true,
  
  // タイプセットに失敗した場合, エラーと注意のポップアップを表示しない
  "latex-workshop.message.error.show": false,
  "latex-workshop.message.warning.show": false,

  // hover(カーソルを合わせたときに表示される補助ウィンドウ)を表示しない
  "latex-workshop.hover.preview.enabled": false,
  "latex-workshop.hover.citation.enabled": false,
  "latex-workshop.hover.command.enabled": false,
  "latex-workshop.hover.preview.newcommand.parseTeXFile.enabled": false,
  "latex-workshop.hover.ref.enabled": false,
}