From e6c55529c9724ddb15db60fea72aa376fbcd5d7a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 12 Aug 2003 18:22:39 +0000 Subject: More fixes (This used to be commit ec02b2cfa4d913c91dd78bc1b2bdb02d7d560c59) --- docs/docbook/xslt/db2latex/admonition.mod.xsl | 107 ++++++++++---------------- 1 file changed, 42 insertions(+), 65 deletions(-) (limited to 'docs/docbook/xslt/db2latex/admonition.mod.xsl') diff --git a/docs/docbook/xslt/db2latex/admonition.mod.xsl b/docs/docbook/xslt/db2latex/admonition.mod.xsl index 56042a610e..62f37ccd3a 100644 --- a/docs/docbook/xslt/db2latex/admonition.mod.xsl +++ b/docs/docbook/xslt/db2latex/admonition.mod.xsl @@ -1,6 +1,8 @@ @@ -15,6 +17,7 @@ + $Id: admonition.mod.xsl,v 1.1.2.3 2003/08/12 18:22:39 jelmer Exp $ Ramon Casellas @@ -74,72 +77,46 @@ + - - -% ---------------------------------------------- -% Define a new LaTeX environment (adminipage) -% ---------------------------------------------- -\newenvironment{admminipage}% -{ % this code corresponds to the \begin{adminipage} command - \begin{Sbox}% - \begin{minipage}% -} %done -{ % this code corresponds to the \end{adminipage} command - \end{minipage} - \end{Sbox} - \fbox{\TheSbox} -} %done -% ---------------------------------------------- -% Define a new LaTeX length (admlength) -% ---------------------------------------------- -\newlength{\admlength} -% ---------------------------------------------- -% Define a new LaTeX environment (admonition) -% With 2 parameters: -% #1 The file (e.g. note.pdf) -% #2 The caption -% ---------------------------------------------- -\newenvironment{admonition}[2] -{ % this code corresponds to the \begin{admonition} command - \hspace{0mm}\newline\hspace*\fill\newline - \noindent - \setlength{\fboxsep}{5pt} - \setlength{\admlength}{\linewidth} - \addtolength{\admlength}{-10\fboxsep} - \addtolength{\admlength}{-10\fboxrule} - \admminipage{\admlength} - {\bfseries \sc\large{#2}} - \newline - \\[1mm] - \sffamily - - - % - - \includegraphics[ ]{#1} - \addtolength{\admlength}{-1cm} - \addtolength{\admlength}{-20pt} - \begin{minipage}[lt]{\admlength} - \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt -} %done -{ % this code corresponds to the \end{admonition} command - \vspace{5mm} - \end{minipage} - \endadmminipage - \vspace{.5em} - \par -} - - - - + + \newenvironment{admminipage}{\begin{Sbox}\begin{minipage}}{\end{minipage}\end{Sbox}\fbox{\TheSbox}} + \newlength{\admlength} + \newenvironment{admonition}[2] { + \hspace{0mm}\newline\hspace*\fill\newline + \noindent + \setlength{\fboxsep}{5pt} + \setlength{\admlength}{\linewidth} + \addtolength{\admlength}{-10\fboxsep} + \addtolength{\admlength}{-10\fboxrule} + \admminipage{\admlength} + {\bfseries \sc\large{#2}} \newline + \\[1mm] + \sffamily + + % + + + \includegraphics[ + + ]{#1} + \addtolength{\admlength}{-1cm} + \addtolength{\admlength}{-20pt} + \begin{minipage}[lt]{\admlength} + \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt + }{ + \vspace{5mm} + \end{minipage} + \endadmminipage + \vspace{.5em} + \par + } + -- cgit