1\documentclass[12pt]{article}
2\usepackage{xcolor}
3\usepackage{tcolorbox}
4\usepackage{enumitem}
5\usepackage{titlesec}
6
7% Custom colors
8\definecolor{sublblue}{HTML}{2563EB}
9\definecolor{sublgray}{HTML}{6B7280}
10\definecolor{notebg}{HTML}{EFF6FF}
11\definecolor{warnbg}{HTML}{FEF3C7}
12
13% Custom section styling
14\titleformat{\section}
15 {\Large\bfseries\color{sublblue}}
16 {\thesection}{1em}{}
17\titleformat{\subsection}
18 {\large\bfseries\color{sublblue!70!black}}
19 {\thesubsection}{1em}{}
20
21\title{Styling and Customization}
22\author{sublimated}
23\date{}
24
25\begin{document}
26\maketitle
27
28\section{Text Colors}
29
30{\color{red} Red text}, {\color{blue} blue text}, {\color{sublblue} custom blue}.
31
32\textcolor{green!50!black}{Dark green} using color mixing.
33
34\colorbox{yellow!20}{Highlighted text} with background color.
35
36\section{Custom Environments}
37
38\begin{tcolorbox}[colback=notebg, colframe=sublblue, title=Note]
39 sublimated compiles LaTeX to both PDF and HTML. The HTML view supports
40 text selection, search, and per-block comments.
41\end{tcolorbox}
42
43\begin{tcolorbox}[colback=warnbg, colframe=orange!80!black, title=Warning]
44 If LaTeXML cannot process your document (exotic packages, custom macros),
45 sublimated falls back to SVG page rendering from the PDF.
46\end{tcolorbox}
47
48\begin{tcolorbox}[colback=white, colframe=sublgray, sharp corners]
49 A plain box with sharp corners and gray border. Good for code examples
50 or callout blocks.
51\end{tcolorbox}
52
53\section{Font Sizes}
54
55{\tiny tiny}
56{\scriptsize scriptsize}
57{\footnotesize footnotesize}
58{\small small}
59{\normalsize normalsize}
60{\large large}
61{\Large Large}
62{\LARGE LARGE}
63{\huge huge}
64
65\section{Font Families}
66
67{\rmfamily Roman (serif) --- default body text.}
68
69{\sffamily Sans-serif --- often used for titles and headings.}
70
71{\ttfamily Typewriter (monospace) --- for code and paths.}
72
73\section{Custom List Styles}
74
75\begin{itemize}[label=$\triangleright$, itemsep=2pt]
76 \item Custom bullet character
77 \item Compact spacing
78 \item Using \texttt{enumitem} package
79\end{itemize}
80
81\begin{enumerate}[label=\textbf{Step \arabic*.}, leftmargin=*]
82 \item Push your \texttt{.tex} file to sublimated
83 \item Wait for compilation (10--30 seconds)
84 \item View the HTML rendering on sublimated.com
85 \item Download the PDF for submission
86\end{enumerate}
87
88\section{Rules and Dividers}
89
90\noindent\rule{\textwidth}{0.4pt}
91
92Content between horizontal rules.
93
94\noindent\rule{\textwidth}{1pt}
95
96\section{Custom Commands}
97
98Define reusable commands:
99
100\newcommand{\subl}{\textsc{sublimated}}
101\newcommand{\code}[1]{\texttt{\small #1}}
102\newcommand{\highlight}[1]{\colorbox{yellow!30}{#1}}
103
104\subl{} renders \code{.tex} files as HTML. You can \highlight{highlight important text}
105with custom commands.
106
107\end{document}