diff options
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-caspervector')
15 files changed, 2458 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/README b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/README new file mode 100644 index 0000000000..bb47167ed2 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/README @@ -0,0 +1,13 @@ +biblatex-caspervector: Casper Ti. Vector's biblatex style +--------------------------------------------------------- + +Maintainer: Casper Ti. Vector <CasperVector@gmail.com> +Homepage: <https://gitlab.com/CasperVector/biblatex-caspervector> +License: LaTeX Project Public License 1.3 or later + +This package provides a simple, nice and easily extensible +biblography/citation style for Chinese LaTeX users. + +This file (README) is *NOT* intended as the documentation for this +package; please see the file `readme.pdf' instead. + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt new file mode 100644 index 0000000000..15fb808f8a --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt @@ -0,0 +1,263 @@ +2018-06-29, v0.3.3 + + * Changes to package code: + - Add support for the `edition' field. + - Refine `maxcitenames'/`mincitenames'. + - blx-caspervector-base.def: fix "et al" for citations. + - blx-caspervector-base.def: improve spacing between `title' and `type'. + + * Changes to documentation: + - caspervector.tex: fix "需"/"须" typo. + + * Misc: + - Minor fixes and cosmetics. + +2018-06-01. v0.3.2 + + * Changes to package code: + - Fix punctuation for citations. + - blx-caspervector-base.def: fix `incollection' without bookauthor/editor. + - blx-caspervector-base.def: only `\providebibmacro*{bbx:ifnodate}'. + + * Changes to documentation: + - caspervector.bib: add more examples from GB/T 7714-2005. + + * Misc: + - Minor fixes and cosmetics. + +2018-05-30. v0.3.1 + + * API changes: + - Support eprint/doi using `eid'. + + * Changes to package code: + - blx-caspervector-base.def: fix misplaced `\clearname'. + - caspervector-ay.bbx: fix missing byspace. + - blx-caspervector-base.def: support the "date(number)" format. + - Remove support for `userf' set to `cn'. + + * Changes to documentation: + - "著者" -> "作者"; "英文" -> "西文". + + * Misc: + - Minor fixes and cosmetics. + +2018-05-28. v0.3.0 + + * API changes: + - Added the caspervector-ay style (`dashed' and `mergedate' supported). + - sorting: nty -> nyt. + - Reduced tolerance in `year'/`date'; `note' added for compensation. + - Support `useauthor'-related functionalities. + + * Changes to package code: + - caspervector.bbx mostly refactored into blx-caspervector-base.def. + - biblatex-caspervector-*.def -> blx-caspervector-*.def. + - blx-caspervector-base.def: improve the punctuation handling. + - blx-caspervector-base.def: fix some deprecation warnings. + + * Changes to documentation: + - readme.* -> caspervector.*; document the caspervector-ay style. + - doc/Makefile: fix missing accented characters with xelatex. + + * Misc: + - utils: update wrt the author-year style. + - Minor fixes and cosmetics. + +2017-03-01. v0.2.7 + + * API changes: + - caspervector.bbx: provide undocumented option for uglification. + + * Changes to package code: + - caspervector.bbx: fix "et al" and `\final*delim'. + - caspervector.bbx: make switch between C/E punctuations easier. + - caspervector.bbx: remove niche feature. + + * Changes to documentation: + - readme.bib: double brace institution names. + - readme.tex: remove manual loading of CJKspace. + + * Misc: + - utils/qa: add notice about copyright line updates. + - Minor fixes and cosmetics. + +2016-05-24. v0.2.6 + + * Changes to package code: + - caspervector.bbx: add code in case uglification is demanded. + + * Changes to documentation: + - readme.tex: improve description of split sorting. + + * Misc: + - Minor fixes and cosmetics. + +2016-03-31. v0.2.5 + + * Changes to package code: + - caspervector.bbx: add overlooked `minnames = 3' and `minitems = 3'. + - caspervector.bbx: refine name spacing to reduce ambiguity. + - caspervector.bbx: adjust list format (like names). + - Refactor common code from *.def into caspervector.bbx. + + * Misc: + - Makefile: remove re-encoding code. + - Minor fixes and cosmetics. + +2016-03-22. v0.2.4 + + * Misc: + - Fix wrong bib number due to inconsistency on author's computer. + +2016-03-17. v0.2.3 + + * Changes to package code: + - Remove copy-pasted name formatting code in bbx. + - caspervector.bbx: fix some defects introduced from typos. + - biblatex-caspervector-*.def: rectify `byauthor' usage. + + * Changes to documentation: + - readme.tex: update information about split sorting (thank @plk). + - readme.tex: require `colorlinks' explicitly wrt recent change in ctex. + + * Misc: + - dist: reduce duplication in zipballs according to CTAN recommendation. + - README: homepage moved to GitLab. + - Minor fixes and cosmetics. + +2015-05-30, v0.2.2 + + * Changes to package code: + - Remove bibtex support because of `\DeclareStyleSourcemap' usage. + + * Changes to documentation: + - readme.tex: mention the issue with sorting in biblatex 3.0. + - readme.tex: remove description of usage with bibtex. + - readme.{tex,bib}: refine the short example for custom formatting. + - Adapt to ctex 2.x, and use the latex/biber/xelatex/xelatex prodedure. + + * Misc: + - Cosmetics. + +2015-04-28, v0.2.1 + + * Changes to package code: + - biblatex-caspervector-*.def: use `\renewbibmacro' for `urldate'. + + * Changes to documentation: + - readme.tex: use `\hologo{}' when applicable. + - readme.bib: fix inaccurate formatted author names. + + * Misc: + - Update URL of project homepage. + - dist: remove version string from file name of TDS archive. + - dist: fix zipball permission. + - Aesthetic improvements. + +2014-05-24, v0.2.0 + + * API changes: + - Chinese references now (only) require language == {chinese}. + - `userf' becomes an internal entry field (backward compatible for now). + + * Changes to package code: + - Avoid potential name clashes, using `something@' prefixes for commands. + + * Changes to documentation: + - No longer recommend the CTeX Suite. + - Remove installation hints (already included in TeX Live). + - Use `%' for comments in `.bib' files, now supported by biber. + + * Misc: + - Minor fixes and improvements. + +2013-12-27, v0.1.9 + + * Misc: + - Remove support for CRLF, as required by CTAN. + +2013-04-07, v0.1.8 + + * Changes to package code: + - Fix previously ignored `setunit' issue. + + * Misc: + - Update copyright notices. + - Minor fixes and improvements. + +2013-03-30, v0.1.7 + + * Changes to package code: + - Default to `defernumbers = true' and `sorting = none'. + + * Changes to documentation: + - Add hint for split sorting. + + * Misc: + - Minor fixes and improvements. + +2013-01-10, v0.1.6 + + * Changes to package code: + - Make (more) proper use of `\setunit'/`\setunit*'. + + * Misc: + - Minor fixes and improvements. + +2012-11-12, v0.1.5 + + * Misc: + - Fix incorrect TDS packaging. + +2012-10-11. v0.1.4 + + * Changes to documentation: + - Fix wrong description: s/cenyt/centy/g + - Refine bibliography. + - Update instructions for installation wrt addition of CTAN support. + + * Misc: + - Add support for utf8lf/gbkcrlf conversion in doc/Makefile. + - Add CTAN support. + +2012-05-13, v0.1.3 + + * API changes: + - Chinese references now require (userf == 'zh' || userf == 'cn'). + - Add {ce,ec}nty sorting scheme, default to ecnty. + + * Changes to package code: + - Fix and improve spacing and punctuation. + - Unify name formatting as well as sorting. + - Fix \footfullcite errors. Now the commands are defined globally. + + * Changes to documentation: + - Fix biber collating/locale problem. + - Unify the `userf' field in `readme.bib'. + - Update FAQs and notices. + + * Misc: + - Add QA check for spaces and tabs on blank lines. + - Minor fixes and improvements. + +2012-05-12, v0.1.2 + + * Changes to documentation: + - Add notice for the `bibintoc' heading. + - Conform to the style of pkuthss. + +2012-05-12, v0.1.1 + + * Changes to package code: + - Use `\setunit*' to avoid unexpected punctuations. + - Make better use of `finentry'. + + * Changes to documentation: + - Fix incorrect URL of `ctex-faq'. + +2012-05-12, v0.1 + + * First Release. + +# vim:ts=4:sw=4 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/Makefile b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/Makefile new file mode 100644 index 0000000000..e37bda40e6 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/Makefile @@ -0,0 +1,19 @@ +# Copyright (c) 2011-2013,2015-2016,2018 Casper Ti. Vector +# Public domain. + +JOB = caspervector + +doc: + latex $(JOB) + biber -l zh__pinyin --output-safechars $(JOB) + xelatex $(JOB) + xelatex $(JOB) + +clean: + rm -f $(JOB).aux $(JOB).bbl $(JOB).bcf $(JOB).blg $(JOB).dvi $(JOB).log \ + $(JOB).run.xml $(JOB).out missfont.log texput.log + +distclean: clean + rm -f $(JOB).pdf + +# vim:ts=4:sw=4 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf Binary files differnew file mode 100644 index 0000000000..ef68b0d0c1 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.tex b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.tex new file mode 100644 index 0000000000..2b4fb867ec --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.tex @@ -0,0 +1,63 @@ +% Documentation for biblatex-caspervector +% +% Copyright (c) 2012-2016,2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.tex +% caspervector-ay.tex + +\documentclass[UTF8]{ctexart} +\usepackage[margin = 2cm, centering, includefoot]{geometry} +\usepackage[ + backend = biber, style = caspervector-ay, utf8, + giveninits = true, sortgiveninits = true +]{biblatex} +\usepackage{fancyhdr, hyperref} + +\pagestyle{fancy}\fancyhf{}\cfoot{\thepage} +\renewcommand{\headrulewidth}{0pt} +\setlength{\hfuzz}{3pt} +\ctexset{linestretch = {\maxdimen}} +\renewcommand{\bibfont}{\small} + +\DeclareBibliographyCategory{cited} +\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}} +\addbibresource{caspervector.bib} + +\begin{document} +\title{\textbf{\texttt{caspervector-ay} 作者--年编码制示例}} +\author{} +\date{} +\maketitle +\vspace*{-1em} + +\begin{center} +\begin{tabular}{ll}\hline +引用命令 & 排版结果 \\\hline +\verb|\cite{10-5, 10-6}| & \cite{10-5, 10-6} \\ +\verb|\parencite[见][第 4 页]{perelman}| & \parencite[见][第 4 页]{perelman} \\ +\verb|\parencite{6-1, blx-gb7714-2015}| & \parencite{6-1, blx-gb7714-2015} \\ +\verb|\textcite{biblatex, a2-3}| & \textcite{biblatex, a2-3} \\\hline +\multicolumn{2}{l}{(更多用法请参考 \texttt{texdoc 50-style-authoryear}。)} \\ +\end{tabular} +\end{center} + +\printbibliography[category = cited, title = {本文参考文献}] +\printbibliography[notcategory = cited, title = {% + 其它参考文献示例 + (引自\texorpdfstring{文献 \parencite{gbt7714-2005}}{ GB/T 7714-2005})% +}] +\nocite{*} +\end{document} + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.bib b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.bib new file mode 100644 index 0000000000..ef920133ac --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.bib @@ -0,0 +1,960 @@ +@online{biber, + author = {Kime, Philip and Charette, Fran\c{c}ois}, + title = {Biber: A backend bibliography processor for biblatex}, + edition = {Ver.\ 2.7}, + type = {M/OL}, + date = {2016-12-05}, + url = {https://ctan.org/pkg/biber}, + urldate = {2017-03-01}, + language = {english}, +} + +@online{biblatex, + author = {Lehman, Philipp}, + title = {The biblatex Package: Programmable Bibliographies and Citations}, + edition = {Ver.\ 3.7}, + type = {M/OL}, + date = {2016-11-16}, + url = {https://ctan.org/pkg/biblatex}, + urldate = {2017-03-01}, + language = {english}, +} + +@online{blx-gb7714-2015, + author = {胡振震}, + title = {符合 GB/T 7714-2015 标准的 biblatex 参考文献样式}, + edition = {Ver.\ 1.0k}, + type = {M/OL}, + date = {2018-04-10}, + url = {https://ctan.org/pkg/biblatex-gb7714-2015}, + urldate = {2018-05-28}, + language = {chinese}, +} + +@report{gbt7714-2005, + author = {中华人民共和国国家质量监督检验检疫总局 and 中国国家标准化管理委员会}, + shortauthor = {国家质检总局 and 国家标准委}, + title = {GB/T 7714--2005 文后参考文献著录规则}, + type = {S}, + date = {2005-03-23}, + addendum = {(可见清华大学图书馆网页上的电子版:\url{http://lib.tsinghua.edu.cn/service/paperwriting.html}。)}, + urldate = {2014-05-24}, + language = {chinese}, +} + +@report{perelman, + author = {Perelman, Grisha}, + title = {The entropy formula for the Ricci flow and its geometric applications}, + type = {M/OL}, + date = {2002-11-11}, + eid = {\printtext[eprint:arxiv]{math/0211159}}, + urldate = {2018-05-30}, + language = {english}, +} + +@book{1-1, + author = {余敏}, + title = {出版集团研究}, + type = {M}, + location = {北京}, + publisher = {中国书籍出版社}, + year = {2001}, + pages = {179-193}, + language = {chinese}, +} + +@book{1-2, + author = {昂温, G. and 昂温, P. S.}, + title = {外国出版史}, + type = {M}, + translator = {陈生铮}, + location = {北京}, + publisher = {中国书籍出版社}, + year = {1988}, + language = {chinese}, +} + +@report{1-3, + author = {全国文献工作标准化技术委员会第七分委员会}, + title = {GB/T 5795--1986 中国标准书号}, + type = {S}, + location = {北京}, + publisher = {中国标准出版社}, + year = {1986}, + language = {chinese}, +} + +@book{1-4, + author = {辛希孟}, + title = {信息技术与信息服务国际研讨会论文集:A 集}, + type = {C}, + location = {北京}, + publisher = {中国社会科学出版社}, + year = {1994}, + language = {chinese}, +} + +@thesis{1-5, + author = {孙玉文}, + title = {汉语变调构词研究}, + type = {D}, + location = {北京}, + publisher = {北京大学出版社}, + year = {2000}, + language = {chinese}, +} + +@book{1-6, + author = {顾炎武}, + title = {昌平山水记;京东考古录}, + type = {M}, + location = {北京}, + publisher = {北京古籍出版社}, + year = {1982}, + language = {chinese}, +} + +@book{1-7, + author = {王夫之}, + title = {宋论}, + edition = {刻本}, + type = {M}, + location = {金陵}, + publisher = {曾氏}, + origdate = {1845}, + note = {\textbf{1845}(\emph{清同治四年})}, + language = {chinese}, +} + +@book{1-8, + author = {赵耀东}, + title = {新时代的工业工程师}, + type = {M/OL}, + location = {台北}, + publisher = {天下文化出版社}, + year = {1998}, + url = {http://ie.nthu.edu.tw/info/ie.newie.htm}, + urldate = {1998-09-26}, + language = {chinese}, +} + +@book{1-9, + author = {Piggot, T. M.}, + title = {The cataloguer's way through AACR2: from document receipt to document retrieval}, + type = {M}, + location = {London}, + publisher = {The Library Association}, + year = {1990}, + language = {english}, +} + +@book{1-10, + author = {Peebles, Jr., P. Z.}, + title = {Probability, random variable, and random signal principles}, + edition = {4}, + type = {M}, + location = {New York}, + publisher = {McGraw Hill}, + year = {2001}, + language = {english}, +} + +@proceedings{1-11, + editor = {Yufin, S. A.}, + title = {Geoecology and computers: proceedings of the Third International Conference on Advance of Computer Methods in Geotechnical and Geoenvironmental Engineering, Moscow, Russia, February 1--4, 2000}, + type = {C}, + location = {Rotterdam}, + publisher = {A. A. Balkema}, + year = {2001}, + language = {english}, +} + +@incollection{2-1, + author = {程根伟}, + title = {1998 年长江洪水的成因与减灾对策}, + type = {M}, + bookauthor = {许厚泽 and 赵其国}, + booktitle = {长江流域洪涝灾害与科技对策}, + location = {北京}, + publisher = {科学出版社}, + year = {1999}, + pages = {32-36}, + language = {chinese}, +} + +@incollection{2-2, + author = {陈晋镶 and 张惠民 and 朱士兴 and 其他作者}, + title = {蓟县震旦亚界研究}, + type = {M}, + bookauthor = {中国地质科学院天津地质矿产研究所}, + booktitle = {中国震旦亚界}, + location = {天津}, + publisher = {天津科学技术出版社}, + year = {1980}, + pages = {56-114}, + language = {chinese}, +} + +@incollection{2-3, + author = {白书农}, + title = {植物开花研究}, + type = {M}, + bookauthor = {李承森}, + booktitle = {植物科学进展}, + location = {北京}, + publisher = {高等教育出版社}, + year = {1998}, + pages = {146-163}, + language = {chinese}, +} + +@incollection{2-4, + author = {马克思}, + title = {关于《工资、价格和利润》的报告札记}, + type = {M}, + bookauthor = {马克思 and 恩格斯}, + booktitle = {马克思恩格斯全集:第44卷}, + location = {北京}, + publisher = {人民出版社}, + year = {1982}, + pages = {505}, + language = {chinese}, +} + +@inproceedings{2-5, + author = {钟文发}, + title = {非线性规划在可燃毒物配置中的应用}, + type = {C}, + bookauthor = {赵玮}, + booktitle = {运筹学的理论与应用:中国运筹学会第五届大会论文集}, + location = {西安}, + publisher = {西安电子科技大学出版社}, + year = {1996}, + pages = {468-471}, + language = {chinese}, +} + +@incollection{2-6, + author = {Weinstein, L. and Swertz, M. N.}, + title = {Pathogenic properties of invading microorganism}, + type = {M}, + bookauthor = {Sodeman, Jr., W. A. and Sodeman, W. A.}, + booktitle = {Pathologic physiology: mechanisms of disease}, + location = {Philadelphia}, + publisher = {Saunders}, + year = {1974}, + pages = {745-772}, + language = {english}, +} + +@periodical{3-1, + author = {中国地质学会}, + title = {地质论评}, + type = {J}, + year = {1936}, + volume = {1}, + number = {1}, + location = {北京}, + publisher = {地质出版社}, + language = {chinese}, +} + +@periodical{3-2, + author = {中国图书馆学会}, + title = {图书馆学通讯}, + type = {J}, + origdate = {1957/1990}, + note = {\textbf{1957}(1) -- \textbf{1990}(4)}, + location = {北京}, + publisher = {北京图书馆}, + language = {chinese}, +} + +@periodical{3-3, + author = {{American Association for the Advancement of Science}}, + title = {Science}, + type = {J}, + year = {1883}, + volume = {1}, + number = {1}, + location = {Washington, D.C.}, + publisher = {American Association for the Advancement of Science}, + language = {english}, +} + +@article{4-1, + author = {李晓东 and 张庆红 and 叶瑾琳}, + title = {气候学研究的若干理论问题}, + type = {J}, + journal = {北京大学学报:自然科学版}, + year = {1999}, + volume = {35}, + number = {1}, + pages = {101-106}, + language = {chinese}, +} + +@article{4-2, + author = {刘武 and 郑良 and 姜础}, + title = {元谋古猿牙齿测量数据的统计分析及其在分类研究上的意义}, + type = {J}, + journal = {科学通报}, + year = {1999}, + volume = {44}, + number = {23}, + pages = {2481-2488}, + language = {chinese}, +} + +@article{4-3, + author = {傅刚 and 赵承 and 李佳路}, + title = {大风沙过后的思考}, + type = {N/OL}, + journal = {北京青年报}, + date = {2000-04-12}, + url = {http://www.bjyouth.com.cn/Bgb/20000412/GB/4216%5ED0412B1401.htm}, + urldate = {2005-07-12}, + language = {chinese}, +} + +@article{4-4, + author = {莫少强}, + title = {数字式中文全文文献格式的设计与研究}, + type = {J/OL}, + journal = {情报学报}, + year = {1999}, + volume = {18}, + number = {4}, + pages = {1-6}, + url = {http://periodical.wanfangdata.com.cn/periodical/qbxb/qbxb99/qbxb9904/990407.htm}, + urldate = {2001-07-08}, + language = {chinese}, +} + +@article{4-5, + author = {Kanamori, H.}, + title = {Shaking without quaking}, + type = {J}, + journal = {Science}, + year = {1998}, + volume = {279}, + number = {5359}, + pages = {2063-2064}, + language = {english}, +} + +@article{4-6, + author = {Caplan, P.}, + title = {Cataloging internet resources}, + type = {J}, + journal = {The Public Access Computer Systems Review}, + year = {1993}, + volume = {4}, + number = {2}, + pages = {61-66}, + language = {english}, +} + +@patent{5-1, + author = {姜锡洲}, + title = {一种温热外敷药制备方案}, + type = {P}, + location = {中国}, + number = {88105607.3}, + date = {1989-07-26}, + language = {chinese}, +} + +@patent{5-2, + author = {西安电子科技大学}, + title = {光折变自适应光外差探测方法}, + type = {P/OL}, + location = {中国}, + number = {01128777.2}, + date = {2002-03-06}, + url = {http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&Ieixin=0}, + urldate = {2002-05-28}, + language = {chinese}, +} + +@patent{5-3, + author = {Tachibana, R. and Shimizu, S. and Kobayshi, S. and Other Authors}, + title = {Electronic watermarking method and system}, + type = {P/OL}, + location = {US}, + number = {6,915,001}, + date = {2002-04-25}, + url = {http://patftuspto.gov/nemcgi/nph-Parser?Sectl=PT02&Sect2=HITOFF&p=1&u=/netahmrl/search-bool.huml&r=1&f=G&1=50&col=AND&d=ptxt&sl='Electronic+watermarking+method+systern'.TTL.&OS=TTL/}, + urldate = {2002-05-28}, + language = {english}, +} + +@online{6-1, + title = {PACS-L: the public-access computer systems forum}, + shorttitle = {PACS-L}, + type = {EB/OL}, + location = {Houston, Tex}, + publisher = {University of Houston Libraries}, + year = {1989}, + url = {http://info.lib.uh.edu/pacsl.html}, + urldate = {1995-05-17}, + language = {english}, +} + +@online{6-2, + author = {{Online Computer Library Center, Inc.}}, + title = {History of OCLC}, + type = {EB/OL}, + url = {http://www.oclc.org/about/history/default.htm}, + urldate = {2000-01-08}, + language = {english}, +} + +@online{6-3, + author = {Hopkinson, A.}, + title = {UNIMARC and metadsta: Dublin Core}, + type = {EB/OL}, + url = {http://www.ifla.org/IV/ifla64/138-161e.htm}, + urldate = {1999-12-08}, + language = {english}, +} + +@book{9-1, + author = {Baker, S. K. and Jackson, M. E.}, + title = {The future of resource sharing}, + type = {M}, + location = {New York}, + publisher = {The Haworth Press}, + year = {1995}, + language = {english}, +} + +@book{9-2, + author = {Chernik, B. E.}, + title = {Introduction to library services for library technicians}, + type = {M}, + location = {Littleton, Colo.}, + publisher = {Libraries Unlimited, Inc.}, + year = {1982}, + language = {english}, +} + +@book{9-3, + author = {尼葛洛庞帝}, + title = {数字化生存}, + type = {M}, + translator = {胡冰 and 范海燕}, + location = {海口}, + publisher = {海南出版社}, + year = {1996}, + language = {chinese}, +} + +@book{9-4, + author = {汪冰}, + title = {电子图书馆理论与实践研究}, + type = {M}, + location = {北京}, + publisher = {北京图书馆出版社}, + year = {1997}, + language = {chinese}, +} + +@article{9-5, + author = {杨宗英}, + title = {电子图书馆的现实模型}, + type = {J}, + journal = {中国图书馆学报}, + year = {1996}, + number = {2}, + pages = {24-29}, + language = {chinese}, +} + +@article{9-6, + author = {Dowler, L.}, + title = {The research university's dilemma: resource sharing and research in a transinstitutional environment}, + type = {J}, + journal = {Journal Library Administration}, + year = {1995}, + volume = {21}, + number = {1/2}, + pages = {5-26}, + language = {english}, +} + +@inproceedings{10-1, + author = {张忠智}, + title = {科技书刊的总编(主编)的角色要求}, + type = {C}, + booktitle = {中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编}, + location = {北京}, + publisher = {中国科学技术期刊编辑学会学术委员会}, + year = {1997}, + pages = {33-34}, + language = {chinese}, +} + +@book{10-2, + author = {中国社会科学院语言研究所词典编辑室}, + title = {现代汉语词典}, + edition = {修订本}, + type = {M}, + location = {北京}, + publisher = {商务印书馆}, + year = {1996}, + language = {chinese}, +} + +@article{10-3, + author = {刘彻东}, + title = {中国的青年刊物:个性特色为本}, + type = {J}, + journal = {中国出版}, + year = {1998}, + number = {5}, + pages = {33-39}, + language = {chinese}, +} + +@inproceedings{10-4, + author = {裴丽生}, + title = {在中国科协学术期刊编辑工作经验交流会上的讲话}, + type = {C}, + booktitle = {中国科协学术期刊编辑工作经验交流会资料选}, + location = {北京}, + publisher = {中国科学技术协会工作部}, + year = {1981}, + pages = {2-10}, + language = {chinese}, +} + +@article{10-5, + author = {Kennedy, W. J. and Garrison, R. E.}, + title = {Morphology and genesis of nodular chalks and hardgrounds in the Upper Cretaceous of southern England}, + type = {J}, + journal = {Sedimentology}, + year = {1975}, + volume = {22}, + pages = {311-386}, + language = {english}, +} + +@article{10-6, + author = {Kennedy, W. J. and Garrison, R. E.}, + title = {Morphology and genesis of nodular phosphates in the Cenomanian of south-east England}, + type = {J}, + journal = {Lethaia}, + year = {1975}, + volume = {8}, + pages = {339-360}, + language = {english}, +} + +@book{a1-1, + author = {广西壮族自治区林业厅}, + title = {广西自然保护区}, + type = {M}, + location = {北京}, + publisher = {中国林业出版社}, + year = {1993}, + language = {chinese}, +} + +@book{a1-2, + author = {蒋有绪 and 郭泉水 and 马娟 and 其他作者}, + title = {中国森林群落分类及其群落学特征}, + type = {M}, + location = {北京}, + publisher = {科学出版社}, + year = {1998}, + language = {chinese}, +} + +@book{a1-3, + author = {唐绪军}, + title = {报业经济与报业经营}, + type = {M}, + location = {北京}, + publisher = {新华出版社}, + year = {1999}, + pages = {117-121}, + language = {chinese}, +} + +@book{a1-4, + author = {赵凯华 and 罗蔚茵}, + title = {新概念物理教程:力学}, + type = {M}, + location = {北京}, + publisher = {高等教育出版社}, + year = {1995}, + language = {chinese}, +} + +@book{a1-5, + author = {汪昂}, + title = {(增补)本草备要}, + edition = {石印本}, + type = {M}, + location = {上海}, + publisher = {同文书局}, + year = {1912}, + language = {chinese}, +} + +@book{a1-6, + author = {Crawford, W. and Gorman, M.}, + title = {Future libraries: dreams, madness \& reality}, + type = {M}, + location = {Chicago}, + publisher = {American Library Association}, + year = {1995}, + language = {english}, +} + +@book{a1-7, + author = {{International Federation of Library Association and Institutions}}, + title = {Names of persons: national usages for entry in catalogues}, + edition = {3}, + type = {M}, + location = {London}, + publisher = {IFLA International Office for UBC}, + year = {1977}, + language = {english}, +} + +@book{a1-8, + author = {O'Brien, J. A.}, + title = {Introduction to information systems}, + edition = {7}, + type = {M}, + location = {Burr Ridge, Ill.}, + publisher = {Irwin}, + year = {1994}, + language = {english}, +} + +@book{a1-9, + author = {Rood, H. J.}, + title = {Logic and structured design for computer programmers}, + edition = {3}, + type = {M}, + publisher = {Brooks/Cole-Thomson Learning}, + year = {2001}, + language = {english}, +} + +@proceedings{a2-1, + author = {中国力学学会}, + title = {第 3 届全国实验流体力学学术会议论文集}, + type = {C}, + location = {天津}, + year = {1990}, + language = {chinese}, +} + +@proceedings{a2-2, + author = {Rosenthall, E. M.}, + title = {Proceedings of the Fifth Canadian Mathematical Congress, University of Montreal, 1961}, + type = {C}, + location = {Toronto}, + publisher = {University of Toronto Press}, + year = {1963}, + language = {english}, +} + +@proceedings{a2-3, + author = {Ganzha, V. G. and Mayr, E. W. and Vorozhtsov, E. V.}, + title = {Computer algebra in scientific computing: CASC 2000: proceedings of the Third Workshop on Algebra in Scientific Computing, Samarkand, October 5-9,2000}, + type = {C}, + location = {Berlin}, + publisher = {Springer}, + year = {c2000}, + language = {english}, +} + +@report{a3-1, + author = {{U.S. Department of Transportation Federal Highway Administration}}, + title = {Guidelines for handling excavated acid-producing materials, PB 91-194001}, + type = {R}, + location = {Springfield}, + publisher = {U.S. Department of Commerce National Information Service}, + year = {1990}, + language = {english}, +} + +@report{a3-2, + author = {{World Health Organization}}, + title = {Factors regulating the immune response: report of WHO Scientific Group}, + type = {R}, + location = {Geneva}, + publisher = {WHO}, + year = {1970}, + language = {english}, +} + +@thesis{a4-1, + author = {张志祥}, + title = {间断动力系统的随机扰动及其在守恒律方程中的应用}, + type = {D}, + location = {北京}, + publisher = {北京大学数学学院}, + year = {1998}, + language = {chinese}, +} + +@thesis{a4-2, + author = {Calms, R. B.}, + title = {Infrared spectroscopic studies on solid oxygen}, + type = {D}, + location = {Berkeley}, + publisher = {Univ. of California}, + year = {1965}, + language = {english}, +} + +@patent{a5-1, + author = {刘加林}, + title = {多功能一次性压舌板}, + type = {P}, + location = {中国}, + number = {92214985.2}, + date = {1993-04-14}, + language = {chinese}, +} + +@patent{a5-2, + author = {河北绿洲生态环境科技有限公司}, + title = {一种荒漠化地区生态植被综合培育种植方法}, + type = {P/OL}, + location = {中国}, + number = {01129210.5}, + date = {2001-10-24}, + urldate = {2002-05-28}, + url = {http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin}, + language = {chinese}, +} + +@patent{a5-3, + author = {Koseki, A. and Momose, H. and Kawahito, M. and Other Authors}, + title = {Compiler}, + type = {P/OL}, + location = {US}, + number = {828402}, + date = {2002-05-25}, + url = {http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&l=5&col=AND&d=PG01&sl=IBM.AS.&0S=AN/IBM&RS=AN/}, + urldate = {2002-02-28}, + language = {english}, +} + +@incollection{a6-1, + author = {国家标准局信息分类编码研究所}, + title = {GB/T 2659--1986 世界各国和地区名称代码}, + type = {S}, + bookauthor = {全国文献工作标准化技术委员会}, + booktitle = {文献工作国家标准汇编:3}, + location = {北京}, + publisher = {中国标准出版社}, + year = {1988}, + pages = {59-92}, + language = {chinese}, +} + +@incollection{a6-2, + author = {韩吉人}, + title = {论职工教育的特点}, + type = {G}, + bookauthor = {中国职工教育研究会}, + booktitle = {职工教育研究论文集}, + location = {北京}, + publisher = {人民教育出版社}, + year = {1985}, + pages = {90-99}, + language = {chinese}, +} + +@incollection{a6-3, + author = {Buseck, P. R. and Nord, Jr., G. L. and Veblen, D. R.}, + title = {Subsolidus phenomena in pyroxenes}, + type = {M}, + bookauthor = {Prewitt, C. T.}, + booktitle = {Pyroxense}, + location = {Washington, D.C.}, + publisher = {Mineralogical Society of America}, + year = {c1980}, + pages = {117-211}, + language = {english}, +} + +@inproceedings{a6-4, + author = {Fourney, M. E.}, + title = {Advances in holographic photoelasticity}, + type = {C}, + bookauthor = {{American Society of Mechanical Engineers, Applied Mechanics Division}}, + booktitle = {Symposium on Applications of Holography in Mechanics, August 23--25, 1971, University of Southern California, Los Angeles, California}, + location = {New York}, + publisher = {ASME}, + year = {c1971}, + pages = {17-38}, + language = {english}, +} + +@incollection{a6-5, + author = {Martin, G.}, + title = {Control of electronic resources in Australia}, + type = {M}, + bookauthor = {Pattle, L. W. and Cox, B. J.}, + booktitle = {Electronic resources: selection and bibliographic control}, + location = {New York}, + publisher = {The Haworth Press}, + year = {1966}, + pages = {85-96}, + language = {english}, +} + +@article{a7-1, + author = {李炳穆}, + title = {理想的图书馆员和信息专家的素质与形象}, + type = {J}, + journal = {图书情报工作}, + year = {2000}, + number = {2}, + pages = {5-8}, + language = {chinese}, +} + +@article{a7-2, + author = {陶仁骥}, + title = {密码学与数学}, + type = {J}, + journal = {自然杂志}, + year = {1984}, + volume = {7}, + number = {7}, + pages = {527}, + language = {chinese}, +} + +@article{a7-3, + author = {亚洲地质图编目组}, + title = {亚洲地层与地质历史概述}, + type = {J}, + journal = {地质学报}, + year = {1978}, + volume = {3}, + pages = {104-208}, + language = {chinese}, +} + +@article{a7-4, + author = {des Marais, D. J. and Strauss, H. and Summons, R. E. and Other Authors}, + title = {Carbon isotope evidence for the stepwise oxidation of the Proterozoic environment}, + type = {J}, + journal = {Nature}, + year = {1992}, + volume = {359}, + pages = {605-609}, + language = {english}, +} + +@article{a7-5, + author = {Hewitt, J. A.}, + title = {Technical services in 1983}, + type = {J}, + journal = {Library Resource Services}, + year = {1984}, + volume = {28}, + number = {3}, + pages = {205-218}, + language = {english}, +} + +@article{a8-1, + author = {丁文祥}, + title = {数字革命与竞争国际化}, + type = {N}, + journal = {中国青年报}, + date = {2000-11-20}, + language = {chinese}, +} + +@article{a8-2, + author = {张田勤}, + title = {罪犯 DNA 库与生命伦理学计划}, + type = {N}, + journal = {大众科技报}, + date = {2000-11-12}, + language = {chinese}, +} + +@article{a9-1, + author = {江向东}, + title = {互联网环境下的信息处理与图书管理系统解决方案}, + type = {J/OL}, + journal = {情报学报}, + year = {1999}, + volume = {18}, + number = {2}, + pages = {4}, + url = {http://www.chinainfo.gov.cn/periodical/qbxb/qbxb99/qbxb990203}, + urldate = {2000-01-18}, + language = {chinese}, +} + +@online{a9-2, + author = {萧钰}, + title = {出版业信息化迈入快车道}, + type = {EB/OL}, + date = {2001-12-19}, + url = {http://www.creader.com/news/20011219/200112190019.html}, + urldate = {2002-04-15}, + language = {chinese}, +} + +@article{a9-3, + author = {Christine, M.}, + title = {Plant physiology: plant biology in the Genome Era}, + type = {J/OL}, + journal = {Science}, + year = {1998}, + volume = {281}, + pages = {331-332}, + url = {http://www.sciencemag.org/cgi/collection/anatmorp}, + urldate = {1998-09-23}, + language = {english}, +} + +@incollection{a9-4, + author = {Metcalf, S. W.}, + title = {The Tort Hall air emission study}, + type = {C/OL}, + booktitle = {The International Congress on Hazardous Waste, Atlanta Marriott Marquis Hotel, Atlanta, Georgia, June 5--8, 1995: impact on human and ecological health}, + url = {http://atsdrl.atsdr.cdc.gov:8080/cong95.html}, + urldate = {1998-09-22}, + language = {english}, +} + +@book{a9-5, + author = {Turcotte, D. L.}, + title = {Fractals and chaos in geology and geophysics}, + type = {M/OL}, + location = {New York}, + publisher = {Cambridge University Press}, + year = {1992}, + url = {http://www.seg.org/reviews/mccorm30.html}, + urldate = {1998-09-23}, + language = {english}, +} + +@misc{a9-6, + author = {{Scitor Corporation}}, + title = {Project scheduler}, + type = {CP/DK}, + location = {Sunnyvale, Calif.}, + publisher = {Scitor Corporation}, + year = {c1983}, + language = {english}, +} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf Binary files differnew file mode 100644 index 0000000000..caf3071af0 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex new file mode 100644 index 0000000000..a3e9e51745 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex @@ -0,0 +1,488 @@ +% Documentation for biblatex-caspervector +% +% Copyright (c) 2012-2016,2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.tex +% caspervector-ay.tex + +\documentclass[UTF8]{ctexart} +\usepackage[margin = 2cm, centering, includefoot]{geometry} +\usepackage[ + backend = biber, style = caspervector, utf8, + giveninits = true, sortgiveninits = true +]{biblatex} +\usepackage{fancyhdr, hyperref, enumitem, fancyvrb, hologo} + +\hypersetup{colorlinks = true, allcolors = blue} +\pagestyle{fancy}\fancyhf{}\cfoot{\thepage} +\renewcommand{\headrulewidth}{0pt} +\setlist{nolistsep} +\setlength{\hfuzz}{3pt} +\ctexset{linestretch = {\maxdimen}} +\renewcommand{\bibfont}{\small} +\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}} + +\DeclareBibliographyCategory{cited} +\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}} +\addbibresource{caspervector.bib} + +\begin{document} +\title{\textbf{biblatex 参考文献和引用样式:\texttt{caspervector} v0.3.3}} +\author{% + Casper Ti.\ Vector\thanks{\ % + \href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.% + }% +} +\date{2018/06/29} +\maketitle + +\section{引言} + +传统的 \hologo{BibTeX} 引擎存在一些固有的问题: +首先,其样式文件(\verb|bst| 文件)使用后缀式的栈语言编写, +使开发者难以入门和精通,更不便于一般用户进行自定义; +其次,其排序方式很单一, +无法直接实现中文 \hologo{TeX} 用户常常遇到的按汉语拼音排序等需求。 +与此相对应,biblatex\supercite{biblatex}/biber\supercite{biber} +是一套新兴的 \hologo{TeX} 参考文献排版引擎, +其样式文件(设定参考文献样式的 \verb|bbx| 文件和设定引用样式的 \verb|cbx| 文件) +使用 \hologo{LaTeX} 编写,便于学习; +同时,其支持根据 locale 进行排序。 + +为了个人需要,同时也是为了给社区提供一个有益的参考, +本文作者根据实际应用中遇到的常见需求编写了 +\verb|caspervector| 这个中西文 biblatex 样式。 +其逻辑框架基于国家标准 GB/T 7714--2005\supercite{gbt7714-2005}, +但在后者基础上根据个人审美趣味和 biblatex 所能实现的功能而 +对参考文献和引用格式进行了较大幅度的修改。 +用户如果需要更严格符合国家标准的样式,可以参考 +\verb|gb7714-2015|\supercite{blx-gb7714-2015}。 + +\section{许可协议} + +版权所有 \copyright\ 2012--2018 Casper Ti.\ Vector。% +\verb|caspervector| 参考文献和引用样式以 +\hologo{LaTeX} Project Public License\footnote{\ % + \url{https://www.latex-project.org/lppl/}.% +}发布。% +\verb|caspervector| 样式目前由其作者维护。 + +\section{系统要求和安装方式} +\subsection{系统要求} + +\begin{itemize} + \item biblatex 宏包(2.0 或以上版本):% + \verb|caspervector| 样式基于 biblatex 宏包。 + \item biber 程序(和 biblatex 相应的版本): + 用 biber 可以方便地实现文献按字母和拼音顺序排序。 + \item 中文环境:% + \verb|caspervector| 样式虽支持中文,但其本身不提供中文环境。 + 用户仍然需要中文环境才能排版出文档。 +\end{itemize} + +以上要求在\myemph{最新}的\myemph{完全版} +\hologo{TeX} Live 系统中都有完善的支持。 + +\section{使用简介} +\subsection{样式调用} + +用户应当通过以下命令调用 \verb|caspervector| 样式(如果须要使用 +作者--年编码制,应将 \verb|caspervector| 换成 \verb|caspervector-ay|): +\begin{Verbatim}[frame = single] +% “utf8”可能须要改为“gbk”,根据用户使用的字符编码而定。 +% “...” 代表其它选项。 +\usepackage[ + backend = biber, style = caspervector, utf8, sorting = cenyt, ... +]{biblatex} +\end{Verbatim} +其中 \verb|sorting| 选项用于(全局)指定按哪些字段排序, +除 biblatex 提供的标准选项\supercite{biblatex}外,% +\verb|caspervector| 样式还提供 \verb|cenyt| 和 \verb|ecnyt| 两种排序方案 +(\verb|caspervector| 默认设置为 \verb|none| 排序方案,即按引用顺序排序), +表示依次按文献语言 +(\textbf{ce}nyt 表示中文文献在前,\textbf{ec}nyt 表示西文文献在前; +文献语言根据 \verb|language| 字段进行区分,详见第 \ref{sec:fields} 部分)、 +编著者姓名(\textbf{n}ame)、出版年(\textbf{y}ear) +和标题(\textbf{t}itle)排序\footnote{\ % + v0.2.x 和更早版本的 \texttt{caspervector} + 样式支持的额外排序方案为 \texttt{centy} 和 \texttt{ecnty}; + 为了支持作者--年编码制,之后的版本不再支持这两种方案。% +}。 + +参考文献数据库 +(\verb|.bib| 文件,其格式见第 \ref{sec:fields}、\ref{sec:entries} 部分) +通过 \verb|\addbibresource| 命令导入,% +\myemph{注意不要省略扩展名 \texttt{.bib}}。 +例如,本文的参考文献数据库就是通过下述命令导入的: +\begin{Verbatim}[frame = single] +\addbibresource{caspervector.bib} +\end{Verbatim} +用户可以多次使用 \verb|\addbibresource| 命令, +从多个参考文献数据库中导入参考文献。 + +\subsection{引用命令} + +\verb|caspervector| 样式在顺序编码制下支持 biblatex 所提供的引用命令, +其中最常用的是 \verb|\supercite|、\verb|\parencite| 和 \verb|\cite|。 +三个命令的用法类似: +\begin{Verbatim}[frame = single] +% 可选参数 prenote 和 postnote 分别用于设定引用记号前、后的注释。 +\citecommand[prenote][postnote]{key} +\end{Verbatim} +其中 \verb|\cite| 产生无格式化的引用标记\footnote{\ % + biblatex 的默认设置是带方括号, + 而 \texttt{caspervector} 样式中出于功能完备性的考虑去掉了方括号。% +},\verb|\parencite| 产生带方括号的引用标记, +而 \verb|\supercite| 产生上标且带方括号的引用标记\footnote{\ % + biblatex 的默认设置是只上标、不带方括号, + 而 \texttt{caspervector} 样式中根据作者见到的常见需求加上了方括号。% +}。作者--年编码制下引用命令的用法请参考随 \verb|caspervector| +样式附带的 \verb|caspervector-ay.pdf|(可用 \verb|texdoc| 命令查看)。 + +例如,在本文中,% +\verb|\parencite{gbt7714-2005}| 的输出是“\parencite{gbt7714-2005}”, +而以下代码的输出是“\cite[文献][第 4 页]{gbt7714-2005}”: +\begin{Verbatim}[frame = single] +\cite[文献][第 4 页]{gbt7714-2005} +\end{Verbatim} + +\subsection{文献列表} + +使用 \verb|\printbibliography| 命令可以在相应位置排版文献列表。 +其可(在方括号内)带一些可选参数\supercite{biblatex}, +常见的有: +\begin{itemize} + \item \verb|title = 标题|: + 可以用于指定文献列表的标题(默认为“参考文献”)。 + \item \verb|heading = 标题样式|: + 最常用的是当 \verb|heading| 的值为 \verb|bibintoc| 时, + 可以将参考文献加入目录中; + 当其值为 \verb|bibnumbered| 时, + 参考文献列表参与章节编号(当然也会被自动加入目录中)。 +\end{itemize} + +例如,以下代码可以将文献列表的标题改为 “文献”,并使文献列表参与章节编号: +\begin{Verbatim}[frame = single] +\printbibliography[title = {文献}, heading = bibnumbered] +\end{Verbatim} + +\subsection{编译方法} + +一般情况下,依次执行以下代码即可实现正确的排版: +\begin{Verbatim}[frame = single] +# “texfile”是被 TeX 编译的文件名中除去“.tex”的部分。 +# “pdflatex”可改为其它 TeX 程序,使用纯 latex 编译时可能还须要运行 dvipdfmx。 +pdflatex texfile +biber -l zh__pinyin texfile +pdflatex texfile +pdflatex texfile +\end{Verbatim} + +上述执行 \verb|biber| 的一行命令中,% +\verb|-l| 的参数 \verb|zh__pinyin| 可改为其它 +被 Perl 的 \verb|Unicode::Collate| 模块支持的 locale\footnote{\ % + \url{http://search.cpan.org/~sadahiro/Unicode-Collate/Collate/Locale.pm}.% +},这样在排序时将使用相应的排序规则。 +例如,如果要按笔画排序的话,可以将 \verb|zh__pinyin| 改为 \verb|zh__stroke|。 + +\section{字段介绍}\label{sec:fields} +\subsection{基本字段} + +除非特别指出,此部分字段在所有类型条目中均可用。 + +\begin{itemize} + \item \verb|author|、\verb|editor|、\verb|translator|: + 作者、编者、译者。\\\myemph{% + 注: + 在析出文献条目中,% + \texttt{author}、\texttt{editor}、\texttt{translator} + 专指析出文献的作者、编者、译者。 + 在 \texttt{@patent} 类条目中,% + \texttt{author} 也可指专利的持有者。% + } + \item \verb|bookauthor|、\verb|booktitle|:析出文献所出自文献的作者和题名。 + \item \verb|title|:文献题名。 + \item \verb|edition|:文献版本\footnote{\ % + v0.3.2 和更早版本的 \texttt{caspervector} 样式不支持 \texttt{edition} + 字段,但可手动在 \texttt{title} 字段中标注相应信息。% + },若为整数则会自动排版为“第 2 版”或“2nd ed.”等形式。 + \item \verb|type|:文献类型和电子文献载体标志代码\supercite{gbt7714-2005}。 + \item \verb|location|:出版地,或(在 \verb|@patent| 类条目中)专利申请地。 + \item \verb|publisher|:出版者,或学位论文作者申请学位的单位。 + \item \verb|journal|/\verb|journaltitle|:连续出版物题名,两个字段互相等价。 + \item \verb|year|/\verb|date|:出版年、日期,这两个字段只须填写一个即可。 + \item \verb|volume|:期刊中文献所处的卷号。 + \item \verb|number|:期刊中文献所处的期号,或专利的申请号。 + \item \verb|pages|:文献页码。 + \item \verb|url|/\verb|eid|: + 文献的 URL 和(arXiv 等平台的)电子标识码。\\\myemph{% + 注:% + \texttt{url} 字段会被自动排版成链接, + 但 \texttt{eid} 字段须要用户手工定义格式; + 后者的一个示例见第 \ref{sec:faq} 部分。% + } + \item \verb|urldate|:检索日期,或 URL 的访问日期。 + \item \verb|addendum|:补充说明,排版在文献列表中相应条目的最后。 +\end{itemize} + +\subsection{特殊字段} + +\begin{itemize} + \item \verb|language|: + 值为 \verb|chinese| 时,相应条目在文献列表中用中文排版; + 否则(为其他值或未定义时)用西文排版。 + \item \verb|note|:用于排版一些特殊内容,参考第 \ref{sec:faq} 部分。 + \item \verb|userf|:\verb|caspervector| 样式内部使用。 + \item 其它通用特殊字段,见 biblatex 手册\supercite{biblatex}。 +\end{itemize} + +\section{条目类型}\label{sec:entries} +\subsection{\texttt{@book} 类型} + +\verb|@book| 类型对应于 GB/T 7714--2005 中所指的“专著”和“电子文献”, +其支持的常见别名包括 \verb|@booklet|、\verb|@online|、\verb|@proceedings|、% +\verb|@report|、\verb|@thesis|、\verb|@unpublished|。 + +\verb|@book| 类条目必需的基本字段为 \verb|title|。 + +除必需字段之外,\verb|@book| 类条目也支持以下基本字段:% +\verb|author|、\verb|editor|、\verb|translator|、\verb|edition|、% +\verb|type|、\verb|location|、\verb|publisher|、% +\verb|year|/\verb|date|(作者--年编码制中必需)、\verb|pages|、% +\verb|url|/\verb|eid|、\verb|urldate|、\verb|addendum|。 + +\subsection{\texttt{@incollection} 类型} + +\verb|@incollection| 类型对应于 GB/T 7714--2005 中所指的“专著中的析出文献”, +其支持的常见别名包括 +\verb|@bookinbook|、\verb|@conference|、\verb|@inbook|、\verb|@inproceedings|。 + +\verb|@incollection| 类条目必需的基本字段为 \verb|title| 以及 \verb|booktitle|。 + +除必需字段之外,\verb|@incollection| 类条目也支持以下基本字段:% +\verb|author|、\verb|editor|、\verb|translator|、\verb|bookauthor|、% +\verb|edition|、\verb|type|、\verb|location|、\verb|publisher|、% +\verb|year|/\verb|date|(作者--年编码制中必需)、\verb|pages|、% +\verb|url|/\verb|eid|、\verb|urldate|、\verb|addendum|。 + +\subsection{\texttt{@periodical} 类型} + +\verb|@periodical| 类型对应于 GB/T 7714--2005 中所指的“连续出版物”。 + +\verb|@periodical| 类条目必需的基本字段为 +\verb|title|/\verb|journal|/\verb|journaltitle| 三者中的至少一个。 + +除必需字段之外,\verb|@periodical| 类条目也支持以下基本字段:% +\verb|author|/\verb|editor|/\verb|translator|、% +\verb|type|、\verb|location|、\verb|publisher|、% +\verb|year|/\verb|date|(作者--年编码制中必需)、% +\verb|volume|、\verb|number|、\verb|pages|、% +\verb|url|/\verb|eid|、\verb|urldate|、\verb|addendum|。 + +\subsection{\texttt{@article} 类型} + +\verb|@article| 类型对应于 GB/T 7714--2005 中所指的“连续出版物中的析出文献”。 + +\verb|@article| 类条目必需的基本字段为 +\verb|journal|/\verb|journaltitle| 两者中的至少一个, +以及 \verb|year|/\verb|date| 两者中的至少一个。 + +除必需字段之外,\verb|@article| 类条目也支持以下基本字段:% +\verb|author|、\verb|title|、\verb|type|、% +\verb|volume|、\verb|number|、\verb|pages|、% +\verb|url|/\verb|eid|、\verb|urldate|、\verb|addendum|。 + +\subsection{\texttt{@patent} 类型} + +\verb|@patent| 类型用于专利文献。 + +\verb|@patent| 类条目必需的基本字段为 \verb|title|, +以及 \verb|year|/\verb|date| 两者中的至少一个。 + +除必需字段之外,\verb|@article| 类条目也支持以下基本字段:% +\verb|author|、\verb|title|、\verb|type|、% +\verb|location|、\verb|number|、% +\verb|url|/\verb|eid|、\verb|urldate|、\verb|addendum|。 + +\subsection{\texttt{@customf} 类型} + +\verb|@customf| 类型为特殊类型, +专用于在文献列表的相应条目中排版自定义的文字。 +此类条目必需且唯一支持的基本字段为 \verb|addendum|, +用户可将其设为自己希望排版的内容。 + +\myemph{% + 注:% + \texttt{@customf} 类型虽不支持 \texttt{author} 等字段, + 但用户仍可以设定它们的值。 + 这样虽不能自动根据这些字段排版, + 但仍可以根据它们 + (主要是 \texttt{language}、\texttt{author}、\texttt{title} + 和 \texttt{year}/\texttt{date} 五个字段) + 进行排序。 % +} + +\section{对参考文献进行分类排序}\label{sec:catsort} + +使用 biblatex 3.4 或更新版本的用户可以通过对不同的 \verb|\printbibliography| +命令采用不同的调用环境来实现对不同部分文献按不同方案排序。 +例如,如须对被引用的文献按照引用顺序排序, +而对未引用的文献按照西文文献在前、中文文献在后排序, +则可以在导言区中加入下列几行代码: +\begin{Verbatim}[frame = single] +% 新建条目分类(category)用于区分被引用和未引用的文献条目。 +\DeclareBibliographyCategory{cited} +% 每执行一次除 \nocite 之外的 \cite 类命令,将被引用的文献加到“cited”分类中。 +\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}} +\end{Verbatim} +在正文中准备排版文献列表的位置使用如下代码: +\begin{Verbatim}[frame = single] +% 按引用顺序排版“cited”分类,即被引用的文献条目。 +\begin{refcontext}[sorting = none] +\printbibliography[category = cited, ..., title = {References}] +\end{refcontext} +% 按西文文献在前、中文文献在后排版“cited”分类之外,即未被引用的文献条目。 +\begin{refcontext}[sorting = ecnyt] +\printbibliography[notcategory = cited, ..., title = {Works Not Cited}] +\end{refcontext} +\end{Verbatim} +并在最后一个除 \verb|\nocite| 之外的 \verb|\cite| 类命令之后、% +\verb|\end{document}| 之前的任意合适位置\footnote{\ % + 因为 biblatex 中的引用顺序记录是按每个条目被第一次引用的顺序计算的, + 所以 \texttt{\string\nocite\{*\}} 时导入文献的顺序会覆盖掉后面 + \texttt{\string\cite} 类命令的引用顺序。 +}(例如,在本说明文档中,就是在 \verb|\end{document}| 之前一行) +加入以下代码: +\begin{Verbatim}[frame = single] +% 将 .bib 文件中所有的参考文献都加到引用列表中,但不将它们加到“cited”分类中, +% 也不会排版引用标号,只是在最后的 \printbibliography 命令中排版相应的文献条目。 +\nocite{*} +\end{Verbatim} + +使用 biblatex 2.x 或更旧版本的用户须要 +将在正文中准备排版文献列表的位置使用的代码改为: +\begin{Verbatim}[frame = single] +% 按引用顺序排版“cited”分类,即被引用的文献条目。 +\printbibliography[category = cited, ..., sorting = none, title = {References}] +% 按西文文献在前、中文文献在后排版“cited”分类之外,即未被引用的文献条目。 +\printbibliography% + [notcategory = cited, ..., sorting = ecnyt, title = {Works Not Cited}] +\end{Verbatim} +biblatex 3.0--3.3 中有一个 bug\footnote{\ % + 可以参考 \url{https://tex.stackexchange.com/questions/250548/}。% +} 导致分类排序失效,此问题基本无解。 + +\section{FAQ 和其它使用提示}\label{sec:faq} + +用户可以通过省略可选字段的方式来避免排版相应的内容。 +例如,省略 \verb|type| 字段便可使相应条目不排版文献类型和电子文献载体标志代码。 + +biblatex 的标准格式支持通过 \verb|eprint|、\verb|eprintclass|、\verb|eprinttype| +等字段排版 arXiv 等平台的电子标识码;但本文作者因认为其用法死板、实现繁琐, +故使用了自由格式的 \verb|eid| 字段。用户可以使用 \verb|\printtext| +命令调用 biblatex 中内置的相应排版功能,例如文献 \parencite{perelman} +中的电子标识码便是通过以下设定得到的: +\begin{Verbatim}[frame = single] +eid = {\printtext[eprint:arxiv]{math/0211159}}, +\end{Verbatim} +其中 \verb|arxiv| 可以替换为其它在标准格式中被 \verb|eprinttype| +字段支持的字符串,详见 biblatex 手册\supercite{biblatex}; +如果须要排版 DOI,应将方括号中的整个字符串替换为 \verb|doi|。% +\myemph{% + 须要特别注意的是,如果电子标识码中有特殊字符如 + “\texttt{\_}”“\texttt{\%}”等时,应将相应字符用反斜杠转义为 + “\texttt{\textbackslash\_}”“\texttt{\textbackslash\%}”等。% +} + +用户在很多时候可以通过手动调用格式化命令来临时覆盖预设的格式设定, +例如对于一个 \verb|@article| 类型的条目,以下代码将使年卷期号排版为类似于 +“\textbf{2018},\textit{14}(\hologo{TeX} 特刊)”的形式: +\begin{Verbatim}[frame = single] +year = {2018}, +volume = {14}, +number = {\hologo{TeX} 特刊}, +\end{Verbatim} + +因为 biblatex 内部实现的缘故,\verb|year|/\verb|date| +字段被设为一些特殊内容时可能导致其出错。如果的确有这样的排版需求, +可以使用 \verb|note| 字段,例如文献 \parencite{1-7} +中的出版年便是通过以下设定得到的(\verb|origdate| 字段不会被排版出来, +但会在排序时被 \verb|caspervector| 样式考虑; +其具体用法请参考 biblatex 手册)\footnote{\ % + v0.2.x 和更早版本的 \texttt{caspervector} 样式支持直接在 + \texttt{year} 字段中设定特殊内容;在之后的版本中,为了支持作者--年编码制, + \texttt{caspervector} 的内部实现进行了调整,导致其不再支持这样的用法。% +}: +\begin{Verbatim}[frame = single] +origdate = {1845}, +note = {\textbf{1845}(\emph{清同治四年})}, +\end{Verbatim} + +\section{存在的问题} + +如第 \ref{sec:faq} 部分所述,% +\verb|year|/\verb|date| 字段被设为一些特殊内容时可能导致出错。 +此外如第 \ref{sec:catsort} 部分所述,% +biblatex 3.0--3.3 的功能调整导致分类排序失效。% +\verb|caspervector| 样式的作者对此表示遗憾,希望用户能谅解。 + +因为 biblatex 现有功能的限制,一些需求无法直接实现。例如类似于文献 +\parencite{3-2} 中同时有出版起止年和起止期号的情况就无法自动排版, +只能通过用户手动实现。下面两种方式均可实现上述需求 +(\verb|origdate| 字段的用法请参考第 \ref{sec:faq} 部分): +\begin{Verbatim}[frame = single] +@periodical{3-2, + author = {中国图书馆学会}, + title = {图书馆学通讯}, + type = {J}, + origdate = {1957/1990}, + note = {\textbf{1957}(1) -- \textbf{1990}(4)}, + location = {北京}, + publisher = {北京图书馆}, + language = {chinese}, +} +\end{Verbatim} +或 +\begin{Verbatim}[frame = single] +@customf{3-2, + author = {中国图书馆学会}, + title = {图书馆学通讯}, + date = {1957/1990}, + addendum = {中国图书馆学会。 + \textit{图书馆学通讯} [J]。 + \textbf{1957}(1) -- \textbf{1990}(4)。 + 北京:北京图书馆。}, + language = {chinese}, +} +\end{Verbatim} +这两种方法中更加推荐使用前者,因为前者只须手动实现出版年和期号的排版。 + +\begin{refcontext}[sorting = none] +\printbibliography[category = cited, heading = bibnumbered, title = {本文参考文献}] +\end{refcontext} +\begin{refcontext}[sorting = ecnyt] +\printbibliography[notcategory = cited, heading = bibnumbered, title = {% + 其它参考文献示例 + (引自\texorpdfstring{文献 \parencite{gbt7714-2005}}{ GB/T 7714-2005})% +}] +\end{refcontext} + +\section{更新记录} +\VerbatimInput[tabsize = 4, fontsize = {\small}, baselinestretch = 1]{ChangeLog.txt} + +\nocite{*} +\end{document} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def new file mode 100644 index 0000000000..279b7e5281 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def @@ -0,0 +1,375 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{blx-caspervector-base.def}% + [2018/06/29 v0.3.3 Casper Ti. Vector's biblatex library] + +\RequireBiber[3] +\newtoggle{bbx:gbk} +\newtoggle{bbx:ugly} +\newtoggle{bbx:bfdate}\toggletrue{bbx:bfdate} +\DeclareBibliographyOption{utf8}[true]{\togglefalse{bbx:gbk}} +\DeclareBibliographyOption{gbk}[true]{\toggletrue{bbx:gbk}} +\DeclareBibliographyOption{ugly}[true]{\settoggle{bbx:ugly}{#1}} +\ExecuteBibliographyOptions{% + gbk, ugly = false, autopunct = false, alldates = iso, + minnames = 3, minitems = 3, maxcitenames = 2, mincitenames = 1% +} +\AtEndOfPackage{% + \iftoggle{bbx:gbk}{ + \input{blx-caspervector-gbk.def} + \ExecuteBibliographyOptions{texencoding = GBK} + }{ + \input{blx-caspervector-utf8.def} + \ExecuteBibliographyOptions{texencoding = UTF-8} + }% + \iftoggle{bbx:ugly}{ + \newcommand*{\bbx@citecomma}{\addcomma\space} + \newcommand*{\bbx@citebcomma}{\addcomma\space} + \newcommand*{\bbx@citescolon}{\addsemicolon\space} + \newcommand*{\bbx@cepunct}[2]{#2} + \DefineBibliographyStrings{english}{ + andmore = {\bbx@cietext{\bbx@cnetal}{et\addabbrvspace al\adddot}}, + andothers = {\bbx@cietext{\bbx@cnetal}{et\addabbrvspace al\adddot}}, + } + \DeclareFieldFormat*{booktitle}{#1} + \DeclareFieldFormat*{journaltitle}{#1} + \DeclareFieldFormat*{title}{#1} + \DeclareFieldFormat*{volume}{#1} + \newbibmacro*{typespace}{\setunit*{\addspace}} + }{ + \newcommand*{\bbx@citecomma}{\bbx@cncomma} + \newcommand*{\bbx@citebcomma}{\bbx@cnbcomma} + \newcommand*{\bbx@citescolon}{\bbx@cncomma} + \newcommand*{\bbx@cepunct}[2]{\iffieldequalstr{userf}{zh}{#1}{#2}} + \DefineBibliographyStrings{english}{ + andmore = + {\bbx@cietext{\bbx@cnetal}{\mkbibemph{et\addabbrvspace al\adddot}}}, + andothers = + {\bbx@cietext{\bbx@cnetal}{\mkbibemph{et\addabbrvspace al\adddot}}}, + } + \DeclareFieldFormat*{booktitle}{\mkbibemph{#1}} + \DeclareFieldFormat*{journaltitle}{\mkbibemph{#1}} + \DeclareFieldFormat*{title}{\mkbibemph{#1}} + \DeclareFieldFormat*{volume}{\mkbibemph{#1}} + \DeclareFieldFormat[inbook, inproceedings, incollection, article]% + {title}{\bbx@bibquote{\mkbibemph{#1}}} + \newbibmacro*{typespace}{\ifboolexpr{test {\bbx@cepunct} and ( + test {\ifentrytype{inbook}} or test {\ifentrytype{inproceedings}} or + test {\ifentrytype{incollection}} or test {\ifentrytype{article}} + )}{}{\setunit*{\addspace}}} + }% + \ifboolexpr{not test {\iftoggle{bbx:bfdate}} or test {\iftoggle{bbx:ugly}}}% + {\DeclareFieldFormat*{date}{#1}}% + {\DeclareFieldFormat*{date}{% + \ifboolexpr{test {\iffieldundef{month}} and test {\iffieldundef{day}}}% + {\mkbibbold{#1}}{#1}% + }}% +} + +\newcommand*{\bbx@cetext}[2]{\iffieldequalstr{userf}{zh}{#1}{#2}} +\newcommand*{\bbx@cietext}[2]{\ifboolexpr{% + test {\ifcitation} or test {\iffieldequalstr{userf}{zh}} +}{#1}{#2}} +\newcommand*{\bbx@cecomma}{\bbx@cepunct{\bbx@cncomma}{\addcomma\addspace}} +\newcommand*{\bbx@cecolon}{\bbx@cepunct{\bbx@cncolon}{\addcolon\addspace}} +\newcommand*{\bbx@cescolon}{\bbx@cepunct{\bbx@cnscolon}{\addsemicolon\addspace}} +\newcommand*{\bbx@ceperiod}{\bbx@cepunct{\bbx@cnperiod}{\addperiod\addspace}} +\newcommand*{\bbx@bibquote}[1]% + {\bbx@cepunct{\bbx@cnldquot{#1}\bbx@cnrdquot}{\mkbibquote{#1}}} +\renewcommand*{\finallistdelim}% + {\bbx@cetext{\bbx@cecomma}{\addspace\bibstring{and}\space}} +\renewcommand*{\multilistdelim}{\bbx@cecomma} +\renewcommand*{\finalnamedelim}{\ifcitation{\bbx@citebcomma}{\finallistdelim}} +\renewcommand*{\multinamedelim}{\ifcitation{\bbx@citebcomma}{\multilistdelim}} +\renewcommand*{\postnotedelim}{\bbx@citecomma} +\renewcommand*{\finentrypunct}% + {\iffieldundef{addendum}{\bbx@cepunct{\bbx@cnperiod}{.}}{}} +\DefineBibliographyExtras{english}{% + \renewcommand*{\finalandcomma}{}% +} + +\DefineBibliographyStrings{english}% + {bibliography = {\bbx@cnbib}, references = {\bbx@cnbib}} +\DeclareFieldFormat*{pages}{#1} +\DeclareFieldFormat*{url}{\url{#1}} +\DeclareFieldFormat*{urldate}{#1} +\DeclareFieldFormat*{type}{\mkbibbrackets{#1}} +\DeclareFieldFormat*{number}{\mkbibparens{#1}} +\DeclareFieldFormat[patent]{number}{#1} +\DeclareFieldFormat*{edition}{% + \bbx@cetext% + {\ifinteger{#1}{{\bbx@cnnr} {#1} {\bbx@cnedition}}{#1}}% + {\ifinteger{#1}{\mkbibordedition{#1}~\bibstring{edition}}{#1\isdot}}% +} +\newcommand*{\bbx@print}[1]{\iffieldundef{#1}{}{\printfield{#1}}} +\newcommand*{\bbx@byspace}[1]% + {\ifnumgreater{\value{#1}}{\value{maxnames}}{}{\addspace}} +\newbibmacro*{cein:}% + {\printtext{\bbx@cetext{\bbx@cnin}{In}\bbx@cecolon}\printtext{}} + +\newbibmacro*{ceedtrans}[1]{% + \ifboolexpr{test {\iftoggle{blx@use#1}} and not test {\ifnameundef{#1}}}{% + \printnames{#1}% + \bbx@cetext% + {\printtext{\bbx@byspace{#1}\@nameuse{bbx@cn#1}}}% + {\setunit{\printdelim{#1typedelim}}\usebibmacro{#1strg}}% + \clearname{#1}% + }{}% +} +\renewbibmacro*{editor}{\usebibmacro{ceedtrans}{editor}} +\renewbibmacro*{translator}{\usebibmacro{ceedtrans}{translator}} +\newbibmacro*{bookauthor/editor}{% + \ifnameundef{bookauthor}% + {\usebibmacro{ceedtrans}{editor}}{\printnames{bookauthor}}% +} + +\newbibmacro*{cebyauthx}[1]{% + \ifboolexpr{ + test {\ifnameundef{#1}} or + (test {\ifstrequal{#1}{author}} and test {\ifuseauthor}) + }{}{% + \bbx@cetext{% + \printnames[by#1]{#1}% + \printtext{\bbx@byspace{#1}\@nameuse{bbx@cn#1}}% + }{% + \bibstring{by#1}\setunit{\addspace}% + \printnames[by#1]{#1}% + }% + }% +} +\renewbibmacro*{byauthor}{\usebibmacro{cebyauthx}{author}} +\renewbibmacro*{byeditor}{\usebibmacro{cebyauthx}{editor}} +\renewbibmacro*{bytranslator}{\usebibmacro{cebyauthx}{translator}} +\newbibmacro*{byauthor+byeditor+bytranslator}{% + \usebibmacro{byauthor}\setunit*{\bbx@cescolon}% + \usebibmacro{byeditor}\setunit*{\bbx@cescolon}% + \usebibmacro{bytranslator}% +} + +\providebibmacro*{bbx:ifnodate}[2]{#2} +\newbibmacro*{journaltitle/title}{% + \iffieldundef{journaltitle}% + {\bbx@print{title}}{\printfield[title]{journaltitle}}% +} +\newbibmacro*{location+publisher+date+note+pages}{% + \printlist{location}\setunit*{\bbx@cecolon}\printlist{publisher}% + \ifboolexpr{test {\iflistundef{location}} and test {\iflistundef{publisher}}}% + {}{\setunit{\bbx@cecomma}}% + \usebibmacro{date}\setunit*{\bbx@cecomma}\printfield{note}% + \ifboolexpr{% + (test {\usebibmacro{bbx:ifnodate}} or test {\ifdateunknown}) and + test {\iffieldundef{note}} + }{}{\setunit{\bbx@cecolon}}% + \printfield{pages}% +} +\newbibmacro*{date+volume+number+note+pages}{% + \usebibmacro{date}% + \iffieldundef{volume}{}{\setunit*{\bbx@cecomma}\printfield{volume}}% + \bbx@print{number}\setunit*{\bbx@cecomma}\printfield{note}% + \ifboolexpr{% + (test {\usebibmacro{bbx:ifnodate}} or test {\ifdateunknown}) and + test {\iffieldundef{volume}} and test {\iffieldundef{number}} and + test {\iffieldundef{note}} + }{}{\setunit{\bbx@cecolon}}% + \printfield{pages}% +} +\newbibmacro*{eid+url+urldate}{% + \printfield{eid}\setunit*{\bbx@cecomma}% + \printfield{url}\setunit*{\bbx@cecomma}% + \iffieldundef{urlyear}{}{% + \printtext{\bbx@cetext{\bbx@cnretr}{retrieved on}\addspace}% + \printurldate% + }% +} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}\usebibmacro{begentry}% + \usebibmacro{author/editor/translator}% + \printunit*{\bbx@ceperiod}\newblock + \bbx@print{title}\usebibmacro{typespace}% + \bbx@print{type}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{byauthor+byeditor+bytranslator}% + \printunit{\bbx@ceperiod}\newblock + \printfield{edition}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{location+publisher+date+note+pages}% + \printunit{\bbx@ceperiod}\newblock + \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock + \printfield{addendum}\usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}\usebibmacro{begentry}% + \usebibmacro{author/translator}\printunit*{\bbx@ceperiod}\newblock + \bbx@print{title}\usebibmacro{typespace}% + \bbx@print{type}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{byauthor}\setunit*{\bbx@cescolon}% + \usebibmacro{bytranslator}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{cein:}\newblock + \usebibmacro{bookauthor/editor}\printunit*{\bbx@ceperiod}\newblock + \printfield{booktitle}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{byeditor}\printunit{\bbx@ceperiod}\newblock + \printfield{edition}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{location+publisher+date+note+pages}% + \printunit{\bbx@ceperiod}\newblock + \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock + \printfield{addendum}\usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}\usebibmacro{begentry}% + \usebibmacro{author/editor/translator}% + \printunit*{\bbx@ceperiod}\newblock + \usebibmacro{journaltitle/title}\usebibmacro{typespace}% + \bbx@print{type}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{byauthor+byeditor+bytranslator}% + \printunit{\bbx@ceperiod}\newblock + \usebibmacro{date+volume+number+note+pages}% + \printunit{\bbx@ceperiod}\newblock + \printlist{location}\setunit*{\bbx@cecolon}% + \printlist{publisher}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock + \printfield{addendum}\usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}\usebibmacro{begentry}% + \usebibmacro{author/translator}\printunit*{\bbx@ceperiod}\newblock + \bbx@print{title}\usebibmacro{typespace}% + \bbx@print{type}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{byauthor+byeditor+bytranslator}% + \printunit{\bbx@ceperiod}\newblock + \printfield{journaltitle}\setunit*{\bbx@cecomma}% + \usebibmacro{date+volume+number+note+pages}% + \printunit{\bbx@ceperiod}\newblock + \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock + \printfield{addendum}\usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{patent}{% + \usebibmacro{bibindex}\usebibmacro{begentry}% + \usebibmacro{author/editor/translator}% + \printunit*{\bbx@ceperiod}\newblock + \bbx@print{title}\usebibmacro{typespace}% + \bbx@print{type}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{byauthor+byeditor+bytranslator}% + \printunit{\bbx@ceperiod}\newblock + \printlist{location}\setunit*{\bbx@cecolon}% + \printfield{number}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{date}\setunit*{\bbx@cecomma}% + \printfield{note}\printunit{\bbx@ceperiod}\newblock + \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock + \printfield{addendum}\usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{customf}{% + \usebibmacro{bibindex}\usebibmacro{begentry}% + \printfield{addendum}\usebibmacro{finentry}% +} + +\DeclareBibliographyAlias{booklet}{book} +\DeclareBibliographyAlias{collection}{book} +\DeclareBibliographyAlias{manual}{book} +\DeclareBibliographyAlias{misc}{book} +\DeclareBibliographyAlias{online}{book} +\DeclareBibliographyAlias{proceedings}{book} +\DeclareBibliographyAlias{report}{book} +\DeclareBibliographyAlias{thesis}{book} +\DeclareBibliographyAlias{unpublished}{book} +\DeclareBibliographyAlias{inbook}{incollection} +\DeclareBibliographyAlias{inproceedings}{incollection} +\DeclareBibliographyAlias{*}{book} + +\DeclareSortingTemplate{ecnyt}{ + \sort{\field{presort}} + \sort[final]{\field{sortkey}} + \sort{ + \field{userf} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{volume} + \literal{0} + } +} + +\DeclareSortingTemplate{cenyt}{ + \sort{\field{presort}} + \sort[final]{\field{sortkey}} + \sort[direction = descending]{ + \field{userf} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{origyear} + \field{year} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{volume} + \literal{0} + } +} + +\DeclareStyleSourcemap{ + \maps{ + \map{ + \step[ + fieldsource = language, match = \regexp{^chinese$}, + fieldset = userf, fieldvalue = {zh} + ] + } + \map{ + \step[fieldset = userf, fieldvalue = {en}] + } + } +} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def new file mode 100644 index 0000000000..9d76570a3b --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def @@ -0,0 +1,45 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2016,2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{blx-caspervector-gbk.def}% + [2018/06/29 v0.3.3 Chinese punctuations and captions in GBK] + +\newcommand*\bbx@cnldquot{} +\newcommand*\bbx@cnrdquot{} +\newcommand*\bbx@cncomma{} +\newcommand*\bbx@cnbcomma{} +\newcommand*\bbx@cnscolon{} +\newcommand*\bbx@cncolon{} +\newcommand*\bbx@cnperiod{} +\newcommand*\bbx@cnetal{} +\newcommand*\bbx@cnauthor{} +\newcommand*\bbx@cneditor{} +\newcommand*\bbx@cntranslator{} +\newcommand*\bbx@cnnr{} +\newcommand*\bbx@cnedition{} +\newcommand*\bbx@cnin{} +\newcommand*\bbx@cnretr{} +\newcommand*\bbx@cnbib{ο} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def new file mode 100644 index 0000000000..8853f52ac4 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def @@ -0,0 +1,45 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2016,2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{blx-caspervector-utf8.def}% + [2018/06/29 v0.3.3 Chinese punctuations and captions in UTF-8] + +\newcommand*\bbx@cnldquot{“} +\newcommand*\bbx@cnrdquot{”} +\newcommand*\bbx@cncomma{,} +\newcommand*\bbx@cnbcomma{、} +\newcommand*\bbx@cnscolon{;} +\newcommand*\bbx@cncolon{:} +\newcommand*\bbx@cnperiod{。} +\newcommand*\bbx@cnetal{等} +\newcommand*\bbx@cnauthor{著} +\newcommand*\bbx@cneditor{编} +\newcommand*\bbx@cntranslator{译} +\newcommand*\bbx@cnnr{第} +\newcommand*\bbx@cnedition{版} +\newcommand*\bbx@cnin{出自} +\newcommand*\bbx@cnretr{检索于} +\newcommand*\bbx@cnbib{参考文献} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx new file mode 100644 index 0000000000..9e21d3d066 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx @@ -0,0 +1,75 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{caspervector-ay.bbx}% + [2018/06/29 v0.3.3 Casper Ti. Vector's author-year biblatex bibstyle] + +\RequireBibliographyStyle{authoryear-comp} +\input{blx-caspervector-base.def} +\appto\bbx@opt@mergedate@maximum{\renewbibmacro*{bbx:ifnodate}[2]{% + \iflabeldateisdate{#1}{#2}% +}\togglefalse{bbx:bfdate}} +\appto\bbx@opt@mergedate@compact{\renewbibmacro*{bbx:ifnodate}[2]{% + \iflabeldateisdate{#1}{#2}% +}\togglefalse{bbx:bfdate}} +\appto\bbx@opt@mergedate@basic{\renewbibmacro*{bbx:ifnodate}[2]{% + \ifboolexpr{ + test {\iflabeldateisdate} and + not test {\ifdateshavedifferentprecision{label}{}} + }{#1}{#2}% +}\toggletrue{bbx:bfdate}} +\appto\bbx@opt@mergedate@minimum{\renewbibmacro*{bbx:ifnodate}[2]{% + \ifboolexpr{ + test {\iflabeldateisdate} and test {\iffieldundef{extradate}} and + not test {\ifdateshavedifferentprecision{label}{}} + }{#1}{#2}% +}\toggletrue{bbx:bfdate}} +\appto\bbx@opt@mergedate@false% + {\renewbibmacro*{bbx:ifnodate}[2]{#2}\toggletrue{bbx:bfdate}} +\renewbibmacro*{date}{\usebibmacro{bbx:ifnodate}{}{\printdate}} + +\ExecuteBibliographyOptions% + {labeldate = year, mergedate = basic, dashed = false, sorting = ecnyt} +\DeclareNameAlias{author}{default} +\DeclareNameAlias{editor}{default} +\DeclareNameAlias{translator}{default} + +\newbibmacro*{ayedtrans}[1]{% + \ifboolexpr{test {\iftoggle{blx@use#1}} and not test {\ifnameundef{#1}}}{% + \usebibmacro{bbx:dashcheck}{\bibnamedash}{% + \printnames{#1}% + \bbx@cetext% + {\printtext{\bbx@byspace{#1}}}{\setunit{\printdelim{#1typedelim}}}% + \usebibmacro{bbx:savehash}% + }\bbx@cetext{\printtext{\@nameuse{bbx@cn#1}}}{\usebibmacro{#1strg}}% + \setunit{\printdelim{nameyeardelim}}\clearname{#1}% + }{% + \global\undef\bbx@lasthash + \usebibmacro{labeltitle}\setunit*{\printdelim{nonameyeardelim}}% + }\usebibmacro{date+extradate}% +} +\renewbibmacro*{editor}{\usebibmacro{ayedtrans}{editor}} +\renewbibmacro*{translator}{\usebibmacro{ayedtrans}{translator}} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx new file mode 100644 index 0000000000..50a78e9d40 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx @@ -0,0 +1,33 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2014,2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{caspervector-ay.cbx}% + [2018/06/29 v0.3.3 Casper Ti. Vector's author-year biblatex citestyle] + +\RequireCitationStyle{authoryear-comp} +\renewcommand*{\compcitedelim}{\bbx@citebcomma} +\renewcommand*{\multicitedelim}{\bbx@citescolon} +\renewcommand*{\textcitedelim}{\bbx@citescolon} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx new file mode 100644 index 0000000000..e796044499 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx @@ -0,0 +1,32 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{caspervector.bbx}% + [2018/06/29 v0.3.3 Casper Ti. Vector's numeric biblatex bibstyle] + +\RequireBibliographyStyle{numeric-comp} +\input{blx-caspervector-base.def} +\ExecuteBibliographyOptions{defernumbers = true, sorting = none} + +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx new file mode 100644 index 0000000000..236f4c48ec --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx @@ -0,0 +1,47 @@ +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012-2014,2018 Casper Ti. Vector +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version +% 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% The current maintainer of this work is Casper Ti. Vector. +% +% This work consists of the following files: +% caspervector.bbx +% caspervector.cbx +% caspervector-ay.bbx +% caspervector-ay.cbx +% blx-caspervector-base.def +% blx-caspervector-gbk.def +% blx-caspervector-utf8.def + +\ProvidesFile{caspervector.cbx}% + [2018/06/29 v0.3.3 Casper Ti. Vector's numeric biblatex citestyle] + +\RequireCitationStyle{numeric-comp} +\ExecuteBibliographyOptions{autocite = superscript} +\newcommand*{\cbx@mksuperbrackets}[1]{\mkbibsuperscript{\mkbibbrackets{#1}}} + +\DeclareCiteCommand{\cite}% + {\usebibmacro{cite:init}\usebibmacro{prenote}}% + {\usebibmacro{citeindex}\usebibmacro{cite:comp}}{}% + {\usebibmacro{cite:dump}\usebibmacro{postnote}} + +\DeclareCiteCommand{\supercite}[\cbx@mksuperbrackets]{% + \usebibmacro{cite:init}% + \let\multicitedelim=\supercitedelim + \iffieldundef{prenote}{}% + {\BibliographyWarning{Ignoring prenote argument}}% + \iffieldundef{postnote}{}% + {\BibliographyWarning{Ignoring postnote argument}}% + }{\usebibmacro{citeindex}\usebibmacro{cite:comp}}{}% + {\usebibmacro{cite:dump}\usebibmacro{postnote}} + +% vim:ft=tex:ts=2:sw=2 |