![未定义的控制序列。(日志模板)](https://linux22.com/image/427421/%E6%9C%AA%E5%AE%9A%E4%B9%89%E7%9A%84%E6%8E%A7%E5%88%B6%E5%BA%8F%E5%88%97%E3%80%82%EF%BC%88%E6%97%A5%E5%BF%97%E6%A8%A1%E6%9D%BF%EF%BC%89.png)
我正在尝试使用以下日记模板并且我收到任何添加部分的错误“未定义控制序列”。他们包含了两个 Tex 文件,但对我来说都不起作用。有人建议更新 MiKTex,我照做了。其他人建议更改类文件,但期刊不允许这样做。另一个建议是覆盖 Tex 文件中的命令。在这里,我包括了 MWE,但是,上面链接中的类和其他文件也包括在内。
MWE: jcs_template.tex
% PLEASE USE THIS FILE AS A TEMPLATE
% Check file iosart2x.tex for more examples
% add. options: [seceqn,secthm,crcready,onecolumn]
\documentclass[jcs]{iosart2x}
\usepackage{dcolumn}
\usepackage{endnotes}
%% Definitions
\newcolumntype{d}[1]{D{.}{.}{#1}}
\firstpage{1}
\lastpage{5}
\volume{1}
\pubyear{2016}
\begin{document}
\begin{frontmatter}
%\pretitle{}
\title{Article title}
\runtitle{Running head title}
%\subtitle{}
% Two or more authors:
\author[A]{\inits{N.}\fnms{Name1} \snm{Surname1}\ead[label=e1]{[email protected]}%
\thanks{Corresponding author. \printead{e1}.}},
\author[B]{\inits{N.N.}\fnms{Name2 Name2} \snm{Surname2}\ead[label=e2]{[email protected]}}
and
\author[B]{\inits{N.-N.}\fnms{Name3-Name3} \snm{Surname3}\ead[label=e3]{[email protected]}}
\address[A]{Department first, \orgname{University or Company name},
Abbreviate US states, \cny{Country}\printead[presep={\\}]{e1}}
\address[B]{Department first, \orgname{University or Company name},
Abbreviate US states, \cny{Country}\printead[presep={\\}]{e2,e3}}
\begin{abstract}
Abstract text.
\end{abstract}
\begin{keyword}
\kwd{Keyword one}
\kwd{keyword two}
\end{keyword}
\end{frontmatter}
%%%%%%%%%%% The article body starts:
\section{section one}\label{s1}
some text
\subsection{subsection one}\label{s1.1}
\section{section two}\label{s1}
\begin{table*}[htb]
\caption{Table caption} \label{t1}
\begin{tabular}{ll d{1.3} d{1.3} d{1.3} d{1.3} d{1.3} d{1.3}}
\hline
Dataset&Models&\multicolumn{1}{l}{$\alpha_1$}&
\multicolumn{1}{l}{$\alpha_2$}&
\multicolumn{1}{l}{$\alpha_3$}&
\multicolumn{1}{l}{$\alpha_4$}&
\multicolumn{1}{l}{$\alpha_5$}&
\multicolumn{1}{l}{$\alpha_6$}\\
\hline
CSDS&Linear &0.164&0.22&0.123&0.3&0.200&0.258\\
& Logistic &0.189&0.155&0.157&0.201&0.154&0.144\\[6pt]
KCDS&Linear &0.155&0.183&0.160&0.218&0.176&0.156\\
& Logistic &0.187&0.125&0.151&0.184&0.187&0.125\\
\hline
\end{tabular}
\end{table*}
\nocite{*}
% if your bibliography is in bibtex format, use those commands:
\bibliographystyle{ios1} % Style BST file.
\bibliography{bibliography} % Bibliography file (usually '*.bib')
\end{document}
参考书目
@ARTICLE{hankeknees,
author = {H. Hanke and D. Knees},
title = {A phase-field damage model based on evolving microstructure},
journal = {Asymptotic Analysis},
year = {2017},
volume = {101},
pages = {149-180}
}
@ARTICLE{lefever,
author = {E. Lefever},
title = {A hybrid approach to domain-independent taxonomy learning},
journal = {Applied Ontology},
year = {2016},
volume = {11},
number = {3},
pages = {255-278}
}
为了尝试调试该问题,我尝试在 documentclass 的选项中更改日志的名称,它起作用了,但我收到了与引用相关的错误(参考书目与作者年份引用不兼容。...mand\NAT@force@numbers{}\NAT@force@numbers“)。 有什么建议 ?
答案1
我必须更改 iosart2x.cls。我在文件开头添加了:
\RequirePackage{hyperref}
之后一切都正常。
似乎在我的 TexLive 配置(Macos)上,hyperref 没有正确加载(但我不知道为什么)
答案2
模板仅在特克斯直播代替密克泰克斯。我在MacBook Pro上试了一下,编译正常。