Basic setup for configuring line width of boxes.

This commit is contained in:
Achim D. Brucker 2017-05-31 06:55:35 +01:00
parent 0f099058bd
commit 9ee657b8dd
1 changed files with 5 additions and 1 deletions

View File

@ -15,9 +15,11 @@
\usepackage{ifthen} \usepackage{ifthen}
\newboolean{lh@framed@rounded} \newboolean{lh@framed@rounded}
\setboolean{lh@framed@rounded}{false} \setboolean{lh@framed@rounded}{false}
%\setboolean{lh@framed@rounded}{true} %\setboolean{lh@framed@rounded}{true}
\newlength{\lh@frame@linewidth}
\setlength{\lh@frame@linewidth}{1pt}
\newcommand\beamerboxesframed[2][]{% \newcommand\beamerboxesframed[2][]{%
\global\let\beamer@firstlineitemizeunskip=\relax% \global\let\beamer@firstlineitemizeunskip=\relax%
@ -62,6 +64,7 @@
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp% \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
\hbox{% \hbox{%
\begin{pgfpicture}{0bp}{+-\ht\bmb@box}{0bp}{+-\ht\bmb@box} \begin{pgfpicture}{0bp}{+-\ht\bmb@box}{0bp}{+-\ht\bmb@box}
\pgfsetlinewidth{\lh@frame@linewidth}
\ifdim\wd\bmb@box=0pt% \ifdim\wd\bmb@box=0pt%
\color{lower.bg}% \color{lower.bg}%
\else% \else%
@ -123,6 +126,7 @@
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp% \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
\hbox{% \hbox{%
\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp} \begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
\pgfsetlinewidth{\lh@frame@linewidth}
\unhbox\bmb@colorbox% \unhbox\bmb@colorbox%
\pgfpathmoveto{\pgfpoint{-4bp}{\ht\bmb@box}} \pgfpathmoveto{\pgfpoint{-4bp}{\ht\bmb@box}}
\pgfpathlineto{\pgfpoint{-4bp}{1bp}} \pgfpathlineto{\pgfpoint{-4bp}{1bp}}