
diff -r e7519207c2b7 -r 19106a9975c1 CookBook/document/root.tex
--- a/CookBook/document/root.tex	Wed Jan 14 16:46:07 2009 +0000
+++ b/CookBook/document/root.tex	Wed Jan 14 17:47:49 2009 +0000
@@ -12,6 +12,7 @@
 \usepackage[a4paper,hscale=0.67,vscale=0.76]{geometry}
 \usepackage{lineno}
 \usepackage{boxedminipage}
+\usepackage{xcolor}
 \usepackage{pdfsetup}
 
 \urlstyle{rm}
@@ -73,19 +74,26 @@
 \newenvironment{vanishML}{%
 \renewcommand{\isacommand}[1]{}%
 \renewcommand{\isacharverbatimopen}{}%
-\renewcommand{\isacharverbatimclose}{}%
-\hspace{-1.5mm}\mbox{}}{}
+\renewcommand{\isacharverbatimclose}{}}{}
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\makeatletter\newenvironment{graybox}{%
+   \begin{lrbox}{\@tempboxa}\begin{minipage}{\textwidth}}{\end{minipage}\end{lrbox}%
+   \colorbox{gray!5}{\usebox{\@tempboxa}}
+}\makeatother
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \isakeeptag{CookBookML}
-\renewcommand{\isatagCookBookML}{\begin{vanishML}}
-\renewcommand{\endisatagCookBookML}{\end{vanishML}}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\renewcommand{\isatagCookBookML}{\begin{vanishML}\begin{graybox}}
+\renewcommand{\endisatagCookBookML}{\end{graybox}\end{vanishML}\smallskip}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % for line numbers
 \isakeeptag{linenumbers}
-\renewcommand{\isataglinenumbers}{\begin{vanishML}\begingroup\resetlinenumber\linenumbers}
-\renewcommand{\endisataglinenumbers}{\endgroup\end{vanishML}}
+\renewcommand{\isataglinenumbers}
+{\begin{vanishML}\begingroup\begin{graybox}\resetlinenumber\internallinenumbers}
+\renewcommand{\endisataglinenumbers}{\end{graybox}\endgroup\end{vanishML}\smallskip}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \begin{document}




