# How to export a centered threeparttable to LaTeX?

Is anyone using the threeparttable for Latex export? I can't manage to create a centered version of this table. For my input org code

#+begin_table
#+begin_threeparttable
#+ATTR_LATEX: :environment tabular
|   |  x |  y |
| a | 12 | 56 |
| b | 34 | 78 |
#+begin_tablenotes
\item[] Here is a note. \item[] Here is another note.
#+end_tablenotes
#+end_threeparttable
#+end_table


I get following latex table.

\begin{table}
\begin{threeparttable}
\begin{center}
\begin{tabular}{lrr}
\toprule
& x & y\\
a & 12 & 56\\
b & 34 & 78\\
\bottomrule
\end{tabular}
\end{center}
\begin{tablenotes}
\item[] Here is a note \item[] Here is another note.
\end{tablenotes}
\end{threeparttable}
\end{table}


Which is nearly correct, but the \begin{center} is starting after the threeparttable and not before it and therefore the compilation fails. How can I get this right?