| 1 |
# Changelog |
| 2 |
|
| 3 |
All notable changes to the `terminalcode` package will be documented in this file. |
| 4 |
|
| 5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 |
|
| 8 |
## [0.9.0] - 2025-11-01 |
| 9 |
|
| 10 |
**Initial Release — Ready for CTAN** |
| 11 |
|
| 12 |
*This package and project were primarily developed using AI assistance.* |
| 13 |
|
| 14 |
### Added |
| 15 |
|
| 16 |
- ✨ **Terminal-Style Code Display** — Authentic terminal-appearance code boxes with UTF-8 box-drawing characters and ANSI colors |
| 17 |
- ✨ **`termcode` Environment** — Display code inline with language-specific syntax highlighting (bash, python, text, etc.) |
| 18 |
- ✨ **`\terminput` / `\termcodefileinput` Commands** — Embed code from external files with terminal styling |
| 19 |
- ✨ **ANSI 16-Color Palette** — Standard (30-37) and bright (90-97) color codes with dark/light theme variants |
| 20 |
- ✨ **Theme System** — Dynamic theme switching via `\terminalcodetheme{dark|light}` |
| 21 |
- Dark theme: Terminal-like dark background |
| 22 |
- Light theme: Light background with readable contrast |
| 23 |
- ✨ **Package Options** — Configure at load time: |
| 24 |
- `theme=dark|light` — initial theme (default: `dark`) |
| 25 |
- `monofont=<fontname>` — custom monospace font (default: `DejaVu Sans Mono`) |
| 26 |
- ✨ **Engine Detection & Validation** — Automatic XeLaTeX/LuaLaTeX detection with clear error messages for pdfLaTeX |
| 27 |
- ✨ **Font Fallback Mechanism** — Graceful degradation: DejaVu Sans Mono → Latin Modern Mono → system default |
| 28 |
- ✨ **LaTeX Escape Sequences** — Use `«` and `»` delimiters to inject LaTeX commands within code |
| 29 |
- ✨ **Automatic Line Numbers** — Left-side numbering with customizable styling |
| 30 |
- ✨ **Line Breaking** — Automatic word wrapping for long lines with breakable boxes across pages |
| 31 |
- ✨ **Comprehensive Documentation**: |
| 32 |
- Full README with installation, quick start, API reference, troubleshooting |
| 33 |
- 6-page PDF documentation (`terminalcode-doc.tex`) |
| 34 |
- Working example file (`example.tex`) demonstrating all features |
| 35 |
- Build scripts for CTAN submission (`mkctan.bat`, `mkctan.sh`) |
| 36 |
|
| 37 |
### Technical Specifications |
| 38 |
|
| 39 |
**Core Requirements:** |
| 40 |
- **TeX Compiler**: XeLaTeX (recommended) or LuaLaTeX — **NOT pdfLaTeX** |
| 41 |
- **Required Packages**: `xcolor`, `tcolorbox` (with `most` option), `listings`, `fontspec`, `kvoptions` |
| 42 |
- **System Fonts**: DejaVu Sans Mono or Latin Modern Mono |
| 43 |
- **File Encoding**: UTF-8 |
| 44 |
|
| 45 |
**Supported Platforms:** |
| 46 |
- ✅ Linux/Unix with TeX Live 2020+ |
| 47 |
- ✅ macOS with MacTeX |
| 48 |
- ✅ Windows with MiKTeX or TeX Live |
| 49 |
- ✅ Overleaf (online LaTeX editor) |
| 50 |
|
| 51 |
--- |
| 52 |
|
| 53 |
## Roadmap (Planned for Future Releases) |
| 54 |
|
| 55 |
- [ ] Support for 256-color and 24-bit (true color) ANSI codes |
| 56 |
- [ ] Automatic ANSI sequence parsing from terminal output |
| 57 |
- [ ] Package option for customizing escape delimiters |
| 58 |
- [ ] Line number styling and color customization |
| 59 |
- [ ] User-defined style hooks for extensibility |
| 60 |
- [ ] Integration with `minted` package for advanced syntax highlighting |
| 61 |
- [ ] Additional theme variants (solarized, monokai, etc.) |
| 62 |
- [ ] GitHub Actions CI/CD workflow for automated testing and PDF generation |
| 63 |
|
| 64 |
## Known Limitations |
| 65 |
|
| 66 |
- Line numbers may not display in certain `tcolorbox` configurations (cosmetic issue, does not affect functionality) |
| 67 |
- Very long lines with special characters may cause word-wrapping issues in rare edge cases |
| 68 |
- Escape sequences (`«»`) do not work inside listings syntax-highlighted keywords (use `text` language as workaround) |
| 69 |
|
| 70 |
## Compatibility |
| 71 |
|
| 72 |
- **XeLaTeX**: Full support (recommended) |
| 73 |
- **LuaLaTeX**: Full support |
| 74 |
- **pdfLaTeX**: Not supported (requires `fontspec` and UTF-8 support) |
| 75 |
- **Overleaf**: Compatible (has XeLaTeX available) |
| 76 |
- **MiKTeX**: Supported (TeX Live 2020+) |
| 77 |
- **TeX Live**: Supported (2020+) |
| 78 |
|
| 79 |
## Support & Contributing |
| 80 |
|
| 81 |
**Bug Reports & Feature Requests:** |
| 82 |
- GitHub Issues: [terminalcode-sty/issues](https://github.com/LoveElysia1314/terminalcode-sty/issues) |
| 83 |
- Documentation: [README.md#troubleshooting](README.md#troubleshooting) |
| 84 |
|
| 85 |
**Contributing:** |
| 86 |
- Contributions welcome! Fork the repository and submit pull requests |
| 87 |
- Code should follow the existing style and include documentation updates |
| 88 |
|
| 89 |
## Development Notes |
| 90 |
|
| 91 |
**AI-Assisted Development:** |
| 92 |
|
| 93 |
This package and project were primarily developed using AI assistance. The entire development lifecycle includes: |
| 94 |
- Package design and architecture |
| 95 |
- LaTeX code implementation and optimization |
| 96 |
- Documentation writing and formatting |
| 97 |
- Test case creation and validation |
| 98 |
- Build script development |
| 99 |
- CTAN compliance preparation |
| 100 |
|
| 101 |
The AI-assisted approach has allowed for rapid prototyping, comprehensive documentation, and thorough testing while maintaining code quality and best practices. |
| 102 |
|
| 103 |
## License |
| 104 |
|
| 105 |
MIT License — See [LICENSE](LICENSE) file for details. |
| 106 |
|
| 107 |
--- |
| 108 |
|
| 109 |
**For CTAN:** This package is released under the MIT License and submitted to CTAN for general distribution. |
| 110 |
|
| 111 |
**Repository:** https://github.com/LoveElysia1314/terminalcode-sty |
| 112 |
**Author:** LoveElysia1314 ([email protected]) |
| 113 |
**First Release:** 2025-11-01 |