texlive[61399] Master/texmf-dist: termsim (24dec21)

commits+karl at tug.org commits+karl at tug.org
Fri Dec 24 22:45:27 CET 2021


Revision: 61399
          http://tug.org/svn/texlive?view=revision&revision=61399
Author:   karl
Date:     2021-12-24 22:45:27 +0100 (Fri, 24 Dec 2021)
Log Message:
-----------
termsim (24dec21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/termsim/README.md
    trunk/Master/texmf-dist/source/latex/termsim/termsim.dtx
    trunk/Master/texmf-dist/tex/latex/termsim/termsim.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/termsim/termsim-en.pdf
    trunk/Master/texmf-dist/doc/latex/termsim/termsim-zh-cn.pdf

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/termsim/termsim.pdf

Modified: trunk/Master/texmf-dist/doc/latex/termsim/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/termsim/README.md	2021-12-24 21:44:42 UTC (rev 61398)
+++ trunk/Master/texmf-dist/doc/latex/termsim/README.md	2021-12-24 21:45:27 UTC (rev 61399)
@@ -5,8 +5,8 @@
 
 The `terminal`(`terminal*`) evironment create a tcolorbox to simulate terminal with the eviroment body and the `\termfile`(`\termfile*`) macro from a source file.
 
-The OS type was selected from win10, mac and ubuntu and
-the terminal theme was selected from dark and light with key-value option.
+The OS type was selected from win10, mac, or ubuntu and
+the terminal theme was selected from dark, light, or with key-value option.
 
 All options can be set with `\termset` macro or `terminal`(`terminal*`) eniroment's and
 `\termfile`(`\termfile*`) macro's option
@@ -32,7 +32,7 @@
 `terminal`(`terminal*`)环境根据环境内容创建一个`tcolorbox`盒子用于模拟终端窗口,
 `\termfile`(`\termfile*`)命令根据载入的文件内容创建一个`tcolorbox`盒子用于模拟终端窗口。
 
-可以通过`terminal`(`terminal*`)环境或`\termfile`(`\termfile*`)命令的`key-value`选项设置操作系统类型(win10、mac或ubuntu),
+可以通过`terminal`(`terminal*`)环境或`\termfile`(`\termfile*`)命令的`key-value`选项设置操作系统类型(win10、mac或ubuntu),并可选择暗色(dark)、亮色(light)或白色(white)颜色主题。
 
 所有选项即可以通过环境或命令选项设置,也可以通过`\termset`命令进行设置。
 
@@ -46,7 +46,7 @@
     (2). Issues和PR: [issue](https://github.com/registor/termsim/issues) or [pull request](https://github.com/registor/termsim/pulls).
 
 2. gitee仓库:
-    (1). 仓库地址: [termsim-l3](https://gitee.com/nwafu_nan/termsim)
+    (1). 仓库地址: [termsim](https://gitee.com/nwafu_nan/termsim)
     (2). Issues and PR: [issue](https://gitee.com/nwafu_nan/termsim/issues) or [pull request](https://gitee.com/nwafu_nan/termsim/pulls).
 
 Copyright and Licence
@@ -61,11 +61,7 @@
     version. This version of this license is in
        http://www.latex-project.org/lppl/lppl-1-3c.txt
     and the latest version of this license is in
-       http://www.latex-project.org/lppl.tx        \IfBooleanTF{#1}
-          {
-            \bool_set_true:N  \l_@@_comment_bool
-          }{
-t
+       http://www.latex-project.org/lppl.txt
     and version 1.3 or later is part of all distributions of
     LaTeX version 2005/12/01 or later.
 

Added: trunk/Master/texmf-dist/doc/latex/termsim/termsim-en.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/termsim/termsim-en.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/termsim/termsim-en.pdf	2021-12-24 21:44:42 UTC (rev 61398)
+++ trunk/Master/texmf-dist/doc/latex/termsim/termsim-en.pdf	2021-12-24 21:45:27 UTC (rev 61399)

Property changes on: trunk/Master/texmf-dist/doc/latex/termsim/termsim-en.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/termsim/termsim-zh-cn.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/termsim/termsim-zh-cn.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/termsim/termsim-zh-cn.pdf	2021-12-24 21:44:42 UTC (rev 61398)
+++ trunk/Master/texmf-dist/doc/latex/termsim/termsim-zh-cn.pdf	2021-12-24 21:45:27 UTC (rev 61399)

Property changes on: trunk/Master/texmf-dist/doc/latex/termsim/termsim-zh-cn.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/termsim/termsim.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/termsim/termsim.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/termsim/termsim.dtx	2021-12-24 21:44:42 UTC (rev 61398)
+++ trunk/Master/texmf-dist/source/latex/termsim/termsim.dtx	2021-12-24 21:45:27 UTC (rev 61399)
@@ -11,8 +11,8 @@
 
 The `terminal`(`terminal*`) evironment create a tcolorbox to simulate terminal with the eviroment body and the `\termfile`(`\termfile*`) macro from a source file.
 
-The OS type was selected from win10, mac and ubuntu and
-the terminal theme was selected from dark and light with key-value option.
+The OS type was selected from win10, mac, or ubuntu and
+the terminal theme was selected from dark, light, or with key-value option.
 
 All options can be set with `\termset` macro or `terminal`(`terminal*`) eniroment's and
 `\termfile`(`\termfile*`) macro's option
@@ -38,7 +38,7 @@
 `terminal`(`terminal*`)环境根据环境内容创建一个`tcolorbox`盒子用于模拟终端窗口,
 `\termfile`(`\termfile*`)命令根据载入的文件内容创建一个`tcolorbox`盒子用于模拟终端窗口。
 
-可以通过`terminal`(`terminal*`)环境或`\termfile`(`\termfile*`)命令的`key-value`选项设置操作系统类型(win10、mac或ubuntu),
+可以通过`terminal`(`terminal*`)环境或`\termfile`(`\termfile*`)命令的`key-value`选项设置操作系统类型(win10、mac或ubuntu),并可选择暗色(dark)、亮色(light)或白色(white)颜色主题。
 
 所有选项即可以通过环境或命令选项设置,也可以通过`\termset`命令进行设置。
 
@@ -52,7 +52,7 @@
     (2). Issues和PR: [issue](https://github.com/registor/termsim/issues) or [pull request](https://github.com/registor/termsim/pulls).
 
 2. gitee仓库:
-    (1). 仓库地址: [termsim-l3](https://gitee.com/nwafu_nan/termsim)
+    (1). 仓库地址: [termsim](https://gitee.com/nwafu_nan/termsim)
     (2). Issues and PR: [issue](https://gitee.com/nwafu_nan/termsim/issues) or [pull request](https://gitee.com/nwafu_nan/termsim/pulls).
 
 Copyright and Licence
@@ -67,11 +67,7 @@
     version. This version of this license is in
        http://www.latex-project.org/lppl/lppl-1-3c.txt
     and the latest version of this license is in
-       http://www.latex-project.org/lppl.tx        \IfBooleanTF{#1}
-          {
-            \bool_set_true:N  \l_@@_comment_bool
-          }{
-t
+       http://www.latex-project.org/lppl.txt
     and version 1.3 or later is part of all distributions of
     LaTeX version 2005/12/01 or later.
 
@@ -161,7 +157,7 @@
 %</internal>
 %<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
 %<package>\RequirePackage{expl3}
-%<+package>\GetIdInfo$Id: termsim.dtx 1.0.0 2021-12-14 08:00:00 +0800 Nan Geng <nangeng at nwafu.edu.cn> $
+%<+package>\GetIdInfo$Id: termsim.dtx 1.1.0 2021-12-24 08:00:00 +0800 Nan Geng <nangeng at nwafu.edu.cn> $
 %<package>  {Terminal simulation with tcolorbox and minted/listings.}
 %<package>\ProvidesExplPackage{\ExplFileName}
 %<package>  {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
@@ -172,9 +168,6 @@
 \usepackage{xcolor}
 \usepackage{xcolor-material}
 \usepackage{termsim}
-\renewcommand*\marg[1]{\{\meta{#1}\}}
-\renewcommand*\oarg[1]{[\meta{#1}]}
-\renewcommand*\parg[1]{(\meta{#1})}
 \NewDocumentCommand{\init}{+v}{\hspace{\fill}初始值~=~\textcolor{blue}{\bfseries#1}}
 \DeclareDocumentCommand\opt{m}{\texttt{#1}}
 \DeclareDocumentCommand\kvopt{mm}
@@ -283,7 +276,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=win10,theme=dark,shstretch=1.0}
 %\begin{terminal}{窗口标题}
 %C:\Users\Administrator 的目录
@@ -326,7 +319,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termfile{窗口标题}{test.bat}
 %\end{minipage}
 %\end{center}
@@ -455,7 +448,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=win10,theme=dark,shstretch=1.0}
 %\begin{terminal}{窗口标题}
 %C:\Users\Administrator 的目录
@@ -485,7 +478,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\begin{terminal*}[os=win10,theme=light][底线注释]{窗口标题}
 %C:\Users\Administrator 的目录
 %2018/07/21  15:39    <DIR>          .
@@ -509,7 +502,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=win10,theme=dark}
 %\termfile{窗口标题}{test.bat}
 %\end{minipage}
@@ -521,7 +514,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termfile*[os=win10,theme=light][底线注释]{窗口标题}{test.bat}
 %\end{minipage}
 %\end{center}
@@ -543,7 +536,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=mac,theme=dark}
 %\begin{terminal}{窗口标题}
 %xxxxxx at xxxxxx-lap:~$ ls
@@ -565,7 +558,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\begin{terminal*}[os=mac,theme=light][底线注释]{窗口标题}
 %xxxxxx at xxxxxx-lap:~$ ls
 %Desktop     Downloads   p2         Public   Templates   Videos
@@ -584,7 +577,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=mac,theme=dark}
 %\termfile{窗口标题}{testls}
 %\end{minipage}
@@ -596,7 +589,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termfile*[os=mac,theme=light][底线注释]{窗口标题}{testls}
 %\end{minipage}
 %\end{center}
@@ -616,8 +609,7 @@
 %       remote: Counting objects: 100% (106/106), done.
 %       remote: Compressing objects: 100% (105/105), done.
 %       remote: Total 106 (delta 9), reused 0 (delta 0)
-%       接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s,
-%       完成.
+%       接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s, 完成.
 %       处理 delta 中: 100% (9/9), 完成.
 %       正在检出文件: 100% (75/75), 完成.
 %       xxxxxx at xxxxxx-lap:~/Desktop $
@@ -625,7 +617,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=ubuntu,theme=dark}
 %\begin{terminal}{窗口标题}
 %xxxxxx at xxxxxx-lap:~/Desktop $
@@ -635,8 +627,7 @@
 %remote: Counting objects: 100% (106/106), done.
 %remote: Compressing objects: 100% (105/105), done.
 %remote: Total 106 (delta 9), reused 0 (delta 0)
-%接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s,
-%完成.
+%接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s, 完成.
 %处理 delta 中: 100% (9/9), 完成.
 %正在检出文件: 100% (75/75), 完成.
 %xxxxxx at xxxxxx-lap:~/Desktop $
@@ -654,8 +645,7 @@
 %       remote: Counting objects: 100% (106/106), done.
 %       remote: Compressing objects: 100% (105/105), done.
 %       remote: Total 106 (delta 9), reused 0 (delta 0)
-%       接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s,
-%       完成.
+%       接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s, 完成.
 %       处理 delta 中: 100% (9/9), 完成.
 %       正在检出文件: 100% (75/75), 完成.
 %       xxxxxx at xxxxxx-lap:~/Desktop $
@@ -662,8 +652,9 @@
 %     \end{terminal*}
 %   \end{Verbatim}
 %
+%\newpage
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\begin{terminal*}[os=ubuntu,theme=light][底线注释]{窗口标题}
 %xxxxxx at xxxxxx-lap:~/Desktop $
 %git clone git at gitee.com:xxxxxx/xxxxxx
@@ -672,8 +663,7 @@
 %remote: Counting objects: 100% (106/106), done.
 %remote: Compressing objects: 100% (105/105), done.
 %remote: Total 106 (delta 9), reused 0 (delta 0)
-%接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s,
-%完成.
+%接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s, 完成.
 %处理 delta 中: 100% (9/9), 完成.
 %正在检出文件: 100% (75/75), 完成.
 %xxxxxx at xxxxxx-lap:~/Desktop $
@@ -690,7 +680,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=ubuntu,theme=dark}
 %\termfile{窗口标题}{testsh}
 %\end{minipage}
@@ -702,7 +692,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termfile*[os=ubuntu,theme=light][底线注释]{窗口标题}{testsh}
 %\end{minipage}
 %\end{center}
@@ -721,8 +711,7 @@
 %       remote: Counting objects: 100% (106/106), done.
 %       remote: Compressing objects: 100% (105/105), done.
 %       remote: Total 106 (delta 9), reused 0 (delta 0)
-%       接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s,
-%       完成.
+%       接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s, 完成.
 %       处理 delta 中: 100% (9/9), 完成.
 %       正在检出文件: 100% (75/75), 完成.
 %       xxxxxx at xxxxxx-lap:~/Desktop $
@@ -730,7 +719,7 @@
 %   \end{Verbatim}
 %
 %\begin{center}
-%\begin{minipage}{0.75\textwidth}
+%\begin{minipage}{0.85\textwidth}
 %\termset{os=ubuntu,theme=white}
 %\begin{terminal}{窗口标题}
 %xxxxxx at xxxxxx-lap:~/Desktop $
@@ -740,8 +729,7 @@
 %remote: Counting objects: 100% (106/106), done.
 %remote: Compressing objects: 100% (105/105), done.
 %remote: Total 106 (delta 9), reused 0 (delta 0)
-%接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s,
-%完成.
+%接收对象中: 100% (106/106), 237.88 MiB | 730.00 KiB/s, 完成.
 %处理 delta 中: 100% (9/9), 完成.
 %正在检出文件: 100% (75/75), 完成.
 %xxxxxx at xxxxxx-lap:~/Desktop $
@@ -997,6 +985,8 @@
 }%
 %    \end{macrocode}
 %
+% \changes{v1.1.0}{2021/12/24}{调整Win10 Logo的yshift}
+%
 % 定义Win10终端盒子的tcolorbox样式
 %
 %    \begin{macrocode}
@@ -1020,15 +1010,15 @@
       right~color=WinBlue%
     },%
     overlay~unbroken = {%
-      \node[inner~sep=0pt,anchor=north~west,yshift=-3pt,xshift=1.2pt,text=black]
+      \node[inner~sep=0pt,anchor=north~west,yshift=-2pt,xshift=1.2pt,text=black]
         at (frame.north~west){\WindowsLogo};
-      \node[inner~sep=0pt,anchor=north~east,yshift=-5pt,xshift=-8pt,text=black]
+      \node[inner~sep=0pt,anchor=north~east,yshift=-4pt,xshift=-8pt,text=black]
         at (frame.north~east){\rule{0.8em}{0.6pt}\quad$\square$\quad{\Large$\times$}};
     },%
     overlay~first = {%
-      \node[inner~sep=0pt,anchor=north~west,yshift=-3pt,xshift=1.0pt,text=black]
+      \node[inner~sep=0pt,anchor=north~west,yshift=-2pt,xshift=1.0pt,text=black]
         at (frame.north~west){\WindowsLogo};
-      \node[inner~sep=0pt,anchor=north~east,yshift=-5pt,xshift=-8pt,text=black]
+      \node[inner~sep=0pt,anchor=north~east,yshift=-4pt,xshift=-8pt,text=black]
         at (frame.north~east){\rule{0.8em}{0.6pt}\quad$\square$\quad{\Large$\times$}};
     }%
   },
@@ -1249,6 +1239,8 @@
 %
 % \subsection{内部函数}
 %
+% \changes{v1.1.0}{2021/12/24}{为minted宏包添加autogobble参数}
+%
 % \begin{macro}{\@@_minted_tcbset:}
 % 设置终端盒子minted宏包参数。
 %
@@ -1259,6 +1251,7 @@
       listing~engine=minted,%
       minted~style=\tl_use:N \l_@@_shell_style_tl,%
       minted~options={%
+        autogobble,
         breaklines,%
         fontsize=\tl_use:N \l_@@_shell_fontsize_tl,%
         baselinestretch=#1,%

Modified: trunk/Master/texmf-dist/tex/latex/termsim/termsim.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/termsim/termsim.sty	2021-12-24 21:44:42 UTC (rev 61398)
+++ trunk/Master/texmf-dist/tex/latex/termsim/termsim.sty	2021-12-24 21:45:27 UTC (rev 61399)
@@ -27,7 +27,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{expl3}
-\GetIdInfo$Id: termsim.dtx 1.0.0 2021-12-14 08:00:00 +0800 Nan Geng <nangeng at nwafu.edu.cn> $
+\GetIdInfo$Id: termsim.dtx 1.1.0 2021-12-24 08:00:00 +0800 Nan Geng <nangeng at nwafu.edu.cn> $
   {Terminal simulation with tcolorbox and minted/listings.}
 \ProvidesExplPackage{\ExplFileName}
   {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
@@ -204,15 +204,15 @@
       right~color=WinBlue%
     },%
     overlay~unbroken = {%
-      \node[inner~sep=0pt,anchor=north~west,yshift=-3pt,xshift=1.2pt,text=black]
+      \node[inner~sep=0pt,anchor=north~west,yshift=-2pt,xshift=1.2pt,text=black]
         at (frame.north~west){\WindowsLogo};
-      \node[inner~sep=0pt,anchor=north~east,yshift=-5pt,xshift=-8pt,text=black]
+      \node[inner~sep=0pt,anchor=north~east,yshift=-4pt,xshift=-8pt,text=black]
         at (frame.north~east){\rule{0.8em}{0.6pt}\quad$\square$\quad{\Large$\times$}};
     },%
     overlay~first = {%
-      \node[inner~sep=0pt,anchor=north~west,yshift=-3pt,xshift=1.0pt,text=black]
+      \node[inner~sep=0pt,anchor=north~west,yshift=-2pt,xshift=1.0pt,text=black]
         at (frame.north~west){\WindowsLogo};
-      \node[inner~sep=0pt,anchor=north~east,yshift=-5pt,xshift=-8pt,text=black]
+      \node[inner~sep=0pt,anchor=north~east,yshift=-4pt,xshift=-8pt,text=black]
         at (frame.north~east){\rule{0.8em}{0.6pt}\quad$\square$\quad{\Large$\times$}};
     }%
   },
@@ -347,6 +347,7 @@
       listing~engine=minted,%
       minted~style=\tl_use:N \l__termsim_shell_style_tl,%
       minted~options={%
+        autogobble,
         breaklines,%
         fontsize=\tl_use:N \l__termsim_shell_fontsize_tl,%
         baselinestretch=#1,%



More information about the tex-live-commits mailing list.