Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

著者-出版年制下参考文献表如何加入序号 #60

Closed
KentUna opened this issue Feb 20, 2020 · 6 comments
Closed

著者-出版年制下参考文献表如何加入序号 #60

KentUna opened this issue Feb 20, 2020 · 6 comments

Comments

@KentUna
Copy link

KentUna commented Feb 20, 2020

您好,
非常抱歉拿这样的问题叨扰各位忙碌的大佬,因论文需要,参考文献需要按照中文参考文献、英文参考文献这样的顺序排序,并且需要加入顺序编码制的编号,而我查询了所有办法并经无数次尝试都没有很好的成功,想麻烦各位除了调整bbl是否还有别的解决的方法。
非常感谢!

@hushidong
Copy link
Owner

hushidong commented Feb 20, 2020

我理解一下你的问题,文献表要顺序编码,但文献又有分文种排序的需要。

要实现顺序编码,那么需要使用顺序编码制。又要实现排序,那么可以通过排序选项来实现。之前由于没有需求,所以一些排序选项没有在顺序编码制中定义,但作者年制中都是有的,但由于时间有限,我下面给出一个简单的实现,先解决问题。下一步再增加这些选项,那样就不用在导言定义了。尽管这种需求比较少见。

比如:

\documentclass[twoside]{article}
    \usepackage{ctex}
    \usepackage{xcolor}
    \usepackage{toolbox}
    \usepackage{hyperref}
    \usepackage{lipsum}
    \usepackage[top=10pt,bottom=10pt,left=1cm,right=1cm,showframe,showcrop]{geometry}

\usepackage[backend=biber,style=gb7714-2015,sorting=gb7714-2015,gblanorder=chineseahead,sortlocale=zh__pinyin]{biblatex}


\makeatletter
    \DeclareSortingTemplate{gb7714-2015}{
      \sort{
        \field{presort}
      }
      \sort[final]{
        \field{sortkey}
      }
      \sort{
    	\field{language}%language
    	}
      \sort{%[direction=descending]
        \field{sortname}
        \field{author}
        \field{editor}
        \field{translator}
      }
      \sort{
        \field{sortyear}
        \field{year}
      }
      \sort{
        \field{sorttitle}
        \field{title}
      }
      \sort{
        \field{volume}
        \literal{0}
      }
    }
    
\makeatother

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

@patent{IEEEexample:jppat,
  author        = "U. Hideki",
  title         = "Quadrature Modulation Circuit",
  type          = "patentjp",
  number        = "152932/92",
  year          = "1992-05-20"
}

@patent{IEEEexample:frenchpatreq,
  author        = "F. Kowalik and M. Isard",
  title         = "Estimateur d'un D{\'e}faut de Fonctionnement
                   d'un Modulateur en Quadrature et {\'E}tage de Modulation
                   l'Utilisant",
  language      = "french",
  type          = "French Patent Request",
  number        = "9500261",
  year          = "1995-01-11"
}

@patent{IEEEexample:uspat,
  author        = "Ronald E. Sorace and Victor S. Reinhardt and
                   Steven A. Vaughn",
  holder        = "Hughes Aircraft Company",
  location      = "Los Angeles, CA",
  title         = "High-Speed Digital-to-{RF} Converter",
  type          = "patentus",
  number        = "5668842",
  yearfiled     = "1995-02-28",
  year          = "1997-09-16",
}


@inbook{IEEEexample:repeatedauthorone,
  author    = "W. Dai and H. V. Pham and O. Milenkovic",
  title     = "Distortion-rate functions for quantized compressive sensing",
  booktitle =
    "IEEE Information Theory Workshop on Networking and Information Theory",
  year      = "2009"
}

@inbook{IEEEexample:repeatedauthortwo,
  author    = "W. Dai and H. V. Pham and O. Milenkovic",
  title     = "comparative study of quantized compressive sensing schemes",
  booktitle =
    "IEEE Information Theory Workshop on Networking and Information Theory",
  year      = "2009"
}


@thesis{IEEEexample:masterstype,
  author        = "A. Karnik",
  title         = "Performance of {TCP} Congestion Control with Rate
                   Feedback: {TCP/ABR} and Rate Adaptive {TCP/IP}",
  institution   = "Indian Institute of Science",
  type          = "M. Eng. thesis",
  location      = "Bangalore, India",
  year          = "1999-01"
}





@ARTICLE{方军雄2007,
  AUTHOR = {方军雄},
  DATE = {2007},
  JOURNALTITLE = {经济研究},
  PAGES = {82--92},
  TITLE = {所有制, 制度环境与信贷资金配置},
  VOLUME = {12},
}

@ARTICLE{李晓西1994,
  AUTHOR = {李晓西},
  DATE = {1994},
  JOURNALTITLE = {经济研究},
  KEYWORDS = {李晓西1994转轨过程中的结构性通货膨胀},
  NUMBER = {10},
  PAGES = {28--32},
  TITLE = {转轨过程中的结构性通货膨胀},
}


@ARTICLE{刘凤良2017,
  AUTHOR = {刘凤良 and 章潇萌 and 于泽},
  DATE = {2017},
  JOURNALTITLE = {金融研究},
  KEYWORDS = {刘凤良2017},
  NUMBER = {2},
  PAGES = {54--69},
  TITLE = {高投资、结构失衡与价格指数二元分化},
}

@ARTICLE{楼继伟2016,
  AUTHOR = {楼继伟},
  DATE = {2016},
  JOURNALTITLE = {求是},
  KEYWORDS = {楼继伟2016改革},
  NUMBER = {1},
  PAGES = {24--26},
  TITLE = {中国经济最大潜力在于改革},
}

@ARTICLE{吕捷2015cpi,
  AUTHOR = {吕捷 and 王高望},
  DATE = {2015},
  JOURNALTITLE = {经济研究},
  KEYWORDS = {吕捷2015cpi},
  PAGES = {011},
  TITLE = {CPI 与 PPI “背离” 的结构性解释},
  VOLUME = {4},
}
\end{filecontents}
    \addbibresource{\jobname.bib}
    %

    \begin{document}
    \section{顺序编码加分文中排序}

   %\csuse{mkdaterangegb7714-2015}{abc}

    created with biblatex v\versionofbiblatex, last revised at \today;\\ \hspace*{1.5em} Style Files (gb7714-2015*.*) have version number: \versionofgbtstyle.

    
    文献\cite{楼继伟2016,吕捷2015cpi}

文献\cite{IEEEexample:jppat,IEEEexample:frenchpatreq}

    文献\cite{IEEEexample:uspat,
IEEEexample:repeatedauthorone}

    文献\cite{IEEEexample:repeatedauthortwo,
IEEEexample:masterstype}

    文献\cite{方军雄2007,李晓西1994}


    \printbibliography

    \end{document} 

结果为:

图片

@hushidong
Copy link
Owner

如果文献表中不加入,编码,那么更简单:

\documentclass[twoside]{article}
    \usepackage{ctex}
    \usepackage{xcolor}
    \usepackage{toolbox}
    \usepackage{hyperref}
    \usepackage{lipsum}
    \usepackage[top=10pt,bottom=10pt,left=1cm,right=1cm,showframe,showcrop]{geometry}

\usepackage[backend=biber,bibstyle=gb7714-2015ay,citestyle=gb7714-2015]{biblatex}


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

@patent{IEEEexample:jppat,
  author        = "U. Hideki",
  title         = "Quadrature Modulation Circuit",
  type          = "patentjp",
  number        = "152932/92",
  year          = "1992-05-20"
}

@patent{IEEEexample:frenchpatreq,
  author        = "F. Kowalik and M. Isard",
  title         = "Estimateur d'un D{\'e}faut de Fonctionnement
                   d'un Modulateur en Quadrature et {\'E}tage de Modulation
                   l'Utilisant",
  language      = "french",
  type          = "French Patent Request",
  number        = "9500261",
  year          = "1995-01-11"
}

@patent{IEEEexample:uspat,
  author        = "Ronald E. Sorace and Victor S. Reinhardt and
                   Steven A. Vaughn",
  holder        = "Hughes Aircraft Company",
  location      = "Los Angeles, CA",
  title         = "High-Speed Digital-to-{RF} Converter",
  type          = "patentus",
  number        = "5668842",
  yearfiled     = "1995-02-28",
  year          = "1997-09-16",
}


@inbook{IEEEexample:repeatedauthorone,
  author    = "W. Dai and H. V. Pham and O. Milenkovic",
  title     = "Distortion-rate functions for quantized compressive sensing",
  booktitle =
    "IEEE Information Theory Workshop on Networking and Information Theory",
  year      = "2009"
}

@inbook{IEEEexample:repeatedauthortwo,
  author    = "W. Dai and H. V. Pham and O. Milenkovic",
  title     = "comparative study of quantized compressive sensing schemes",
  booktitle =
    "IEEE Information Theory Workshop on Networking and Information Theory",
  year      = "2009"
}


@thesis{IEEEexample:masterstype,
  author        = "A. Karnik",
  title         = "Performance of {TCP} Congestion Control with Rate
                   Feedback: {TCP/ABR} and Rate Adaptive {TCP/IP}",
  institution   = "Indian Institute of Science",
  type          = "M. Eng. thesis",
  location      = "Bangalore, India",
  year          = "1999-01"
}





@ARTICLE{方军雄2007,
  AUTHOR = {方军雄},
  DATE = {2007},
  JOURNALTITLE = {经济研究},
  PAGES = {82--92},
  TITLE = {所有制, 制度环境与信贷资金配置},
  VOLUME = {12},
}

@ARTICLE{李晓西1994,
  AUTHOR = {李晓西},
  DATE = {1994},
  JOURNALTITLE = {经济研究},
  KEYWORDS = {李晓西1994转轨过程中的结构性通货膨胀},
  NUMBER = {10},
  PAGES = {28--32},
  TITLE = {转轨过程中的结构性通货膨胀},
}


@ARTICLE{刘凤良2017,
  AUTHOR = {刘凤良 and 章潇萌 and 于泽},
  DATE = {2017},
  JOURNALTITLE = {金融研究},
  KEYWORDS = {刘凤良2017},
  NUMBER = {2},
  PAGES = {54--69},
  TITLE = {高投资、结构失衡与价格指数二元分化},
}

@ARTICLE{楼继伟2016,
  AUTHOR = {楼继伟},
  DATE = {2016},
  JOURNALTITLE = {求是},
  KEYWORDS = {楼继伟2016改革},
  NUMBER = {1},
  PAGES = {24--26},
  TITLE = {中国经济最大潜力在于改革},
}

@ARTICLE{吕捷2015cpi,
  AUTHOR = {吕捷 and 王高望},
  DATE = {2015},
  JOURNALTITLE = {经济研究},
  KEYWORDS = {吕捷2015cpi},
  PAGES = {011},
  TITLE = {CPI 与 PPI “背离” 的结构性解释},
  VOLUME = {4},
}
\end{filecontents}
    \addbibresource{\jobname.bib}
    %

    \begin{document}
    \section{顺序编码加分文中排序}

   %\csuse{mkdaterangegb7714-2015}{abc}

    created with biblatex v\versionofbiblatex, last revised at \today;\\ \hspace*{1.5em} Style Files (gb7714-2015*.*) have version number: \versionofgbtstyle.


    文献\cite{楼继伟2016,吕捷2015cpi}

文献\cite{IEEEexample:jppat,IEEEexample:frenchpatreq}

    文献\cite{IEEEexample:uspat,
IEEEexample:repeatedauthorone}

    文献\cite{IEEEexample:repeatedauthortwo,
IEEEexample:masterstype}

    文献\cite{方军雄2007,李晓西1994}


    \printbibliography

    \end{document} 

结果为:

图片

@hushidong
Copy link
Owner

两种选择你自己选

@hushidong
Copy link
Owner

注意文献表最后一条问文献为法语文献,所以排在后面。

@KentUna
Copy link
Author

KentUna commented Feb 21, 2020

很高兴能够怎么看收到您的回复,已按照您的方法实现想要的效果,非常感谢各位大佬在这项工作上的付出,祝好

@KentUna KentUna closed this as completed Feb 21, 2020
@hushidong
Copy link
Owner

1.0t 版本以后,顺序编码制,也可直接使用sorting选项即:
sorting=gb7714-2015
来实现需要的按文种和拼音排序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants