| 1 |
# ktbox — A Modular LaTeX Framework for Semantic Color, Structured Highlighting, and Scholarly Communication |
| 2 |
|
| 3 |
**ktbox** is a modular LaTeX framework for semantic color palettes, structured highlight boxes, and ORCID-linked author utilities. |
| 4 |
It improves clarity, portability, and reproducibility across articles, conference papers, posters, and presentations. |
| 5 |
|
| 6 |
- Highlight boxes: `ktbox`, `ktboxnumbered`, `ktboxwide` |
| 7 |
- Semantic color palettes (light & dark) via `ktcolor` |
| 8 |
- ORCID helpers via `ktorcid` |
| 9 |
- Clean separation of structure (boxes), color (palettes), and metadata (ORCID) |
| 10 |
- Works with common classes: `article`, `IEEEtran`, `acmart`, `beamer`, etc. |
| 11 |
|
| 12 |
|
| 13 |
## Installation |
| 14 |
|
| 15 |
### TeX Live / MiKTeX (after CTAN release) |
| 16 |
|
| 17 |
```tex |
| 18 |
\usepackage{ktbox} % loads semantic colors and highlight boxes |
| 19 |
\usepackage{ktorcid} % optional, for ORCID icons/links |
| 20 |
```` |
| 21 |
|
| 22 |
### Manual (from this repo) |
| 23 |
|
| 24 |
Copy `ktbox.sty`, `ktcolor.sty`, and `ktorcid.sty` into your project folder or local texmf tree. Then: |
| 25 |
|
| 26 |
```tex |
| 27 |
\usepackage{ktbox} |
| 28 |
\usepackage{ktorcid} |
| 29 |
``` |
| 30 |
|
| 31 |
## Quick Start |
| 32 |
|
| 33 |
```tex |
| 34 |
\documentclass{article} |
| 35 |
\usepackage{ktbox} % provides ktbox, ktboxnumbered, ktboxwide |
| 36 |
\usepackage{ktorcid} % optional |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
|
| 40 |
\begin{ktbox}[title={Key Insight}, theme=blue] |
| 41 |
This is a highlighted message. |
| 42 |
\end{ktbox} |
| 43 |
|
| 44 |
\begin{ktboxnumbered}{Takeaway} |
| 45 |
This takeaway is auto-numbered. |
| 46 |
\end{ktboxnumbered} |
| 47 |
|
| 48 |
Author: Bhaskar Mangal\orcidicon{0000-0002-8126-3528} |
| 49 |
|
| 50 |
\end{document} |
| 51 |
``` |
| 52 |
|
| 53 |
More usage notes and examples are in the manual: `doc/ktbox.pdf` |
| 54 |
(available via `texdoc ktbox` once installed). |
| 55 |
|
| 56 |
|
| 57 |
## Source Layout |
| 58 |
|
| 59 |
``` |
| 60 |
ktbox-<version>/ |
| 61 |
├── ktbox.sty |
| 62 |
├── ktcolor.sty |
| 63 |
├── ktorcid.sty |
| 64 |
├── doc/ |
| 65 |
│ └── ktbox.pdf ← user manual (texdoc ktbox) |
| 66 |
├── README.md |
| 67 |
├── CHANGELOG.md |
| 68 |
├── LICENSE |
| 69 |
└── NOTICE |
| 70 |
``` |
| 71 |
|
| 72 |
|
| 73 |
## Building the Documentation Locally |
| 74 |
|
| 75 |
The repo includes a helper script: |
| 76 |
|
| 77 |
```bash |
| 78 |
bash ktbox.build.sh |
| 79 |
``` |
| 80 |
|
| 81 |
This compiles `doc/ktbox.tex` into `doc/ktbox.pdf` using `latexmk`. |
| 82 |
|
| 83 |
If building manually, ensure TeX can find the `.sty` files: |
| 84 |
|
| 85 |
```bash |
| 86 |
TEXINPUTS=./: latexmk -pdf -interaction=nonstopmode doc/ktbox.tex |
| 87 |
``` |
| 88 |
|
| 89 |
## Maintainer |
| 90 |
|
| 91 |
Bhaskar Mangal — [[email protected]](mailto:[email protected]) |
| 92 |
|
| 93 |
|
| 94 |
## License |
| 95 |
|
| 96 |
Apache License 2.0 (open-source and commercial-friendly). See `LICENSE`. |
| 97 |
Attributions and sponsor acknowledgments are listed in `NOTICE`. |
| 98 |
|
| 99 |
|
| 100 |
## Acknowledgment |
| 101 |
|
| 102 |
Supported by C.E. Info Systems Ltd. (MapmyIndia) under the Ph.D. IMPACT programme. |