Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
89 changes: 89 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"latex-workshop.latex.tools": [
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": ["%DOCFILE%"]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": ["xelatex"]
},
{
"name": "pdflatex",
"tools": ["pdflatex"]
},
{
"name": "xe->bib->xe->xe",
"tools": ["xelatex", "bibtex", "xelatex", "xelatex"]
},
{
"name": "pdf->bib->pdf->pdf",
"tools": ["pdflatex", "bibtex", "pdflatex", "pdflatex"]
}
],
"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"
],
//tex文件浏览器,可选项为"none" "browser" "tab" "external"
"latex-workshop.view.pdf.viewer": "tab",
//自动编译tex文件
"latex-workshop.latex.autoBuild.run": "onSave",
//显示内容菜单:(1)编译文件;(2)定位游标
"latex-workshop.showContextMenu": true,
//显示错误
"latex-workshop.message.error.show": true,
//显示警告
"latex-workshop.message.warning.show": true,
//从使用的包中自动补全命令和环境
"latex-workshop.intellisense.package.enabled": true,
//设置为never,为不清除辅助文件
"latex-workshop.latex.autoClean.run": "never",
//设置vscode编译tex文档时的默认编译链
"latex-workshop.latex.recipe.default": "lastUsed",
// 用于反向同步的内部查看器的键绑定。ctrl/cmd +点击(默认)或双击
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",
"gitlens.currentLine.pullRequests.enabled": false,
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line"
}
62 changes: 62 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "LaTeX: 快速编译 (XeLaTeX)",
"type": "shell",
"command": "latexmk",
"args": [
"-xelatex",
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-silent",
"-bibtex-",
"main-fast.tex"
],
"group": "build",
"options": { "cwd": "${workspaceFolder}/CN/CNBook" }
},
{
"label": "LaTeX: 完整编译 (XeLaTeX+biber)",
"type": "shell",
"command": "latexmk",
"args": [
"-xelatex",
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"main.tex"
],
"group": "build",
"options": { "cwd": "${workspaceFolder}/CN/CNBook" }
},
{
"label": "LaTeX: 持续预览 (XeLaTeX)",
"type": "shell",
"command": "latexmk",
"args": [
"-xelatex",
"-shell-escape",
"-synctex=1",
"-pvc",
"-interaction=nonstopmode",
"main-fast.tex"
],
"isBackground": true,
"options": { "cwd": "${workspaceFolder}/CN/CNBook" }
},
{
"label": "LaTeX: 快速编译 (XeLaTeX 2-pass, 无 latexmk)",
"type": "shell",
"command": "pwsh",
"args": [
"-NoLogo",
"-NoProfile",
"-Command",
"Set-Location -LiteralPath '${workspaceFolder}/CN/CNBook'; xelatex -interaction=nonstopmode -synctex=1 -shell-escape main-fast.tex; xelatex -interaction=nonstopmode -synctex=1 -shell-escape main-fast.tex"
],
"group": "build"
}
]
}
Binary file added CN/2025年408大纲计算机网络.pdf
Binary file not shown.
21 changes: 21 additions & 0 deletions CN/CNBook/latexmkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# latexmk configuration for XeLaTeX + biber + shell-escape
# Use xelatex
$pdflatex = 'xelatex -interaction=nonstopmode -synctex=1 -shell-escape %O %S';

# biblatex via biber
$biber = 'biber %O %S';
$bibtex_use = 2;

# Enable continuous preview with -pvc if desired
$pvc_view_file_via_temporary = 0;

# Silence non-critical warnings a bit
$max_repeat = 5;

# Always run biber when .bcf changes
add_cus_dep('bcf', 'bbl', 0, 'do_biber');
sub do_biber {
my ($base_name, $path) = fileparse($_[0]);
my $ret = system("biber", "$base_name");
return $ret ? 12 : 0;
}
Binary file added CN/CNBook/main-fast.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions CN/CNBook/main-fast.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
% 快速编译入口:开启图片 draft 与 TikZ 外部化缓存,适合频繁预览
\def\FAST{1}
\input{main}
Binary file added CN/CNBook/main.pdf
Binary file not shown.
Loading