【问题标题】:How can I make the verticle line in the table without any gaps?如何使表格中的垂直线没有任何间隙?
【发布时间】:2021-09-26 11:29:41
【问题描述】:

第三列的垂直线有 2 个间隙。如何让它看起来很饱满?

代码如下:

\begin{table}[H]
\centering
\caption{Enzymatic cocktails and the respective tested concentrations in \%(v/v) used in Combined Hydrolysis}
\label{enzymatic cocktails}
\begin{tabular}{@{}ccc@{}}
\toprule
\textbf{Cocktail}  & \textbf{Enzymes}               & \textbf{Concentration \%(v/v)}                                              \\ \midrule
\multirow{2}{*}{A} & \multicolumn{1}{c|}{Cellulase} & \multirow{8}{*}{\begin{tabular}[c]{@{}c@{}}0.25\\ 0.50\\ 1.00\end{tabular}} \\
                   & \multicolumn{1}{c|}{$\boldsymbol{\beta}$-glucosidase}            &  \\ \cmidrule(r){1-2}
\multirow{3}{*}{B} & \multicolumn{1}{c|}{Cellulase}                &  \\
                   & \multicolumn{1}{c|}{$\boldsymbol{\beta}$-glucosidase}            &  \\
                   & \multicolumn{1}{c|}{xylanase}                 & \\ \cmidrule(r){1-2}
\multirow{3}{*}{C} & \multicolumn{1}{c|}{Cellulase}                &  \\
                   & \multicolumn{1}{c|}{$\boldsymbol{\beta}$-glucosidase}            &  \\
                   & \multicolumn{1}{c|}{$\boldsymbol{\beta}$-glucanase and xylanase} &  \\ \bottomrule
\end{tabular}
\end{table}

【问题讨论】:

标签: latex tabular overleaf


【解决方案1】:

c| 中的垂直线和 booktabs 包中的 toprulebottomrulemidrulecmidrule 等水平线不匹配。

\documentclass{article}
\usepackage{multirow}
\begin{document}

\begin{table}%[H]
\centering
\caption{Enzymatic cocktails and the respective tested concentrations in \%(v/v) used in Combined Hydrolysis}
\label{enzymatic_cocktails}
\begin{tabular}{@{}ccc@{}}
\hline
\textbf{Cocktail}  & \textbf{Enzymes}               & \textbf{Concentration \%(v/v)}\\
\hline
\multirow{2}{*}{A} & \multicolumn{1}{c|}{Cellulase} & %
  \multirow{8}{*}{\begin{tabular}[c]{@{}c@{}}0.25\\ 0.50\\ 1.00\end{tabular}}\\
                   & \multicolumn{1}{c|}{$\mathbb{\beta}$-glucosidase}     & \\
                   \cline{1-2}
\multirow{3}{*}{B} & \multicolumn{1}{c|}{Cellulase}                        & \\
                   & \multicolumn{1}{c|}{$\boldsymbol{\beta}$-glucosidase} & \\
                   & \multicolumn{1}{c|}{xylanase}                         & \\
                   \cline{1-2}
\multirow{3}{*}{C} & \multicolumn{1}{c|}{Cellulase}                        & \\
                   & \multicolumn{1}{c|}{$\mathbb{\beta}$-glucosidase}     & \\
                   & \multicolumn{1}{c|}{$\mathbb{\beta}$-glucanase and xylanase} & \\
\hline
\end{tabular}
\end{table}
\end{document}

所以我在我的代码中回到了hlines。最好使用上面提到的包booktabs 并避免使用垂直线。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-17
    • 1970-01-01
    • 1970-01-01
    • 2011-08-02
    • 2012-10-19
    • 1970-01-01
    相关资源
    最近更新 更多