Skip to content

Commit 8c5b7fb

Browse files
committed
Update: Adopt a bug introduced by xparse.
Add `!` before the optional argument of `NewTCBListing` definition. See issue for details: T-F-S/tcolorbox#43
1 parent da07263 commit 8c5b7fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LaTeX-cn/Head.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
\usepackage{listings}
165165
% 复制代码时不复制行号
166166
\usepackage{accsupp}
167-
\newcommand{\emptyaccsupp}[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
167+
\newcommand{\emptyaccsupp}[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
168168
\usepackage{tcolorbox}
169169
\tcbuselibrary{listings,skins,breakable,xparse}
170170

@@ -280,10 +280,10 @@
280280
listing options={style=latexcn}
281281
}
282282
283-
\NewTCBListing{codeshow}{ O{listing side text} }{
283+
\NewTCBListing{codeshow}{ !O{listing side text} }{
284284
skin=bicolor,colback=gray!30!white,
285285
colbacklower=pink!50!yellow,colframe=cyan!75!black,
286-
halign lower=center,valign lower=center,
286+
valign lower=center,
287287
left=6mm,righthand width=0.4\linewidth,fontupper=\small,
288288
% listing style
289289
listing options={style=latexcn},#1,

0 commit comments

Comments
 (0)