Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. % eqbox.sty
  2. NeedsTeXFormat{LaTeX2e}[1994/06/01]
  3. ProvidesPackage{eqbox}[2019/01/01 Boxed Equations]
  4.  
  5. RequirePackage{xcolor}
  6. RequirePackage{pgfopts}
  7. RequirePackage{amsmath}
  8. RequirePackage{fancybox}
  9. RequirePackage[most]{tcolorbox}
  10.  
  11. pgfkeys{
  12. /eqbox/.cd,
  13. colframe/.store in = colframe,
  14. colframe = black,
  15. colback/.store in = colback,
  16. colback = white,
  17. shadow/.store in = shadow,
  18. shadow = undefined,
  19. }
  20. ProcessPgfPackageOptions{/eqbox}
  21.  
  22. tcbset{
  23. highlight math style={
  24. enhanced,
  25. sharp corners,
  26. breakable,
  27. colframe=colframe,
  28. colback=colback,
  29. ifxundefinedshadow
  30. else
  31. shadow={2pt}{-2pt}{0mm}{shadow},
  32. fi
  33. boxrule=0.4pt,
  34. boxsep = 3pt,
  35. left = 0pt,
  36. right = 0pt,
  37. top = 0pt,
  38. bottom = 0pt
  39. }
  40. }
  41.  
  42. documentclass[letterpaper, 11pt, onecolumn]{article}
  43.  
  44. usepackage{lipsum}
  45. usepackage{eqbox}
  46.  
  47. begin{document}
  48. lipsum[1]
  49. begin{equation}
  50. tcbhighmath{x^2 + 3}
  51. end{equation}
  52. lipsum[1]
  53. end{document}
  54.  
  55. ifdefinedshadow
  56. shadow={2pt}{-2pt}{0mm}{shadow},
  57. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement