我正在使用 lyx 工作,生成 pdf 时遇到了问题?!
错误毫克:
! Package xcolor Error: Undefined color `tcbcol@back'.
局部布局代码:
Style Stop
Category MainText
Margin Static
LatexType Environment
LatexName stopp
NextNoIndent 1
LeftMargin MMM
RightMargin MMM
ParIndent MM
ParSkip 0
ItemSep 0
TopSep 0.5
BottomSep 0.5
ParSep 0
Align Block
AlignPossible Block, Left, Right, Center
Preamble
\usepackage{tcolorbox}
\usepackage{bclogo}
\tcbuselibrary{skins,breakable}
\usepackage{xcolor}
\newtcolorbox{stoppi}[1][]{enhanced,
before skip=2mm,after skip=3mm,
boxrule=0.4pt,left=5mm,right=10mm,top=1mm,bottom=1mm,
colback=LightSkyBlue!0,
colframe=blue!20!black,
sharp corners,rounded corners=southwest,arc is angular,arc=3mm,
underlay={%
\path[fill=tcbcol@back!80!black] ([yshift=3mm]interior.south west)--++(0.2,-0.1)--++(0.1,-0.2);
\path[draw=tcbcol@frame,shorten <=-0.05mm,shorten >=-0.05mm] ([yshift=3mm]interior.south west)--++(0.2,-0.1)--++(0.1,-0.2);
\path[fill=MidnightBlue!10,draw=none] (interior.south east) rectangle node[white]{\Huge\bfseries\bcstop} ([xshift=-10mm]interior.north east);
},
drop fuzzy shadow,#1}
\newenvironment{stopp}
{\begin{stoppi}}
{\end{stoppi}}
EndPreamble
End
请问这段代码有什么问题,问候
答案1
我遇到了类似的问题,但在这里找到了解决方案 https://github.com/TFS/tcolorbox/issues/68
只需tcbcol@back
改为tcbcolback
。