该模板可以在这里访问:
进行了一些编辑以使模板兼容 Linux:
mv logo.png Logo.png
mv notaglinelogo.png notaglineLogo.png
进行了一些编辑以使包与 xelatex 兼容:
编辑ieeeaccess.cls
文件:
\RequirePackage{color}
用。。。来代替\RequirePackage{xcolor}
\RequirePackage{spotcolor}
用。。。来代替\RequirePackage{xespotcolor}
现在access.tex
可以与 编译xelatex
。
但是,如果我添加fontspec
包,我会收到不合理的\c_sys_year_int
错误,如下所示:
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./access.tex
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(./ieeeaccess.cls (./IEEEtran.cls
Document Class: IEEEtran 2015/08/26 V1.8b by Michael Shell
-- See the "IEEEtran_HOWTO" manual for usage information.
-- http://www.michaelshell.org/tex/ieeetran/
LaTeX Font Warning: Font shape `TU/ptm/m/n' undefined
(Font) using `TU/lmr/m/n' instead on input line 503.
-- Using 8.5in x 11in (letter) paper.
-- Using DVI output.
-- This is a 10 point document.
LaTeX Font Warning: Font shape `TU/ptm/bx/n' undefined
(Font) using `TU/ptm/m/n' instead on input line 1090.
LaTeX Font Warning: Font shape `TU/ptm/m/it' undefined
(Font) using `TU/ptm/m/n' instead on input line 1090.
LaTeX Font Warning: Font shape `TU/ptm/bx/it' undefined
(Font) using `TU/ptm/bx/n' instead on input line 1090.
) (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/xetex.def))
(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/everypage/everypage.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg))))
(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex
! Missing number, treated as zero.
<to be read again>
\gdef
l.22516 ...nst:Nn \c_sys_year_int { \tex_year:D }
?
我怎样才能消除这个问题?
答案1
该类重新定义了原始内容\year
,这引起了expl3的混淆。
在类之前加载expl3:
\RequirePackage{expl3}
\documentclass{ieeeaccess}