diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-27 21:14:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-27 21:14:20 +0000 |
commit | 2015172080d3ff94e1864fbb9643340525d1027b (patch) | |
tree | cba1dbb8e5f97e4d3fdea42cec0562cdf95b261c /Master/texmf-dist/tex | |
parent | 060ee97d4bc0236c295e62058eb048e71bf79943 (diff) |
codebox (27dec21)
git-svn-id: svn://tug.org/texlive/trunk@61422 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/codebox/codebox.sty | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/codebox/codebox.sty b/Master/texmf-dist/tex/latex/codebox/codebox.sty index 69d19d788af..4c8637ce0b9 100644 --- a/Master/texmf-dist/tex/latex/codebox/codebox.sty +++ b/Master/texmf-dist/tex/latex/codebox/codebox.sty @@ -27,7 +27,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{expl3} -\GetIdInfo$Id: codebox.dtx 1.0.0 2021-12-26 08:00:00 +0800 Nan Geng <nangeng@nwafu.edu.cn> $ +\GetIdInfo$Id: codebox.dtx 1.0.1 2021-12-27 08:00:00 +0800 Nan Geng <nangeng@nwafu.edu.cn> $ {Code Box with tcolorbox and minted/listings.} \ProvidesExplPackage{\ExplFileName} {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} @@ -129,11 +129,6 @@ colbacktitle=cvgray, fonttitle=\ttfamily, coltitle=black, - % overlay~broken = { - % \begin{tcbclipinterior} - % \fill[cvblue] (frame.south~west) rectangle ([xshift=5.0mm]frame.north~west); - % \end{tcbclipinterior} - % }, underlay~boxed~title = { \begin{tcbclipinterior} \fill[cvblue] (frame.south~west) rectangle ([xshift=5.0mm,yshift=0mm]frame.north~west); @@ -186,7 +181,7 @@ { \newcounter{codecounter}[chapter]% }{ - \newcounter{codecounter}[section]% + \newcounter{codecounter}%[section]% } } \cs_new:Npn \__codebox_code_engine_tcbset:n #1 @@ -197,7 +192,6 @@ listing~engine=minted,% minted~style=#1, minted~options={% - % highlightlines={\ifodd\value{lstnumber}\value{lstnumber}\fi}, autogobble, breaklines,% fontsize=\tl_use:N \l__codebox_code_fontsize_tl,% @@ -255,7 +249,7 @@ \bool_set_false:N \l__codebox_comment_bool \group_begin: \IfNoValueF{#1}{ \keys_set:nn { codebox } { #1 } } - \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl, + \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl \__codebox_comment_tcbset: \tcbset{lang, title={#2} }% \tcblisting{} @@ -268,7 +262,7 @@ \bool_set_false:N \l__codebox_comment_bool \group_begin: \IfNoValueF{#1}{ \keys_set:nn { codebox } { #1 } } - \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl, + \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl \__codebox_comment_tcbset: \tcbset{lang, title={#2} }% \tcblisting{} @@ -287,7 +281,7 @@ \group_begin: \IfNoValueF{#2}{ \keys_set:nn { codebox } { #2 } } - \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl, + \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl \__codebox_comment_tcbset: \tcbset{ lang, @@ -307,7 +301,7 @@ \bool_set_false:N \l__codebox_comment_bool \group_begin: \IfNoValueF{#1}{ \keys_set:nn { codebox } { #1 } } - \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl, + \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl \__codebox_comment_tcbset: \tcbset{ cv, @@ -331,7 +325,7 @@ \bool_set_true:N \l__codebox_comment_bool \group_begin: \IfNoValueF{#1}{ \keys_set:nn { codebox } { #1 } } - \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl, + \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl \__codebox_comment_tcbset: \tcbset{ cv, @@ -365,7 +359,7 @@ \group_begin: \IfNoValueF{#2}{ \keys_set:nn { codebox } { #2 } } - \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl, + \__codebox_code_engine_tcbset:V \l__codebox_code_style_tl \__codebox_comment_tcbset: \tcbset{ cv, |