[Tex/LaTex] Vertical line table

linetables

I would like to have a vertical line before the last column, despite I used this symbol "vertical line" it does not appear, why?

  \begin{document}
\begin{table}
  \centering
%  \setlength{\tabcolsep}{.14cm} % Abstand zwischen den Spalten einer Tabelle
  \caption{babalaba.}
   \begin{tabular}{ccclc}
\toprule
 {L1}&{Linkers}&{L3}&{Dyes} \\
   \hline 
    RNA1 & \multirow{2}{*}[-0.72ex]{cL}& {D dye}\\
   \\[-1em]
 blabla & & {D dye}\\
%\bottomrule
\hline 
\end{tabular}
\label{table1}
\end{table}
\end{document}

https://i.stack.imgur.com/CUukj.png

Indeed I used the letter l instead of |

\begin{document}
\begin{table}
  \centering
%\setlength{\tabcolsep}{.14cm} % Abstand zwischen den Spalten einer 
Tabelle
  \caption{babalaba.}
\begin{tabular}{ccc|c}
\toprule
{L1}&{Linkers}&{L3}&{Dyes} \\
\hline 
 RNA1 & \multirow{2}{*}[-0.72ex]{cL}&{D dye}\\
 \\[-1em]
 blabla & & {D dye}\\
%\bottomrule
\hline 
\end{tabular}
\label{table1}
\end{table}
 \end{document}

However now I have a discontinuous vertical line:enter image description here

Best Answer

like this:

enter image description here

\documentclass{article}
\usepackage[skip=1ex]{caption}
\usepackage{array, booktabs, makecell, multirow}
\setcellgapes{5pt}
\setlength\belowrulesep{0pt}
\setlength\aboverulesep{0pt}

\begin{document}
\begin{table}[ht]
    \makegapedcells
  \centering
\caption{babalaba.}
\begin{tabular}{ccc|c}
    \toprule
{L1} & {Linkers} & {L3} & {Dyes}            \\
    \midrule
 RNA1 & \multirow{2}{*}[-3pt]{cL}&{D dye}   \\
 blabla & & {D dye}                         \\
    \bottomrule
\end{tabular}
\label{table1}
\end{table}
\end{document}

use of booktabs' rules and vertical lines gives quite ugly result: discontinuous vertical lines. to remove them, you can set vertical distances above(below rues and this distance replaces with facility of some other packages, for example by makecell as is done in above mwe.

Related Question