CookBook/document/root.tex
changeset 97 a99aa67455f3
parent 89 fee4942c4770
child 101 123401a5c8e9
equal deleted inserted replaced
96:018bfa718982 97:a99aa67455f3
    52 \newcommand{\solution}[1]{{\bf Solution for Exercise~\ref{#1}.}}
    52 \newcommand{\solution}[1]{{\bf Solution for Exercise~\ref{#1}.}}
    53 
    53 
    54 \newcommand{\readmoremarginpar}[1]%
    54 \newcommand{\readmoremarginpar}[1]%
    55 {\marginpar[\raggedleft\small{#1}]{\raggedright\small{#1}}}
    55 {\marginpar[\raggedleft\small{#1}]{\raggedright\small{#1}}}
    56 
    56 
       
    57 \newenvironment{leftrightbar}{%
       
    58 \def\FrameCommand##1{\vrule width 2pt \hspace{8pt}##1\hspace{8pt}\vrule width 2pt}%
       
    59 \MakeFramed {\advance\hsize-\width \FrameRestore}}%
       
    60 {\endMakeFramed}
       
    61 
       
    62 
    57 \newenvironment{readmore}%
    63 \newenvironment{readmore}%
    58 {\hspace{-3pt}\readmoremarginpar{\fbox{\textbf{Read More}}}\it}{}
    64 {\begin{leftrightbar}\it{\textbf{Read More}}\\}{\end{leftrightbar}}
    59 
    65 
    60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    66 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    61 % this is to draw a gray box around code
    67 % this is to draw a gray box around code
    62 %(FIXME redefine pagebreak so that it includes a \smallskip)
    68 %(FIXME redefine pagebreak so that it includes a \smallskip)
    63 \newenvironment{graybox}
    69 \newenvironment{graybox}