lib/softcover/template/latex_styles/softcover.sty in softcover-0.8.5 vs lib/softcover/template/latex_styles/softcover.sty in softcover-0.8.6

- old
+ new

@@ -113,11 +113,11 @@ \newcounter{codelisting} \numberwithin{codelisting}{chapter} \newenvironment{codelisting}{\refstepcounter{codelisting}\begin{framed_shaded}\vspace{-0.5em}}% {\end{framed_shaded}} % Codelisting captions -\usepackage{caption} +\usepackage[hypcap=false]{caption} \DeclareCaptionFormat{listing}{\hspace{-0.2em}\colorbox[gray]{.85}{\hspace{0.1em}\parbox{0.997\textwidth}{#1#2#3}}\vspace{-1.3\baselineskip}} \captionsetup[listing]{format=listing,labelfont=bf,skip=16pt,font={rm,normalsize}} \DeclareCaptionType{listing} \newcommand{\codecaption}[1]{\captionof{listing}{#1}} @@ -130,10 +130,11 @@ \definecolor{boxcolor}{gray}{0.10} \newenvironment{shaded_aside}[2]{\begin{full_framed_shaded}\begin{aside}\label{#2} \textbf{#1}\end{aside}}{\bigskip\end{full_framed_shaded}} % Additional commands \newcommand{\heading}[1]{\textbf{#1}} -\newcommand{\kode}[1]{\textcolor{darkgreen}{\textbf{\texttt{#1}}}} +\newcommand{\kodesize}{\smaller[0.75]} +\newcommand{\kode}[1]{\textcolor{darkgreen}{\textbf{\texttt{\kodesize #1}}}} % Subtitle command \usepackage{titling} \newcommand{\subtitle}[1]{% \posttitle{%