Giter Site home page Giter Site logo

Comments (5)

hushidong avatar hushidong commented on May 24, 2024 2

config/packages.tex 中,biblatex那里。把修改的内容添加进去即可。

\usepackage{pdfpages}
\usepackage[
    style=gb7714-2015,
    gbcitelocal=chinese,   % Uncomment if you want \citeauthor{} in "et al." format. GitHub PR (#324)
    % gbpub=false,         % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47)
    % gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23)
]{biblatex}
\usepackage{siunitx}

改为:

\usepackage{pdfpages}
\usepackage[
style=gb7714-2015ay,
gbcitelocal=chinese,   % Uncomment if you want \citeauthor{} in "et al." format. GitHub PR (#324)
gbnamefmt=familyahead,
gbpub=false,
gbtype=false,
url=false,
doi=false,]{biblatex}

\setlength{\bibitemsep}{0pt}
\setlength{\bibhang}{4em}
\setlength{\bibitemindent}{-\bibhang}
\renewcommand*{\bibinitdelim}{}
\renewcommand*{\bibpagespunct}{\addcomma\addspace}

\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
  \usebibmacro{journal}%
  %修改为增加一个逗号\setunit*{\addcomma\addspace}
  \iffieldundef{journaltitle}{}{\addspace}%
  \printtext{\usebibmacro{issue+date}}%
  %\iffieldundef{volume}{}{\setunit*{\addcomma\space}}%
  \usebibmacro{volume+number+eid}%把卷期放到年份后面
  }
\usepackage{siunitx}

至于行距则在body/graduate/post/ref.tex修改:

\cleardoublepage
\begingroup
    \linespreadsingle{}
    \printbibliography[title={参考文献}]
\endgroup

修改成你希望的linespread,默认使用的是\linespreadsingle{}

from zjuthesis.

hushidong avatar hushidong commented on May 24, 2024 1

进一步的:

% !Mode:: "TeX:UTF-8"
% 用于测试gb7714-2015样式,对于作者姓名格式的控制和选项
% 测试gbnamefmt选项
% 测试bib文件中的nameformat域
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{geometry}

\usepackage[backend=biber,style=gb7714-2015ay,
gbnamefmt=familyahead,
gbpub=false,
gbtype=false,
url=false,
doi=false,]{biblatex}

\setlength{\bibitemsep}{0pt}
\setlength{\bibhang}{4em}
\setlength{\bibitemindent}{-\bibhang}
\renewcommand*{\bibinitdelim}{}
\renewcommand*{\bibpagespunct}{\addcomma\addspace}

\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
  \usebibmacro{journal}%
  %修改为增加一个逗号\setunit*{\addcomma\addspace}
  \iffieldundef{journaltitle}{}{\addspace}%
  \printtext{\usebibmacro{issue+date}}%
  %\iffieldundef{volume}{}{\setunit*{\addcomma\space}}%
  \usebibmacro{volume+number+eid}%把卷期放到年份后面
  }


\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{*}

{
\linespread{2}
\printbibliography
}




 \end{document} 

结果为:

图片

from zjuthesis.

hushidong avatar hushidong commented on May 24, 2024
  1. 行距按照正文的方式设置即可。
    局部编组里面使用 \linespread 命令调整即可。

  2. 缩进调整尺寸bibhang,bibitemindent即可。

  3. 文献标识符、标点等也可以做调整。

示例为:

% !Mode:: "TeX:UTF-8"
% 用于测试gb7714-2015样式,对于作者姓名格式的控制和选项
% 测试gbnamefmt选项
% 测试bib文件中的nameformat域
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{geometry}

\usepackage[backend=biber,style=gb7714-2015ay,
gbnamefmt=familyahead,
gbpub=false,
gbtype=false,
url=false,
doi=false,]{biblatex}

\setlength{\bibitemsep}{0pt}
\setlength{\bibhang}{4em}
\setlength{\bibitemindent}{-\bibhang}
\renewcommand*{\bibinitdelim}{} 

\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
  \usebibmacro{journal}%
  %修改为增加一个逗号\setunit*{\addcomma\addspace}
  \iffieldundef{journaltitle}{}{\addspace}%
  \printtext{\usebibmacro{issue+date}}%
  %\iffieldundef{volume}{}{\setunit*{\addcomma\space}}%
  \usebibmacro{volume+number+eid}%把卷期放到年份后面
  }


\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{*}

{
\linespread{2}
\printbibliography
}

 \end{document} 

结果为:

图片

from zjuthesis.

chengzhongyi8 avatar chengzhongyi8 commented on May 24, 2024

谢谢!!!请问具体是修改zjuthesis里面的哪一部分呢?

from zjuthesis.

chengzhongyi8 avatar chengzhongyi8 commented on May 24, 2024

谢谢,已修改并成功!

from zjuthesis.

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.