Skip to content

Commit

Permalink
Add CSL support for bibliography
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Mar 30, 2023
1 parent 900988b commit 40c7b2c
Show file tree
Hide file tree
Showing 8 changed files with 1,194 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ docfiles = {
"thusetup.tex",
"data", "ref",
}
installfiles = {"*.cls", "*.bst", "*.bbx", "*.cbx", "tsinghua-name-bachelor.pdf"}
sourcefiles = {"*.dtx", "*.ins", "*.bst", "*.bbx", "*.cbx", "tsinghua-name-bachelor.pdf"}
installfiles = {"*.cls", "*.bst", "*.bbx", "*.cbx", "*.csl", "tsinghua-name-bachelor.pdf"}
sourcefiles = {"*.dtx", "*.ins", "*.bst", "*.bbx", "*.cbx", "*.csl", "tsinghua-name-bachelor.pdf"}
tagfiles = {"*.dtx", "CHANGELOG.md", "package.json"}
textfiles = {"*.md","LICENSE"}
typesetdemofiles = {"thuthesis-example.tex", "spine.tex"}
Expand Down
2 changes: 2 additions & 0 deletions latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ $xelatex = "xelatex -shell-escape -file-line-error -halt-on-error -interaction=n
$lualatex = "lualatex -shell-escape -file-line-error -halt-on-error -interaction=nonstopmode -synctex=1 %O %S";
$xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S";

$bibtex = "citeproc-lua %S";

$bibtex_use = 1.5;

$clean_ext = "hd loe ptc run.xml synctex.gz thm xdv";
Expand Down
13 changes: 13 additions & 0 deletions thusetup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,22 @@
% \usepackage[style=thuthesis-author-year]{biblatex}
% \usepackage[style=apa]{biblatex}
% \usepackage[style=mla-new]{biblatex}
% \usepackage[notes,backend=biber]{biblatex-chicago}
% 声明 BibLaTeX 的数据库
% \addbibresource{ref/refs.bib}

% 参考文献使用 citation-style-language 宏包(试验性)
% 需要 TeX Live 2023+ 以及最新版 citation-style-language 宏包
% \usepackage{citation-style-language}
% \cslsetup{style = thuthesis-numeric}
% \cslsetup{style = thuthesis-author-year}
% \cslsetup{style = apa}
% \cslsetup{style = modern-language-association}
% \cslsetup{style = cell} % 生物医学
% \cslsetup{style = tsinghua-university-academy-of-arts-and-design} % 美术学院
% 声明 CSL 的数据库
% \addbibresource{ref/refs.bib}

% 定义所有的图片文件在 figures 子目录下
\graphicspath{{figures/}}

Expand Down
Loading

0 comments on commit 40c7b2c

Please sign in to comment.