为什么使用 mpdi 样式的外部参考书目如此困难?

为什么使用 mpdi 样式的外部参考书目如此困难?
\documentclass[applsci,article,submit,moreauthors,pdftex]{Definitions/mdpi} 

%=================================================================
% MDPI internal commands
\firstpage{1} 
\makeatletter 
\setcounter{page}{\@firstpage} 
\makeatother
\pubvolume{1}
\issuenum{1}
\articlenumber{0}
\pubyear{2021}
\copyrightyear{2020}
%\externaleditor{Academic Editor: Firstname Lastname} % For journal Automation, please change Academic Editor to "Communicated by"
\datereceived{} 
\dateaccepted{} 
\datepublished{} 
\hreflink{https://doi.org/}

\begin{document}

 \externalbibliography{yes}
 \bibliography{bibliography}

\end{document} 

*Error message* 

! LaTeX Error: Something's wrong--perhaps a missing \item.

风格定义

\chicagostylejournals{%
\bibliographystyle{Definitions/chicago2}
\bibpunct{(}{)}{;}{x}{}{}%
}{%
\bibliographystyle{Definitions/mdpi}
\bibpunct{[}{]}{,}{n}{}{,}%
}%

\def\@externalbibliography{}
\newcommand{\externalbibliography}[1]{\gdef\@externalbibliography{#1}}
\def\@reftitle{}
\newcommand{\reftitle}[1]{\gdef\@reftitle{#1}}

MDPI 样式可以在以下位置找到平面图

答案1

我取了部分模板,并.bib在文档中添加了一个文件和一些引用。运行 pdflatex 两次 + bibtex + pdflatex + pdflatex

在此处输入图片描述

选择期刊是强制性的。我输入languages的是课程选项。

必须是以下之一,供班级使用chicago2样式:admsci、艺术、计量经济学、经济学、家谱、人文、ijfs、jintelligence、journalmedia、jrfm、语言、法律、宗教、风险、socsci。

% !TeX TS-program = pdflatex    

\begin{filecontents}[overwrite]{\jobname.bib}
    @article{Barker1998,
        Author = {Chris Barker},
        Journal = {Natural Language \& Linguistic Theory},
        Pages = {679-717},
        Title = {Partitives, Double Genitives and Anti-Uniqueness},
        Volume = {16},
        Year = {1998}}
    
    @book{Berwick1985,
        Address = {Cambridge, MA},
        Author = {Berwick, Robert C.},
        Publisher = {MIT Press},
        Title = {Acquisition of syntactic knowledge},
        Year = {1985}}      
        
    @book{Crain1998,
        Address = {Cambridge, Massachusetts},
        Author = {Crain, Stephen and Thornton, Rosalind},
        Publisher = {The MIT Press},
        Title = {Investigations in {U}niversal {G}rammar: A Guide to Experiments on the Acquisition of Syntax and Semantics},
        Year = {1998}}
    
    @article{Dayal2004,
        Author = {Dayal, Veneeta},
        Journal = {Linguistics and Philosophy},
        Number = {4},
        Pages = {393--450},
        Title = {Number Marking and (In)Definiteness in Kind Terms},
        Volume = {27},
        Year = {2004}}
\end{filecontents}


%=================================================================
\documentclass[languages,article,submit,moreauthors,pdftex]{Definitions/mdpi} % MUST choose the journal !!!

%=================================================================
% MDPI internal commands
\firstpage{1} 
\makeatletter 
\setcounter{page}{\@firstpage} 
\makeatother
\pubvolume{1}
\issuenum{1}
\articlenumber{0}
\pubyear{2021}
\copyrightyear{2020}
%\externaleditor{Academic Editor: Firstname Lastname} % For journal Automation, please change Academic Editor to "Communicated by"
\datereceived{} 
\dateaccepted{} 
\datepublished{} 
\hreflink{https://doi.org/} % If needed use \linebreak
%------------------------------------------------------------------
% Full title of the paper (Capitalized)
\Title{Title}

% MDPI internal command: Title for citation in the left column
\TitleCitation{Title}

% Author Orchid ID: enter ID or remove command
\newcommand{\orcidauthorA}{0000-0000-0000-000X} % Add \orcidA{} behind the author's name
%\newcommand{\orcidauthorB}{0000-0000-0000-000X} % Add \orcidB{} behind the author's name

% Authors, for the paper (add full first names)
\Author{Firstname Lastname $^{1,\dagger,\ddagger}$\orcidA{}, Firstname Lastname $^{1,\ddagger}$ and Firstname Lastname $^{2,}$*}

% MDPI internal command: Authors, for metadata in PDF
\AuthorNames{Firstname Lastname, Firstname Lastname and Firstname Lastname}

% MDPI internal command: Authors, for citation in the left column
\AuthorCitation{Lastname, F.; Lastname, F.; Lastname, F.}
% If this is a Chicago style journal: Lastname, Firstname, Firstname Lastname, and Firstname Lastname.

% Affiliations / Addresses (Add [1] after \address if there is only one affiliation.)
\address{%
    $^{1}$ \quad Affiliation 1; [email protected]\\
    $^{2}$ \quad Affiliation 2; [email protected]}

% Contact information of the corresponding author
\corres{Correspondence: [email protected]; Tel.: (optional; include country code; if there are multiple corresponding authors, add author initials) +xx-xxxx-xxx-xxxx (F.L.)}

% Current address and/or shared authorship
\firstnote{Current address: Affiliation 3} 
\secondnote{These authors contributed equally to this work.}

% Abstract (Do not insert blank lines, i.e. \\) 
\abstract{A single paragraph of about 200 words maximum. For research articles, abstracts should give a pertinent overview of the work. We strongly encourage authors to use the following style of structured abstracts, but without headings: (1) Background: place the question addressed in a broad context and highlight the purpose of the study; (2) Methods: describe briefly the main methods or treatments applied; (3) Results: summarize the article's main findings; (4) Conclusion: indicate the main conclusions or interpretations. The abstract should be an objective representation of the article, it must not contain results which are not presented and substantiated in the main text and should not exaggerate the main conclusions.}

% Keywords
\keyword{keyword 1; keyword 2; keyword 3 (List three to ten pertinent keywords specific to the article; yet reasonably common within the subject discipline.)} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
    
    \section{Introduction}
    
    The introduction should briefly place the study in a broad context and highlight why it is important. It should define the purpose of the work and its significance. The current state of the research field should be reviewed carefully and key publications cited. Please highlight controversial and diverging hypotheses when necessary. Finally, briefly mention the main aim of the work and highlight the principal conclusions. As far as possible, please keep the introduction comprehensible to scientists outside your particular field of research.
    
\begin{itemize}     
    
    \item   \cite{Barker1998,Berwick1985}
    
    \item   \citet{Barker1998}
    
    \item   \citep{Crain1998}
    
    \item   \citep[see][]{Barker1998}
    
    \item   \citealt{Dayal2004}
    
    \item   \citenum{Barker1998}    
    
\end{itemize}       
    
\end{paracol}

\reftitle{References}

 \externalbibliography(yes) % sets the margins 

\bibliography{\jobname}  % use the file \jobname.bib

\end{document}

相关内容