| 1 |
% Documentation for biblatex-caspervector |
| 2 |
% |
| 3 |
% Copyright (c) 2012-2016,2018 Casper Ti. Vector |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the conditions of the |
| 6 |
% LaTeX Project Public License, either version 1.3 of this license or (at |
| 7 |
% your option) any later version. |
| 8 |
% The latest version of this license is in |
| 9 |
% https://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3 or later is part of all distributions of LaTeX version |
| 11 |
% 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status `maintained'. |
| 14 |
% The current maintainer of this work is Casper Ti. Vector. |
| 15 |
% |
| 16 |
% This work consists of the following files: |
| 17 |
% caspervector.tex |
| 18 |
% caspervector.bib |
| 19 |
% caspervector-ay.tex |
| 20 |
|
| 21 |
\documentclass[UTF8]{ctexart} |
| 22 |
\usepackage[margin = 2cm, centering, includefoot]{geometry} |
| 23 |
\usepackage[ |
| 24 |
backend = biber, style = caspervector-ay, utf8, |
| 25 |
giveninits = true, sortgiveninits = true |
| 26 |
]{biblatex} |
| 27 |
\usepackage{fancyhdr, hyperref} |
| 28 |
|
| 29 |
\pagestyle{fancy}\fancyhf{}\cfoot{\thepage} |
| 30 |
\renewcommand{\headrulewidth}{0pt} |
| 31 |
\setlength{\hfuzz}{3pt} |
| 32 |
\ctexset{linestretch = {\maxdimen}} |
| 33 |
\renewcommand{\bibfont}{\small} |
| 34 |
|
| 35 |
\DeclareBibliographyCategory{cited} |
| 36 |
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}} |
| 37 |
\addbibresource{caspervector.bib} |
| 38 |
|
| 39 |
\begin{document} |
| 40 |
\title{\textbf{\texttt{caspervector-ay} 作者--年编码制示例}} |
| 41 |
\author{} |
| 42 |
\date{} |
| 43 |
\maketitle |
| 44 |
\vspace*{-1em} |
| 45 |
|
| 46 |
\begin{center} |
| 47 |
\begin{tabular}{ll}\hline |
| 48 |
引用命令 & 排版结果 \\\hline |
| 49 |
\verb|\cite{10-7, 10-8}| & \cite{10-7, 10-8} \\ |
| 50 |
\verb|\parencite[见][第 4 页]{perelman}| & \parencite[见][第 4 页]{perelman} \\ |
| 51 |
\verb|\parencite{6-1, blx-gb7714-2015}| & \parencite{6-1, blx-gb7714-2015} \\ |
| 52 |
\verb|\textcite{biblatex, a2-3}| & \textcite{biblatex, a2-3} \\\hline |
| 53 |
\end{tabular} |
| 54 |
\end{center} |
| 55 |
|
| 56 |
更多用法请参考 \verb|texdoc 50-style-authoryear|。此外 v0.3.4 的 |
| 57 |
\verb|caspervector| 样式中新加入了 \verb|cparen| 选项,可在调用样式时 |
| 58 |
开启(\verb|cparen = true|)以将上述命令产生的括号改为中文(全角)括号。 |
| 59 |
|
| 60 |
\printbibliography[category = cited, title = {本文参考文献}] |
| 61 |
\printbibliography[notcategory = cited, title = {% |
| 62 |
其它参考文献示例 |
| 63 |
(引自\texorpdfstring{文献 \parencite{gbt7714-2005}}{ GB/T 7714-2005})% |
| 64 |
}] |
| 65 |
\nocite{*} |
| 66 |
\end{document} |
| 67 |
|