2017-09-02 146 views
0

我希望把第一和第二排之間的水平線下表在一個水平線上:在乳膠表

\begin{table}[ht] 
    \centering 
    \caption{Multi-row table} 
    \label{tab:Mergedrows} 
    \vspace{1ex} 
     \begin{tabular}{|c|c|} 
      \hline 
      \multirow{2}{*}{Mergedrows} 
      &X\\ 
      &X \\ 
      \hline 
     \end{tabular} 
\end{table} 

如何做到這一點?

回答

0

就像documentation to multirow顯示:通過添加cline

\documentclass{article} 
\usepackage{multirow} 

\begin{document} 
\begin{table}[ht] 
    \centering 
    \caption{Multi-row table} 
    \label{tab:Mergedrows} 
    \vspace{1ex} 
     \begin{tabular}{|c|c|} 
      \hline 
      \multirow{2}{*}{Mergedrows} 
      &X\\ 
      \cline{2-2} % add this 
      &X \\ 
      \hline 
     \end{tabular} 
\end{table} 
\end{document} 
+0

@musayusuf很高興聽到,那麼請接受的答案和/或給予好評的。 – Robert