MAC OS 搭建latex环境并支持翻译模版



  • MAC OS Latex环境配置

    MacTeX是TeXLive的Mac版 (摘自官网Guide“We recommend using the native MacTEX installer instead of the TEXLive installer on Mac OS X, because the native installer makes a few Mac-specific adjustments, in particular to allow easily switching between the various TEX distributions for Mac OS X”)。
    官方网站:
    http://tug.org/mactex/ (MacTeX)

    • 下载安装MacTex:从官网直接下载
    • 配置VS code 环境:
      • 下载VS code
      • 安装LaTeX Wokrshop 插件

    支持翻译模版

    • 在设置中查找Latex设置
    • 插入以下配置文件:
    "latex-workshop.latex.recipes": [
            {
                "name": "lualatex->bibtex->lualatex*2",
                "tools": [
                    "lualatex",
                    "bibtex",
                    "lualatex",
                    "lualatex",
                ]
            }
        ],
        "latex-workshop.latex.tools": [
            {
                "name": "lualatex",
                "command": "lualatex",
                "args": [
                    "-synctex=1",
                    "-interaction=nonstopmode",
                    "-file-line-error",
                    "%DOC%"
                ]
            },
            {
                "name": "bibtex",
                "command": "bibtex",
                "args": [
                    "%DOCFILE%"
                ]
            },
        ],
        "latex-workshop.view.pdf.viewer": "tab"
    

    然后就可以尝试编辑论文了

    中文字体链接

    https://github.com/mingchen/mac-osx-chinese-fonts



  • 资瓷一下~一定要用lualaTex编译不然过不了的



  • 还得找一个husttrans.cls文件,放到同目录下,不然把也会报错的。。。



  • @stardust 感谢伍聚聚帮忙踩坑


 

Copyright © 2018 bbs.dian.org.cn All rights reserved.

与 Dian 的连接断开,我们正在尝试重连,请耐心等待