\documentclass{article}
\usepackage[affil-it]{authblk}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{latexsym}
\usepackage{textcomp}
\usepackage{longtable}
\usepackage{tabulary}
\usepackage{booktabs,array,multirow}
\usepackage{amsfonts,amsmath,amssymb}
\providecommand\citet{\cite}
\providecommand\citep{\cite}
\providecommand\citealt{\cite}
\usepackage{url}
\usepackage{hyperref}
\hypersetup{colorlinks=false,pdfborder={0 0 0}}
\usepackage{etoolbox}
\makeatletter
\patchcmd\@combinedblfloats{\box\@outputbox}{\unvbox\@outputbox}{}{%
  \errmessage{\noexpand\@combinedblfloats could not be patched}%
}%
\makeatother
% You can conditionalize code for latexml or normal latex using this.
\newif\iflatexml\latexmlfalse
\AtBeginDocument{\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.tif,.TIF,.jpg,.JPG,.jpeg,.JPEG}}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}




\begin{document}

\title{Deluxe Tables with Authorea}


\author{Matteo Cantiello}
\affil{Affiliation not available}



\date{\today}

\maketitle




Example of an  ``astronomer friendly'' deluxe table formatted with Authorea. This is the example posted by Jess K on astrobetter in \href{http://www.astrobetter.com/blog/2013/09/13/how-to-make-awesome-latex-tables/}{How to Make Awesome Latex Tables}. For this table we are using the LaTeXML engine, have a look at this \href{https://www.authorea.com/users/5713/articles/28015/_show_article}{quick tutorial} if you are a prospective Authorea power LaTeX user.


\begin{deluxetable}{cccccccc}
\centering
\tabletypesize{\footnotesize}
\tablecolumns{8} 
\tablewidth{0pt}
% \tablecaption{Cross-correlation Fit Details}
% \label{tab:lumresults1}}
 \tablehead{
 \colhead{QSO} \vspace{-0.2cm}& \colhead{$R$ Range} &  & & &  &\colhead{Separation} & \colhead{Result}\\ \vspace{-0.2cm}
  & & \colhead{$\langle f \rangle$} & \colhead{$r_0$} &  \colhead{$\gamma$}& $W$ & & \\
 \colhead{Division} & \colhead{(Mpc/h)} & \colhead{} & \colhead{} & \colhead{}&& \colhead{(\%)} & \colhead{Strength}} 
 \startdata 
 \vspace{-0.2cm} 1/3 Bright &  & $4.24 \cdot 10^{-4}$ & 6.19 && 96.97 & &\\ \vspace{-0.2cm}
  & [0.3,3] & & & 1.77 & &  96.7 & 1.9$\sigma$ \\ 
   2/3 Dim & & $4.26 \cdot 10^{-4}$ & 4.48 & & 52.77
 \enddata
 \vspace{-0.8cm}
 \tablecomments{Luminosity dependent quasar clustering using a cross-correlation technique between CS82 galaxies ($M<23.5$) and SDSS, BOSS, and 2SLAQ quasars~($0.5 < z < 1.0$). The quasars were broken up into 1/3 brightest and 2/3 dimmest... }
\end{deluxetable}


\textbf{Important:} To be able to format deluxetables (and many other advanced LaTeX setting) you need to switch the LaTeX-HTML engine from Pandoc to LaTeXML.\\ It's super easy: \textbf{Settings} $\rightarrow$ \textbf{More Preferences} $\rightarrow$ \textbf{LaTeX Support}\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/latexml/latexml}

\end{center}
\end{figure}

Below the LaTeX for the table example
\begin{verbatim}
\begin{deluxetable}{cccccccc}
\centering
\tabletypesize{\footnotesize}
\tablecolumns{8} 
\tablewidth{0pt}
 \tablehead{
 \colhead{QSO} \vspace{-0.2cm}& \colhead{$R$ Range} &  & & &  &\colhead{Separation} & \colhead{Result}\\ \vspace{-0.2cm}
  & & \colhead{$\langle f \rangle$} & \colhead{$r_0$} &  \colhead{$\gamma$}& $W$ & & \\
 \colhead{Division} & \colhead{(Mpc/h)} & \colhead{} & \colhead{} & \colhead{}&& \colhead{(\%)} & \colhead{Strength}}
 \startdata 
 \vspace{-0.2cm} 1/3 Bright &  & $4.24 \cdot 10^{-4}$ & 6.19 && 96.97 & &\\ \vspace{-0.2cm}
  & [0.3,3] & & & 1.77 & &  96.7 & 1.9$\sigma$ \\ 
   2/3 Dim & & $4.26 \cdot 10^{-4}$ & 4.48 & & 52.77
 \enddata
 \vspace{-0.8cm}
 \tablecomments{Luminosity dependent quasar clustering using a cross-correlation technique between CS82 galaxies ($M<23.5$) and SDSS, BOSS, and 2SLAQ quasars~($0.5 < z < 1.0$). The quasars were broken up into 1/3 brightest and 2/3 dimmest... }
\end{deluxetable}
\end{verbatim}

\selectlanguage{english}
\FloatBarrier
\end{CJK}\end{document}

