Overleaf-Workshop setupメモ

  1. やった環境 Win11 23H2 1.必要なもの Docker(TeXLiveをInstallしたくない人)→TeXLive: https://hub.docker.com/r/texlive/texlive
  2. install extension Overleaf-Workshop: https://marketplace.visualstudio.com/items?itemName=iamhyc.overleaf-workshop Latex-Workshop
  3. Overleaf-WorkshopにOverleafにLoginする用のCookieを登録する(公式Doc参照)
  4. .latexmkrc をいい感じのところに置いて中身をうめる:https://texwiki.texjp.org/?Latexmk
  5. Ctrl-Shift-Pを押してsetting.jsonを編集>下のsetting.jsonを追記
  6. hello でDocker-containerとの疎通確認
  7. texファイルを選択した状態で latexmkでコンパイル実行
{
"files.autoSave": "afterDelay",
"latex-workshop.latex.autoBuild.run": "never",
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.docker.enabled": true,
"latex-workshop.docker.image.latex": "texlive/texlive",
"latex-workshop.latex.recipes": [
    {
      "name": "platex-hello",
      "tools": [
        "hello"
      ]
    },
    {
      "name": "latexmk",
      "tools": [
        "latexmk"
      ]
    }    
],
"latex-workshop.latex.tools": [
      {
        "name": "hello",
        "command": "latex",
        "args": [
          "-v"
        ]
      },
      {
        "name": "latexmk",
        "command": "latexmk",
        "args": [
          "-gg",
          "-pdflua",
          "%DOC%"
        ]
      }

    ],
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.zoom": "page-width"
}

ほなまた