背景

背景

背景

我最近将我正在撰写的出版物从elsarticle课堂转到了cas-dc符合期刊出版建议的期刊。

elsarticle

elsarticle可能会使用类似下面的内容(从这里)让注释出现在标题上:

\title{This is a specimen title\tnoteref{t1,t2}}
\tnotetext[t1]{This document is the results of the research project funded by the National Science Foundation.}
\tnotetext[t2]{The second title footnote which is a longer text matter to fill through the whole text width and over flow into another line in the footnotes area of the first page.}

cas-dc

然而根据文档现在已变成如下形式:

\title [mode = title]{This is a specimen $a_b$ title}
\tnotemark[1,2]
\tnotetext[1]{This document is the results of the research project funded by the National Science Foundation.}
\tnotetext[2]{The second title footnote which is a longer text matter to fill through the whole text width and overflow in to another line in the footnotes area of the first page.}

我已经玩了后者一段时间,但无济于事……文档编译/排版,我看到了作者和标题,我甚至请参阅标题和作者的注释。然而,我不要请参见作者/标题旁边的星号或星号,以表明该注释属于谁。

来自文档的 MWE cas-dc

文档结果

结果标题和作者 结果脚注

代码

\documentclass[a4paper]{cas-dc} % can add 'twocolumn' option later

\usepackage{natbib}

\begin{document}


\title[mode = title]{This is a specimen $a_b$ title}

\tnotemark[1,2]

\tnotetext[1]{This document is the results of the researchproject funded by the National Science Foundation.}
\tnotetext[2]{The second title footnote which is a longer textmatter to fill through the whole text width and overflow intoanother line in the footnotes area of the first page.}
\author[1,3]{CV Radhakrishnan}[type=editor,auid=000,bioid=1,prefix=Sir,role=Researcher,orcid=0000-0001-7511-2910]
\cormark[1]
\fnmark[1]
\ead{[email protected]}
\ead[url]{www.cvr.cc, [email protected]}

\credit{Conceptualization of this study, Methodology,Software}
\address[1]{Elsevier B.V., Radarweg 29, 1043 NX Amsterdam,The Netherlands}
\author[2,4]{Han Theh Thanh}[style=chinese]
\author[2,3]{CV Rajagopal}[%
    role=Co-ordinator,suffix=Jr,]
\fnmark[2]
\ead{[email protected]}
\ead[URL]{www.sayahna.org}
\credit{Data curation, Writing - Original draft preparation}
\address[2]{Sayahna Foundation, Jagathy, Trivandrum 695014,India}
\author[1,3]{Rishi T.}
\cormark[2]\fnmark[1,3]
\ead{[email protected]}
\ead[URL]{www.stmdocs.in}
\address[3]{STM Document Engineering Pvt Ltd., Mepukada,Malayinkil, Trivandrum 695571, India}
\cortext[cor1]{Corresponding author}
\cortext[cor2]{Principal corresponding author}
\fntext[fn1]{This is the first author footnote. but is commonto third author as well.}
\fntext[fn2]{Another author footnote, this is a very longfootnote and it should be a really long footnote. But thisfootnote is not yet sufficiently long enough to make two linesof footnote text.}

\nonumnote{This note has no numbers. In this work wedemonstrate $a_b$ the formation Y\_1 of a new type ofpolariton on the interface between a cuprous oxide slaband a polystyrene micro-sphere placed on the slab.}

\begin{abstract}[SUMMARY]
This template helps you to create a properly formatted\LaTeX\ manuscript.\noindent\texttt{\textbackslash begin{abstract}} \dots\texttt{\textbackslash end{abstract}} and\verb+\begin{keyword}+ \verb+...+ \verb+\end{keyword}+which contain the abstract and keywords respectively.Each keyword shall be separated by a \verb+\sep+ command.
\end{abstract}

\begin{keywords}
quadrupole exciton \sep polariton
\end{keywords}

\maketitle
\section{Intro}
Test
\end{document}

编辑

这是评论中要求的日志文件(抱歉,如果您知道更好的分享方式,请告诉我)。

 *File List*
  cas-dc.cls    2020/03/14, 2.1: Formatting class for CAS double column article
s
 article.cls    2019/12/20 v1.4l Standard LaTeX document class
  size10.clo    2019/12/20 v1.4l Standard LaTeX file (size option)
graphicx.sty    2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
graphics.sty    2019/11/30 v1.4a Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
  pdftex.def    2018/01/08 v1.0l Graphics/color driver for pdftex
 amsmath.sty    2020/01/20 v2.17e AMS math features
 amstext.sty    2000/06/29 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2016/03/08 v2.02 operator names
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
   expl3.sty    2020-04-06 L3 programming layer (loader) 
l3backend-pdfmode.def    2020-03-12 L3 backend support: PDF mode
  xparse.sty    2020-03-06 L3 Experimental document command parser
etoolbox.sty    2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)
 balance.sty    1999/02/23 4.3 (PWD)
booktabs.sty    2020/01/12 v1.61803398 Publication quality tables
makecell.sty    2009/08/03 V0.1e Managing of Tab Column Heads and Cells
   array.sty    2019/08/31 v2.4l Tabular extension package (FMi)
multirow.sty    2019/05/31 v2.5 Span multiple rows of a table
colortbl.sty    2020/01/04 v1.0e Color table columns (DPC)
   color.sty    1999/02/16
   color.cfg    2016/01/02 v1.6 sample color configuration
 dcolumn.sty    2014/10/28 v1.06 decimal alignment package (DPC)
stfloats.sty    2017/03/27 v3.3 Improve float mechanism and baselineskip settin
gs
  xspace.sty    2014/10/28 v1.13 Space after command names (DPC,MH)
 xstring.sty    2019/02/06 v1.83 String manipulations (CT)
footmisc.sty    2011/06/06 v5.5b a miscellany of footnote facilities
  xcolor.sty    2016/05/11 v2.12 LaTeX color extensions (UK)
   color.cfg    2016/01/02 v1.6 sample color configuration
dvipsnam.def    2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)
  svgnam.def    2016/05/11 v2.12 Predefined colors according to SVG 1.1 (UK)
hyperref.sty    2020/01/14 v7.00d Hypertext links for LaTeX
 ltxcmds.sty    2019/12/15 v1.24 LaTeX kernel commands for general use (HO)
   iftex.sty    2020/03/06 v1.0d TeX engine tests
pdftexcmds.sty    2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2019/12/03 v1.5 Providing info/warning/error messages (HO)
kvsetkeys.sty    2019/12/15 v1.18 Key value parser (HO)
kvdefinekeys.sty    2019-12-19 v1.6 Define keys (HO)
pdfescape.sty    2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
 hycolor.sty    2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
letltxmacro.sty    2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
 auxhook.sty    2019-12-17 v1.6 Hooks for auxiliary files (HO)
kvoptions.sty    2019/11/29 v3.13 Key value format for package options (HO)
  pd1enc.def    2020/01/14 v7.00d Hyperref: PDFDocEncoding definition (HO)
 intcalc.sty    2019/12/15 v1.3 Expandable calculations with integers (HO)
etexcmds.sty    2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  bitset.sty    2019/12/09 v1.3 Handle bit-vector datatype (HO)
bigintcalc.sty    2019/12/15 v1.5 Expandable calculations on big integers (HO)
atbegshi.sty    2019/12/05 v1.19 At begin shipout hook (HO)
 hpdftex.def    2020/01/14 v7.00d Hyperref driver for pdfTeX
atveryend.sty    2019-12-11 v1.11 Hooks at the very end of document (HO)
rerunfilecheck.sty    2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
uniquecounter.sty    2019/12/15 v1.4 Provide unlimited unique counter (HO)
cas-common.sty    
moreverb.sty    2008/06/03 v2.3a `more' verbatim facilities
verbatim.sty    2019/11/10 v1.5r LaTeX2e package for verbatim enhancements
 wrapfig.sty    2003/01/31  v 3.6
 fontenc.sty
    stix.sty    2018/04/17 v1.1.3-latex STIX fonts support package
textcomp.sty    2020/02/02 v2.0n Standard LaTeX package
inconsolata.sty    2019/05/17 v1.12
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
geometry.sty    2020/01/02 v5.9 Page Geometry
  ifvtex.sty    2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
geometry.cfg
  natbib.sty    2010/09/13 8.31b (PWD, AO)
 ls1stix.fd    2015/04/17 v1.1.2-latex STIX LS1 font definitions
 ls2stix.fd    2015/04/17 v1.1.2-latex STIX LS2 font definitions
  t1stix.fd    2015/04/17 v1.1.2-latex STIX T1 font definitions
supp-pdf.mkii
epstopdf-base.sty    2020-01-24 v2.11 Base part for package epstopdf
 nameref.sty    2019/09/16 v2.46 Cross-referencing by name of section
refcount.sty    2019/12/15 v3.6 Data extraction from label references (HO)
gettitlestring.sty    2019/12/15 v1.6 Cleanup title references (HO)
 upquote.sty    2012/04/19 v1.3 upright-quote and grave-accent glyphs in verbat
im
ls1stixscr.fd    2015/04/17 v1.1.2-latex STIX script LS1 font definitions
ls2stixex.fd    2015/04/17 v1.1.2-latex STIX extentions LS2 font definitions
    umsa.fd    2013/01/14 v3.01 AMS symbols A
    umsb.fd    2013/01/14 v3.01 AMS symbols B
ls1stixfrak.fd    2015/04/17 v1.1.2-latex STIX fraktur LS1 font definitions
ls1stixbb.fd    2015/04/17 v1.1.2-latex STIX blackboard LS1 font definitions
ls2stixcal.fd    2015/04/17 v1.1.2-latex STIX calligraphic LS2 font definitions

ls1stixsf.fd    2015/04/17 v1.1.2-latex STIX sans-serif LS1 font definitions
ls2stixtt.fd    2015/04/17 v1.1.2-latex STIX typewriter LS2 font definitions
untitled-9.abs
   t1zi4.fd    2018/01/14 T1/zi4 (Inconsolata)
  t1cmss.fd    2019/12/16 v2.5j Standard LaTeX font definitions
 ***********

答案1

此问题是由于一系列不幸的事故造成的:

  1. \tnotemark命令将信息保存到.aux文件中,以便在下次运行时生效,但它确实不是(它可能应该)定义该信息在当前运行中生效。

  2. els-cas需要一些缩略图,但没有将它们安装在 TeX 可以看到的地方,因此文档类几乎默认会引发错误(修复此问题应该可以解决整个问题:参见https://tex.stackexchange.com/a/514678/134574)。

  3. 缩略图引发的错误导致您的文档无法成功构建,显然您的 LaTeX IDE/编辑器发现 LaTeX 运行失败并删除了该文件,因此由于缩略图问题,.aux保存的数据消失了……\tnotemark

相关内容