Guest User

Untitled

a guest
Jan 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. usepackage[table]{xcolor}
  2. definecolor{def}{RGB}{66,103,178}
  3. usepackage{empheq}
  4. usepackage[most]{tcolorbox}
  5. newtcbox{mymath}[1][]{%
  6. nobeforeafter, math upper, tcbox raise base,
  7. enhanced, colframe=blue!30!black,
  8. colback=def!20, boxrule=1pt,
  9. #1}
  10.  
  11. begin{document}
  12.  
  13. Some text…
  14. begin{empheq}[box={mymath[colback=Bittersweet!20]}]{equation}
  15. (x-x_0)^2+(y-y_0)^2+(z-z_0)^2=R^2
  16. end{empheq}
  17.  
  18. Some text…
  19. begin{empheq}[box={mymath[colback=Bittersweet!20]}]{equation}
  20. x^2+y^2+z^2+Ax+By+C z=0
  21. end{empheq}
  22.  
  23. Some text…
  24. begin{empheq}[box={mymath[colback=Bittersweet!20]}]{equation}
  25. x^2+y^2+z^2=R^2
  26. end{empheq}
  27.  
  28. end{document}
Add Comment
Please, Sign In to add comment