包含漢字的ACM論文提交不允許xeCJK套件且不支援XeTeX編譯器

包含漢字的ACM論文提交不允許xeCJK套件且不支援XeTeX編譯器

使用ACM模板 - acmsmall版本2.1(撰寫本文時的最新版本),ACM上傳系統不支援XeTeX編譯器;僅支援 LaTeX 編譯器。

這是我的程式碼(最小版本):

\documentclass[acmsmall]{acmart}

\AtBeginDocument{%
  \providecommand\BibTeX{{%
    Bib\TeX}}}

\usepackage{xeCJK}
\setCJKmainfont{Noto Serif CJK TC}

\definecolor{eclipseStrings}{RGB}{42,0.0,255}
\definecolor{eclipseKeywords}{RGB}{127,0,85}
\colorlet{numb}{magenta!60!black}

% code listing
\usepackage{minted}

\usepackage{tabularx}
\usepackage{makecell}
\usepackage{enumitem}
\newlist{tabitem}{itemize}{1}   % <-- defined new list
\setlist[tabitem]{nosep,        % <-- new list setup
                  leftmargin=*,
                  label=$\bullet$,
                  after=\vspace{-\baselineskip},
                  }
\usepackage{booktabs}

% text box
\usepackage{tcolorbox}
\tcbuselibrary{breakable}
\tcbset{%any default parameters
  width=0.95\textwidth,
  halign=justify,
  center,
  breakable,
  colback=white    
}

%%
%% end of the preamble, start of the body of the document source.
\begin{document}

\title{My Title here}

\begin{abstract}
My Abstract here 
\end{abstract}

\maketitle

\section{Introduction}
This is Chinese content 我

\begin{tcolorbox}
  Chinese content in a box 我
\end{tcolorbox}

\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}

\end{document}

以下是 ACM 提交平台報告的部分錯誤:

Below LaTeX Error detected:
! Critical Package xeCJK Error: The xeCJK package requires XeTeX to function. (xeCJK) (xeCJK) You must change your typesetting engine to (xeCJK) "xelatex" (xeCJK) instead of plain "latex" or "pdflatex" or (xeCJK) "lualatex". (xeCJK) Loading xeCJK will abort! Type to continue. ... l.43 ..._critical:nn { xeCJK } { Require-XeTeX } }
! Undefined control sequence. \setCJKmainfont l.112 \setCJKmainfont
! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.112 \setCJKmainfont{N
! LaTeX Error: Unicode character 我 (U+6211) not set up for use with LaTeX. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.299 \item 我

我嘗試將程式碼和編譯器更改為LaTeX(在Overleaf中),以下是修改後的程式碼:

\documentclass[acmsmall]{acmart}

\AtBeginDocument{%
  \providecommand\BibTeX{{%
    Bib\TeX}}}

\usepackage{CJKutf8}

\definecolor{eclipseStrings}{RGB}{42,0.0,255}
\definecolor{eclipseKeywords}{RGB}{127,0,85}
\colorlet{numb}{magenta!60!black}

% code listing
\usepackage{minted}

\usepackage{tabularx}
\usepackage{makecell}
\usepackage{enumitem}
\newlist{tabitem}{itemize}{1}   % <-- defined new list
\setlist[tabitem]{nosep,        % <-- new list setup
                  leftmargin=*,
                  label=$\bullet$,
                  after=\vspace{-\baselineskip},
                  }
\usepackage{booktabs}

% text box
\usepackage{tcolorbox}
\tcbuselibrary{breakable}
\tcbset{%any default parameters
  width=0.95\textwidth,
  halign=justify,
  center,
  breakable,
  colback=white    
}

%%
%% end of the preamble, start of the body of the document source.
\begin{document}

\title{My Title here}

\begin{abstract}
My Abstract here 
\end{abstract}

\maketitle

\section{Introduction}
\begin{CJK}{UTF8}{gbsn}
This is Chinese content 我

\begin{tcolorbox}
  Chinese content in a box 我
\end{tcolorbox}
\end{CJK}

\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}

\end{document}

Overleaf 回傳一個空 PDF沒有錯誤,但有一些警告:

Package cmap Warning: pdftex in DVI mode - exiting.
Package hyperxmp Warning: Suppressing the _entire_ PDF Info dictionary. Please notify the hyperxmp maintainer.
Package caption Warning: The option `hypcap=true' will be ignored for this particular \caption on input line 667. See the caption package documentation for explanation.

我該怎麼做才能使其在上傳到 ACM 時沒有錯誤(或使用 LaTeX 編譯?)

答案1

製作團隊正在改用 LuaLaTeX 來適應標記。 AFAIK,XeTeX 不在計劃中。

在最壞的情況下,如果您的作品只包含少量漢字,您可以將它們單獨排版並插入圖像。這很糟糕,但這會起作用......

相關內容