| 1 |
Terminal simulation based on tcolorbox and minted/listings |
| 2 |
======= |
| 3 |
|
| 4 |
`termsim` is a LaTeX package developed based on tcolorbox and minted/listings, which provides a environment `terminal`(`terminal*`) and a macro `\termfile`(`\termfile*`) to simulate Win10, Ubuntu and Mac terminal. |
| 5 |
|
| 6 |
The `terminal`(`terminal*`) evironment create a tcolorbox to simulate terminal with the eviroment body and the `\termfile`(`\termfile*`) macro from a source file. |
| 7 |
|
| 8 |
The OS type was selected from win10, mac, or ubuntu and |
| 9 |
the terminal theme was selected from dark, light, or with key-value option. |
| 10 |
|
| 11 |
All options can be set with `\termset` macro or `terminal`(`terminal*`) eniroment's and |
| 12 |
`\termfile`(`\termfile*`) macro's option |
| 13 |
|
| 14 |
You can read the manual (in Chinese) for more details and examples. |
| 15 |
|
| 16 |
Contributing |
| 17 |
------------ |
| 18 |
|
| 19 |
1. github repository: |
| 20 |
1. repository: [termsim](https://github.com/registor/termsim) |
| 21 |
2. Issues and pull requests are welcome. [issue](https://github.com/registor/termsim/issues) or [pull request](https://github.com/registor/termsim/pulls). |
| 22 |
|
| 23 |
2. gitee repository: |
| 24 |
1. repository: [termsim](https://gitee.com/nwafu_nan/termsim) |
| 25 |
2. Issues and pull requests are welcome. [issue](https://gitee.com/nwafu_nan/termsim/issues) or [pull request](https://gitee.com/nwafu_nan/termsim/pulls). |
| 26 |
|
| 27 |
基于tcolorbox的终端模拟宏包 |
| 28 |
======= |
| 29 |
|
| 30 |
`termsim`是一个基于tcolorbox的用LaTeX3开发的终端模拟LaTeX宏包,它提供了用于模拟终端窗口的`terminal`(`terminal*`)环境和`\termfile`(`\termfile*`)命令,以模拟Win10、Ubuntu或Mac的终端窗口。 |
| 31 |
|
| 32 |
`terminal`(`terminal*`)环境根据环境内容创建一个`tcolorbox`盒子用于模拟终端窗口, |
| 33 |
`\termfile`(`\termfile*`)命令根据载入的文件内容创建一个`tcolorbox`盒子用于模拟终端窗口。 |
| 34 |
|
| 35 |
可以通过`terminal`(`terminal*`)环境或`\termfile`(`\termfile*`)命令的`key-value`选项设置操作系统类型(win10、mac或ubuntu),并可选择暗色(dark)、亮色(light)或白色(white)颜色主题。 |
| 36 |
|
| 37 |
所有选项即可以通过环境或命令选项设置,也可以通过`\termset`命令进行设置。 |
| 38 |
|
| 39 |
可以通过阅读宏包手册(中文)以也解该宏包更多的使用细节和使用样例。 |
| 40 |
|
| 41 |
### 参与贡献 |
| 42 |
--------------------- |
| 43 |
|
| 44 |
1. github仓库: |
| 45 |
(1). 仓库地址: [termsim](https://github.com/registor/termsim) |
| 46 |
(2). Issues和PR: [issue](https://github.com/registor/termsim/issues) or [pull request](https://github.com/registor/termsim/pulls). |
| 47 |
|
| 48 |
2. gitee仓库: |
| 49 |
(1). 仓库地址: [termsim](https://gitee.com/nwafu_nan/termsim) |
| 50 |
(2). Issues and PR: [issue](https://gitee.com/nwafu_nan/termsim/issues) or [pull request](https://gitee.com/nwafu_nan/termsim/pulls). |
| 51 |
|
| 52 |
Copyright and Licence |
| 53 |
--------------------- |
| 54 |
|
| 55 |
Copyright (C) 2020-2021 by Nan Geng <[email protected]> |
| 56 |
---------------------------------------------------------------------- |
| 57 |
|
| 58 |
This work may be distributed and/or modified under the |
| 59 |
conditions of the LaTeX Project Public License, either |
| 60 |
version 1.3c of this license or (at your option) any later |
| 61 |
version. This version of this license is in |
| 62 |
http://www.latex-project.org/lppl/lppl-1-3c.txt |
| 63 |
and the latest version of this license is in |
| 64 |
http://www.latex-project.org/lppl.txt |
| 65 |
and version 1.3 or later is part of all distributions of |
| 66 |
LaTeX version 2005/12/01 or later. |
| 67 |
|
| 68 |
This work has the LPPL maintenance status "maintained". |
| 69 |
|
| 70 |
The Current Maintainer of this work is Nan Geng. |
| 71 |
|
| 72 |
This package consists of the file termsim.dtx, |
| 73 |
and the derived files termsim.sty, |
| 74 |
termsim.pdf, |
| 75 |
termsim.ins, |
| 76 |
README.md (this file). |
| 77 |
|