| 1 |
%% |
| 2 |
%% This is file `lwarp-awesomebox.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `awesomebox') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\LWR@ProvidesPackagePass{awesomebox}[2019/07/27] |
| 19 |
\newcommand*{\LWR@awesomebox@boxborders}{}% |
| 20 |
\newcommand*{\LWR@awesomebox@contentsborders}{}% |
| 21 |
|
| 22 |
\newcommand*{\LWR@awesomebox@ruleborders}{% |
| 23 |
border-top: 1px solid black ; |
| 24 |
border-bottom: 1px solid black% |
| 25 |
} |
| 26 |
|
| 27 |
\RenewDocumentCommand \awesomebox { O{abvrulecolor} O{} o m m m +m }{% |
| 28 |
\begin{awesomeblock}[#1][#2][#3]{#4}{#5}{#6} |
| 29 |
#7 |
| 30 |
\end{awesomeblock} |
| 31 |
} |
| 32 |
|
| 33 |
\RenewDocumentEnvironment{awesomeblock}{ O{abvrulecolor} O{} o m m m } |
| 34 |
{% |
| 35 |
\LWR@forceminwidth{#4}% |
| 36 |
\convertcolorspec{named}{#1}{HTML}\LWR@tempcolor% |
| 37 |
\renewcommand*{\LWR@awesomebox@boxborders}{}% |
| 38 |
\renewcommand*{\LWR@awesomebox@contentsborders}{}% |
| 39 |
\ifdefstrequal{\abShortLine}{#2}{% |
| 40 |
\renewcommand*{\LWR@awesomebox@contentsborders}{\LWR@awesomebox@ruleborders}% |
| 41 |
}{}% |
| 42 |
\ifdefstrequal{\abLongLine}{#2}{% |
| 43 |
\renewcommand*{\LWR@awesomebox@boxborders}{\LWR@awesomebox@ruleborders}% |
| 44 |
}{}% |
| 45 |
\begin{BlockClass}[\LWR@awesomebox@boxborders]{awesomebox} |
| 46 |
\begin{BlockClass}[% |
| 47 |
margin-left: 2\% ; |
| 48 |
vertical-align: top |
| 49 |
]{minipage} |
| 50 |
\color{#6}\Huge #5 |
| 51 |
\end{BlockClass} |
| 52 |
\begin{BlockClass}[% |
| 53 |
width:75\% ; |
| 54 |
vertical-align: top ; |
| 55 |
padding-left: 1em ; |
| 56 |
\LWR@awesomebox@contentsborders ; |
| 57 |
border-left: \LWR@printlength{\LWR@atleastonept} % |
| 58 |
solid \LWR@origpound\LWR@tempcolor% |
| 59 |
]{minipage} |
| 60 |
\IfValueTF{#3}{#3\newline}{} |
| 61 |
} |
| 62 |
{% |
| 63 |
\end{BlockClass} |
| 64 |
\end{BlockClass} |
| 65 |
} |
| 66 |
|
| 67 |
\endinput |
| 68 |
%% |
| 69 |
%% End of file `lwarp-awesomebox.sty'. |