changed the readmore environment
authorChristian Urban <urbanc@in.tum.de>
Thu, 05 Feb 2009 22:39:37 +0000
changeset 97 a99aa67455f3
parent 96 018bfa718982
child 98 0a5c95f4d70c
changed the readmore environment
CookBook/document/root.tex
--- a/CookBook/document/root.tex	Thu Feb 05 16:34:05 2009 +0000
+++ b/CookBook/document/root.tex	Thu Feb 05 22:39:37 2009 +0000
@@ -54,8 +54,14 @@
 \newcommand{\readmoremarginpar}[1]%
 {\marginpar[\raggedleft\small{#1}]{\raggedright\small{#1}}}
 
+\newenvironment{leftrightbar}{%
+\def\FrameCommand##1{\vrule width 2pt \hspace{8pt}##1\hspace{8pt}\vrule width 2pt}%
+\MakeFramed {\advance\hsize-\width \FrameRestore}}%
+{\endMakeFramed}
+
+
 \newenvironment{readmore}%
-{\hspace{-3pt}\readmoremarginpar{\fbox{\textbf{Read More}}}\it}{}
+{\begin{leftrightbar}\it{\textbf{Read More}}\\}{\end{leftrightbar}}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % this is to draw a gray box around code