需掌握內容
- 本地配置、編譯、使用 LaTex ;
具體包括:- 環境搭建
MikTex
- 插入圖片
Matplot
visio
- 插入表格
mathtype
excel
- 插入引用文獻
bib
mendeley
- 插入公式
mathtype
- 環境搭建
- 學會使用
ShareLaTeX
歷史版本、將項目分享給他人
安裝環境
- 參考VSCode + Latex Workshop + MikTex + Git,安裝
miktex
(tex live
的某一個衍生版本) +latex workshop
Recipe: pdflatex -> bibtex -> pdflatex × 2
可以成功編譯;- vscode使用命令搜索
open setting(json)
,改變配置:
我的配置如下:
"latex-workshop.view.pdf.viewer": "tab", //內置pdf
"latex-workshop.latex.recipe.default": "lastUsed", //默認使用上一次配置
"latex-workshop.latex.autoBuild.run": "onFileChange", //自動編譯
"latex-workshop.intellisense.file.base": "file relative",
"latex-workshop.latex.tools": [
{
"name": "pdfLaTeX+MakeIndex+BibTeX",
"command": "texify",
"args": [
"--synctex=1", //pdf與tex文件相互跳轉
"--pdf",
"--tex-option=\"-interaction=nonstopmode\"", //遇到錯誤停止
"--tex-option=\"-c-style-errors\"", //錯誤顯示格式,在log中以"文件:行:錯誤類型"顯示
"--clean",
"--quiet", //除了錯誤信息,其他均不顯示
"%DOC%.tex"
]
},
{
"name": "XeLaTeX+MakeIndex+BibTeX",
"command": "texify",
"args": [
"--synctex=1",
"--pdf",
"--clean",
"--quiet",
"--tex-option=\"-interaction=nonstopmode\"",
"--tex-option=\"-c-style-errors\"",
"--engine=xetex",
"%DOC%.tex"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "pdfLaTeX+MakeIndex+BibTeX", //放在最前面為默認編譯方案, 適用於MikTex
"tools": [
"pdfLaTeX+MakeIndex+BibTeX"
]
},
{
"name": "XeLaTeX+MakeIndex+BibTeX", //放在最前面為默認編譯方案, 適用於MikTex
"tools": [
"XeLaTeX+MakeIndex+BibTeX"
]
}
- vscode中 定位與反向定位:
ctrl + alt + j
同步位置;ctrl click
反向同步
配置技巧
- 由於latex worshop需要自行配置的地方比較多,所以更多參考
miktex
自帶的編輯器(參看編輯->首選項->排版
)的配置 - 如果想要文檔中,支持 utf-8 的編碼(即可能出現的中文,並且需要引用),可以使用
XeLaTeX+MakeIndex+BibTeX
的配置;tex.exe與texify.exe的參數表(--help);
Latex 教程
簡易教程:
Getting started with TeX, LaTeX, and friends
簡單文檔 small2e.tex
復雜文檔 sample2e.tex
語法規則 latexsheet.tex
LaTex 手冊-網址
LaTex 手冊-PDF
LaTex-project 文檔
工具
在線工具——表格轉LaTex
lyx : 可以使用excel編輯csv,導入lyx,再導出LaTex