Closed qc93 closed 6 months ago
加个命令:
\DeclareDelimFormat[textcite,citet]{nameyeardelim}{}%\addcomma\space
%!TeX program = xelatex
%!TeX TXS-program:bibliography = txs:///biber
\documentclass[10pt,a4paper]{article}
\usepackage{geometry}
\geometry{margin=1cm}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage[UTF8]{ctex}
\usepackage{hyperref}
\hypersetup{colorlinks=true,citecolor=blue,urlcolor=cyan}
\usepackage[
backend=biber,
citestyle=gb7714-2015ay,
bibstyle=gb7714-2015,
gbnamefmt = familyahead,
gbcitelabel = quanjiao %bracket
]{biblatex}
\addbibresource{my.bib} % 参考文献数据库
\begin{filecontents}{my.bib}
@inproceedings{hanjiren1985lun,
author = {刘吉人},
title = {论职工教育的特点},
editor = {中国职工教育研究会},
booktitle = {职工教育研究论文集},
address = {北京},
publisher = {人民教育出版社},
year = {1985},
pages = {90--99},
key = {han2 ji2 ren2}
}
\end{filecontents}
\begin{document}
\textcite{hanjiren1985lun} 说什么王权富贵,管什么戒律清规
{
\DeclareDelimFormat[textcite,citet]{nameyeardelim}{}%\addcomma\space
\citet{hanjiren1985lun} 说什么王权富贵,管什么戒律清规
}
{
\DeclareDelimFormat[textcite,citet]{nameyeardelim}{\unspace}%\addcomma\space
\textcite{hanjiren1985lun} 说什么王权富贵,管什么戒律清规
}
\cite{hanjiren1985lun} 说什么王权富贵,管什么戒律清规
\parencite{hanjiren1985lun} 说什么王权富贵,管什么戒律清规
{
\DeclareDelimFormat[cite,parencite,pagescite,citep]{nameyeardelim}{\gbpunctcommacite\mbox{}}%\addcomma\space
\citep{hanjiren1985lun} 说什么王权富贵,管什么戒律清规
}
\printbibliography
\end{document}
结果:
谢谢您,非常完美的解决了问题!
使用了gbcitelabel = quanjiao设定引用处的标点符号之后,括号前后的间距不一样。