diff options
author | Norbert Preining <preining@logic.at> | 2012-10-13 09:45:28 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2012-10-13 09:45:28 +0000 |
commit | ff9712db1ca63bc7701b625784c67abee7e1f17c (patch) | |
tree | 8b90ac03752f8be9313781ea46732fbe8af0a7b4 | |
parent | d2e50e76ef7e64efa460c918c4c751262c063476 (diff) |
new biblatex package biblatex-caspervector (13Oct)
git-svn-id: svn://tug.org/texlive/trunk@27954 c570f23f-e606-0410-a88d-b1316a301751
13 files changed, 1728 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt b/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt new file mode 100644 index 00000000000..1e8e195241b --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt @@ -0,0 +1,50 @@ +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 + + * Changes to API: + - Chinese references now require (userf == 'zh' || userf == 'cn'). + - Add {ce,ec}nty sorting scheme, default to ecnty. + + * Changes to documentation: + - Fix biber collating/locale problem. + - Unify the `userf' field in `readme.bib'. + - Update FAQs and notices. + + * 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. + + * 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/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile.doc b/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile.doc new file mode 100644 index 00000000000..5a27ad1806a --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile.doc @@ -0,0 +1,28 @@ +# vim:ts=4:sw=4 +# +# Copyright (c) 2011-2012 Casper Ti. Vector +# Public domain. + +doc: + latex readme + biber -l zh__pinyin readme + latex readme + latex readme + dvipdfmx readme + +toutf8lf: + sed -i '1,10 s/GBK/UTF8/; 1,10 s/gbk/utf8/' readme.tex + enca -L zh -x UTF-8 readme.* + dos2unix readme.* + +togbkcrlf: + sed -i '1,10 s/UTF8/GBK/; 1,10 s/utf8/gbk/' readme.tex + enca -L zh -x GBK readme.* + unix2dos readme.* + +clean: + rm -f readme.{aux,bbl,bcf,blg,dvi,log,run.xml,out} {missfont,texput}.log + +distclean: clean + rm -f readme.pdf + diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/README b/Master/texmf-dist/doc/latex/biblatex-caspervector/README new file mode 100644 index 00000000000..5c5719d22b2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/README @@ -0,0 +1,12 @@ +biblatex-caspervector: Casper Ti. Vector's biblatex style +--------------------------------------------------------- + +Maintainer: Casper Ti. Vector <CasperVector@gmail.com> +License: LaTeX Project Public License 1.3 or later +Homepage: <http://code.google.com/p/caspervector/> + +This package provides a simple, nice and easily extensible +biblography/citation style for Chinese LaTeX users. + +See the file `readme.pdf' for details. + diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib new file mode 100644 index 00000000000..73d19443353 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib @@ -0,0 +1,778 @@ +vim:ts=4:sw=4 + +@online{babel, + author = {Braams, Johannes}, + title = {Babel, a multilingual package for use with \LaTeX{}'s standard document classes}, + type = {M/OL}, + date = {2011-11-16}, + url = {http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/babel.pdf}, +} + +@online{biber, + author = {Kime, Philip and Charette, Fran\c{c}ois}, + title = {Biber: A backend bibliography processor for biblatex (Version 0.9.9)}, + type = {M/OL}, + date = {2012-03-29}, + url = {http://biblatex-biber.sourceforge.net/}, +} + +@online{biblatex, + author = {Lehman, Philipp}, + title = {The biblatex Package: Programmable Bibliographies and Citations (Version 1.7)}, + type = {M/OL}, + date = {2011-11-13}, + url = {http://sourceforge.net/projects/biblatex/}, +} + +@online{ctex-faq, + author = {吴凌云}, + title = {\CTeX{} FAQ(常见问题集),0.4 beta (89) 版}, + type = {M/OL}, + date = {2007-01-30}, + url = {http://www.ctex.org/CTeXFAQ/files.xml?action=download&file=ctex-faq.pdf}, + userf = {zh}, +} + +@report{gbt7714-2005, + author = {中华人民共和国国家质量监督检验检疫总局 and 中国标准化管理委员会}, + title = {GB/T 7714--2005 文后参考文献著录规则}, + type = {S}, + date = {2005-03-23}, + addendum = {(可见清华大学图书馆网页上的电子版:\url{http://lib.tsinghua.edu.cn/service/paperwriting.html}。)}, + userf = {zh}, +} + +@book{1-1, + author = {余敏}, + title = {出版集团研究}, + type = {M}, + location = {北京}, + publisher = {中国书籍出版社}, + year = {2001}, + pages = {179-193}, + userf = {zh}, +} + +@book{1-2, + author = {昂温, G. and 昂温, P. S.}, + title = {外国出版史}, + translator = {陈生铮}, + type = {M}, + location = {北京}, + publisher = {中国书籍出版社}, + year = {1988}, + userf = {zh}, +} + +@report{1-3, + author = {全国文献工作标准化技术委员会第七分委员会}, + title = {GB/T 5795--1986 中国标准书号}, + type = {S}, + location = {北京}, + publisher = {中国标准出版社}, + year = {1986}, + userf = {zh}, +} + +@book{1-4, + author = {辛希孟}, + title = {信息技术与信息服务国际研讨会论文集:A 集}, + type = {C}, + location = {北京}, + publisher = {中国社会科学出版社}, + year = {1994}, + userf = {zh}, +} + +@thesis{1-5, + author = {孙玉文}, + title = {汉语变调构词研究}, + type = {D}, + location = {北京}, + publisher = {北京大学出版社}, + year = {2000}, + userf = {zh}, +} + +@book{1-6, + author = {顾炎武}, + title = {昌平山水记;京东考古录}, + type = {M}, + location = {北京}, + publisher = {北京古籍出版社}, + year = {1982}, + userf = {zh}, +} + +@book{1-7, + author = {王夫之}, + title = {宋论(刻本)}, + type = {M}, + location = {金陵}, + publisher = {曽氏}, + year = {1845\textmd{\emph{(清同治四年)}}}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@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}, +} + +@book{1-10, + author = {Peebles, Jr., P. Z.}, + title = {Probability, random variable, and random signal principles (4th ed.)}, + type = {M}, + location = {New York}, + publisher = {McGraw Hill}, + year = {2001}, +} + +@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}, +} + +@incollection{2-1, + author = {程根伟}, + title = {1998 年长江洪水的成因与减灾对策}, + type = {M}, + bookauthor = {许厚泽 and 赵其国}, + booktitle = {长江流域洪涝灾害与科技对策}, + location = {北京}, + publisher = {科学出版社}, + year = {1999}, + pages = {32-36}, + userf = {zh}, +} + +@incollection{2-2, + author = {陈晋镶 and 张惠民 and 朱士兴 and 其他作者}, + title = {蓟县震旦亚界研究}, + type = {M}, + bookauthor = {中国地质科学院天津地质矿产研究所}, + booktitle = {中国震旦亚界}, + location = {天津}, + publisher = {天津科学技术出版社}, + year = {1980}, + pages = {56-114}, + userf = {zh}, +} + +@incollection{2-3, + author = {白书农}, + title = {植物开花研究}, + type = {M}, + bookauthor = {李承森}, + booktitle = {植物科学进展}, + location = {北京}, + publisher = {高等教育出版社}, + year = {1998}, + pages = {146-163}, + userf = {zh}, +} + +@incollection{2-4, + author = {马克思}, + title = {关于《工资、价格和利润》的报告札记}, + type = {M}, + bookauthor = {马克思 and 恩格斯}, + booktitle = {马克思恩格斯全集:第44卷}, + location = {北京}, + publisher = {人民出版社}, + year = {1982}, + pages = {505}, + userf = {zh}, +} + +@inproceedings{2-5, + author = {钟文发}, + title = {非线性规划在可燃毒物配置中的应用}, + type = {C}, + bookauthor = {赵玮}, + booktitle = {运筹学的理论与应用:中国运筹学会第五届大会论文集}, + location = {西安}, + publisher = {西安电子科技大学出版社}, + year = {1996}, + pages = {468-471}, + userf = {zh}, +} + +@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}, +} + +@periodical{3-1, + author = {中国地质学会}, + title = {地质论评}, + type = {J}, + year = {1936}, + volume = {1}, + number = {1}, + location = {北京}, + publisher = {地质出版社}, + userf = {zh}, +} + +@periodical{3-2, + author = {中国图书馆学会}, + title = {图书馆学通讯}, + type = {J}, + year = {1957}, + number = {1}, + location = {北京}, + publisher = {北京图书馆}, + userf = {zh}, +} + +@periodical{3-4, + 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}, +} + +@article{4-1, + author = {李晓东 and 张庆红 and 叶瑾琳}, + title = {气候学研究的若干理论问题}, + type = {J}, + journal = {北京大学学报:自然科学版}, + year = {1999}, + volume = {35}, + number = {1}, + pages = {101-106}, + userf = {zh}, +} + +@article{4-2, + author = {刘武 and 郑良 and 姜础}, + title = {元谋古猿牙齿测量数据的统计分析及其在分类研究上的意义}, + type = {J}, + journal = {科学通报}, + year = {1999}, + volume = {44}, + number = {23}, + pages = {2481-2488}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@article{4-5, + author = {Kanamori, H.}, + title = {Shaking without quaking}, + type = {J}, + journal = {Science}, + year = {1998}, + volume = {279}, + number = {5359}, + pages = {2063-2064}, +} + +@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}, +} + +@patent{5-1, + author = {姜锡洲}, + title = {一种温热外敷药制备方案}, + type = {P}, + location = {中国}, + number = {88105607.3}, + date = {1989-07-26}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@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}, +} + +@online{6-1, + title = {PACS-L: the public-access computer systems forum}, + 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}, +} + +@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}, +} + +@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}, +} + +@book{a1-1, + author = {广西壮族自治区林业厅}, + title = {广西自然保护区}, + type = {M}, + location = {北京}, + publisher = {中国林业出版社}, + year = {1993}, + userf = {zh}, +} + +@book{a1-2, + author = {蒋有绪 and 郭泉水 and 马娟 and 其他作者}, + title = {中国森林群落分类及其群落学特征}, + type = {M}, + location = {北京}, + publisher = {科学出版社}, + year = {1998}, + userf = {zh}, +} + +@book{a1-3, + author = {唐绪军}, + title = {报业经济与报业经营}, + type = {M}, + location = {北京}, + publisher = {新华出版社}, + year = {1999}, + pages = {117-121}, + userf = {zh}, +} + +@book{a1-4, + author = {赵凯华 and 罗蔚茵}, + title = {新概念物理教程:力学}, + type = {M}, + location = {北京}, + publisher = {高等教育出版社}, + year = {1995}, + userf = {zh}, +} + +@book{a1-5, + author = {汪昂}, + title = {本草备要(石印本,增补)}, + type = {M}, + location = {上海}, + publisher = {同文书局}, + year = {1912}, + userf = {zh}, +} + +@book{a1-6, + author = {Crawford, W. and Gorman, M.}, + title = {Futuer libraries: dreams, madness \& reality}, + type = {M}, + location = {Chicago}, + publisher = {American Library Association}, + year = {1995}, +} + +@book{a1-7, + author = {{International Federation of Library Association and institutions}}, + title = {Names of persons: national usages for entry in catalogues (3rd ed.)}, + type = {M}, + location = {London}, + publisher = {IFLA International Office for UBC}, + year = {1977}, +} + +@book{a1-8, + author = {O'Brien, J. A.}, + title = {Introduction to information systems (7th ed.)}, + type = {M}, + location = {Burr Ridge, III.}, + publisher = {Irwin}, + year = {1994}, +} + +@book{a1-9, + author = {Rood, H. J.}, + title = {Logic and structured design for computer programmers (3rd ed.)}, + type = {M}, + publisher = {Brooks/Cole-Thomson Learning}, + year = {2001}, +} + +@proceedings{a2-1, + author = {中国力学学会}, + title = {第 3 届全国实验流体力学学术会议论文集}, + type = {C}, + location = {天津}, + year = {1990}, + userf = {zh}, +} + +@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}, +} + +@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}, +} + +@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}, +} + +@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}, +} + +@thesis{a4-1, + author = {张志祥}, + title = {间断动力系统的随机扰动及其在守恒律方程中的应用}, + type = {D}, + location = {北京}, + publisher = {北京大学数学学院}, + year = {1998}, + userf = {zh}, +} + +@thesis{a4-2, + author = {Calms, R. B.}, + title = {Infrared spectroscopic studies on solid oxygen}, + type = {D}, + location = {Berkeley}, + publisher = {Univ. of California}, + year = {1965}, +} + +@patent{a5-1, + author = {刘加林}, + title = {多功能一次性压舌板}, + type = {P}, + location = {中国}, + number = {92214985.2}, + date = {1993-04-14}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@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}, +} + +@incollection{a6-1, + author = {国家标准局信息分类编码研究所}, + title = {GB/T 2659--1986 世界各国和地区名称代码}, + type = {S}, + bookauthor = {全国文献工作标准化技术委员会}, + booktitle = {文献工作国家标准汇编:3}, + location = {北京}, + publisher = {中国标准出版社}, + year = {1988}, + pages = {59-92}, + userf = {zh}, +} + +@incollection{a6-2, + author = {韩吉人}, + title = {论职工教育的特点}, + type = {G}, + bookauthor = {中国职工教育研究会}, + booktitle = {职工教育研究论文集}, + location = {北京}, + publisher = {人民教育出版社}, + year = {1985}, + pages = {90-99}, + userf = {zh}, +} + +@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}, +} + +@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}, +} + +@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}, +} + +@article{a7-1, + author = {李炳穆}, + title = {理想的图书馆员和信息专家的素质与形象}, + type = {J}, + journal = {图书情报工作}, + year = {2000}, + number = {2}, + pages = {5-8}, + userf = {zh}, +} + +@article{a7-2, + author = {陶仁骥}, + title = {密码学与数学}, + type = {J}, + journal = {自然杂志}, + year = {1984}, + volume = {7}, + number = {7}, + pages = {527}, + userf = {zh}, +} + +@article{a7-3, + author = {亚洲地质图编目组}, + title = {亚洲地层与地质历史概述}, + type = {J}, + journal = {地质学报}, + year = {1978}, + volume = {3}, + pages = {104-208}, + userf = {zh}, +} + +@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}, +} + +@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}, +} + +@article{a8-1, + author = {丁文祥}, + title = {数字革命与竞争国际化}, + type = {N}, + journal = {中国青年报}, + date = {2000-11-20}, + userf = {zh}, +} + +@article{a8-2, + author = {张田勤}, + title = {罪犯 DNA 库与生命伦理学计划}, + type = {N}, + journal = {大众科技报}, + date = {2000-11-12}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@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}, + userf = {zh}, +} + +@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}, +} + +@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}, +} + +@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}, +} + +@misc{a9-6, + author = {Scitor Corporation}, + title = {Project scheduler}, + type = {CP/DK}, + location = {Sunnyvale, Calif.}, + publisher = {Scitor Corporation}, + year = {c1983}, +} + diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf Binary files differnew file mode 100644 index 00000000000..3d28c7de928 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex new file mode 100644 index 00000000000..bf915d22e34 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex @@ -0,0 +1,371 @@ +\documentclass[UTF8, fancyhdr, hyperref]{ctexart} +\usepackage[margin = 2cm, centering, includefoot]{geometry} +\usepackage[ + backend = biber, defernumbers = true, style = caspervector, utf8 +]{biblatex} +\usepackage{CJKspace, enumitem, fancyvrb, hologo} + +\pagestyle{fancy}\fancyhf{}\cfoot{\thepage} +\renewcommand{\headrulewidth}{0pt} +\setlist{nolistsep} +\hypersetup{allcolors = blue} + +\DeclareBibliographyCategory{cited} +\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}} +\addbibresource{readme.bib} +\nocite{*} + +\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}} + +\begin{document} +\title{\textbf{biblatex 参考文献和引用样式:\texttt{caspervector} v0.1.4}} +\author{% + Casper Ti.\ Vector\thanks{\ % + \href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.% + }% +} +\date{2012/10/11} +\maketitle + +\section{引言} + +传统的 \hologo{BibTeX} 引擎存在一些固有的问题: +首先,其样式文件(\verb|bst| 文件)使用后缀式的栈语言编写, +使开发者难以入门和精通,更不便于一般用户进行自定义; +其次,其排序方式很单一, +无法直接实现中文 \TeX{} 用户常常遇到的按汉语拼音排序等需求。 + +与此相对应, +biblatex\supercite{biblatex}/biber\supercite{biber} +是一套新兴的 \TeX{} 参考文献排版引擎, +其样式文件(设定参考文献样式的 \verb|bbx| 文件和设定引用样式的 \verb|cbx| 文件) +使用 \LaTeX{} 编写,便于学习; +同时,其支持根据 locale 进行排序。 + +目前 \TeX{} 社区中尚无人发布为中文用户设计的 biblatex 样式。 +为了个人需要,同时也是为了给社区提供一个有益的参考, +本文作者根据实际应用中遇到的常见需求编写了 +\verb|caspervector| 这个用于顺序编码制的中英文 biblatex 样式。 +其逻辑框架基于 +国家标准 GB/T 7714--2005\supercite{gbt7714-2005}, +但在其基础上根据个人审美趣味和 biblatex 所能实现的功能而 +对参考文献和引用格式进行了较大幅度的修改。 + +\section{许可协议} + +版权所有 \copyright\ 2012 Casper Ti. Vector。% +\verb|caspervector| 参考文献和引用样式以 +\LaTeX{} Project Public License\footnote{\ % + \url{http://www.latex-project.org/lppl/}.% +}发布。% +\verb|caspervector| 样式目前由其作者维护。 + +\section{系统要求和安装方式} +\subsection{系统要求} + +\begin{itemize} + \item biblatex 宏包(\myemph{必需}): + \verb|caspervector| 样式基于 biblatex 宏包。 + \item 中文环境(\myemph{必需}): + \verb|caspervector| 样式虽支持中文,但其本身不提供中文环境。 + 用户仍然需要中文环境才能排版出文档。 + \item biber 程序(\myemph{可选}): + 用 biber 可以方便地实现文献按字母和拼音顺序排序。 +\end{itemize} + +以上要求在\myemph{最新}的\myemph{完全版} +\TeX{}Live 系统和 \CTeX{} 套装中都有完善的支持。 + +\subsection{安装方式} + +使用 \TeX{}Live 的用户可以通过在终端中以管理员权限执行 +\begin{Verbatim}[frame = single] +tlmgr install biblatex-caspervector +\end{Verbatim} +来安装 \verb|caspervector| 样式。 + +使用 \CTeX{} 套装的用户可以通过在命令提示符中执行 +\begin{Verbatim}[frame = single] +mpm --install=biblatex-caspervector +\end{Verbatim} +来安装 \verb|caspervector| 样式。 + +\section{使用简介} +\subsection{样式调用} + +用户应当通过以下命令调用 \verb|caspervector| 样式: +\begin{Verbatim}[frame = single] +% 如果系统上无法使用 biber,可将“biber”改为“bibtex”。 +% “gbk”可能需要改为“utf8”,根据用户使用的字符编码而定。 +% “...” 代表其它选项。 +\usepackage[ + backend = biber, style = caspervector, gbk, sorting = centy, ... +]{biblatex} +\end{Verbatim} +其中 \verb|sorting| 选项用于指定按哪些字段排序, +除 biblatex 提供的标准选项\supercite{biblatex}外, +\verb|caspervector| 样式还提供 \verb|centy| 和 \verb|ecnty| 两种排序方案 +(后者为 \verb|caspervector| 的默认选择), +表示依次按文献语言 +(\textbf{ce}nty 表示中文文献在前,\textbf{ec}nty 表示英文文献在前; +文献语言根据 \verb|userf| 字段进行区分,详见第 \ref{sec:fields} 部分)、 +编著者姓名(\textbf{n}ame)、标题(\textbf{t}itle) +和出版年(\textbf{y}ear)排序。 + +参考文献数据库 +(\verb|.bib| 文件,其格式见第 \ref{sec:fields}、\ref{sec:entries} 部分) +通过 \verb|\addbibresource| 命令导入,% +\myemph{注意不要省略扩展名 \texttt{.bib}}。 +例如,本文的参考文献数据库就是通过下述命令导入的: +\begin{Verbatim}[frame = single] +\addbibresource{readme.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|\parencite{gbt7714-2005}| 的输出是“\parencite{gbt7714-2005}”, +而 +\begin{Verbatim}[frame = single] +\cite[文献][第 4 页]{gbt7714-2005} +\end{Verbatim} +的输出是“\cite[文献][第 4 页]{gbt7714-2005}”。 + +\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。 +# 如果系统上无法使用 biber,可将执行 biber 的一行改为 +# bibtex texfile +# 但将无法按拼音排序。 +pdflatex texfile +biber -l zh__pinyin texfile +pdflatex texfile +\end{Verbatim} +即可实现正确的排版。 +某些情况下(详见 biblatex 手册\supercite{biblatex}), +用户可能需要在运行 \verb|biber|(或 \verb|bibtex|) +之后运行两次 \verb|pdflatex|(或 \verb|xelatex|、\verb|latex|) +才能获得正确的引用标记。 + +另外,上述执行 \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|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|:文献的 URL。 + \item \verb|urldate|:检索日期,或 URL 的访问日期。 + \item \verb|addendum|:补充说明,排版在文献列表中相应条目的最后。 +\end{itemize} + +\subsection{特殊字段} + +\begin{itemize} + \item \verb|userf|: + 值为 \verb|zh| 或 \verb|cn| 时,相应条目在文献列表中用中文排版; + 否则(为其他值或未定义时)用中文排版。\\ + \myemph{% + 注: + 不可用 \texttt{language} 字段区分中英文文献, + 因为 biblatex 使用 babel\supercite{babel} 宏包处理此字段, + 但后者目前不支持中文,所以可能出错。% + } + \item 其它通用特殊字段,见 biblatex 手册\supercite{biblatex}。 +\end{itemize} + +\section{条目类型}\label{sec:entries} +\subsection{\texttt{@book} 类型} + +\verb|@book| 类型对应于 GB/T 7714--2005 中所指的“专著”和“电子文献”类型, +其支持的常见别名包括 \verb|@booklet|、\verb|@proceedings|、 +\verb|@report|、\verb|@thesis|、\verb|@unpublished|。 + +\verb|@book| 类条目必需的基本字段为 \verb|title|。 + +除必需字段之外,\verb|@book| 类条目也支持以下基本字段: +\verb|author|、\verb|editor|、\verb|translator|、 +\verb|type|、\verb|location|、\verb|publisher|、 +\verb|year|/\verb|date|、\verb|pages|、 +\verb|url|、\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|type|、\verb|location|、\verb|publisher|、 +\verb|year|/\verb|date|、\verb|pages|、 +\verb|url|、\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|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|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|urldate|、\verb|addendum|。 + +\subsection{\texttt{@customf} 类型} + +\verb|@customf| 类型为特殊类型, +专用于在文献列表的相应条目中排版自定义的文字。 +此类条目必需且唯一支持的基本字段为 \verb|addendum|, +用户可将其设为自己希望排版的内容。 + +\myemph{% + 注: + \texttt{@customf} 类型虽不支持 \texttt{author} 等字段, + 但用户仍可以设定它们的值。 + 这样虽不能自动根据这些字段排版, + 但在仍可以根据它们 + (主要是 \texttt{author}、\texttt{title} 和 \texttt{year} 三个字段) + 进行排序。 % +} + +\section{FAQ 和其它使用提示} + +用户可以通过省略可选字段的方式来避免排版相应的内容。 +例如,省略 \verb|type| 字段便可使相应条目不排版文献类型和电子文献载体标志代码。 + +用户可以通过手动调用格式化命令来临时覆盖预设的格式设定, +例如文献 \parencite{1-7} 中的出版年便是通过设定 +\begin{Verbatim}[frame = single] +year = {1845\textmd{\emph{(清同治四年)}}} +\end{Verbatim} +得到的。 + +\verb|caspervector| 样式不支持 \verb|edition| 字段, +用户可以在 \verb|title| 等字段中手动标注。 + +\section{存在的问题} + +如上文所述,因为 babel 宏包目前不支持中文, +故对中英文的分别处理只能通过比较麻烦的方式实现, +指定语言也只能通过一个自定义的字段(\verb|userf|)进行。 + +biblatex/biber 所支持的排序方式仍有一定限制,例如这样的需求目前就无法实现: +参考文献数据库中被引用过的参考文献按引用顺序排在最前, +未被引用的参考文献按字母和拼音顺序排序。 +不过根据 biber 主页\footnote{\ % + \url{http://biblatex-biber.sourceforge.net/}.% +}上的说明,biblatex 2.x 系列将支持这一功能。 + +\section{更新记录} +\VerbatimInput[tabsize = 4, baselinestretch = 1]{ChangeLog.txt} + +\printbibliography% + [heading = bibnumbered, title = {本文参考文献}, category = cited] +\printbibliography[ + heading = bibnumbered, notcategory = cited, + title = {% + 其它参考文献示例 + (引自\texorpdfstring{文献 \parencite{gbt7714-2005}}{ GB/T 7714-2005}) + } +] +\end{document} + diff --git a/Master/texmf-dist/tex/latex/biblatex-caspervector/biblatex-caspervector-gbk.def b/Master/texmf-dist/tex/latex/biblatex-caspervector/biblatex-caspervector-gbk.def new file mode 100644 index 00000000000..272aec1f037 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-caspervector/biblatex-caspervector-gbk.def @@ -0,0 +1,69 @@ +% vim:ft=tex:ts=2:sw=2 +% +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012 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 +% http://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 +% biblatex-caspervector-gbk.def +% biblatex-caspervector-utf8.def + +\ProvidesFile{biblatex-caspervector-gbk.def}% + [2012/10/11 v0.1.4 Chinese punctuations and captions in GBK] + +\providecommand\cnldquot{} +\providecommand\cnrdquot{} +\providecommand\cncomma{} +\providecommand\cnscolon{} +\providecommand\cncolon{} +\providecommand\cnperiod{} + +\DefineBibliographyStrings{english}{ + andmore = {\cegen{}{\mkbibemph{et\addabbrvspace al\adddot}}}, + andothers = {\cegen{}{\mkbibemph{et\addabbrvspace al\adddot}}}, + bibliography = {ο}, + references = {ο} +} + +\newbibmacro{cein:}{\printtext{\cegen{}{In}\cecolon}} +\newbibmacro{cebyauthor}{% + \ifnameundef{author}{}{% + \cegen% + {\printnames{author}\printtext{}}% + {\usebibmacro{byauthor}}% + }% +} +\newbibmacro{cebyeditor}{% + \ifnameundef{editor}{}{% + \cegen% + {\printnames{editor}\printtext{}}% + {\usebibmacro{byeditor}}% + }% +} +\newbibmacro{cebytranslator}{% + \ifnameundef{translator}{}{% + \cegen% + {\printnames{translator}\printtext{}}% + {\usebibmacro{bytranslator}}% + }% +} +\newbibmacro{urldate}{% + \iffieldundef{urlyear}{}{% + \printtext{\cegen{ }{retrieved on\addspace}}% + \printurldate% + }% +} + diff --git a/Master/texmf-dist/tex/latex/biblatex-caspervector/biblatex-caspervector-utf8.def b/Master/texmf-dist/tex/latex/biblatex-caspervector/biblatex-caspervector-utf8.def new file mode 100644 index 00000000000..12157bfcf2d --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-caspervector/biblatex-caspervector-utf8.def @@ -0,0 +1,69 @@ +% vim:ft=tex:ts=2:sw=2 +% +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012 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 +% http://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 +% biblatex-caspervector-gbk.def +% biblatex-caspervector-utf8.def + +\ProvidesFile{biblatex-caspervector-utf8.def}% + [2012/10/11 v0.1.4 Chinese punctuations and captions in UTF-8] + +\providecommand\cnldquot{“} +\providecommand\cnrdquot{”} +\providecommand\cncomma{,} +\providecommand\cnscolon{;} +\providecommand\cncolon{:} +\providecommand\cnperiod{。} + +\DefineBibliographyStrings{english}{ + andmore = {\cegen{等}{\mkbibemph{et\addabbrvspace al\adddot}}}, + andothers = {\cegen{等}{\mkbibemph{et\addabbrvspace al\adddot}}}, + bibliography = {参考文献}, + references = {参考文献} +} + +\newbibmacro{cein:}{\printtext{\cegen{出自}{In}\cecolon}} +\newbibmacro{cebyauthor}{% + \ifnameundef{author}{}{% + \cegen% + {\printnames{author}\printtext{著}}% + {\usebibmacro{byauthor}}% + }% +} +\newbibmacro{cebyeditor}{% + \ifnameundef{editor}{}{% + \cegen% + {\printnames{editor}\printtext{编}}% + {\usebibmacro{byeditor}}% + }% +} +\newbibmacro{cebytranslator}{% + \ifnameundef{translator}{}{% + \cegen% + {\printnames{translator}\printtext{译}}% + {\usebibmacro{bytranslator}}% + }% +} +\newbibmacro{urldate}{% + \iffieldundef{urlyear}{}{% + \printtext{\cegen{检索于 }{retrieved on\addspace}}% + \printurldate% + }% +} + diff --git a/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx b/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx new file mode 100644 index 00000000000..37299e57c1a --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx @@ -0,0 +1,284 @@ +% vim:ft=tex:ts=2:sw=2 +% +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012 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 +% http://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 +% biblatex-caspervector-gbk.def +% biblatex-caspervector-utf8.def + +\ProvidesFile{caspervector.bbx}% + [2012/10/11 v0.1.4 Casper Ti. Vector's biblatex bibliography style] + +\RequireBibliographyStyle{numeric} + +\newtoggle{bbx:gbk} +\DeclareBibliographyOption{utf8}[true]{\togglefalse{bbx:gbk}} +\DeclareBibliographyOption{gbk}[true]{\toggletrue{bbx:gbk}} +\ExecuteBibliographyOptions{alldates = iso8601, gbk, sorting = ecnty} +\AtEndOfPackage{% + \iftoggle{bbx:gbk}{ + \input{biblatex-caspervector-gbk.def} + \ExecuteBibliographyOptions{texencoding = GBK} + }{ + \input{biblatex-caspervector-utf8.def} + \ExecuteBibliographyOptions{texencoding = UTF-8} + }% +} + +\providecommand{\cegen}[2]{% + \ifthenelse% + {\iffieldequalstr{userf}{zh} \or \iffieldequalstr{userf}{cn}}% + {#1}{#2}% +} +\providecommand{\mybibquote}[1]{\cegen{\cnldquot{#1}\cnrdquot}{\mkbibquote{#1}}} +\providecommand{\cecomma}{\cegen{\cncomma}{\addcomma\addspace}} +\providecommand{\cecolon}{\cegen{\cncolon}{\addcolon\addspace}} +\providecommand{\cescolon}{\cegen{\cnscolon}{\addcolon\addspace}} +\providecommand{\ceperiod}{\cegen{\cnperiod}{\addperiod\addspace}} +\providecommand{\cespace}{\cegen{}{\addspace}} +\renewcommand{\finentrypunct}{\cegen{\cnperiod}{.}} +\renewcommand{\multinamedelim}{\cecomma} +\renewcommand{\finalnamedelim}{\cegen{\cncomma}{\addspace\bibstring{and}\space}} +\renewcommand{\andothersdelim}{\cespace} +\renewcommand{\postnotedelim}{\cecomma} +\renewcommand{\bibendnotewrapper}[1]{\bibsentence #1\cnperiod} +\renewcommand{\bibfootnotewrapper}[1]{\bibsentence #1\cnperiod} + +\DeclareFieldFormat*{booktitle}{\mkbibemph{#1}} +\DeclareFieldFormat*{journaltitle}{\mkbibemph{#1}} +\DeclareFieldFormat*{title}{\mkbibemph{#1}} +\DeclareFieldFormat*{year}{\mkbibbold{#1}} +\DeclareFieldFormat*{volume}{\mkbibemph{#1}} +\DeclareFieldFormat*{pages}{#1} +\DeclareFieldFormat*{url}{\url{#1}} +\DeclareFieldFormat*{urldate}{#1} + +\DeclareFieldFormat[inbook, inproceedings, incollection, article]% + {title}{\mybibquote{\mkbibemph{#1}}} +\DeclareFieldFormat*{type}{\mkbibbrackets{\textsc{#1}}} +\DeclareFieldFormat*{number}{\mkbibparens{#1}} +\DeclareFieldFormat[patent]{number}{#1} +\renewbibmacro{title}{\iffieldundef{title}{}{\printfield{title}}} +\newbibmacro{type}{\iffieldundef{type}{}{\printfield{type}}} +\newbibmacro{number}{\iffieldundef{number}{}{\printfield{number}}} + +\DeclareNameFormat{default}{% + \usebibmacro{name:first-last}{#1}{#4}{#5}{#7}% + \usebibmacro{name:andothers}% +} +\DeclareNameAlias{sortname}{default} + +\newbibmacro{author+others}{% + \ifthenelse% + {\ifnameundef{author} \and \ifnameundef{editor} \and \ifnameundef{translator}}% + {}% + {% + \ifthenelse{\ifnameundef{editor} \and \ifnameundef{translator}}% + {\printnames{author}}% + {% + \usebibmacro{cebyauthor}\setunit{\cescolon}% + \usebibmacro{cebyeditor}\setunit{\cescolon}% + \usebibmacro{cebytranslator}% + }% + }% +} +\newbibmacro{journaltitle/title}{% + \iffieldundef{journaltitle}{\usebibmacro{title}}{\printfield{journaltitle}}% +} +\newbibmacro{year/date}{% + \ifthenelse{\iffieldundef{month} \and \iffieldundef{day}}% + {\printfield{year}}{\printdate}% +} +\newbibmacro{(year+volume+number)/date}{% + \ifthenelse{\iffieldundef{month} \and \iffieldundef{day}}% + {% + \printfield{year}\setunit{\cecomma}% + \printfield{volume}% + \usebibmacro{number}% + }{\printdate}% +} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \newblock + \usebibmacro{author+others}\setunit*{\ceperiod}% + \newblock + \usebibmacro{title}\setunit*{\addspace}% + \usebibmacro{type}\setunit{\ceperiod}% + \newblock + \printlist{location}\setunit*{\cecolon}% + \printlist{publisher}\setunit{\cecomma}% + \usebibmacro{year/date}\setunit{\cecolon}% + \printfield{pages}\setunit{\ceperiod}% + \newblock + \printfield{url}\setunit*{\cecomma}% + \usebibmacro{urldate}\usebibmacro{finentry}% + \newblock + \printfield{addendum}% +} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \newblock + \usebibmacro{author+others}\setunit*{\ceperiod}% + \newblock + \usebibmacro{title}\setunit*{\cespace}% + \usebibmacro{type}\setunit{\ceperiod}% + \newblock + \usebibmacro{cein:}% + \newblock + \printnames{bookauthor}\setunit*{\ceperiod}% + \newblock + \printfield{booktitle}\setunit*{\ceperiod}% + \newblock + \printlist{location}\setunit*{\cecolon}% + \printlist{publisher}\setunit{\cecomma}% + \usebibmacro{year/date}\setunit{\cecolon}% + \printfield{pages}\setunit{\ceperiod}% + \newblock + \printfield{url}\setunit*{\cecomma}% + \usebibmacro{urldate}\usebibmacro{finentry}% + \newblock + \printfield{addendum}% +} + +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}% + \newblock + \usebibmacro{author+others}\setunit*{\ceperiod}% + \newblock + \usebibmacro{journaltitle/title}\setunit*{\addspace}% + \usebibmacro{type}\setunit{\ceperiod}% + \newblock + \usebibmacro{(year+volume+number)/date}\setunit*{\ceperiod}% + \newblock + \printlist{location}\setunit*{\cecolon}% + \printlist{publisher}\setunit{\ceperiod}% + \newblock + \printfield{url}\setunit*{\cecomma}% + \usebibmacro{urldate}\usebibmacro{finentry}% + \newblock + \printfield{addendum}% +} + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \newblock + \printnames{author}\setunit*{\ceperiod}% + \newblock + \usebibmacro{title}\setunit*{\cespace}% + \usebibmacro{type}\setunit{\ceperiod}% + \newblock + \printfield{journaltitle}\setunit*{\cecomma}% + \usebibmacro{(year+volume+number)/date}\setunit{\cecolon}% + \printfield{pages}\setunit{\ceperiod}% + \newblock + \printfield{url}\setunit*{\cecomma}% + \usebibmacro{urldate}\usebibmacro{finentry}% + \newblock + \printfield{addendum}% +} + +\DeclareBibliographyDriver{patent}{% + \usebibmacro{bibindex}% + \newblock + \usebibmacro{author}\setunit*{\ceperiod}% + \newblock + \usebibmacro{title}\setunit*{\addspace}% + \usebibmacro{type}\setunit{\ceperiod}% + \newblock + \printlist{location}\setunit*{\cecolon}% + \usebibmacro{number}\setunit{\ceperiod}% + \newblock + \usebibmacro{year/date}\setunit*{\ceperiod}% + \newblock + \printfield{url}\setunit*{\cecomma}% + \usebibmacro{urldate}\usebibmacro{finentry}% + \newblock + \printfield{addendum}% +} + +\DeclareBibliographyDriver{customf}{% + \usebibmacro{bibindex}% + \newblock + \printfield{addendum}% +} + +\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} + +\DeclareSortingScheme{ecnty}{ + \sort{\field{presort}} + \sort[final]{\field{sortkey}} + \sort{ + \field{userf} + \literal{en} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } +} + +\DeclareSortingScheme{centy}{ + \sort{\field{presort}} + \sort[final]{\field{sortkey}} + \sort[direction = descending]{ + \field{userf} + \literal{en} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } +} + diff --git a/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx b/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx new file mode 100644 index 00000000000..cc352a5b21b --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx @@ -0,0 +1,65 @@ +% vim:ft=tex:ts=2:sw=2 +% +% Casper Ti. Vector's biblatex style +% +% Copyright (c) 2012 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 +% http://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 +% biblatex-caspervector-gbk.def +% biblatex-caspervector-utf8.def + +\ProvidesFile{caspervector.cbx}% + [2012/10/11 v0.1.4 Casper Ti. Vector's biblatex citation style] + +\RequireCitationStyle{numeric-comp} +\ExecuteBibliographyOptions{ + autocite = superscript, + autopunct = false +} + +\providecommand{\mksuperbrackets}[1]{\mkbibsuperscript{\mkbibbrackets{#1}}} + +\DeclareCiteCommand{\cite} +{% + \usebibmacro{cite:init}% + \usebibmacro{prenote}% +} +{% + \usebibmacro{citeindex}% + \usebibmacro{cite:comp}% +} +{} +{% + \usebibmacro{cite:dump}% + \usebibmacro{postnote}% +} + +\DeclareCiteCommand{\supercite}[\mksuperbrackets] +{% + \usebibmacro{cite:init}% + \let\multicitedelim=\supercitedelim + \usebibmacro{prenote}% +} +{% + \usebibmacro{citeindex}% + \usebibmacro{cite:comp}% +}% +{} +{% + \usebibmacro{cite:dump}% + \usebibmacro{postnote}% +} + diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 0d4335d26a8..8d60c39448f 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -150,6 +150,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'bib2xhtml', "die 'skipping, requires PDF::API2'", 'biber', "&MAKEflatten", 'bibextract', "die 'skipping, hardwires nawk cmd name'", + 'biblatex-caspervector', "&MAKEflatten", 'biblatex-chicago', "&MAKEflatten", 'biblatex-contrib', "die 'skipping, use subdir'", 'biblatex-fiwi', "&MAKEflatten", diff --git a/Master/tlpkg/tlpsrc/biblatex-caspervector.tlpsrc b/Master/tlpkg/tlpsrc/biblatex-caspervector.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/biblatex-caspervector.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc index 90eaf4c073b..7777f7285d6 100644 --- a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc @@ -17,6 +17,7 @@ depend bibhtml depend biblatex depend biblatex-apa depend biblatex-bwl +depend biblatex-caspervector depend biblatex-chem depend biblatex-chicago depend biblatex-dw |