Coder Social home page Coder Social logo

用法:中英文混排时标注标签根据文献语言显示显示“等”与“et al.”和中英文标点 about biblatex-gb7714-2015 HOT 23 OPEN

leeyupeng119 avatar leeyupeng119 commented on June 12, 2024
用法:中英文混排时标注标签根据文献语言显示显示“等”与“et al.”和中英文标点

from biblatex-gb7714-2015.

Comments (23)

hushidong avatar hushidong commented on June 12, 2024

不好意思,这几天比较忙,才看到问题,明天有空看一下。

from biblatex-gb7714-2015.

hushidong avatar hushidong commented on June 12, 2024

简单点可以采用下面的方式来处理:

\documentclass{article}
\usepackage{ctex}
\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}

\DeclareDelimFormat[cite,parencite,pagescite]{nameyeardelim}{
\iffieldequalstr{userf}{chinese}{\unspace,}{\addcomma\addspace}%
}
\DeclareDelimFormat[textcite]{nameyeardelim}{
\iffieldequalstr{userf}{chinese}{\unspace,}{\addcomma\addspace}%
}

\DefineBibliographyStrings{english}{
    andothersincitecn={\unspace 等},%将标注中的分开,便于与文献表中的区分
}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}

@Inproceedings{Firoozbakhsh2003-473-477,
  Title                    = {Analysis of IEEE 802.11a interference on UWB systems},
  Address                  = {Oulu, Finland},
  Author                   = {Firoozbakhsh, B. and Pratt,T. G. and Jayant,N.},
  Booktitle                = {Proc. of IEEE Conference on Ultrawideband Systems and Technologies (UWBST)},
  Pages                    = {473-477},
  Year                     = {2003}
}

@Book{郭文彬2006--,
  Title                    = {通信原理--基于Matlab的计算机仿真},
  Address                  = {北京},
  Author                   = {郭文彬 and 桑林},
  Publisher                = {北京邮电大学出版社},
  Year                     = {2006}
}

@Manual{吴凌云2007--,
  Title                    = {CTEX FAQ},
  Author                   = {吴凌云},
  Version                  = {version 0.4},
  Month                    = {1},
  Subtitle                 = {常见问题集},
  Year                     = {2007}
}

@Book{蔡敏2006--,
  Title                    = {UML基础和Rose建模教程},
  Address                  = {北京},
  Author                   = {蔡敏 and 徐慧慧 and 黄柄强},
  Publisher                = {人民邮电出版社},
  Year                     = {2006},
  Month                    = {1}
}

\end{filecontents}
\addbibresource[location=local]{\jobname.bib}

\begin{document}

内容\cite{Firoozbakhsh2003-473-477} 

内容\cite{蔡敏2006--}

内容\cite{郭文彬2006--}

内容\cite{吴凌云2007--}


\textcite{Firoozbakhsh2003-473-477}

\textcite{蔡敏2006--}


\printbibliography
\end{document} 

结果为:
图片

from biblatex-gb7714-2015.

leeyupeng119 avatar leeyupeng119 commented on June 12, 2024

非常感谢您的回复,感觉主体功能已经完成了。只有一个小问题:就是当采用author (year)引用的时候,作者里的et al. (或等)后一般是不加逗号的,怎样进一步修改能把这个逗号去除?多谢了。
image

from biblatex-gb7714-2015.

hushidong avatar hushidong commented on June 12, 2024

注销点这一段即可:
比如:

%\DeclareDelimFormat[textcite]{nameyeardelim}{
%\iffieldequalstr{userf}{chinese}{\unspace,}{\addcomma\addspace}%
%}

结果为:
图片

from biblatex-gb7714-2015.

leeyupeng119 avatar leeyupeng119 commented on June 12, 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.