\usepackage{xcolor} 與套件 \usepackage{hhline,boldline} 衝突嗎?

\usepackage{xcolor} 與套件 \usepackage{hhline,boldline} 衝突嗎?

我這裡出錯了,找不到原因,

在此輸入影像描述

答案1

根據螢幕截圖和您的評論中的信息,我猜您使用了類似的內容:

\documentclass{article}
\usepackage{pdfpages}
\usepackage[table,svgnames]{xcolor}

\begin{document}
test
\end{document}

這將導致出現以下錯誤訊息,您也在問題中顯示了該訊息。

The package xcolor has already been loaded with options:
  []
There has now been an attempt to load it with options
  [table,svgnames]
Adding the global options:
  ,table,svgnames
to your \documentclass declaration may fix this.

根據錯誤訊息中的建議,您可以將以下範例與tablesvgnames新增為全域選項一起使用:

\documentclass[table,svgnames]{article}
\usepackage{pdfpages}
\usepackage{xcolor}

\begin{document}
test
\end{document}

相關內容