diff options
author | Karl Berry <karl@freefriends.org> | 2023-11-22 21:50:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-11-22 21:50:31 +0000 |
commit | 74996eed1b36c3f6df8dcacb72bd438bd5c47ac2 (patch) | |
tree | 8fa6d3535ea4aae845f30c63cb67820bbe7c5d92 /Master/texmf-dist/tex | |
parent | 78465957c4718eddec67965844d5452735b5f445 (diff) |
codedescribe (22nov23)
git-svn-id: svn://tug.org/texlive/trunk@68937 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/codedescribe/codedescribe.sty | 25 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/codedescribe/codelisting.sty | 36 |
2 files changed, 41 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/codedescribe/codedescribe.sty b/Master/texmf-dist/tex/latex/codedescribe/codedescribe.sty index a260c0d4220..aa4b61ad5dd 100644 --- a/Master/texmf-dist/tex/latex/codedescribe/codedescribe.sty +++ b/Master/texmf-dist/tex/latex/codedescribe/codedescribe.sty @@ -12,18 +12,18 @@ %% %% The Current Maintainer of this work is Alceu Frigeri %% -%% This is version 1.1 (2023/05/16) +%% This is version {1.2} {2023/11/18} %% %% The list of files that compose this work can be found in the README.md file at %% https://ctan.org/pkg/codedescribe %% %%%============================================================================== \NeedsTeXFormat{LaTeX2e}[2022/06/01] -\RequirePackage{ expl3 } + \ProvidesExplPackage {codedescribe} - {2023/05/16} - {1.1} + {2023/11/18} + {1.2} {LaTeX Code Description/Documentation} %%%%%%% @@ -34,11 +34,11 @@ %%%%%%% \keys_define:nn { codedescribe / pkg info} { - name .code:n = codedescribe , - prefix .code:n = codedesc , - date .code:n = 2023/05/16 , - version .code:n = 1.1 , - description .code:n = \LaTeX~Code~Description/Documentation + name .code:n = {codedescribe} , + prefix .code:n = {codedesc} , + date .code:n = {2023/11/18} , + version .code:n = {1.2} , + description .code:n = {\LaTeX~Code~Description/Documentation} } \cs_if_exist:NF \__codedesc_pkg_info:nn { @@ -47,6 +47,13 @@ } \cs_if_exist:NF \PkgInfo { \NewDocumentCommand \PkgInfo {mm} { \keys_set:nn {#1 / pkg info}{#2} } } +\cs_if_exist:NF \PkgDescription + { + \NewDocumentCommand \PkgDescription {m} + { + \noindent Package~ \textbf{\PkgInfo{#1}{name}}~Version:~\PkgInfo{#1}{version}~ -~ \PkgInfo{#1}{date}\par \emph{\PkgInfo{#1}{description}}~\par + } + } %%%%%%% %%% End of cut-n-paste %%%%%%% diff --git a/Master/texmf-dist/tex/latex/codedescribe/codelisting.sty b/Master/texmf-dist/tex/latex/codedescribe/codelisting.sty index c02633d9124..b4a939034d3 100644 --- a/Master/texmf-dist/tex/latex/codedescribe/codelisting.sty +++ b/Master/texmf-dist/tex/latex/codedescribe/codelisting.sty @@ -12,18 +12,18 @@ %% %% The Current Maintainer of this work is Alceu Frigeri %% -%% This is version 1.1 (2023/05/16) +%% This is version {1.2} {2023/11/18} %% %% The list of files that compose this work can be found in the README.md file at %% https://ctan.org/pkg/codedescribe %% %%%============================================================================== \NeedsTeXFormat{LaTeX2e}[2022/06/01] -\RequirePackage{ expl3 } + \ProvidesExplPackage {codelisting} - {2023/05/16} - {1.1} + {2023/11/18} + {1.2} {LaTeX Code Listing} %%%%%%% @@ -34,11 +34,11 @@ %%%%%%% \keys_define:nn { codelisting / pkg info} { - name .code:n = codelisting , - prefix .code:n = codelist , - date .code:n = 2023/05/16 , - version .code:n = 1.1 , - description .code:n = \LaTeX~Code~Listing + name .code:n = {codelisting} , + prefix .code:n = {codelist} , + date .code:n = {2023/11/18} , + version .code:n = {1.2} , + description .code:n = {\LaTeX~Code~Listing} } \cs_if_exist:NF \__codedesc_pkg_info:nn { @@ -47,6 +47,13 @@ } \cs_if_exist:NF \PkgInfo { \NewDocumentCommand \PkgInfo {mm} { \keys_set:nn {#1 / pkg info}{#2} } } +\cs_if_exist:NF \PkgDescription + { + \NewDocumentCommand \PkgDescription {m} + { + \noindent Package~ \textbf{\PkgInfo{#1}{name}}~Version:~\PkgInfo{#1}{version}~ -~ \PkgInfo{#1}{date}\par \emph{\PkgInfo{#1}{description}}~\par + } + } %%%%%%% %%% End of cut-n-paste %%%%%%% @@ -262,6 +269,12 @@ ruleht .usage:n = general, ruleht .code:n = { \tl_set:Nn \l__codelist_ruleheight_tl {#1} }, ruleht .default:n = 1, + + basicstyle .usage:n = general, + basicstyle .code:n = { \tl_set:Nn \l__codelist_basicstyle_tl {#1} }, + basicstyle .default:n = \footnotesize\ttfamily , + + \l__codelist_basicstyle_tl default .usage:n = general, default .meta:n = { @@ -280,7 +293,8 @@ numbers , numberstyle , parindent , codeprefix , resultprefix , - ruleht , + ruleht , + basicstyle , }, } @@ -414,7 +428,7 @@ frame = none, aboveskip = 0pt,%-2ex, belowskip = 0pt,%-2ex, - basicstyle = \footnotesize\ttfamily , + basicstyle = {\l__codelist_basicstyle_tl}, %%\footnotesize\ttfamily , rulesep = 0pt, breaklines = true, breakindent = 3em, |