Debian Codegraph @

texmf-dist/doc/latex/ktbox/ktbox.tex

raw
1 \documentclass[12pt,onecolumn]{article}
2
3 \usepackage[a4paper,margin=0.75in]{geometry}
4 \usepackage{times}
5 \setlength{\columnsep}{0.25in} % column separation if needed
6 \linespread{1.05} % tighten spacing
7
8 \usepackage{ktbox}
9 \usepackage{ktorcid}
10
11 \usepackage{siunitx} % for \SI and \percent
12 \usepackage{subcaption} % for subtable
13 \usepackage{booktabs} % for \toprule \midrule \bottomrule
14
15 \usepackage{fvextra} % enhanced verbatim
16 \usepackage{inconsolata} % or newtxtt, but only for codeblock
17
18 % global code style
19 \DefineVerbatimEnvironment{codeblock}{Verbatim}{
20 fontsize=\footnotesize,
21 fontfamily=zi4, % use Inconsolata only here
22 breaklines=true,
23 breakanywhere=true,
24 breaksymbolleft=\raisebox{0.2ex}{\tiny$\hookleftarrow$},
25 numbers=none,
26 xleftmargin=0.6em,
27 xrightmargin=0pt,
28 frame=none,
29 samepage=true
30 }
31
32 \usepackage{hyperref} %% Enables \autoref
33 \hypersetup{
34 colorlinks=true,
35 linkcolor=blue,
36 citecolor=blue,
37 filecolor=magenta,
38 urlcolor=cyan,
39 breaklinks=true,
40 }
41
42 \usetikzlibrary{arrows.meta}
43 \usetikzlibrary{positioning}
44
45 %% Custom Keywords block
46 \newenvironment{keywords}{
47 \begin{quote}\small\textbf{Keywords:}%
48 }{\end{quote}}
49
50 \date{} % suppress date
51
52 \begin{document}
53 %% Title
54 \title{KTBox: A Modular LaTeX Framework for Semantic Color, Structured Highlighting, and Scholarly Communication}
55
56 % KTBox: Semantic Styling and Structured Highlighting for Scientific Authoring
57 % KTBox Framework: Modular Semantic Color and Structured Boxes for Scholarly Writing
58
59 %% Authors
60 \author{%
61 Bhaskar Mangal\orcidicon{0000-0002-8126-3528}\thanks{B. Mangal (Corresponding Author) is with the Department of CSIS, Birla Institute of Technology and Science (BITS) Pilani, India, and also with C.E. Info Systems Ltd. (MapmyIndia), New Delhi, India. E-mail: \texttt{[email protected]}, \texttt{[email protected]}.}%
62 \and
63 Ashutosh Bhatia\orcidicon{0000-0002-3576-0275}\thanks{A. Bhatia, Y. Sharma, and K. Tiwari are with the Department of CSIS, BITS Pilani, India. E-mail: \texttt{\{ashutosh.bhatia, yash, kamlesh.tiwari\}@pilani.bits-pilani.ac.in}.}%
64 \and
65 Yashvardhan Sharma%
66 \and
67 Kamlesh Tiwari%
68 \and
69 Rashmi Verma\thanks{R. Verma is with C.E. Info Systems Ltd. (MapmyIndia), New Delhi, India. E-mail: \texttt{[email protected]}.}%
70 }
71
72
73 \maketitle
74
75 %% Abstract
76 \begin{abstract}
77 The communication of technical insight in scientific manuscripts often relies on ad-hoc formatting choices, resulting in inconsistent visual emphasis and limited portability across document classes. This paper introduces \texttt{ktbox}, a modular LaTeX framework designed to integrate semantic color palettes, structured highlight boxes, and author metadata extensions into a coherent system for scholarly writing. The framework is built on three lightweight style files: \texttt{ktbox.sty} for structural environments, \texttt{ktcolor.sty} for semantically defined light and dark palettes, and \texttt{ktorcid.sty} for ORCID-linked author utilities. A clear separation of concerns ensures that colors and structural logic remain independently extendable, enabling compatibility with major templates such as \texttt{IEEEtran}, \texttt{acmart}, \texttt{iclr conference}, and \texttt{beamer}. Design features include auto-numbered takeaway boxes, wide-format highlights for emphasis, and multi-column layouts supporting embedded tables, enumerations, and code blocks. Through semantic abstraction and extensibility, the \texttt{ktbox} framework transforms visual styling from a cosmetic add-on into a reproducible, scalable component of scientific communication, improving clarity, portability, and authoring efficiency across articles, posters, and presentations.
78
79 \end{abstract}
80
81 \begin{keywords}
82 ktbox framework, LaTeX, semantic color design, highlight boxes, modular design, reproducible formatting, styled environments, academic publishing, extendable theming
83
84 % ktbox framework, LaTeX, semantic color design, highlight boxes, modular design
85
86 \end{keywords}
87
88
89 %% Introduction
90 \section{Introduction}
91 \label{sec:introduction}
92 Scientific communication has expanded beyond the traditional written manuscript into diverse media, including journals, conference proceedings, academic posters, and digital presentations. Across these formats, clarity of exposition and the ability to emphasize core findings remain essential. Although \LaTeX{} has long been the standard for scholarly publishing, existing class and template files focus primarily on layout compliance rather than mechanisms for structured emphasis. Authors are therefore left with improvised methods to highlight contributions, often through ad-hoc colored boxes or informal annotations that lack consistency, portability, and reproducibility.
93
94 This situation creates significant limitations for effective knowledge dissemination. Readers are required to parse dense technical text without visual cues for prioritization. Authors expend effort duplicating or modifying formatting code that frequently breaks when reused across venues. Editors and reviewers lack standardized cues for locating central contributions, findings, or limitations. The problem extends beyond manuscripts: academic posters require compact and visually distinct summaries, while beamer presentations demand structured elements that capture attention and facilitate audience recall. The absence of a unified framework for presenting highlighted content thus constrains scientific communication at multiple levels.
95
96 The \texttt{ktbox} framework addresses this gap by introducing a modular, reusable, and template-agnostic system for thematic highlight boxes. Implemented as a suite of packages, it separates stylistic design from logical structure, ensuring portability across article, poster, and beamer formats. By providing environments for key insights, reviewer–author dialogues, and thematic palettes, the framework enables authors to embed pedagogical and communicative clarity directly within their documents. Its design positions it not merely as a convenience tool but as a technical contribution to the infrastructure of scientific writing, enhancing accessibility, reproducibility, and long-term impact.
97
98
99 %% Framework
100 \section{Framework}
101 \label{sec:framework}
102 The \texttt{ktbox} framework is composed of three interlinked style files: \texttt{ktbox.sty}, \texttt{ktcolor.sty}, and \texttt{ktorcid.sty}. Each file provides a distinct functionality while maintaining modularity. The design principle is to ensure clear separation of concerns: logical environments for highlight boxes, thematic palettes for stylistic consistency, and author metadata integration. This modularity allows compatibility with major document classes, including \texttt{IEEEtran}, \texttt{acmart}, \texttt{iclr conference}, \texttt{article}, poster formats, and \texttt{beamer} presentations.
103
104 \begin{figure}[t]
105 \centering
106 \scalebox{0.75}{%
107 \begin{tikzpicture}[>=latex, thick, font=\small]
108 \usetikzlibrary{arrows.meta,decorations.pathreplacing}
109
110 % Styles with ktcolor palette
111 \tikzstyle{pkg}=[
112 draw,
113 rounded corners,
114 minimum width=3.5cm,
115 minimum height=1cm,
116 align=center,
117 fill=ktblue-bg,
118 draw=ktblue-border
119 ]
120 \tikzstyle{main}=[
121 draw,
122 rounded corners,
123 minimum width=4.5cm,
124 minimum height=1cm,
125 align=center,
126 fill=ktorange-bg,
127 draw=ktorange-border
128 ]
129 \tikzstyle{aux}=[
130 draw,
131 rounded corners,
132 minimum width=3.5cm,
133 minimum height=1cm,
134 align=center,
135 fill=ktcyan-bg,
136 draw=ktcyan-border
137 ]
138 \tikzstyle{outnode}=[
139 draw,
140 rounded corners,
141 minimum width=3cm,
142 minimum height=0.9cm,
143 align=center,
144 fill=ktgray-bg,
145 draw=ktgray-border
146 ]
147 \tikzstyle{arrow}=[-{Latex[length=3mm,width=2mm]}, very thick, draw=ktgray-border]
148
149 % Nodes
150 \node[pkg] (ktcolor) {\texttt{ktcolor.sty}\\{\footnotesize Semantic palettes}};
151 \node[pkg, right=3cm of ktcolor] (ktbox) {\texttt{ktbox.sty}\\{\footnotesize Structural boxes}};
152 \node[main, right=3cm of ktbox] (maintex) {\texttt{main.tex}\\{\footnotesize User document}};
153 \node[aux, below=2cm of maintex] (ktorcid) {\texttt{ktorcid.sty}\\{\footnotesize ORCID integration}};
154
155 % Outputs
156 \node[outnode, right=1.5cm of maintex, yshift=1.5cm] (article) {Article};
157 \node[outnode, right=1.5cm of maintex] (poster) {Poster};
158 \node[outnode, right=1.5cm of maintex, yshift=-1.5cm] (ppt) {PPT};
159
160 % Arrows
161 \draw[arrow] (ktcolor) -- (ktbox);
162 \draw[arrow] (ktbox) -- (maintex);
163 \draw[arrow] (ktorcid.north) -- (maintex.south);
164 \draw[arrow] (maintex.east) -- ++(1.1,0);
165
166 % Curly brace grouping outputs (flipped, close to main.tex)
167 \draw[decorate,decoration={brace,amplitude=10pt},thick,draw=ktgray-border]
168 (ppt.south west) -- (article.north west);
169
170 % Annotations (soft gray text)
171 \node[align=left, text=ktgray-border, font=\scriptsize, above=0.2cm of ktcolor] {Defined in Sec.~\ref{sec:semantic-color-design}};
172 \node[align=left, text=ktgray-border, font=\scriptsize, above=0.2cm of ktbox] {See Sec.~\ref{sec:extendability-and-modularity}};
173 \node[align=left, text=ktgray-border, font=\scriptsize, below=0.2cm of ktorcid] {Details in App.~\ref{sec:orcid}};
174 \end{tikzpicture}}
175 \caption[ktbox framework workflow]{Dependency workflow of the \texttt{ktbox} framework, annotated with semantic color design, structural environments, and ORCID integration. Outputs (Article, Poster, PPT) are grouped under a unified brace.}
176 \end{figure}
177
178
179 \subsection{Structural Components}
180 \label{sec:structural-components}
181 The structural design of the \texttt{ktbox} framework builds directly on the flexibility of the \texttt{tcolorbox} package. Rather than introducing new syntax or documentation overhead, the framework reuses the established key–value interface of \texttt{tcolorbox}, making the environments intuitive for LaTeX users who are already familiar with its ecosystem. This approach allows authors to immediately apply theming and layout keys without learning a separate layer of abstractions.
182
183 Three core environments are defined: \texttt{ktbox}, \texttt{ktboxnumbered}, and \texttt{ktboxwide}. The standard \texttt{ktbox} provides a titled box with optional theming, suitable for concise highlights. The \texttt{ktboxnumbered} environment introduces automatic numbering for key takeaways, incrementing counters consistently across the document. This mechanism ensures structured presentation of recurring insights, while preserving compatibility with manual titles. In practice, it behaves as a hybrid between a highlight box and a titled note, aligning technical summaries with pedagogical clarity. Detailed usage examples are included in Appendix~\ref{sec:structural-numbered}.
184
185 The \texttt{ktboxwide} variant extends across the page width, removing the bubble title and adopting a flat top style. This design is particularly suited for manuscripts where visual balance requires a minimal header or where wide content such as tables, enumerations, or code listings need to be integrated without misalignment. Since it inherits \texttt{tcolorbox}’s breakable behavior, page breaks are handled gracefully, while spacing adjustments can be achieved using \verb|\vspace| commands if additional separation from surrounding text is needed.
186
187 A notable strength of the framework is its support for multi-column layouts. Both the standard and wide environments can be embedded in \texttt{minipage} structures, enabling two- and three-column arrangements for comparative displays. This feature allows authors to present metrics, figures, or parallel arguments with clarity, and is illustrated in Appendix~\ref{sec:structural-multicol}. The boxes also support nested environments, permitting the inclusion of tables, itemized lists, or codeblocks within a styled container.
188
189 By extending \texttt{tcolorbox} natively rather than redefining its mechanics, the structural layer of the framework achieves a balance between flexibility and consistency. Authors can seamlessly combine highlight boxes, numbered insights, and wide-format containers, ensuring uniform design across diverse publication contexts without sacrificing the expressive range of LaTeX.
190
191 \subsection{Semantic Color Design}
192 \label{sec:semantic-color-design}
193 The \texttt{ktcolor} package is designed around semantic mapping of colors rather than ad-hoc stylistic choices. Each palette defines roles such as \texttt{-bg} for background, \texttt{-title} for headings, \texttt{-border} for framing, and \texttt{-titlebox} for secondary contrast. This abstraction ensures that highlight environments maintain a coherent visual identity even when themes are changed or adapted for different publication contexts.
194
195 \textbf{Choice of color codes.} Modern hex and RGB values are employed to guarantee consistency across digital and print outputs. Lighter palettes are based on high-contrast, pastel tones that maximize legibility on white paper or PDF backgrounds, while darker palettes use muted, desaturated hues to reduce glare during presentations. Colors are selected to balance saturation and luminance: bright shades are softened into pastels for readability (e.g., \#FFEBEE for \texttt{ktred-bg}), and darker backgrounds are complemented with lighter text tones for clarity (e.g., \#1F2A36 for \texttt{ktblue-bg-dark}).
196
197 \textbf{Dual light and dark themes.} The framework explicitly supports both light and dark modes. Light themes are suited for printed manuscripts and PDF reading, where white backgrounds dominate. Dark themes address on-screen viewing in slides or posters, offering reduced brightness and visual comfort. The semantic mapping guarantees that a highlight box tagged as “key insight” retains its design role whether presented in light or dark mode.
198
199 \textbf{Design aesthetics.} The visual philosophy emphasizes minimalism and consistency. Rounded corners, subtle shading, and neutral gray anchors are used to enhance readability without introducing clutter. Borders employ slightly darker shades of the primary hue, producing contrast while preserving harmony. This structure enables institutions, journals, or research groups to easily adopt or extend the palette to establish distinctive visual branding.
200
201 By combining semantic abstraction, carefully curated color codes, dual-mode themeing, and minimalist aesthetics, \texttt{ktcolor} elevates color from a decorative choice into a structured component of scientific communication. This approach ensures that the \texttt{ktbox} framework remains accessible, visually clear, and reproducible across articles, posters, and presentations.
202
203 \subsection{Extendability and Modularity}
204 \label{sec:extendability-and-modularity}
205 A defining property of the \texttt{ktbox} framework is its modular and scalable design, achieved through a strict separation of concerns. The color definitions in \texttt{ktcolor.sty} are fully independent of the structural components in \texttt{ktbox.sty}, which allows authors to extend or replace either layer without affecting the other. New color themes can be introduced seamlessly, while the \texttt{ktcolor} package may also be used in isolation when highlight boxes are not required, since it is a self-contained package depending only on \texttt{xcolor} (\verb|\RequirePackage[table,dvipsnames]{xcolor}|). At the same time, careful attention is paid to dependency management: although \texttt{tcolorbox} is not loaded by many standard \texttt{.cls} files, custom classes may introduce conflicting settings. The framework mitigates these risks by keeping theme definitions encapsulated in \texttt{ktcolor.sty} and invoking \texttt{tcolorbox} only where necessary. This separation of color palettes from structural logic ensures that the framework remains robust, portable, and straightforward to extend across articles, posters, and presentation contexts.
206
207 \textbf{Independent utilities.} In addition to the structural and color components, the framework includes lightweight standalone modules such as \texttt{ktorcid}. This helper provides author metadata integration through ORCID identifiers, introducing two commands: \verb|\orcid| for rendering a full linked identifier and \verb|\orcidicon| for inserting a compact superscript icon. Since it depends only on \texttt{hyperref} and \texttt{orcidlink}, the module can be adopted independently of the rest of the framework, reinforcing the philosophy of modularity and ease of integration and is illustrated in Appendix~\ref{sec:orcid}.
208
209
210 %% Discussion and Future Work
211 \section{Discussion and Future Work}
212 \label{sec:discussion-and-future-work}
213 The modular philosophy of the \texttt{ktbox} framework opens up natural opportunities for extension beyond the current highlight boxes and palettes. One immediate direction is the creation of custom \texttt{ktforest} environments layered on top of the \texttt{forest} package, enabling taxonomies to be rendered with semantic colors that remain consistent with the overall theme and avoiding the need for ad-hoc styling when visualizing hierarchical structures such as dataset families or model categories. In parallel, the idea of \texttt{kttables} emerges as a convenience wrapper for tabular design, allowing border, fill, and text colors to be applied thematically without requiring authors to manually embed color macros for each cell or rule. Both extensions reinforce the central principle of abstraction: separating stylistic intent from implementation detail so that the same semantic layer that governs boxes can seamlessly inform diagrams and tables, thereby broadening the framework into a coherent ecosystem for structured, theme-aware scientific authoring.
214
215
216 %% Conclusion
217 \section{Conclusion}
218 \label{sec:conclusion}
219 The \texttt{ktbox} framework establishes a principled approach to styling in scientific authoring by isolating color semantics, structural box logic, and auxiliary utilities into coherent modules that remain portable across diverse document classes. Its design ensures that highlight environments can be flexibly themed, scaled into numbered or wide variants, and integrated into multi-column layouts while maintaining consistency of appearance and behavior. By keeping dependencies minimal and responsibilities clearly separated, the framework not only avoids conflicts with existing class files but also positions itself as an extensible foundation that can absorb future additions such as semantic forests and thematic tables. In doing so, it shifts color and structure from ad-hoc embellishments into deliberate, reusable components of scholarly communication.
220
221
222 %% Acknowledgment
223 \section*{Acknowledgment}
224 This work was supported by C.E. Info Systems Ltd.\ (MapmyIndia) under the Industry Mentored Ph.D.\ in Advanced and Cutting-edge Technologies (PhD IMPACT) programme. The present contribution does not make use of proprietary code, data, or content from MapmyIndia. Instead, it extends auxiliary outcomes of the primary research activities, with the developed artifacts being released to the scientific community for broader use in scholarly communication.
225
226
227 \clearpage
228 \appendix
229 \section{User Guide and Illustrations}
230 \label{sec:user-guide}
231 This appendix consolidates practical examples of the \texttt{ktbox} framework. It includes environment definitions, code snippets, and theme palettes. Each subsection corresponds to specific design and technical aspects described in Section~\ref{sec:framework}, allowing readers to directly connect conceptual discussions with concrete implementations. This document introduces custom key takeaway boxes. Each box supports optional `title' and `theme' parameters. Dark themes use the `-dark' suffix (e.g., `red-dark').
232
233 \begin{itemize}
234 \item \textbf{\texttt{ktbox}}: Standard titled box with theming.
235 \item \textbf{\texttt{ktboxnumbered}}: Auto-numbered version for structured insights.
236 \item \textbf{\texttt{ktboxwide}}: Full-width layout for high-emphasis content.
237 \end{itemize}
238
239 \subsection{Basic Highlight Box}
240 \label{sec:basic-box}
241 The fundamental environment for emphasis is the \texttt{ktbox}, which supports optional titles and theming.
242 \vspace*{0.75em}
243
244 \begin{ktbox}[title={Key Insight}]
245 This is an example of a highlighted message.
246 \end{ktbox}
247
248 \begin{ktbox}[theme=gray]
249 \begin{codeblock}
250 \vspace*{0.75em}
251 \begin{ktbox}[title={Key Insight}]
252 This is an example of a highlighted message.
253 \end{ktbox}
254 \end{codeblock}
255 \end{ktbox}
256
257 \subsection{Response Box Variation}
258 \label{sec:response-box}
259 The \texttt{ktbox} environment enables structured exchanges, such as author–reviewer dialogue.
260 \vspace*{0.75em}
261 \begin{ktbox}[title={Reviewer Comment}]
262 This variation is designed for structured dialogue between authors and reviewers.
263 \end{ktbox}
264
265 \begin{ktbox}[theme=gray]
266 \begin{codeblock}
267 \begin{ktbox}[title={Reviewer Comment}]
268 This variation is designed for structured dialogue between authors and reviewers.
269 \end{ktbox}
270 \end{codeblock}
271 \end{ktbox}
272
273
274 \subsection{Auto-Numbered Boxes}
275 \label{sec:structural-numbered}
276 The \texttt{ktboxnumbered} environment introduces built-in counters via \verb|\thetcbcounter|. This allows authors to present structured takeaways that are automatically numbered, ensuring consistency across sections. It behaves similarly to \texttt{ktbox}, except that the title argument is mandatory.
277
278 \begin{ktboxnumbered}{Summary}
279 Key observations are auto-numbered to improve traceability.
280 \end{ktboxnumbered}
281
282 \begin{ktbox}[theme=gray]
283 \begin{codeblock}
284 \begin{ktboxnumbered}{Summary}
285 Key observations are auto-numbered to improve traceability.
286 \end{ktboxnumbered}
287 \end{codeblock}
288 \end{ktbox}
289
290 \subsection{Wide Layout Boxes}
291 \label{sec:structural-wide}
292 The \texttt{ktboxwide} environment omits the bubble title bar, making it ideal for manuscripts where seamless integration with body text is preferred. It expands to the full column width and avoids visual clutter while still retaining thematic consistency.
293
294 \begin{ktboxwide}[theme=orange]
295 This wide box is best suited for papers without bubble titles.
296 \end{ktboxwide}
297
298 \begin{ktbox}[theme=gray]
299 \begin{codeblock}
300 \begin{ktboxwide}[theme=orange]
301 This wide box is best suited for papers without bubble titles.
302 \end{ktboxwide}
303 \end{codeblock}
304 \end{ktbox}
305
306 \subsection{Multi-Column Layouts}
307 \label{sec:structural-multicol}
308 By nesting boxes inside \texttt{minipage} environments wrapped in a \texttt{tcolorbox} container, the framework supports two- and three-column compositions. This is particularly useful for comparative metrics, side-by-side insights, or poster layouts.
309
310 \textbf{Multi-Column Usage: Two Column Layout}
311 \begin{tcolorbox}[enhanced, sharp corners=south, colframe=white, colback=white, boxrule=0pt, top=0pt, bottom=0pt, left=0pt, right=0pt]
312 \begin{minipage}[t]{0.48\textwidth}
313 \begin{ktbox}[title=Model Insight]
314 MobileNetV3 offers a balanced trade-off for edge inference.
315 \end{ktbox}
316 \end{minipage}\hfill
317 \begin{minipage}[t]{0.48\textwidth}
318 \begin{ktbox}[theme=green, title=Camera Insight]
319 Cam-1 and Cam-4 provide diverse modality views.
320 \end{ktbox}
321 \end{minipage}
322 \end{tcolorbox}
323
324 \begin{ktbox}[theme=gray]
325 \begin{codeblock}
326 \begin{tcolorbox}[enhanced, sharp corners=south, colframe=white, colback=white, boxrule=0pt, top=0pt, bottom=0pt, left=0pt, right=0pt]
327 \begin{minipage}[t]{0.48\textwidth}
328 \begin{ktbox}[title=Model Insight]
329 MobileNetV3 offers a balanced trade-off for edge inference.
330 \end{ktbox}
331 \end{minipage}\hfill
332 \begin{minipage}[t]{0.48\textwidth}
333 \begin{ktbox}[theme=green, title=Camera Insight]
334 Cam-1 and Cam-4 provide diverse modality views.
335 \end{ktbox}
336 \end{minipage}
337 \end{tcolorbox}
338 \end{codeblock}
339 \end{ktbox}
340
341 \textbf{Multi-Column Usage: Three Column Layout}
342 \begin{tcolorbox}[enhanced, sharp corners=south, colframe=white, colback=white, boxrule=0pt, top=0pt, bottom=0pt, left=0pt, right=0pt]
343 \begin{minipage}[t]{0.32\textwidth}
344 \begin{ktbox}[theme=blue, title=Speed]
345 MobileNetV2: \SI{165}{fps}
346 \end{ktbox}
347 \end{minipage}\hfill
348 \begin{minipage}[t]{0.32\textwidth}
349 \begin{ktbox}[theme=orange, title=Accuracy]
350 ResNet50: \SI{91.3}{\percent}
351 \end{ktbox}
352 \end{minipage}\hfill
353 \begin{minipage}[t]{0.32\textwidth}
354 \begin{ktbox}[theme=red, title=Latency]
355 Inference latency: \SI{13}{ms}
356 \end{ktbox}
357 \end{minipage}
358 \end{tcolorbox}
359
360 \begin{ktbox}[theme=gray]
361 \begin{codeblock}
362 \begin{tcolorbox}[enhanced, sharp corners=south, colframe=white, colback=white, boxrule=0pt, top=0pt, bottom=0pt, left=0pt, right=0pt]
363 \begin{minipage}[t]{0.32\textwidth}
364 \begin{ktbox}[theme=blue, title=Speed]
365 MobileNetV2: \SI{165}{fps}
366 \end{ktbox}
367 \end{minipage}\hfill
368 \begin{minipage}[t]{0.32\textwidth}
369 \begin{ktbox}[theme=orange, title=Accuracy]
370 ResNet50: \SI{91.3}{\percent}
371 \end{ktbox}
372 \end{minipage}\hfill
373 \begin{minipage}[t]{0.32\textwidth}
374 \begin{ktbox}[theme=red, title=Latency]
375 Inference latency: \SI{13}{ms}
376 \end{ktbox}
377 \end{minipage}
378 \end{tcolorbox}
379 \end{codeblock}
380 \end{ktbox}
381
382
383 \subsection{Semantic Palettes}
384 \label{sec:semantic-palettes}
385 Examples of semantic palettes, as discussed in Section~\ref{sec:semantic-color-design}, are shown here. The demonstration includes variations defined in \texttt{ktcolor.sty}, illustrating how background, title, border, and titlebox roles are mapped.
386
387 \subsection{Light and Dark Themes}
388 \label{sec:light-dark}
389 The framework explicitly supports both light and dark themes, enabling consistent appearance across print and on-screen settings. Tables~\ref{tab:light-themes} and \ref{tab:dark-themes} summarize the available palettes.
390
391 \begin{table}[ht]
392 \centering
393 \renewcommand{\arraystretch}{1.15}
394 \arrayrulecolor{ktblue-border}
395
396 \begin{subtable}[t]{0.48\textwidth}
397 \centering
398 \caption{\textbf{Light Themes (Default)}}
399 \label{tab:light-themes}
400
401 \scriptsize
402 \begin{tabular}{@{}lllll@{}}
403 \toprule
404 \rowcolor{ktblue-titlebox}
405 \textcolor{ktblue-title}{\textbf{Theme}} &
406 \textcolor{ktblue-title}{\textbf{Title}} &
407 \textcolor{ktblue-title}{\textbf{Border}} &
408 \textcolor{ktblue-title}{\textbf{TitleBox}} &
409 \textcolor{ktblue-title}{\textbf{BG}} \\
410 \midrule
411 gray & \cellcolor{ktgray-title} & \cellcolor{ktgray-border} & \cellcolor{ktgray-titlebox} & \cellcolor{ktgray-bg} \\
412 blue & \cellcolor{ktblue-title} & \cellcolor{ktblue-border} & \cellcolor{ktblue-titlebox} & \cellcolor{ktblue-bg} \\
413 green & \cellcolor{ktgreen-title} & \cellcolor{ktgreen-border} & \cellcolor{ktgreen-titlebox} & \cellcolor{ktgreen-bg} \\
414 yellow & \cellcolor{ktyellow-title} & \cellcolor{ktyellow-border} & \cellcolor{ktyellow-titlebox} & \cellcolor{ktyellow-bg} \\
415 orange & \cellcolor{ktorange-title} & \cellcolor{ktorange-border} & \cellcolor{ktorange-titlebox} & \cellcolor{ktorange-bg} \\
416 red & \cellcolor{ktred-title} & \cellcolor{ktred-border} & \cellcolor{ktred-titlebox} & \cellcolor{ktred-bg} \\
417 \bottomrule
418 \end{tabular}
419 \end{subtable}
420 \hfill
421 \begin{subtable}[t]{0.48\textwidth}
422 \centering
423 \caption{\textbf{Dark Mode Themes}}
424 \label{tab:dark-themes}
425 \scriptsize
426 \begin{tabular}{@{}llllll@{}}
427 \toprule
428 \rowcolor{ktblue-titlebox}
429 \textcolor{ktblue-title}{\textbf{Theme}} &
430 \textcolor{ktblue-title}{\textbf{Title}} &
431 \textcolor{ktblue-title}{\textbf{Border}} &
432 \textcolor{ktblue-title}{\textbf{TitleBox}} &
433 \textcolor{ktblue-title}{\textbf{Text}} &
434 \textcolor{ktblue-title}{\textbf{BG}} \\
435 \midrule
436 gray & \cellcolor{ktgray-title-dark} & \cellcolor{ktgray-border-dark} & \cellcolor{ktgray-titlebox-dark} & \cellcolor{ktgray-text-dark} & \cellcolor{ktgray-bg-dark} \\
437 blue & \cellcolor{ktblue-title-dark} & \cellcolor{ktblue-border-dark} & \cellcolor{ktblue-titlebox-dark} & \cellcolor{ktblue-text-dark} & \cellcolor{ktblue-bg-dark} \\
438 green & \cellcolor{ktgreen-title-dark} & \cellcolor{ktgreen-border-dark} & \cellcolor{ktgreen-titlebox-dark} & \cellcolor{ktgreen-text-dark} & \cellcolor{ktgreen-bg-dark} \\
439 yellow & \cellcolor{ktyellow-title-dark} & \cellcolor{ktyellow-border-dark} & \cellcolor{ktyellow-titlebox-dark} & \cellcolor{ktyellow-text-dark} & \cellcolor{ktyellow-bg-dark} \\
440 orange & \cellcolor{ktorange-title-dark} & \cellcolor{ktorange-border-dark} & \cellcolor{ktorange-titlebox-dark} & \cellcolor{ktorange-text-dark} & \cellcolor{ktorange-bg-dark} \\
441 red & \cellcolor{ktred-title-dark} & \cellcolor{ktred-border-dark} & \cellcolor{ktred-titlebox-dark} & \cellcolor{ktred-text-dark} & \cellcolor{ktred-bg-dark} \\
442 \bottomrule
443 \end{tabular}
444 \end{subtable}
445
446 \arrayrulecolor{black}
447 \end{table}
448
449 \subsection{Design Aesthetics and Layouts}
450 \label{sec:design-aesthetics}
451 Illustrations of minimalism in layout, use of rounded corners, and multi-column arrangements are provided here. These reinforce the design philosophy described in Section~\ref{sec:semantic-color-design}.
452
453 \subsection{Highlight Boxes}
454 \label{sec:structural-boxes}
455 The core environments for emphasis are built on \texttt{tcolorbox}, extended with semantic theming. The standard \texttt{ktbox} supports both optional titles and themes, making it the most versatile choice for inline highlights.
456
457 \begin{ktbox}[theme=gray]
458 \begin{codeblock}
459 \begin{ktbox}[title={Model Insight}, theme=green]
460 This box combines a title with semantic theming.
461 \end{ktbox}
462 \end{codeblock}
463 \end{ktbox}
464
465
466 \subsection{With Theme}
467 \label{with-theme}
468 \vspace*{0.75em}
469
470 \begin{ktboxnumbered}[theme=red]{Insight}
471 MobileNetV3 achieves optimal real-time performance for embedded systems.
472 \end{ktboxnumbered}
473
474 \begin{ktboxnumbered}[theme=orange]{Insight}
475 MobileNetV3 achieves optimal real-time performance for embedded systems.
476 \end{ktboxnumbered}
477
478 \begin{ktboxnumbered}[theme=green]{Insight}
479 MobileNetV3 achieves optimal real-time performance for embedded systems.
480 \end{ktboxnumbered}
481
482 \begin{ktboxnumbered}[theme=yellow]{Insight}
483 MobileNetV3 achieves optimal real-time performance for embedded systems.
484 \end{ktboxnumbered}
485
486 \begin{ktboxnumbered}[theme=blue]{Insight}
487 MobileNetV3 achieves optimal real-time performance for embedded systems.
488 \end{ktboxnumbered}
489
490 \begin{ktboxnumbered}[theme=cyan]{Insight}
491 MobileNetV3 achieves optimal real-time performance for embedded systems.
492 \end{ktboxnumbered}
493
494 \begin{ktboxnumbered}[theme=purple]{Insight}
495 MobileNetV3 achieves optimal real-time performance for embedded systems.
496 \end{ktboxnumbered}
497
498 \begin{ktboxnumbered}[theme=magenta]{Insight}
499 MobileNetV3 achieves optimal real-time performance for embedded systems.
500 \end{ktboxnumbered}
501
502 \begin{ktboxnumbered}[theme=gray]{Insight}
503 MobileNetV3 achieves optimal real-time performance for embedded systems.
504 \end{ktboxnumbered}
505
506 \begin{ktboxnumbered}[theme=white]{Insight}
507 MobileNetV3 achieves optimal real-time performance for embedded systems.
508 \end{ktboxnumbered}
509
510 \subsection{ORCID Integration}
511 \label{sec:orcid}
512 The \texttt{ktorcid} package extends author metadata by embedding ORCID identifiers with icons.
513
514 \begin{ktbox}[theme=gray]
515 \begin{codeblock}
516 \author{Bhaskar Mangal\orcidicon{0000-0002-8126-3528}}
517 \end{codeblock}
518 \end{ktbox}
519
520
521 \end{document}