5 Sep
2013
5 Sep
'13
3:42 p.m.
Hi, I just want to define a shortcut for framedtexts... That's it: \def\important{\dodoubleempty\doimportant} \def\doimportant[#1][#2]{\bgroup \ifsecondargument \startframedtext[background=#2,frame=off,width=broad]% #1 \else \startframedtext[background=screen,frame=off,width=broad]% #1 \fi \stopframedtext \egroup} It works perfectly with \important[Anything] but not with \important[Anything][red]. By the other hand, I want to define 'important' for use with start and end (startimportant ... \stopimportant) and not with single command. How can I get it? Thanks, Xan.