kasten.sty
kasten.sty |
---|
%% % Xenia Rendtel % 02.10.2007 %% %% % In dieser Datei werden einige Einstellungen für Kästen bzw. % Umrandungen definiert. % Kästen %% %% neue Farben \definecolor{dunkelgrau}{gray}{0.75} \definecolor{hellgrau}{gray}{0.9} \definecolor{grau}{gray}{0.85} \definecolor{structureshaded}{gray}{0.75} \definecolor{gelb}{rgb}{1.0,1.0,0.7} \definecolor{dunkelgelb}{rgb}{1.0,0.9,0.2} \definecolor{hellgelb}{rgb}{1.0,1.0,0.9} \definecolor{alert}{rgb}{1,0,0} \definecolor{darkgreen}{rgb}{0.15,0.6,0.15} \definecolor{shaded}{gray}{0.6} \definecolor{blockstructure}{rgb}{0.2,0.2,0.7} \definecolor{lightgray}{gray}{0.9} \definecolor{anders}{rgb}{1.0,1.0,1.0} %% Ein Kasten mit einem schattierten Rahmen \newcommand{\kasten}[2][0.9\linewidth]{ \begin{center} \vspace{3pt} \shadowbox{\colorbox{white}{\parbox[t]{#1-2\fboxsep-2\fboxrule-\shadowsize}{#2}}} \vspace{3pt} \end{center} } %% Ein einfacher Kasten \newcommand{\kasteneinfach}[2][0.9\linewidth]{ \begin{center} \fbox{\parbox[t]{#1-2\fboxsep-2\fboxrule}{#2}} \end{center} } \newcommand{\bbox}[1]{ \definecolor{anders}{rgb}{1.0,1.0,1.0} \fcolorbox{structureshaded}{anders}{ #1} } \newcommand{\cbox}[2][anders]{ \definecolor{anders}{rgb}{0.9,0.9,0.9} \begin{center} \fcolorbox{structureshaded}{#1}{\parbox[t]{0.97\linewidth}{#2}} \end{center} } \newcommand{\satz}[2][anders]{ \definecolor{anders}{rgb}{1,0.8,0.8} \begin{center} \fcolorbox{structureshaded}{#1}{\parbox[t]{0.95\linewidth}{#2}} \end{center} } \newcommand{\kastenfarbe}[2][white]{ \begin{center} \vspace{3pt} \shadowbox{\colorbox{#1}{\parbox[t]{0.95\linewidth-2\fboxsep-2\fboxrule-\shadowsize}{#2}}} \vspace{5pt} \end{center} } \newcommand{\versuch}[2]{ \paragraph{#1} {#2 \hfill $\qed$} } \setlength{\fboxrule}{0.1em} \newcommand{\pcode}[2]{ \begin{center} \fcolorbox{structureshaded}{gelb}{ \begin{minipage}{#1} #2 \end{minipage} } \end{center} } \newcommand{\acode}[2]{ \definecolor{anders}{rgb}{1.0,1.0,1.0} \fcolorbox{structureshaded}{anders}{ \begin{minipage}{#1} #2 \end{minipage} } } \newcommand{\mpage}[3][c]{ \begin{minipage}[#1]{#2} #3 \end{minipage} } \newcommand{\mpageh}[3]{ \begin{minipage}[t][#1]{#2} #3 \end{minipage} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Neue Arrayumgebung mit einstellbarer Höhe %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newenvironment{array2}{% \setlength{\extrarowheight}{5pt} $\begin{array}[]{rcll}}{% \end{array}$ \setlength{\extrarowheight}{0pt} } \newenvironment{array3}{% \setlength{\extrarowheight}{5pt} $\begin{array}[]{ll}}{% \end{array}$ \setlength{\extrarowheight}{0pt} } \newenvironment{array4}{% \setlength{\extrarowheight}{5pt} $\begin{array}[]{crcll}}{% \end{array}$ \setlength{\extrarowheight}{0pt} } \def\dotuline{\bgroup \ifdim\ULdepth=\maxdimen % Set depth based on font, if not set already \settodepth\ULdepth{(j}\advance\ULdepth.4pt\fi \markoverwith{\begingroup \advance\ULdepth0.08ex \lower\ULdepth\hbox{\kern.15em .\kern.1em}% \endgroup}\ULon} \def\dashuline{\bgroup \ifdim\ULdepth=\maxdimen % Set depth based on font, if not set already \settodepth\ULdepth{(j}\advance\ULdepth.4pt\fi \markoverwith{\kern.15em \vtop{\kern\ULdepth \hrule width .3em}% \kern.15em}\ULon} |
Letzte Änderung: 26.04.2012: 17:49:04 von X. Rendtel
Dieses Werk bzw. Inhalt steht unter einer Creative Commons Namensnennung-Weitergabe unter gleichen Bedingungen 3.0 Unported Lizenz.
Beruht auf einem Inhalt unter www.rendtel.de.