I have a table which has three rows of chemical structures. The structures in the second row are not lined up with the first and third rows. I tried to use \vspace
to bring the structure down but it didn't help. How to change the position of the structure in the table? Any help is greatly appreciated!
My sample code:
\documentclass[12pt,doublespacing,letterpaper]{report}
\usepackage{etex}
\usepackage[usenames,dvipsnames]{color}
\usepackage{lscape}
\usepackage{morehelp}
\usepackage{setspace}
\usepackage{easytable}
\usepackage{chemfig}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{geometry}
\usepackage{multirow}
\usepackage{caption}
\begin{document}
\setatomsep{2em}
\setbondoffset{1pt}
\setdoublesep{4pt}
\setbondstyle{line width=0.8 pt}
\renewcommand{\printatom}[1]{\fontsize{14pt}{14pt}\selectfont{\ensuremath{\mathrm{#1}}}}
\begin{table}[t]
\centering \caption{Test}
\begin{footnotesize}
\begin{tabular}{>{\centering\arraybackslash}p{20pt}> {\centering\arraybackslash}p{160pt}
>{\centering\arraybackslash}p{60pt}>{\centering\arraybackslash}p{160pt}> {\centering\arraybackslash}p{20pt}}
\hline\hline
\\[-5pt] %controls the spacing between line and text
\vfill Entry & \vfill RBF$_3$K &\vfill Ar-Br &\vfill R-R & Yield (\%)\\
\\[-5pt]\hline
\\[-7pt]
1 & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]BF_3K} & \chemfig[][scale=0.6]{[:30]NC-*6(-=-(-[,1.3]Br)=-=)} & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]*6(-=-(-CN)=-=-)}&75\\
2 & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]BF_3K} & \chemfig[][scale=0.6]{[:30]Cl-*6(-=-(-[,1.3]Br)=-=)} & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]*6(-=-(-Cl)=-=-)}&65\\
\hline\hline
&\\
\end{tabular}
\end{footnotesize}
\\
\end{table}
\end{document}
ex
instead ofpt
when dealing with vertical spacing (andem
instead ofpt
when dealing with horizontal spacing);pt
isn't font dependant.m{}
type columns instead ofp{}
type ones. (BTW: all the packages you load seem unrelated to the problem. It doesn't even seem to be achemfig
problem..., also: the table currently exceeds\textwidth
)