\documentclass[12pt,reqno]{amsart}
\def\draft{n}
\usepackage{
  fullpage,graphicx,dbnsymb,amsmath,amssymb,floatflt,picins,
  multicol,mathtools,stmaryrd,xcolor,tensor
}
\usepackage{hyperref}

% Following http://tex.stackexchange.com/a/847/22475:
\usepackage{hyperref}\hypersetup{colorlinks,
   linkcolor={green!50!black},
   citecolor={green!50!black},
   urlcolor=blue
}

\usepackage{xr}
\externaldocument[1-]{WKO1}

\usepackage[all]{xy}

\if\draft y
  \usepackage[color]{showkeys}
  \usepackage{everypage,draftwatermark}
  \SetWatermarkScale{4}
  \SetWatermarkLightness{0.9}
\fi

\input macros.tex
\input defs.tex

\setlength{\marginparwidth}{0.8in}

\begin{document}
\newdimen\captionwidth\captionwidth=\hsize
\setcounter{secnumdepth}{4}

\title[Finite Type Invariants of w-Knotted Objects]{Finite Type Invariants
  of w-Knotted Objects II: Tangles, Foams and the Kashiwara-Vergne Problem}

\author{Dror~Bar-Natan}
\address{
  Department of Mathematics\\
  University of Toronto\\
  Toronto Ontario M5S 2E4\\
  Canada
}
\email{drorbn@math.toronto.edu}
\urladdr{http://www.math.toronto.edu/~drorbn}

\author{Zsuzsanna Dancso}
\address{
  Mathematical Sciences Institute\\
  Australian National University\\
  John Dedman Bldg 26\\
  Acton ACT 2601, Australia
}
\email{zsuzsanna.dancso@anu.edu.au}
\urladdr{http://www.math.toronto.edu/zsuzsi}

\date{first edition May 5, 2014, this edition \today.
\url{http://www.math.toronto.edu/drorbn/LOP.html\#WKO2};
the \arXiv{1405.1955} edition may be older}

\subjclass[2010]{57M25}
\keywords{
  virtual knots,
  w-braids,
  w-knots,
  w-tangles,
  knotted graphs,
  finite type invariants,
  Alexander polynomial,
  Kashiwara-Vergne,
  associators,
  free Lie algebras%
}

\thanks{This work was partially supported by NSERC grant RGPIN 262178.
  This paper is part 2 of a 4-part series whose first two parts originally
  appeared as a combined preprint,~\cite{WKO}.
}

\begin{abstract}
  \input abstract.tex
\end{abstract}

\maketitle


{\small \tableofcontents}
%{\small \begin{multicols}{2} \tableofcontents \end{multicols}}
%{\small \twocolumn \tableofcontents \onecolumn}

\input intro.tex
\input alg.tex
\input tangles.tex
\input foams.tex
\input odds.tex
\input glossary.tex
\input refs.tex

\if\draft y
  \clearpage
  Everything below is to be blanked out before the completion of this paper.
  \input ToDo.tex
\fi

\end{document}
\endinput

