Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myuniversalbox[background_color=, frame_color=, borderlinewidth=, arc_radius=, separation_x=, separation_y=]{some text}.
- %------------------------- %
- documentclass{book}
- %------------------------- %
- usepackage[english]{babel} %
- usepackage{newtxtext} %
- usepackage{colortbl}
- usepackage{graphicx} %
- %
- setlength{unitlength}{1mm}
- %
- definecolor{DarkRed}{rgb}{0.45,0.00,0.00}
- definecolor{LightGrey}{rgb}{0.96,0.96,0.96}
- definecolor{LightPink}{rgb}{1.00,0.92,0.92}
- definecolor{LightYellow}{rgb}{1.00,1.00,0.85}
- definecolor{PaleBlue}{rgb}{0.92,1.00,1.00}
- newcommand{redpaleblueboxtwofour}[1]{ %
- setlength{fboxrule}{1.25pt}
- {setlength{fboxsep}{2.4pt}
- hspace{-4pt}fcolorbox{DarkRed}{PaleBlue}{#1}}}
- newcommand{redlightyellowboxsixeight}[1]{ %
- setlength{fboxrule}{1.25pt}
- {setlength{fboxsep}{6.8pt}
- hspace{-4pt}fcolorbox{DarkRed}{LightYellow}{#1}}}
- newcommand{redlightpinkthreesix}[1]{ %
- setlength{fboxrule}{0.75pt}
- {setlength{fboxsep}{3.6pt}
- hspace{-4pt}fcolorbox{DarkRed}{LightPink}{#1}}}
- newcommand{redlightgreyboxfoureight}[1]{ %
- setlength{fboxrule}{0.75pt}
- {setlength{fboxsep}{4.8pt}
- hspace{-4pt}fcolorbox{DarkRed}{LightGrey}{#1}}}
- begin{document}
- noindent hspace{50pt}fbox{Some ordinary text}
- vspace{4pt}
- noindent hspace{50pt}redpaleblueboxtwofour{Some ordinary text}
- vspace{4pt}
- noindent hspace{50pt}redlightyellowboxsixeight{Some ordinary text}
- vspace{4pt}
- noindent hspace{50pt}redlightpinkthreesix{Some ordinary text}
- vspace{4pt}
- noindent hspace{50pt}redlightgreyboxfoureight{Some ordinary text $+hspace{1.2pt}x^{hspace{0.6pt}2}$}
- end{document}
Add Comment
Please, Sign In to add comment