April 20, 2010
LaTeX Source
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | \documentclass [12pt]{article} \usepackage [papersize={120mm, 25mm}, text={100mm, 20mm}]{geometry} \usepackage {concrete} \usepackage {color} \definecolor {MyGray}{rgb}{0.96,0.97,0.98} \makeatletter \newenvironment {mybox}{ % \begin {lrbox}{ \ @tempboxa} \begin {minipage}{0.97 \textwidth } % \refstepcounter {equation}( \arabic {equation})}{ \end {minipage} \end {lrbox} % \noindent \colorbox {MyGray}{ \usebox { \ @tempboxa}}} \makeatother \usepackage {amsmath} % Matrix norm \newcommand { \norm }[1]{ \ensuremath { \lVert {#1} \rVert }} % bold face letters for matrix and vector \newcommand { \Ebf }{ \ensuremath { \mathbf {E}}} \begin {document} \pagestyle {empty} \begin {mybox} $ \displaystyle \quad | \sigma_k - \beta_k | \leq \norm { \Ebf }_2 \quad $ for $1 \leq k \leq n$. \label { eq :1} \end {mybox} This can be proved by the following fact. \begin {equation} \label { eq :2} x^2 + y^2 = z^2 \end {equation} \end {document} |
Comments Off on LaTeX Environment: Kleinberg-Tardos style