From 3240c1674f9e97ae7bec00c12e9b47976a8feaac Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 17 Mar 2016 21:33:44 +0000 Subject: biblatex-caspervector (17mar16) git-svn-id: svn://tug.org/texlive/trunk@40055 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/biblatex-caspervector/ChangeLog.txt | 16 +++++ .../doc/latex/biblatex-caspervector/Makefile | 3 +- .../doc/latex/biblatex-caspervector/readme.bib | 3 +- .../doc/latex/biblatex-caspervector/readme.pdf | Bin 347325 -> 335350 bytes .../doc/latex/biblatex-caspervector/readme.tex | 77 ++++++++++++--------- 5 files changed, 62 insertions(+), 37 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt b/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt index 95d07910d33..0f847137488 100644 --- a/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt @@ -1,3 +1,19 @@ +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: diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile b/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile index 30dd7cc2b13..67e753881ab 100644 --- a/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/Makefile @@ -1,5 +1,3 @@ -# vim:ts=4:sw=4 -# # Copyright (c) 2011-2013 Casper Ti. Vector # Public domain. @@ -23,3 +21,4 @@ clean: distclean: clean rm -f readme.pdf +# vim:ts=4:sw=4 diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib index 503359b257b..ac9e7d56ad8 100644 --- a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.bib @@ -1,5 +1,3 @@ -% vim:ts=4:sw=4 - @online{biber, author = {Kime, Philip and Charette, Fran\c{c}ois}, title = {Biber: A backend bibliography processor for biblatex (Version 1.8)}, @@ -795,3 +793,4 @@ language = {english}, } +% vim:ts=4:sw=4 diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf index a85e3556d5b..4297076bf40 100644 Binary files a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf and b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.pdf differ diff --git a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex index 8dfad5d7cf9..22c2b176dba 100644 --- a/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex +++ b/Master/texmf-dist/doc/latex/biblatex-caspervector/readme.tex @@ -1,8 +1,6 @@ -% vim:ft=tex:ts=2:sw=2 -% % Documentation for biblatex-caspervector % -% Copyright (c) 2012-2015 Casper Ti. Vector +% Copyright (c) 2012-2016 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 @@ -20,14 +18,17 @@ \documentclass[UTF8]{ctexart} \usepackage[margin = 2cm, centering, includefoot]{geometry} -\usepackage[backend = biber, style = caspervector, utf8]{biblatex} +\usepackage[ + backend = biber, style = caspervector, utf8, + giveninits = true, sortgiveninits = true +]{biblatex} \usepackage{fancyhdr, hyperref, enumitem, fancyvrb, hologo} \unless\ifxetex\usepackage{CJKspace}\fi \pagestyle{fancy}\fancyhf{}\cfoot{\thepage} \renewcommand{\headrulewidth}{0pt} \setlist{nolistsep} -\hypersetup{allcolors = blue} +\hypersetup{colorlinks = true, allcolors = blue} \DeclareBibliographyCategory{cited} \AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}} @@ -39,13 +40,13 @@ \newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}} \begin{document} -\title{\textbf{biblatex 参考文献和引用样式:\texttt{caspervector} v0.2.2}} +\title{\textbf{biblatex 参考文献和引用样式:\texttt{caspervector} v0.2.3}} \author{% Casper Ti.\ Vector\thanks{\ % \href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.% }% } -\date{2015/06/18} +\date{2016/03/17} \maketitle \section{引言} @@ -85,13 +86,13 @@ biblatex\supercite{biblatex}/biber\supercite{biber} \subsection{系统要求} \begin{itemize} - \item biblatex 宏包(2.0 或以上版本,\myemph{必需}):% + \item biblatex 宏包(2.0 或以上版本):% \verb|caspervector| 样式基于 biblatex 宏包。 - \item 中文环境(\myemph{必需}):% + \item biber 程序(和 biblatex 相应的版本): + 用 biber 可以方便地实现文献按字母和拼音顺序排序。 + \item 中文环境:% \verb|caspervector| 样式虽支持中文,但其本身不提供中文环境。 用户仍然需要中文环境才能排版出文档。 - \item biber 程序(和 biblatex 相应的版本,\myemph{可选}): - 用 biber 可以方便地实现文献按字母和拼音顺序排序。 \end{itemize} 以上要求在\myemph{最新}的\myemph{完全版} @@ -331,14 +332,7 @@ pdflatex texfile \section{对参考文献进行分类排序}\label{sec:catsort} -\myemph{% - 注:因为 biblatex 3.0 中功能的调整,此方法已经失效, - 而且目前没有已知较好的替代办法\footnote{\ % - 可以关注 \url{https://tex.stackexchange.com/questions/250548/}。% - }。% -} - -使用 biber 的用户可以通过 +使用 biblatex 3.4 或更新版本的用户可以通过 对不同的 \verb|\printbibliography| 命令传递不同的 \verb|sorting| 选项来实现 对不同部分文献按不同方案排序。 例如,如需对被引用的文献按照引用顺序排序, @@ -353,16 +347,20 @@ pdflatex texfile 在正文中准备排版文献列表的位置使用如下代码: \begin{Verbatim}[frame = single] % 按引用顺序排版“cited”分类,即被引用的文献条目。 -\printbibliography[category = cited, ..., sorting = none, title = {References}] +\begin{refcontext}[sorting = none] +\printbibliography[category = cited, title = {References}] +\end{refcontext} % 按英文文献在前、中文文献在后排版“cited”分类之外,即未被引用的文献条目。 -\printbibliography[notcategory = cited, sorting = ecnty, title = {Works Not Cited}] +\begin{refcontext}[sorting = ecnty] +\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|\printbibliography| 命令之间) +}(例如,在本说明文档中,就是在 \verb|\end{document}| 之前一行) 加入以下代码: \begin{Verbatim}[frame = single] % 将 .bib 文件中所有的参考文献都加到引用列表中,但不将它们加到“cited”分类中, @@ -370,6 +368,19 @@ pdflatex texfile \nocite{*} \end{Verbatim} +使用 biblatex 2.x 或更旧版本的用户需要 +将在正文中准备排版文献列表的位置使用的代码改为 +\begin{Verbatim}[frame = single] +% 按引用顺序排版“cited”分类,即被引用的文献条目。 +\printbibliography[category = cited, ..., sorting = none, title = {References}] +% 按英文文献在前、中文文献在后排版“cited”分类之外,即未被引用的文献条目。 +\printbibliography% + [notcategory = cited, ..., sorting = ecnty, title = {Works Not Cited}] +\end{Verbatim} +biblatex 3.0--3.3 中有一个 bug\footnote{% + 可以参考 \url{https://tex.stackexchange.com/questions/250548/}。% +} 导致分类排序失效,此问题基本无解。 + \section{FAQ 和其它使用提示} 用户可以通过省略可选字段的方式来避免排版相应的内容。 @@ -391,8 +402,7 @@ year = {1845\textmd{(\emph{清同治四年})}}, \section{存在的问题} -如第 \ref{sec:catsort} 部分所述, -biblatex 3.0 的功能调整导致分类排序失效,且目前无解。 +如第 \ref{sec:catsort} 部分所述,biblatex 3.0--3.3 的功能调整导致分类排序失效。 \verb|caspervector| 样式的作者对此表示遗憾,希望用户能谅解。 因为 biblatex 现有功能的限制,一些需求无法直接实现。 @@ -427,15 +437,15 @@ biblatex 3.0 的功能调整导致分类排序失效,且目前无解。 \end{Verbatim} 这两种方法中更加推荐使用前者,因为前者只需手动实现出版年和期号的排版。 -\printbibliography% - [category = cited, heading = bibnumbered, sorting = none, title = {本文参考文献}] -\printbibliography[ - notcategory = cited, heading = bibnumbered, sorting = ecnty, - title = {% - 其它参考文献示例 - (引自\texorpdfstring{文献 \parencite{gbt7714-2005}}{ GB/T 7714-2005}) - } -] +\begin{refcontext}[sorting = none] +\printbibliography[category = cited, heading = bibnumbered, title = {本文参考文献}] +\end{refcontext} +\begin{refcontext}[sorting = ecnty] +\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} @@ -443,3 +453,4 @@ biblatex 3.0 的功能调整导致分类排序失效,且目前无解。 \nocite{*} \end{document} +% vim:ft=tex:ts=2:sw=2 -- cgit v1.2.3