使用 bibtex4word 將參考文獻匯出到 MS Word

使用 bibtex4word 將參考文獻匯出到 MS Word

對 LaTeX 相當陌生,對 MS Word 不太熟悉,這是我在這個論壇上的第一個問題。

我已經使用 BibLaTeX 和 JabRef 在 LaTeX 中寫了一篇手稿,現在除了匯出到 MS Word 之外別無選擇。對於正文,我發現 LaTeX2RTF 可以工作,儘管它無法處理引用並且遺漏了參考書目。我已經下載並安裝了 bibtex4word。我的問題是關於引用風格。在原始 LaTeX 文件的標頭中,我花了相當多的精力來調整參考樣式。我怎麼才能用 bibtex4word 做到這一點?我在 LaTeX 中的原始標題

    \documentclass[]{article}
    \usepackage[utf8]{inputenc}
    \usepackage[english]{babel}
    \usepackage{csquotes}

    \usepackage[authordate-trad, giveninits, uniquename=mininit, maxcitenames=2, url=false,  backend=biber]{biblatex-chicago}
    \renewrobustcmd*{\bibinitdelim}{\,}
    \AtEveryBibitem{%
        \ifentrytype{online}
        {}
        {\clearfield{urlyear}\clearfield{urlmonth}\clearfield{urlday}}}
    \AtEveryBibitem{\clearfield{issn}}
    \AtEveryCitekey{\clearfield{issn}}
    \AtEveryBibitem{\clearfield{month}}
    \AtEveryCitekey{\clearfield{month}}
    \DeclareSourcemap{
        \maps[datatype=biblatex]{
            \map{
                \step[fieldsource=issue, match=\regexp{\A(\d+)\Z}, final]
                \step[fieldset=number, fieldvalue={$1$}]
                \step[fieldset=issue, null]
            }
        }
    }

    \makeatletter
    \renewbibmacro*{journal+issue+year+pages}{%
        \iftoggle{cms@numbermonth}{}{\clearfield{month}}%
        \usebibmacro{cjournal+ser+vol+num}%
        \setunit{\,}%
        \ifthenelse{\iffieldundef{issue}\AND\iffieldundef{month}
            \AND\iffieldundef{number}}%
        {\setunit{\addcolon\,}}%<--- no conditional any more here
        {\printtext[parens]{%  Perhaps if it's wrong use magazine subtype?
                \iffieldundef{issue}
                {\usebibmacro{date}%
                    \printfield{number}}%
                {\printfield{issue}%
                    \setunit{\,}%
                    \usebibmacro{cmsyear}}}%
            \setunit{\addcolon\,}}
        \printfield{pages}}

    \renewbibmacro*{periodical+issue+year+pages}{%
        \iftoggle{cms@numbermonth}{}{\clearfield{month}}%
        \usebibmacro{cperiodical+ser+vol+num}%
        \setunit{\,}%
        \ifthenelse{\iffieldundef{issue}\AND\iffieldundef{month}
            \AND\iffieldundef{number}}%
        {\setunit{\addcolon\,}}%<--- no conditional any more here
        {\printtext[parens]{%
                \iffieldundef{issue}
                {\usebibmacro{date}%
                    \printfield{number}}%
                {\printfield{issue}%
                    \setunit{\,}%
                    \usebibmacro{cmsyear}}}%
            \setunit{\addcolon\,}}
        \printfield{pages}}
    \makeatother


    \usepackage{gensymb}
    \usepackage{mathtools}
    \usepackage{tabularx}
    \usepackage{array}
    \usepackage{booktabs, caption} 
    \usepackage{threeparttable}
    \usepackage{graphicx}
    \usepackage{multicol}
    \usepackage{float}
    \usepackage{textcomp}
    \usepackage{color}
    \usepackage{setspace}
    \usepackage{wasysym}
    \usepackage{caption}
    \usepackage[displaymath, mathlines]{lineno}
    \usepackage{authblk}
    \usepackage{titlesec}
    \usepackage[margin=1.0in]{geometry}
    \providecommand{\keywords}[1]{\textbf{\textit{Keywords: }} #1}
    \addbibresource{_mysources_.bib}

    %opening
    \title{My nice title}
    \author[1]{Me I}
    \author[2]{Someone Else}
    \author[1]{Third Author}
    \affil[1]{University of Somewhere, Department of Something}
    \affil[2]{Other University}
    \date{} %% if you don't need date to appear
    \setcounter{Maxaffil}{0}
    \renewcommand\Affilfont{\itshape\small}

    \setcounter{secnumdepth}{0}
    \titleformat*{\section}{\bfseries\center\uppercase}
    \titleformat*{\subsection}{\bfseries}{}
    \titleformat*{\subsubsection}{\bfseries} % Do not use this layer for Some Journal
    \titleformat*{\paragraph}{\bfseries}
    \titleformat*{\subparagraph}{\bfseries} % Do not use this layer for Some Journal

    \begin{document}
    %\linenumbers %Comment out to use LaTeX2RTF
    \maketitle
    \begin{doublespace}

    %\begin{abstract} %TODO Complete the formatting for abstract or use abstract as a section unto itself
    %Abstract goes here
    %\end{abstract}

    \section{Abstract}
    My abstract text goes here.

    \keywords{keyword1, keyword2}

    \section{Introduction}

    Some introduction \parencite{example2017}.

    \section{Conclusions}

    Some smart ending.

    \printbibliography
    \end{doublespace}
    \end{document}

假設我的 JabRef 資料庫有一個條目。

    @Article{example2017,
      author   = {First Last1 and Second Last2 and Third Last3},
      title    = {How to do something useful with word – A systems study},
      year     = {2017},
      volume   = {35},
      number   = {1},
      pages    = {679 - 689},
      issn     = {iiss-ssnn},
      doi      = {vv.xxxx/j.biombioe.2017.01.xxx},
      url      = {http://www.pseudoscience.com/science/article/yyy/xxxxx},
      file     = {:C\:\\Users\\username\\Documents\\example2017.pdf:PDF},
      journal  = {Name of Journal},
      keywords = {keyword1, keyword2, keyword3, keyword4, keyword5, keyword6 },
      review   = {},
    }

答案1

由於您已經在使用 JabRef,因此您可以簡單地使用 Office 2007 xml 格式的內建匯出功能,這是 Microsoft 儲存參考書目資訊的格式。

  1. 匯出 JabRef 中的(所選)項目並選擇 Office 2007 xml 格式
  2. 開啟Word,按一下「參考文獻」標籤
  3. 按一下管理來源 -> 瀏覽 -> 開啟匯出的 XML 檔案(或最好將其直接複製到瀏覽下的位置)
  4. 所有條目均可在 MS 參考書目資料庫中找到

JabRef 中列出了 bibtex/biblatex 和 MS-Office 之間用於導出的所有欄位對應的清單:Bibtex-MSOffice 欄位映射

匯出中的唯一問題可能是當您有一家“公司”作為作者時。這將簡單地作為作者導出,而不是在公司欄位中導出。如果您遇到任何問題,請告訴我,因為前段時間我在研究匯出功能。

相關內容