書目 (la)tex 幫助

書目 (la)tex 幫助

我有兩個關於 的問題biblatex

  1. 我有 MathSciNet 的參考書目條目,其中有幾個欄位。例如,其中一個看起來像:

    @article {Gratzer2013,
        AUTHOR = {Gr\"{a}tzer, G.},
         TITLE = {The order of principal congruences of a bounded lattice},
       JOURNAL = {Algebra Universalis},
      FJOURNAL = {Algebra Universalis},
        VOLUME = {70},
          YEAR = {2013},
        NUMBER = {1},
         PAGES = {95--105},
          ISSN = {0002-5240},
       MRCLASS = {06B10 (06A06)},
      MRNUMBER = {3073941},
    MRREVIEWER = {S. Parameshwara Bhatta},
           DOI = {10.1007/s00012-013-0242-3},
           URL = {https://doi.org/10.1007/s00012-013-0242-3},
    }
    

    使用以下命令時:

    {    
    %%%% biblatex usage
    
    \usepackage[style=numeric, backend=biber, backref, bibencoding=utf8, sorting=nyt]{biblatex} 
    
    \addbibresource{ref.bib}
    
    }
    

    然後用 biber 進行編譯,我沒有從“MRNUMBER”或“MRCLASS”或“MRREVIEWER”中獲取數據。

    我的問題是:我應該如何取得這些或任何其他與我的參考書目相關的資料。是否有任何標準類別可以做到這一點?

  2. 我的舊 .bib 檔案是手動編譯的,沒有我目前使用 MathSciNet 工具的資訊。是否可以將這些資訊自動添加到多個文件的數百個參考書目條目中.bib

答案1

從 amsrefs 切換到 biblatexmrnumber已經在參考書目中展示瞭如何製作該節目,因此我們在這裡mrclass也展示了mrreviewer

這個想法是一樣的。首先,我們.dbx使用新欄位定義一個新的資料模型檔案 ( ),並使用datamodel選項載入該檔案。然後我們需要這些欄位的格式,最後我們需要mrinfo在標準巨集 ( ) 之一所呼叫的bibmacro ( ) 中列印欄位doi+eprint+url

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage{filecontents}

\begin{filecontents*}{mrnumber.dbx}
\DeclareDatamodelFields[type=field,datatype=literal]{mrnumber,mrclass}
\DeclareDatamodelFields[type=list, datatype=name]{mrreviewer}
\DeclareDatamodelEntryfields{mrnumber,mrclass,mrreviewer}
\end{filecontents*}

\usepackage[style=numeric, backend=biber, sorting=nyt, datamodel=mrnumber]{biblatex}
\usepackage{hyperref}


\DeclareFieldFormat{mrnumber}{%
  \ifhyperref
    {\href{http://www.ams.org/mathscinet-getitem?mr=1#1}{MR#1}}
    {MR#1}}

\DeclareFieldFormat{mrclass}{#1}

\DeclareNameAlias{bymrreviewer}{byeditor}

\newbibmacro*{mrinfo}{%
  \printfield{mrnumber}%
  \iffieldundef{mrclass}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addspace}}%
  \printfield{mrclass}%
  \setunit*{\addcomma\space}%
  \ifnameundef{mrreviewer}
    {}
    {\bibstring{byreviewer}%
     \setunit{\addspace}%
     \printnames[bymrreviewer]{mrreviewer}}}

\newtoggle{bbx:mrinfo}
\DeclareBibliographyOption[boolean]{mrinfo}[true]{\settoggle{bbx:mrinfo}{#1}}
\ExecuteBibliographyOptions{mrinfo}

\renewbibmacro*{doi+eprint+url}{%
  \iftoggle{bbx:doi}
    {\printfield{doi}}
    {}%
  \newunit\newblock
  \iftoggle{bbx:mrinfo}
    {\usebibmacro{mrinfo}}
    {}%
  \newunit\newblock
  \iftoggle{bbx:eprint}
    {\usebibmacro{eprint}}
    {}%
  \newunit\newblock
  \iftoggle{bbx:url}
    {\usebibmacro{url+urldate}}
    {}}


\begin{filecontents*}{\jobname.bib}
@article{gratzer,
  author     = {Grätzer, G.},
  title      = {The order of principal congruences of a bounded lattice},
  journal    = {Algebra Universalis},
  volume     = {70},
  year       = {2013},
  number     = {1},
  pages      = {95--105},
  mrclass    = {06B10 (06A06)},
  mrnumber   = {3073941},
  mrreviewer = {S. Parameshwara Bhatta},
  doi        = {10.1007/s00012-013-0242-3},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{gratzer,sigfridsson}

\printbibliography
\end{document}

G. 格拉茨。 「有界格子的主同餘的順序」。請參閱:通用代數 70.1 (2013),第 95–105 頁。 DOI:10.1007/s00012-013-0242-3。 MR3073941 06B10 (06A06),修訂版。作者:S. Parameshwara Bhatta。


biblatex對於第二個問題,我建議你問一個新問題,因為這根本不相關。你可以查詢https://mathscinet.ams.org/mrlookup與您的.bib條目並獲得結果。只要您的authortitle欄位準確(並且與 MathSciNet 上的資訊一致),就應該為您提供正確的輸入。 Python 工具https://pypi.org/project/bibupdate/似乎就是這麼做的。

相關內容