IEEEaccess 템플릿의 siunitx 패키지 문제

IEEEaccess 템플릿의 siunitx 패키지 문제

\usepackage{siunitx}템플릿 문서 에 명령을 삽입할 때마다 IEEEaccess오류가 \begin{document}누락됩니다.

siunitx가 인식되지 않는 경우 내 기사에서 단위를 어떻게 정의할 수 있나요 ?

내 MWE(댓글에서 복사):

\documentclass{ieeeaccess} 
\usepackage{graphicx}
\usepackage{cite} 
\usepackage{amsmath,amssymb,amsfonts} 
\usepackage{algorithmic} 
\usepackage{textcomp} 
\usepackage{siunitx} 

\usepackage{lipsum}
\begin{document} 
\lipsum[1-2]
\EOD 
\end{document}

그리고 이것은 내 로그 파일입니다.

Missing number, treated as zero.

<to be read again> 
                   \gdef 
l.7598 ...onst:Nn \c_sys_year_int  { \tex_year:D }
                                                  
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

Missing = inserted for \ifnum.

<to be read again> 
                   \gdef 
l.7598 ...onst:Nn \c_sys_year_int  { \tex_year:D }
                                                  
I was expecting to see `<', `=', or `>'. Didn't.
You can't use `\numexpr' in vertical mode.

\int_compare:nNnTF ...nt_eval:w #1#2\__int_eval:w 
                                                  #3\__int_eval_end: \exp_af...
l.7598 ...onst:Nn \c_sys_year_int  { \tex_year:D }
                                                  
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

LaTeX Error: Missing \begin{document}.

No \begin{document} command was found. Make sure you have included \begin{document} in your preamble, and that your main document is set correctly.

Was this hint helpful?Yes / No
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.7598 ...onst:Nn \c_sys_year_int  { \tex_year:D }
                                                  
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

답변1

ieeeaccess의 의미가 변경되면서 문제가 발생합니다 \year. 최신 릴리스에서는 expl3이 내용이 내부적으로 다루어집니다. 이전 설정의 경우 다음을 사용할 수 있습니다.

\let\oldyear\year
\def\year{%
  \ifdefined\pdfprimitive
    \expandafter\pdfprimitive
  \else
    \expandafter\primitive
  \fi
  \year}
\usepackage{expl3}
\let\year\oldyear

관련 정보