Coder Social home page Coder Social logo

Comments (3)

hushidong avatar hushidong commented on June 12, 2024

用一个简单的实现吧:

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

\makeatletter
\DeclareCiteCommand{\citenosup}
  {\mkbibleftborder\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}\mkbibrightborder}


\newcommand{\citeudf}[2][\@empty]{\leavevmode\gbleftparen\citenosup{#2}{,\space}%
\citeauthor{#2}{,\space}%
\citeyear{#2}\ifx#1\@empty\else{:\space}p.#1\fi\gbrightparen}
\makeatother

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inproceedings{邱泽奇rawtype,
  author          = {邱泽奇},
  title           = {建构与分化:当代**社会结构的过程},
  editor          = {潘乃谷 and 马戎},
  booktitle       = {社区研究与社会发展.**社会学纪念费孝通教授学术活动 60 周年学术讨论会},
  location        = {天津},
  year            = {1998},
  publisher       = {天津农业科技术出版社},
  pages           = {1-10}
}

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

\begin{document}

\citeudf{邱泽奇rawtype}
\citeudf[49]{邱泽奇rawtype}

\printbibliography
\end{document} 

结果为:

图片

from biblatex-gb7714-2015.

hushidong avatar hushidong commented on June 12, 2024

命令名,你可以自己定义。

from biblatex-gb7714-2015.

tc-imba avatar tc-imba commented on June 12, 2024

\gbleftparen 和 \gbrightparen 似乎找不到命令,可能是版本问题,我改成英文括号了
其他就没问题了,谢谢!

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.