forked from mikepsinn/disease-eradication-plan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallout-bw.tex
More file actions
29 lines (27 loc) · 1.38 KB
/
callout-bw.tex
File metadata and controls
29 lines (27 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Black and white callout styling for Quarto PDFs
% Overrides Quarto's colored callout styles with grayscale
% Uses \AtBeginDocument to ensure colors are applied AFTER Quarto's
% filter-injected \definecolor commands in the preamble.
% Must redefine BOTH base colors (used for colbacktitle) AND
% -frame colors (used for colframe) since Quarto 1.8+ uses inline
% tcolorbox options rather than named styles.
\makeatletter
\AtBeginDocument{
\@ifpackageloaded{tcolorbox}{%
% Override base callout colors (used for colbacktitle with !10!white)
\definecolor{quarto-callout-color}{HTML}{707070}
\definecolor{quarto-callout-note-color}{HTML}{5a5a5a}
\definecolor{quarto-callout-important-color}{HTML}{4a4a4a}
\definecolor{quarto-callout-warning-color}{HTML}{5a5a5a}
\definecolor{quarto-callout-tip-color}{HTML}{6a6a6a}
\definecolor{quarto-callout-caution-color}{HTML}{4a4a4a}
% Override frame colors (used for colframe - the border)
\definecolor{quarto-callout-color-frame}{HTML}{707070}
\definecolor{quarto-callout-note-color-frame}{HTML}{5a5a5a}
\definecolor{quarto-callout-important-color-frame}{HTML}{4a4a4a}
\definecolor{quarto-callout-warning-color-frame}{HTML}{5a5a5a}
\definecolor{quarto-callout-tip-color-frame}{HTML}{6a6a6a}
\definecolor{quarto-callout-caution-color-frame}{HTML}{4a4a4a}
}{}% Do nothing if tcolorbox not loaded
}
\makeatother