|
| 1 | +% Options for packages loaded elsewhere |
| 2 | +\PassOptionsToPackage{unicode}{hyperref} |
| 3 | +\PassOptionsToPackage{hyphens}{url} |
| 4 | +\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} |
| 5 | +% |
| 6 | +\documentclass[ |
| 7 | + letterpaper, |
| 8 | + DIV=11, |
| 9 | + numbers=noendperiod]{scrartcl} |
| 10 | + |
| 11 | +\usepackage{amsmath,amssymb} |
| 12 | +\usepackage{iftex} |
| 13 | +\ifPDFTeX |
| 14 | + \usepackage[T1]{fontenc} |
| 15 | + \usepackage[utf8]{inputenc} |
| 16 | + \usepackage{textcomp} % provide euro and other symbols |
| 17 | +\else % if luatex or xetex |
| 18 | + \usepackage{unicode-math} |
| 19 | + \defaultfontfeatures{Scale=MatchLowercase} |
| 20 | + \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} |
| 21 | +\fi |
| 22 | +\usepackage{lmodern} |
| 23 | +\ifPDFTeX\else |
| 24 | + % xetex/luatex font selection |
| 25 | +\fi |
| 26 | +% Use upquote if available, for straight quotes in verbatim environments |
| 27 | +\IfFileExists{upquote.sty}{\usepackage{upquote}}{} |
| 28 | +\IfFileExists{microtype.sty}{% use microtype if available |
| 29 | + \usepackage[]{microtype} |
| 30 | + \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts |
| 31 | +}{} |
| 32 | +\makeatletter |
| 33 | +\@ifundefined{KOMAClassName}{% if non-KOMA class |
| 34 | + \IfFileExists{parskip.sty}{% |
| 35 | + \usepackage{parskip} |
| 36 | + }{% else |
| 37 | + \setlength{\parindent}{0pt} |
| 38 | + \setlength{\parskip}{6pt plus 2pt minus 1pt}} |
| 39 | +}{% if KOMA class |
| 40 | + \KOMAoptions{parskip=half}} |
| 41 | +\makeatother |
| 42 | +\usepackage{xcolor} |
| 43 | +\setlength{\emergencystretch}{3em} % prevent overfull lines |
| 44 | +\setcounter{secnumdepth}{-\maxdimen} % remove section numbering |
| 45 | +% Make \paragraph and \subparagraph free-standing |
| 46 | +\ifx\paragraph\undefined\else |
| 47 | + \let\oldparagraph\paragraph |
| 48 | + \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} |
| 49 | +\fi |
| 50 | +\ifx\subparagraph\undefined\else |
| 51 | + \let\oldsubparagraph\subparagraph |
| 52 | + \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} |
| 53 | +\fi |
| 54 | + |
| 55 | + |
| 56 | +\providecommand{\tightlist}{% |
| 57 | + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}\usepackage{longtable,booktabs,array} |
| 58 | +\usepackage{calc} % for calculating minipage widths |
| 59 | +% Correct order of tables after \paragraph or \subparagraph |
| 60 | +\usepackage{etoolbox} |
| 61 | +\makeatletter |
| 62 | +\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} |
| 63 | +\makeatother |
| 64 | +% Allow footnotes in longtable head/foot |
| 65 | +\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} |
| 66 | +\makesavenoteenv{longtable} |
| 67 | +\usepackage{graphicx} |
| 68 | +\makeatletter |
| 69 | +\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} |
| 70 | +\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} |
| 71 | +\makeatother |
| 72 | +% Scale images if necessary, so that they will not overflow the page |
| 73 | +% margins by default, and it is still possible to overwrite the defaults |
| 74 | +% using explicit options in \includegraphics[width, height, ...]{} |
| 75 | +\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} |
| 76 | +% Set default figure placement to htbp |
| 77 | +\makeatletter |
| 78 | +\def\fps@figure{htbp} |
| 79 | +\makeatother |
| 80 | + |
| 81 | +\KOMAoption{captions}{tableheading} |
| 82 | +\makeatletter |
| 83 | +\@ifpackageloaded{tcolorbox}{}{\usepackage[skins,breakable]{tcolorbox}} |
| 84 | +\@ifpackageloaded{fontawesome5}{}{\usepackage{fontawesome5}} |
| 85 | +\definecolor{quarto-callout-color}{HTML}{909090} |
| 86 | +\definecolor{quarto-callout-note-color}{HTML}{0758E5} |
| 87 | +\definecolor{quarto-callout-important-color}{HTML}{CC1914} |
| 88 | +\definecolor{quarto-callout-warning-color}{HTML}{EB9113} |
| 89 | +\definecolor{quarto-callout-tip-color}{HTML}{00A047} |
| 90 | +\definecolor{quarto-callout-caution-color}{HTML}{FC5300} |
| 91 | +\definecolor{quarto-callout-color-frame}{HTML}{acacac} |
| 92 | +\definecolor{quarto-callout-note-color-frame}{HTML}{4582ec} |
| 93 | +\definecolor{quarto-callout-important-color-frame}{HTML}{d9534f} |
| 94 | +\definecolor{quarto-callout-warning-color-frame}{HTML}{f0ad4e} |
| 95 | +\definecolor{quarto-callout-tip-color-frame}{HTML}{02b875} |
| 96 | +\definecolor{quarto-callout-caution-color-frame}{HTML}{fd7e14} |
| 97 | +\makeatother |
| 98 | +\makeatletter |
| 99 | +\@ifpackageloaded{caption}{}{\usepackage{caption}} |
| 100 | +\AtBeginDocument{% |
| 101 | +\ifdefined\contentsname |
| 102 | + \renewcommand*\contentsname{Table of contents} |
| 103 | +\else |
| 104 | + \newcommand\contentsname{Table of contents} |
| 105 | +\fi |
| 106 | +\ifdefined\listfigurename |
| 107 | + \renewcommand*\listfigurename{List of Figures} |
| 108 | +\else |
| 109 | + \newcommand\listfigurename{List of Figures} |
| 110 | +\fi |
| 111 | +\ifdefined\listtablename |
| 112 | + \renewcommand*\listtablename{List of Tables} |
| 113 | +\else |
| 114 | + \newcommand\listtablename{List of Tables} |
| 115 | +\fi |
| 116 | +\ifdefined\figurename |
| 117 | + \renewcommand*\figurename{Figure} |
| 118 | +\else |
| 119 | + \newcommand\figurename{Figure} |
| 120 | +\fi |
| 121 | +\ifdefined\tablename |
| 122 | + \renewcommand*\tablename{Table} |
| 123 | +\else |
| 124 | + \newcommand\tablename{Table} |
| 125 | +\fi |
| 126 | +} |
| 127 | +\@ifpackageloaded{float}{}{\usepackage{float}} |
| 128 | +\floatstyle{ruled} |
| 129 | +\@ifundefined{c@chapter}{\newfloat{codelisting}{h}{lop}}{\newfloat{codelisting}{h}{lop}[chapter]} |
| 130 | +\floatname{codelisting}{Listing} |
| 131 | +\newcommand*\listoflistings{\listof{codelisting}{List of Listings}} |
| 132 | +\makeatother |
| 133 | +\makeatletter |
| 134 | +\makeatother |
| 135 | +\makeatletter |
| 136 | +\@ifpackageloaded{caption}{}{\usepackage{caption}} |
| 137 | +\@ifpackageloaded{subcaption}{}{\usepackage{subcaption}} |
| 138 | +\makeatother |
| 139 | +\ifLuaTeX |
| 140 | + \usepackage{selnolig} % disable illegal ligatures |
| 141 | +\fi |
| 142 | +\usepackage{bookmark} |
| 143 | + |
| 144 | +\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available |
| 145 | +\urlstyle{same} % disable monospaced font for URLs |
| 146 | +\hypersetup{ |
| 147 | + pdftitle={Callout boxes}, |
| 148 | + colorlinks=true, |
| 149 | + linkcolor={blue}, |
| 150 | + filecolor={Maroon}, |
| 151 | + citecolor={Blue}, |
| 152 | + urlcolor={Blue}, |
| 153 | + pdfcreator={LaTeX via pandoc}} |
| 154 | + |
| 155 | +\title{Callout boxes} |
| 156 | +\author{} |
| 157 | +\date{} |
| 158 | + |
| 159 | +\begin{document} |
| 160 | +\maketitle |
| 161 | + |
| 162 | +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, opacityback=0, toptitle=1mm, rightrule=.15mm, colback=white, colframe=quarto-callout-note-color-frame, breakable, left=2mm, opacitybacktitle=0.6, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Note}, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, bottomrule=.15mm, arc=.35mm, titlerule=0mm, toprule=.15mm, leftrule=.75mm] |
| 163 | + |
| 164 | +Note that there are five types of callouts, including: \texttt{note}, |
| 165 | +\texttt{warning}, \texttt{important}, \texttt{tip}, and |
| 166 | +\texttt{caution}. |
| 167 | + |
| 168 | +\end{tcolorbox} |
| 169 | + |
| 170 | +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, opacityback=0, toptitle=1mm, rightrule=.15mm, colback=white, colframe=quarto-callout-tip-color-frame, breakable, left=2mm, opacitybacktitle=0.6, title=\textcolor{quarto-callout-tip-color}{\faLightbulb}\hspace{0.5em}{Tip}, colbacktitle=quarto-callout-tip-color!10!white, bottomtitle=1mm, bottomrule=.15mm, arc=.35mm, titlerule=0mm, toprule=.15mm, leftrule=.75mm] |
| 171 | + |
| 172 | +This should be an example of a callout with a caption. So add a caption! |
| 173 | + |
| 174 | +\end{tcolorbox} |
| 175 | + |
| 176 | +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, opacityback=0, toptitle=1mm, rightrule=.15mm, colback=white, colframe=quarto-callout-caution-color-frame, breakable, left=2mm, opacitybacktitle=0.6, title=\textcolor{quarto-callout-caution-color}{\faFire}\hspace{0.5em}{Expand To Learn About Collapse}, colbacktitle=quarto-callout-caution-color!10!white, bottomtitle=1mm, bottomrule=.15mm, arc=.35mm, titlerule=0mm, toprule=.15mm, leftrule=.75mm] |
| 177 | + |
| 178 | +This should be an example of a ``folded'' caution callout that can be |
| 179 | +expanded by the user. You can use \texttt{collapse="true"} to collapse |
| 180 | +it by default or \texttt{collapse="false"} to make a collapsible callout |
| 181 | +that is expanded by default. Try adding these to attributes. |
| 182 | + |
| 183 | +\end{tcolorbox} |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | +\end{document} |
0 commit comments