| 1 |
Create code box and viewer based on tcolorbox and minted/listings |
| 2 |
======= |
| 3 |
|
| 4 |
`codebox` is a LaTeX3 package developed based on tcolorbox and minted/listings, which provides environments `codebox` and `codeview` to typset with environment body, and macros `\codefile` and `\cvfile` to typeset programming source code from a file in a fancy box. |
| 5 |
|
| 6 |
The starred version of all environments and macros are provided at the same time, such as `codebox*`, `codeview*`, `\codefile*` and `\cvfile*` which adds comment at bottom of the fancy box. |
| 7 |
|
| 8 |
You can read the manual (in Chinese/English) for more details and examples. |
| 9 |
|
| 10 |
Contributing |
| 11 |
------------ |
| 12 |
|
| 13 |
1. github repository: |
| 14 |
1. repository: [codebox](https://github.com/registor/codebox) |
| 15 |
2. Issues and pull requests are welcome. [issue](https://github.com/registor/codebox/issues) or [pull request](https://github.com/registor/codebox/pulls). |
| 16 |
|
| 17 |
2. gitee repository: |
| 18 |
1. repository: [codebox](https://gitee.com/nwafu_nan/codebox) |
| 19 |
2. Issues and pull requests are welcome. [issue](https://gitee.com/nwafu_nan/codebox/issues) or [pull request](https://gitee.com/nwafu_nan/codebox/pulls). |
| 20 |
|
| 21 |
基于tcolorbox的终端模拟宏包 |
| 22 |
======= |
| 23 |
|
| 24 |
`codebox`是一个基于tcolorbox的用LaTeX3开发的终端模拟LaTeX宏包,它提供了用于排版程序源代码盒子的环境和命令。 |
| 25 |
|
| 26 |
其中`codebox`和`codeview`环境用于根据环境内容排版代码,`\codefile`和`\cvfile`命令用于根据文件内容排版代码。 |
| 27 |
|
| 28 |
`codebox`同时提供了各环境和命令的星号版本,如`codebox*`和`codeview*`,`\codefile*`和`\cvfile*`,用于为代码盒子添加底线注释。 |
| 29 |
|
| 30 |
可以通过阅读宏包手册(中文/英文)以也解该宏包更多的使用细节和使用样例。 |
| 31 |
|
| 32 |
### 参与贡献 |
| 33 |
--------------------- |
| 34 |
|
| 35 |
1. github仓库: |
| 36 |
(1). 仓库地址: [codebox](https://github.com/registor/codebox) |
| 37 |
(2). Issues和PR: [issue](https://github.com/registor/codebox/issues) or [pull request](https://github.com/registor/codebox/pulls). |
| 38 |
|
| 39 |
2. gitee仓库: |
| 40 |
(1). 仓库地址: [codebox](https://gitee.com/nwafu_nan/codebox) |
| 41 |
(2). Issues and PR: [issue](https://gitee.com/nwafu_nan/codebox/issues) or [pull request](https://gitee.com/nwafu_nan/codebox/pulls). |
| 42 |
|
| 43 |
Copyright and Licence |
| 44 |
--------------------- |
| 45 |
|
| 46 |
Copyright (C) 2020-2022 by Nan Geng <[email protected]> |
| 47 |
---------------------------------------------------------------------- |
| 48 |
|
| 49 |
This work may be distributed and/or modified under the |
| 50 |
conditions of the LaTeX Project Public License, either |
| 51 |
version 1.3c of this license or (at your option) any later |
| 52 |
version. This version of this license is in |
| 53 |
http://www.latex-project.org/lppl/lppl-1-3c.txt |
| 54 |
and the latest version of this license is in |
| 55 |
http://www.latex-project.org/lppl.txt |
| 56 |
and version 1.3 or later is part of all distributions of |
| 57 |
LaTeX version 2005/12/01 or later. |
| 58 |
|
| 59 |
This work has the LPPL maintenance status "maintained". |
| 60 |
|
| 61 |
The Current Maintainer of this work is Nan Geng. |
| 62 |
|
| 63 |
This package consists of the file codebox.dtx, |
| 64 |
and the derived files codebox.sty, |
| 65 |
codebox.pdf, |
| 66 |
codebox.ins, |
| 67 |
README.md (this file). |
| 68 |
|