CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/termsim


Terminal simulation based on tcolorbox and minted/listings

termsim is a 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.

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, 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

You can read the manual (in Chinese) for more details and examples.


  1. github repository:
    1. repository: termsim
    2. Issues and pull requests are welcome. issue or pull request.
  1. gitee repository:
    1. repository: termsim
    2. Issues and pull requests are welcome. issue or pull request.



terminal(terminal*)环境根据环境内容创建一个tcolorbox盒子用于模拟终端窗口, \termfile(\termfile*)命令根据载入的文件内容创建一个tcolorbox盒子用于模拟终端窗口。





  1. github仓库: (1). 仓库地址: termsim (2). Issues和PR: issue or pull request.
  1. gitee仓库: (1). 仓库地址: termsim (2). Issues and PR: issue or pull request.

Copyright and Licence

Copyright (C) 2020-2021 by Nan Geng <nangeng@nwafu.edu.cn>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
version. This version of this license is in
and the latest version of this license is in
and version 1.3 or later is part of all distributions of
LaTeX version 2005/12/01 or later.
This work has the LPPL maintenance status "maintained".
The Current Maintainer of this work is Nan Geng.
This package consists of the file  termsim.dtx,
             and the derived files termsim.sty,
                                   README.md (this file).

Download the contents of this package in one zip archive (395.2k).

termsim – Simulate Win10, Ubuntu, and Mac terminals

This 3 package provides environments terminal and terminal*, and macros \termfile and \termfile* to simulate Win10, Ubuntu and Mac terminals. It is based on tcolorbox, minted and listings.

Bug trackerhttps://github.com/registor/termsim/issues
Version1.1.1 2021-12-26
LicensesThe Project Public License 1.3c
Copyright2020–2021 Nan Geng
MaintainerNan Geng
Contained inTeX Live as termsim
MiKTeX as termsim
Computer science
Experimental 3
Guest Book Sitemap Contact Contact Author