如何更改默认引用样式经典论文转换为 APA?我确信这必须在 中完成classicthesis-config.tex
,特别是在以下代码片段中:
% ****************************************************************************************************
% 3. Loading some handy packages
% ****************************************************************************************************
% ********************************************************************
% Packages with options that might require adjustments
% ********************************************************************
\PassOptionsToPackage{ngerman,american}{babel} % change this to your language(s), main language last
% Spanish languages need extra options in order to work with this template
%\PassOptionsToPackage{spanish,es-lcroman}{babel}
\usepackage{babel}
\usepackage{csquotes}
\PassOptionsToPackage{%
%backend=biber,bibencoding=utf8, %instead of bibtex
backend=bibtex8,bibencoding=ascii,%
language=auto,%
style=numeric-comp,%
%style=authoryear-comp, % Author 1999, 2010
%bibstyle=authoryear,dashed=false, % dashed: substitute rep. author with ---
sorting=nyt, % name, year, title
maxbibnames=10, % default: 3, et al.
%backref=true,%
natbib=true % natbib compatibility mode (\citep and \citet still work)
}{biblatex}
\usepackage{biblatex}
我能以某种方式“强制”使用 apacite 吗?如果可以,怎么做?
编辑:在中classicthesis-config.tex
,我将代码片段更改为:
% ****************************************************************************************************
% 3. Loading some handy packages
% ****************************************************************************************************
% ********************************************************************
% Packages with options that might require adjustments
% ********************************************************************
\PassOptionsToPackage{ngerman,american}{babel} % change this to your language(s), main language last
% Spanish languages need extra options in order to work with this template
%\PassOptionsToPackage{spanish,es-lcroman}{babel}
\usepackage{babel}
\usepackage{csquotes}
\PassOptionsToPackage{%
backend=biber,
style=apa,
natbib=true % natbib compatibility mode (\citep and \citet still work)
}{biblatex}
\usepackage{biblatex}
在ClassicThesis.tex
第 114 行我添加了\printbibliography
:
%********************************************************************
% Other Stuff in the Back
%*******************************************************
%\cleardoublepage\include{FrontBackmatter/Bibliography}
\printbibliography
\cleardoublepage\include{FrontBackmatter/Declaration}
\cleardoublepage\include{FrontBackmatter/Colophon}
该命令\addbibresource{Bibliography.bib}
也包括在内。
执行此操作后,引用不再显示,例如:
并且参考书目不再显示。我使用以下 MakeFile 进行编译:
ClassicThesis.pdf: Bibliography.bib ClassicThesis.tex classicthesis-config.tex Chapters/*.tex FrontBackmatter/*.tex
pdflatex -shell-escape ClassicThesis
biber ClassicThesis
pdflatex -shell-escape ClassicThesis
pdflatex -shell-escape ClassicThesis
partial:
biber ClassicThesis
pdflatex -shell-escape ClassicThesis
clean:
rm -f *.lot *.tps *.tcp *.lof *.xml *.lol *.toc *.log *.out *.aux *.blg *.bbl Chapters/*.aux FrontBackmatter/*.aux
这是什么问题?我该如何解决?
编辑2:以下是 的内容ClassicThesis.blg
:
[0] Config.pm:304> INFO - This is Biber 2.12
[0] Config.pm:307> INFO - Logfile is 'ClassicThesis.blg'
[48] biber-darwin:315> INFO - === Sat Jun 18, 2022, 08:43:49
[78] Biber.pm:371> INFO - Reading 'ClassicThesis.bcf'
[205] Biber.pm:889> INFO - Found 0 citekeys in bib section 0
[205] Biber.pm:886> INFO - Using all citekeys in bib section 1
[207] Biber.pm:889> INFO - Found 26 citekeys in bib section 0
[235] Biber.pm:4093> INFO - Processing section 0
[250] Biber.pm:4254> INFO - Looking for bibtex format file 'Bibliography.bib' for section 0
[252] bibtex.pm:1523> INFO - LaTeX decoding ...
[291] bibtex.pm:1340> INFO - Found BibTeX data source 'Bibliography.bib'
[470] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
[471] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
[471] Biber.pm:3921> INFO - Sorting list 'apa/global//global/global' of type 'entry' with template 'apa' and locale 'en-US'
[471] Biber.pm:3927> INFO - No sort tailoring available for locale 'en-US'
[502] Biber.pm:4093> INFO - Processing section 1
[502] Biber.pm:4254> INFO - Looking for bibtex format file 'AMiede_Publications.bib' for section 1
[503] Utils.pm:209> ERROR - Data file 'AMiede_Publications.bib' cannot be read in encoding 'utf8': Can't decode ill-formed UTF-8 octet sequence <C4> at /var/folders/8c/st4skfzn1rz9_wx_30trp0zh0000gn/T/par-757365723135353033/cache-4a15ba093415e07429811691e581a80d4a83c13b/inc/lib/File/Slurper.pm line 63.
[503] Biber.pm:114> INFO - ERRORS: 1
答案1
以下是您需要更改的内容:
\PassOptionsToPackage{%
backend=biber,
style=apa,
% natbib=true % natbib compatibility mode (\citep and \citet still work)
}{biblatex}
\usepackage{biblatex}
natbib=true
如果您习惯使用并希望继续使用其引用命令,请取消注释natbib
。但最好习惯正确的biblatex
命令。
请注意,这是不是使用apacite
不同的包来bibtex
处理参考书目,而不是biber
,并使用apacite
参考书目样式。
在您的主文档中,您将使用:
\addbibresource{yourbibfile.bib} % .bib extension required
和
\printbibliography