Guest User

Untitled

a guest
Oct 23rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. myuniversalbox[background_color=, frame_color=, borderlinewidth=, arc_radius=, separation_x=, separation_y=]{some text}.
  2.  
  3. %------------------------- %
  4. documentclass{book}
  5. %------------------------- %
  6. usepackage[english]{babel} %
  7. usepackage{newtxtext} %
  8. usepackage{colortbl}
  9. usepackage{graphicx} %
  10. %
  11. setlength{unitlength}{1mm}
  12. %
  13. definecolor{DarkRed}{rgb}{0.45,0.00,0.00}
  14. definecolor{LightGrey}{rgb}{0.96,0.96,0.96}
  15. definecolor{LightPink}{rgb}{1.00,0.92,0.92}
  16. definecolor{LightYellow}{rgb}{1.00,1.00,0.85}
  17. definecolor{PaleBlue}{rgb}{0.92,1.00,1.00}
  18.  
  19. newcommand{redpaleblueboxtwofour}[1]{ %
  20. setlength{fboxrule}{1.25pt}
  21. {setlength{fboxsep}{2.4pt}
  22. hspace{-4pt}fcolorbox{DarkRed}{PaleBlue}{#1}}}
  23.  
  24. newcommand{redlightyellowboxsixeight}[1]{ %
  25. setlength{fboxrule}{1.25pt}
  26. {setlength{fboxsep}{6.8pt}
  27. hspace{-4pt}fcolorbox{DarkRed}{LightYellow}{#1}}}
  28.  
  29. newcommand{redlightpinkthreesix}[1]{ %
  30. setlength{fboxrule}{0.75pt}
  31. {setlength{fboxsep}{3.6pt}
  32. hspace{-4pt}fcolorbox{DarkRed}{LightPink}{#1}}}
  33.  
  34. newcommand{redlightgreyboxfoureight}[1]{ %
  35. setlength{fboxrule}{0.75pt}
  36. {setlength{fboxsep}{4.8pt}
  37. hspace{-4pt}fcolorbox{DarkRed}{LightGrey}{#1}}}
  38.  
  39.  
  40. begin{document}
  41.  
  42. noindent hspace{50pt}fbox{Some ordinary text}
  43.  
  44. vspace{4pt}
  45. noindent hspace{50pt}redpaleblueboxtwofour{Some ordinary text}
  46.  
  47. vspace{4pt}
  48. noindent hspace{50pt}redlightyellowboxsixeight{Some ordinary text}
  49.  
  50. vspace{4pt}
  51. noindent hspace{50pt}redlightpinkthreesix{Some ordinary text}
  52.  
  53. vspace{4pt}
  54. noindent hspace{50pt}redlightgreyboxfoureight{Some ordinary text $+hspace{1.2pt}x^{hspace{0.6pt}2}$}
  55.  
  56. end{document}
Add Comment
Please, Sign In to add comment