Adament Cabin

  • コンピューター
    • アルゴリズム
    • Linux
    • Problems
    • AI
  • 日本語を勉強
  • ACG
    • 見られている番組
    • ゲーム
  • 日常
  • 雑貨
    • ドキュメント
    • 資源
    • 治療センター
  • リンク
  • ブランチサイト
  • Japanese
    • Chinese
Adament Cabin
恋厨症候群第二治療センター
  1. 首页
  2. コンピューター
  3. Linux
  4. 正文

ArchLinux/Manjaro下用Vscode编写LaTeX

2022年4月18日 2321ヒート 0お気に入り 0コメント

首先需要vscode(

yay -S visual-studio-code-bin

通过Pacman安装包组texlive-code texlive-lang

sudo pacman -S texlive-core texlive-lang
texhash

安装完之后打开Vscode设置,打开右上角编辑json。

注释所有的有关Tex选项,然后在括号内加入下面项。

"latex-workshop.latex.tools": [
          {
            "name": "latexmk",
            "command": "latexmk",
            "args": [
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "-pdf",
            "%DOC%"
            ]
          },
          {
            "name": "xelatex",
            "command": "xelatex",
            "args": [
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "%DOC%"
              ]
          },          
          {
            "name": "pdflatex",
            "command": "pdflatex",
            "args": [
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "%DOC%"
            ]
          },
          {
            "name": "bibtex",
            "command": "bibtex",
            "args": [
            "%DOCFILE%"
            ]
          }
        ],
    "latex-workshop.latex.recipes": [
          {
            "name": "xelatex",
            "tools": [
            "xelatex"
                        ]
                  },
          {
            "name": "latexmk",
            "tools": [
            "latexmk"
                        ]
          },

          {
            "name": "pdflatex -> bibtex -> pdflatex*2",
            "tools": [
            "pdflatex",
            "bibtex",
            "pdflatex",
            "pdflatex"
                        ]
          }
        ],
    "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"
]

就可以通过ctexart来做到中文排版啦。

踏歌的知乎专栏

タグ: ArchLinux
更新日:2022年8月10日

BiyiAdopac

社会ごみ

Like
< 前の投稿
次の投稿 >

コメント

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
キャンセル

カテゴリー
  • AI / 1篇
  • アルゴリズム / 5篇
  • Linux / 6篇
  • Problems / 3篇
  • 日常 / 1篇
  • 日本語 / 2篇
  • ゲーム / 1篇
  • コンピューター / 14篇
  • ドキュメント / 4篇
タグ
Physics Learning C/C++/C# Arcaea ArchLinux Magisk LaTex AI
The World of Scarlet
https://www.adament.xyz/wp-content/uploads/2024/10/the-world-of-scarlet-Piano.mp3

COPYRIGHT © 2025 adament.xyz. ALL RIGHTS RESERVED.
このサイトにとって重要ではありませんが、それでも必要な プライバシーポリシー