VS Code で LaTeX したいときの設定 

# 拡張機能
- Activitus Bar: サイドバーを下にできる
- LaTeX Workshop
- Japanese Language Pack for Visual Studio Code
- Clock in status bar
- Highlight: 特定の文字列に色を付けたりできる
- テーマ
    - Aofuji Light Theme
    - Panda Theme
    - Dracula Official
    - Nomo Dark Icon Theme
    - Material Icon Theme




# setting.json
```
    ////////// latex settings //////////
    "latex-workshop.latex.recipes": [
        {
            "name": "latexmk",
            "tools": [
            "latexmk"
            ]
        },
        ],
    "latex-workshop.latex.tools": [
        {
            "name": "latexmk",
            "command": "latexmk",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-halt-on-error",
                "-outdir=%OUTDIR%",
                "%DOC%"
            ]
        }
        ],
    "latex-workshop.latex.autoClean.run": "onBuilt",
    "latex-workshop.latex.autoBuild.run": "onSave",
    "latex-workshop.view.pdf.viewer": "tab",
    "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","*.synctex.gz",
    ],
    "latex-workshop.latex.outDir": "out",
    
    ////////// others /////////
    "editor.guides.bracketPairs": true,
    "editor.bracketPairColorization.enabled": true,
    "editor.bracketPairColorization.independentColorPoolPerBracketType": true,
    "workbench.colorCustomizations": {
        "editorBracketHighlight.foreground1": "#EB6EA5",
        "editorBracketHighlight.foreground2": "#F6AD49",
        "editorBracketHighlight.foreground3": "#FFEC47",
        "editorBracketHighlight.foreground4": "#98D98E",
        "editorBracketHighlight.foreground5": "#4D5AAF",
        "editorBracketHighlight.foreground6": "#884898" 
    },
    "workbench.iconTheme": "vs-nomo-dark",
    "editor.fontSize": 12.5,
    "editor.minimap.enabled": false,
    "editor.wordWrap": "on",
    "workbench.activityBar.visible": false,
    "workbench.colorTheme": "Dracula",
```

## Light Theme (Aofuji)
```
    "workbench.colorTheme": "Oranji",
    "workbench.iconTheme": "material-icon-theme",

    ////////// color //////////
    "editor.tokenColorCustomizations": {
        "[Oranji]": {
            "textMateRules": [
                {
                    // inline math element: abcxyz
                    // display math element: abcxyz
                    "scope": [
                      "support.class.math.block.environment.latex",
                      "support.class.math.block.tex"
                    ],
                    "settings": {
                      "foreground": "#3f4551d0",
                      "fontStyle": ""
                    }
                  },
                {
                    // inline math: $
                    // environment: \begin \end
                    "scope": [
                      "support.function.be.latex",
                      "punctuation.definition.string.begin.tex",
                      "punctuation.definition.string.end.tex",
                    ],
                    "settings": {
                      "foreground": "#2293e3",
                      "fontStyle": ""
                    }
                  },
                {
                    // commands for math: \frac \sqrt ...etc
                    "scope": [
                      "constant.character.math.tex",
                      "constant.other.general.math.tex",
                      "constant.other.math.tex",
                    ],
                    "settings": {
                      "foreground": "#6484c5",
                      "fontStyle": ""
                    },
                  },
                {
                    // functions: \title...
                    "name": "functions",
                    "scope": ["entity.name.function", "support.function"],
                    "settings": { "foreground": "#2cb300" }
                  },
                {
                    // item...
                    "name": "keyword",
                    "scope": ["keyword"],
                    "settings": { "foreground": "#2cb300" }
                  },

            ]
        }
    },

    ///////// bracket color //////////
    "workbench.colorCustomizations": {
        "editorBracketHighlight.foreground1": "#2293e3",
        "editorBracketHighlight.foreground2": "#ee6565",
        "editorBracketHighlight.foreground3": "#2cb300",
        "editorBracketHighlight.foreground4": "#f97e25",
        "editorBracketHighlight.foreground5": "#6484c5",
        "editorBracketHighlight.foreground6": "#9668c5"
    },

    ////////// Highlight //////////
    "highlight.decorations": { "rangeBehavior": 3 },
    "highlight.regexFlags": "gi",
    "highlight.regexes": {
        "(frame)": [
            {
                "color": "",
                "fontWeight": "bold",
                "fontStyle": "",
            }
        ],
        "(block)": [
            {
                "color": "",
                "fontWeight": "",
                "fontStyle": "italic",
            }
        ],
    },
    "highlight.maxMatches": 250,
```