Coder Social home page Coder Social logo

Comments (2)

hushidong avatar hushidong commented on June 3, 2024
  1. 没有复现你的现象,你可以更新一下biblatex-gb7714-2015试试。

  2. 我看你的需求是只要作者姓名非衬线,然后etal等不用。那么不能用sffamily,要用textsf,比如:

\renewcommand*{\mkbibnamefamily}[1]{\textsf{##1}}%
\renewcommand*{\mkbibnamegiven}[1]{\textsf{##1}}%
  1. 如果\AtBeginBibliography带来问题,那么可以在\bibauthorfont中修改
    比如:
\renewcommand{\bibauthorfont}{\color{gray}%
\renewcommand*{\mkbibnamefamily}[1]{\textsf{##1}}%
\renewcommand*{\mkbibnamegiven}[1]{\textsf{##1}}%
}
  1. 示例:
% !Mode:: "TeX:UTF-8"
% 用于测试gb7714-2015样式,对于作者姓名格式的控制和选项
% 测试gbnamefmt选项
% 测试bib文件中的nameformat域
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage[top=10pt,bottom=10pt,left=1cm,right=1cm]{geometry}

\usepackage[backend=biber,style=gb7714-2015,gbnamefmt=lowercase,gbalign=center,
gbpub=false,
url=false,
doi=false,]{biblatex}
%gbnamefmt=givenahead,lowercase,familyahead,pinyin

% 设置参考文献每条内的行距
\usepackage{setspace}
\setlength{\bibitemsep}{1.5\itemsep}

% 设置参考文献格式
\DeclareFieldFormat[article,periodical]{volume}{\color{orange}\textbf{#1}}
\DeclareFieldFormat{journaltitle}{\textit{#1}}
\renewcommand{\bibpubfont}{\color{gray}}
%\AtBeginBibliography{%
%\renewcommand*{\mkbibnamefamily}[1]{\textsf{#1}}%
%\renewcommand*{\mkbibnamegiven}[1]{\textsf{#1}}%
%}%

\renewcommand{\bibauthorfont}{\color{blue}%
\renewcommand*{\mkbibnamefamily}[1]{\textsf{##1}}%
\renewcommand*{\mkbibnamegiven}[1]{\textsf{##1}}%
}


\begin{filecontents}[force]{\jobname.bib}
@ARTICLE{fazzari1993working,
  AUTHOR = {Fazzari, Steven M and Petersen, Bruce C},
  PUBLISHER = {JSTOR},
  DATE = {1993},
  JOURNALTITLE = {The RAND Journal of Economics},
  PAGES = {328--342},
  TITLE = {Working capital and fixed investment: new evidence on financing constraints},
}

@ARTICLE{bernanke1989agency,
  AUTHOR = {Bernanke, Ben and Gertler, Mark},
  PUBLISHER = {JSTOR},
  DATE = {1989},
  JOURNALTITLE = {The American Economic Review},
  PAGES = {14--31},
  TITLE = {Agency costs, net worth, and business fluctuations},
}


@ARTICLE{wang2006another,
  AUTHOR = {Wang, Peng Fei and Wen, Yi},
  PUBLISHER = {Elsevier},
  DATE = {2006},
  JOURNALTITLE = {Journal of Economic Dynamics and Control},
  NUMBER = {12},
  PAGES = {2533--2552},
  TITLE = {Another look at sticky prices and output persistence},
  VOLUME = {30},
}


@ARTICLE{zhang2009china,
  AUTHOR = {Zhang, Wen Lang},
  PUBLISHER = {Elsevier},
  DATE = {2009},
  JOURNALTITLE = {Journal of Macroeconomics},
  NUMBER = {3},
  PAGES = {473--484},
  TITLE = {China’s monetary policy: Quantity versus price rules},
  VOLUME = {31},
}

	
@Article{Zhang2007-500-503,
  Title                    = {The design and experimental investigations of supersonic length shorted nozzle},
  Author                   = {Zhang, Min Li and Yi, Shi He and Zhao, Yu Xin and Li, Ming},
  Journal                  = {ACTA AERODYNAMICA SINICA},
  Number                   = {4},
  Pages                    = {500-503},
  Volume                   = {25},
  Year                     = {2007},
}


\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}
   
 \nocite{*}

\printbibliography



 \end{document} 

结果为:

图片

from biblatex-gb7714-2015.

F2E-uni avatar F2E-uni commented on June 3, 2024

感谢您的解答~经过排查,不是[biblatex-gb7714-2015]包的问题,是我全局改变了normalsize,导致了该问题。现问题已解决

% 全局设置equation环境与正文的间距
% \expandafter\def\expandafter\normalsize\expandafter{%
% \normalsize
% \setlength\abovedisplayskip{1ex}
% \setlength\belowdisplayskip{1ex}
% \setlength\abovedisplayshortskip{1ex}
% \setlength\belowdisplayshortskip{1ex}
% }

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.