! 软件包 xkeyval 错误:‘frame’ 在‘Gin’ 系列中未定义

! 软件包 xkeyval 错误:‘frame’ 在‘Gin’ 系列中未定义

我在编译 wiley 模板时遇到此错误

! Package xkeyval Error: `frame' undefined in families `Gin'.

主要文件如下,包括软件包。请指导我...

%% Run LaTeX on this file several times to get Table of Contents,
%% cross-references, and citations.


\documentclass[11pt]{book}
\usepackage{Wiley-AuthoringTemplate}
%\usepackage[sectionbib,authoryear]{natbib}% for name-date citation comment the below line
\usepackage[sectionbib,numbers]{natbib}% for numbered citation comment the above line

\usepackage{color}   %May be necessary if you want to color links
\usepackage{hyperref}%  added by IF
\hypersetup{
    colorlinks=true, %set true if you want colored links
    linktoc=all,     %set to all if you want both sections and subsections linked
    linkcolor=blue,  %choose some color if you want links to stand out
}      

\usepackage[T1]{fontenc}
\usepackage{etex}
\usepackage{xcolor}
\usepackage{lmodern}
\usepackage{listings}
\usepackage{graphicx}        % standard LaTeX graphics tool
                                      % when including figure files
\usepackage[export]{adjustbox}
\usepackage{pstricks}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{tikz}
\usepackage{ulem}
\usetikzlibrary{shapes,arrows,fit}
\tikzstyle{decision} = [diamond, draw, fill=blue!20, text centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
    minimum height=2em]
\tikzset{%
  highlight/.style={rectangle,rounded corners, fill=red!15,draw,fill opacity=0.5,thin,inner sep=2pt}
}
\newcommand{\tikzmark}[2]{\tikz[overlay,remember picture,baseline=(#1.base)] \node (#1) {#2};}
%
\newcommand{\Highlight}[1][submatrix]{%
    \tikz[overlay,remember picture]{
    \node[highlight,fit=(left1.north west) (right1.south east)] (#1) {};\node[highlight,fit=(left2.north west) (right2.south east)] (#1) {};\node[highlight,fit=(left3.north west) (right3.south east)] (#1) {};\node[highlight,fit=(left4.north west) (right4.south east)] (#1) {};\node[highlight,fit=(left5.north west) (right5.south east)] (#1) {};\node[highlight,fit=(left6.north west) (right6.south east)] (#1) {};\node[highlight,fit=(left7.north west) (right7.south east)] (#1) {};\node[highlight,fit=(left8.north west) (right8.south east)] (#1) {};\node[highlight,fit=(left9.north west) (right9.south east)] (#1) {};}
}
\usepackage{xr}
\externaldocument[1-]{chapter1}
\externaldocument[2-]{chapter2}
\externaldocument[3-]{chapter3}
\externaldocument[4-]{chapter4}
\externaldocument[5-]{chapter5}
\usepackage{mathptmx}
\usepackage{helvet}
\usepackage[chapter]{algorithm}%  added by AA   
\usepackage[]{algorithmicx}
\usepackage{algpseudocode}%  added by AA 
\let\oldalgorithmic\algorithmic  
\renewcommand\algorithmic{\ttfamily\fontseries{l}\selectfont\oldalgorithmic}
\usepackage{courier}
\usepackage{dirtytalk}  %  added by AA  
\usepackage{amssymb}  %  added by AA  
\usepackage{multirow}  %  added by AA  
\usepackage{eucal}      % added by IF
\usepackage{multicol}        % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{float}   % added by IF
\usepackage{amsmath} %  added by AA
\usepackage{cleveref} %  added by AA
\usepackage{booktabs} %  added by AA
\usepackage{mathtools}%  added by AA
\usepackage{cleveref} %  added by AA
\usepackage{bm}
\usepackage{subfigure}%  added by IF

答案1

首先,一定要记得发布一个完整(但最小)的示例。这里只包括前言,现在显示了实际问题。

但我知道该Gin系列来自图形处理。因此投诉来自图形选项,并且它不理解frame

我还注意到你正在使用

 \usepackage[export]{adjustbox}

它添加了额外的选项\includegraphics

以下是我的水晶球的全部效果:

我认为你的文档中有一个这个(但你没有向我们展示)

\includegraphics[...,frame,...]{...}

但是,这是错误的语法。adjustbox添加框架的 被调用fbox(因为这就是它正在做的事情)。

因此使用

\includegraphics[...,fbox,...]{...}

(我也犯过同样的错误)

相关内容