Coder Social home page Coder Social logo

使用了gbcitelabel = quanjiao设定引用处的标点符号之后,括号前后的间距不一样。 about biblatex-gb7714-2015 HOT 3 CLOSED

qc93 avatar qc93 commented on June 3, 2024
使用了gbcitelabel = quanjiao设定引用处的标点符号之后,括号前后的间距不一样。

from biblatex-gb7714-2015.

Comments (3)

hushidong avatar hushidong commented on June 3, 2024

加个命令:

\DeclareDelimFormat[textcite,citet]{nameyeardelim}{}%\addcomma\space

from biblatex-gb7714-2015.

hushidong avatar hushidong commented on June 3, 2024
%!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}

结果:

图片

from biblatex-gb7714-2015.

qc93 avatar qc93 commented on June 3, 2024

谢谢您,非常完美的解决了问题!

from biblatex-gb7714-2015.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.