Adament Cabin

  • 计算机
    • Algorithm
    • Linux
    • Problems
    • AI
  • 日语学习
  • ACG
    • 追番列表
    • 游戏
  • 常日说
  • 杂物
    • 资料
    • 资源
    • 治疗中心
  • ao的链接
  • 分站
  • Chinese
    • Japanese
Adament Cabin
恋厨综合症第二治疗中心
  1. 首页
  2. 计算机
  3. Linux
  4. 正文

ArchLinux/Manjaro下用Vscode编写LaTeX

2022年4月18日 2319点热度 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

是铁龙鸣。

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

分类
  • AI / 1篇
  • Algorithm / 5篇
  • Linux / 6篇
  • Problems / 3篇
  • 常日说 / 1篇
  • 日本語 / 2篇
  • 游戏 / 1篇
  • 计算机 / 14篇
  • 资料 / 4篇
标签聚合
Arcaea Physics C/C++/C# Learning Magisk LaTex AI ArchLinux
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.
本站虽然不重要但是还是有的 隐私政策