LaTex 函数 \renewbibmacro*{} 不输出 APA 第 7 版引文和参考书目

LaTex function \renewbibmacro*{} does not output APA 7th edition citations and bibliographies

提问人:Rodrigo Saquicela 提问时间:11/13/2023 更新时间:11/13/2023 访问量:9

问:

我有以下 LaTex 代码,用于 APA 第 7 版风格的引文:

\usepackage[style=apa,natbib=true,backend=biber, citestyle=bwl-FU]{biblatex}
\appto{\bibsetup}{\sloppy}%to fit the bibliography to the margins 
\urlstyle{same}
\DeclareLanguageMapping{spanish}{spanish-apa}
\makeatletter 
\DefineBibliographyExtras{spanish} {\setcounter{smartand}{1}% or some other value 
    \let\lbx@finallistdelim=\lbx@es@smartand \let\lbx@finalnamedelim=\lbx@es@smartand} 
% #1 = last name
% #2 = first name
% #3 = first name (initials)
% #4 = name prefix, a.k.a. 'von part'
% #5 = name affix, a.k.a. 'junior part'
\renewbibmacro*{name:delim:apa:family-given}[1]{%
    \ifnumgreater{\value{listcount}}{\value{liststart}}
    {\ifboolexpr{
            test {\ifnumless{\value{listcount}}{\value{liststop}}}
            or
            test \ifmorenames
        }
        {\printdelim{multinamedelim}}
        {\lbx@finalnamedelim{#1}}}
    {}} 
\makeatother
\bibliography{parts/bibliography.bib}

将参考书目添加到 PDF 文件的代码为:

  \addcontentsline{toc}{chapter}{BIBLIOGRAPHICAL REFERENCES}%bibliography in biblatex
  \printbibliography[title={\LARGE \textcolor{tit2}{BIBLIOGRAPHICAL REFERENCES}}]%show the bibliography in PDF

PDF 文件的问题:PDF 文件中的输出是所使用的 LaTex 代码的引用,并且没有显示参考书目。

Winshell 控制台中指示的问题:main.tex(1):包 biblatex 警告:宏“名称:delim:apa:家庭给定”未定义。

编辑 器:带有 pdfLaTex 的 Winshell。

如何解决上述问题,使文档的PDF文件显示APA第7版的引文和所用引文的参考书目?非常感谢您的帮助

生成文档PDF文件的一般结构:...表示有更多代码

  1. main.tex:
\documentclass[12pt,oneside,openright]{book}
\usepackage[] %with arguments
...
\input{parts/package}
\begin{document}
\addtocontents{toc}...
\renewcommand{}...
\include{}...
%bibliography
 \addcontentsline{toc}{chapter}{BIBLIOGRAPHICAL REFERENCES}...%indicated at the beginning of the question
...
\end{document}
  1. 文件夹:
parts/Introduction.tex
parts/Chapter1.tex
parts/bibliography.bib
...
parts/packages_work.tex

packages_work.tex:

\usepackage[T1]{fontenc}
...
\usepackage[style=apa,natbib=true,backend=biber, citestyle=bwl-FU]{biblatex}...%indicated at the beginning of the question
参考 PDFLelatex

评论


答: 暂无答案