Arabtex 和 elsarticle

Arabtex 和 elsarticle

我正在尝试撰写一篇文章(elsarticle),使用英语作为主要语言,并使用 arabtex 嵌入一些阿拉伯语单词,但产生了这个错误:

Missing } inserted. \end{abstract}

我希望有人知道这一点,并能找到解决方案。

\documentclass[preprint,12pt]{elsarticle} 
\usepackage{arabtex} 
\usepackage{amssymb} 
\usepackage{lineno} 
\journal{Journal Name} 
\begin{document} 
\begin{frontmatter} 
\title{Unncessarily Complicated Research Title}
 \author{John Smith} \address{California, United States}
 \begin{abstract} here some text \end{abstract} 
\begin{keyword} Science \sep Publication \sep Complicated \end{keyword} \end{frontmatter} 
\bibliographystyle{model1-num-names} 
\bibliography{Biblio} 
\end{document} 

答案1

该类使用稍微不受支持的低级 tex 方法将摘要放入框中,这与 arabtex 的重新定义不太兼容。

事实上,它可以做错误信息所建议的最明显的事情,提供一个额外的}

\documentclass[preprint,12pt]{elsarticle} 
\usepackage{arabtex} 
\usepackage{amssymb} 
\usepackage{lineno} 
\journal{Journal Name} 
\begin{document} 
\begin{frontmatter} 
\title{Unncessarily Complicated Research Title}
 \author{John Smith} \address{California, United States}


\begin{abstract}here some text}\end{abstract}
\begin{keyword} Science \sep Publication \sep Complicated \end{keyword}
\end{frontmatter} 


\end{document} 

上述操作不会对日志末尾列出的以下版本产生任何错误

 *File List*
elsarticle.cls    2009/09/17, 1.2.0: Elsevier Ltd
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  pifont.sty    2005/04/12 PSNFSS-v9.2a Pi font support (SPQR) 
    upzd.fd    2001/06/04 font definitions for U/pzd.
    upsy.fd    2001/06/04 font definitions for U/psy.
   gg201.spl
  natbib.sty    2010/09/13 8.31b (PWD, AO)
 arabtex.sty    2003/08/22  3.11 ArabTeX main module
 arabaux.sty    2003/05/21  3.11 auxiliary macros for ArabTeX
    acmd.sty    2003/08/20  3.11 Arabic command processing 
  afonts.sty    1995/11/16  3.04 define Naskh font 
 afonts2.sty    1998/10/19  3.10 define Naskh fonts for LaTeX2e
   ascan.sty    2003/08/22  3.11 standard ZDMG input encoding 
  aparse.sty    2003/05/26  3.11 get syllables 
  awrite.sty    2003/06/05  3.11 build output word 
xarbsymb.sty    1998/07/15  3.07 symbolic output encoding 
arabskel.sty    2000/06/04  3.10 character skeleton definitions 
xarbskel.sty    1999/07/17  3.09 character skeleton definitions 
  aboxes.sty    2003/05/28  3.11 build output boxes
arabtoks.sty    1999/07/17  3.09 ArabTeX CS token definitions 
arabchrs.sty    1998/07/11  3.07 letter token definitions 
   aligs.sty    2003/05/26  3.11 compute ligatures
 aoutput.sty    2000/06/04  3.10 build output lines
  abidir.sty    2003/08/22  3.11 bidirectional linebreaking
  atrans.sty    2003/06/14  3.11 generate the transliteration 
  alatex.sty    2003/05/04  3.11 ArabTeX extensions for LaTeX 
   afoot.sty    2003/05/12  3.11 ArabTeX footnotes
   abjad.sty    2003/04/26  3.11 abjad numerals 
  apatch.sty    2006/07/02  3.11s last minute patches 
  alists.sty    2003/04/26  3.11 inverted list macros
   asect.sty    2003/04/26  3.11 section macros for Arabic
   atabg.sty    1997/01/21  3.05 LaTeX tabbing macros for Arabic
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
  lineno.sty    2005/11/02 line numbers on paragraphs v4.41
supp-pdf.mkii
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
  apatch.sty    2006/07/02  3.11s last minute patches 
    umsa.fd    2013/01/14 v3.01 AMS symbols A
    umsb.fd    2013/01/14 v3.01 AMS symbols B
 ***********

答案2

此错误也会发生在 acm 模板中。

以下是对您问题的回答: https://tex.stackexchange.com/a/299880/34604

想法是在加载 arabtex 包后添加这个:

\def\endabstract{\egroup}

相关内容