作者输入隶属关系

作者输入隶属关系

我正在写文章的标题和作者,但是当我编译文档时,生成的 PDF 只显示标题。

有人能帮我修复它吗?

谢谢你!

以下是序言和标题以及作者及其所属机构

\documentclass[preprint,12pt,authoryear]{elsarticle}

\usepackage{multirow} 
\usepackage{graphicx}
\usepackage{siunitx}
\sisetup{detect-weight, detect-display-math}
\sisetup{detect-inline-weight=math}
\sisetup{mode=text,per-mode=symbol} 
\usepackage{multirow}
\usepackage{makecell}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{pgfplots}
\usepackage{pdflscape}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows.meta}
\usepgfplotslibrary{patchplots}
\newlength\fwidth
\setlength{\fwidth}{0.8\textwidth}
\usepackage{tikzscale}
\pgfplotsset{plot coordinates/math parser=false}
\usepackage{overpic}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{float}
\usepackage{natbib}
\usepackage[margin=2.5cm]{geometry}
\usepackage{bicaption}
\usepackage{makecell}
\renewcommand\theadfont{\bfseries}
\renewcommand\theadgape{}
\usepackage[skip=1ex, labelfont=bf]{caption}
\usepackage[skip=0.333\baselineskip]{caption}
\usepackage{amssymb}
\bibliographystyle{elsarticle-harv} 
\usepackage[noblocks]{authblk}
\renewcommand\Affilfont{\itshape\small}
\renewcommand\Authands{ and }

\begin{document}

\begin{frontmatter}

\title{blablabla}

\author[1]{ Mart\'in Torres}
\author[1]{Jorge Castiglioni}
\author[1]{Patrice Portugau}
\author[2]{Manuela Morales Demarco}
\author[2]{Bruno Conti}
\author[2]{Pablo Gristo}
\author[3]{Luis Yerm\'an}
\author[3]{Leopoldo Suescun}
\author[1]{Andr\'es Cu\~na}

\affil[1]{Area de Fisicoqu\'imica, DETEMA, Facultad de Qu\'imica, Universidad de la Rep\'ublica, Uruguay}
\affil[2]{Gerencia de Exploraci\'on y Producci\'on, Administraci\'on Nacional de Combustibles, Alcohol y Portland, Uruguay}
\affil[3]{School of Civil Engineering, University of Queensland, Brisbane, Australia}
\affil[4]{Laboratorio de Cristalograf\'ia, Qu\'imica del Estado S\'olido y Materiales, Area de F\'isica, DETEMA, Facultad de Qu\'imica – Universidad de la Rep\'ublica, Uruguay}

\end{document}

当我编译时,程序显示的错误是:

Paragraph ended before \@author was complete. ...f\AB@author{\noexpand\AB@blk@and\@author} 
Argument of \@author has an extra }. ...f\AB@author{\noexpand\AB@blk@and\@author}

答案1

该类elsarticle与包不兼容authblk(也注明在elsarticle 类因作者区块而产生错误)。

以下最小工作示例显示了该问题:

\documentclass[preprint,12pt,authoryear]{elsarticle}
\usepackage[noblocks]{authblk}

\begin{document}
\begin{frontmatter}
\title{blablabla}
\author[1]{Mart\'in Torres}
\author[1]{Jorge Castiglioni}
\author[1]{Patrice Portugau}
\author[2]{Manuela Morales Demarco}
\author[2]{Bruno Conti}
\author[2]{Pablo Gristo}
\author[3]{Luis Yerm\'an}
\author[3]{Leopoldo Suescun}
\author[1]{Andr\'es Cu\~na}
\affil[1]{Area de Fisicoqu\'imica, DETEMA, Facultad de Qu\'imica, Universidad de la Rep\'ublica, Uruguay}
\affil[2]{Gerencia de Exploraci\'on y Producci\'on, Administraci\'on Nacional de Combustibles, Alcohol y Portland, Uruguay}
\affil[3]{School of Civil Engineering, University of Queensland, Brisbane, Australia}
\affil[4]{Laboratorio de Cristalograf\'ia, Qu\'imica del Estado S\'olido y Materiales, Area de F\'isica, DETEMA, Facultad de Qu\'imica – Universidad de la Rep\'ublica, Uruguay}
\end{frontmatter}
\end{document}

这会导致错误! Argument of \@author has an extra }.

但是,elsarticle有一些内置功能可以提供类似于的输出authblk。因此,一个可能的解决方案是使用这些功能,而不是完全不使用authblk。请注意,如果您要向 Elsevier 提交论文,则很可能不允许更改前页布局。

梅威瑟:

\documentclass[preprint,12pt,authoryear]{elsarticle}
\begin{document}
\begin{frontmatter}
\title{blablabla}
\author[1]{Mart\'in Torres}
\author[1]{Jorge Castiglioni}
\author[1]{Patrice Portugau}
\author[2]{Manuela Morales Demarco}
\author[2]{Bruno Conti}
\author[2]{Pablo Gristo}
\author[3]{Luis Yerm\'an}
\author[3]{Leopoldo Suescun}
\author[1]{Andr\'es Cu\~na}
\address[1]{Area de Fisicoqu\'imica, DETEMA, Facultad de Qu\'imica, Universidad de la Rep\'ublica, Uruguay}
\address[2]{Gerencia de Exploraci\'on y Producci\'on, Administraci\'on Nacional de Combustibles, Alcohol y Portland, Uruguay}
\address[3]{School of Civil Engineering, University of Queensland, Brisbane, Australia}
\address[4]{Laboratorio de Cristalograf\'ia, Qu\'imica del Estado S\'olido y Materiales, Area de F\'isica, DETEMA, Facultad de Qu\'imica – Universidad de la Rep\'ublica, Uruguay}
\end{frontmatter}
\end{document}

请注意affil已更改为address。结果:

在此处输入图片描述

相关内容