Skip to content

Instantly share code, notes, and snippets.

@rbnvrw
Last active August 29, 2015 14:23
Show Gist options
  • Save rbnvrw/64ea93758454e7cba64f to your computer and use it in GitHub Desktop.
Save rbnvrw/64ea93758454e7cba64f to your computer and use it in GitHub Desktop.
Usefull LaTeX snippets

Framed equations

\usepackage{empheq}
\usepackage[many]{tcolorbox}

\tcbset{
  highlight math style={
    enhanced,
    colframe=black,
    colback=white,
    boxrule=1pt,
  }
}

\newenvironment{boxedeq}
  {\empheq[box=\tcbhighmath]{equation}}
  {\endempheq}
\newenvironment{boxedeq*}
  {\empheq[box=\tcbhighmath]{equation*}}
  {\endempheq}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment