diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nostarch/nostarch.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/nostarch/nostarch.cls | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/nostarch/nostarch.cls b/Master/texmf-dist/tex/latex/nostarch/nostarch.cls index 2709e37d86e..fe9c247f0dd 100644 --- a/Master/texmf-dist/tex/latex/nostarch/nostarch.cls +++ b/Master/texmf-dist/tex/latex/nostarch/nostarch.cls @@ -37,7 +37,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{nostarch} -[2023/04/08 v2.1 Typesetting books for No Starch Press] +[2023/06/10 v2.2 Typesetting books for No Starch Press] \newif\ifnostarch@cfonts \nostarch@cfontstrue \DeclareOption{cfonts}{\nostarch@cfontstrue} @@ -67,7 +67,7 @@ fancyhdr, fancyvrb, booktabs, graphicx, listings, caption, makeidx, upquote, pifont, textcomp, xcolor, lmodern, nameref, float, amssymb, etoolbox, - setspace, marginnote, url} + setspace, marginnote, url, subfigure} \RequirePackage[framemethod=TikZ]{mdframed} \RequirePackage{soul} \RequirePackage[T1]{fontenc} @@ -732,9 +732,9 @@ \rightmargin0.5in\relax \leftmargin0.5in\relax}% \item\fontsize{9pt}{11pt}\selectfont}{\endlist} -\newenvironment{note}{% +\newenvironment{aside}[1]{% \list{\makebox[0pt][r]{\dogma \fontsize{7.5pt}{12pt} - \colorbox{black}{\textcolor{white}{\sonote{NOTE}}}\hspace{2em}}}{\listparindent0pt\relax + \colorbox{black}{\textcolor{white}{\sonote{#1}}}\hspace{2em}}}{\listparindent0pt\relax \topsep9\p@\relax \itemindent0\p@\relax \rightmargin0\p@\relax @@ -742,6 +742,8 @@ \labelwidth0\p@\relax \labelsep0\p@}% \item\itshape}{\vspace{-3pt}\endlist} +\newenvironment{note}{\begin{aside}{NOTE}}{\end{aside}} +\newenvironment{warning}{\begin{aside}{WARNING}}{\end{aside}} \newenvironment{plainlist}{% \renewcommand{\descriptionlabel}[1]{\hspace{\labelsep}\textbf{##1}} % Add em space to description label \begin{description}% |