1

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

  • Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – dexteritas Aug 3 '17 at 9:10
  • Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – dexteritas Aug 3 '17 at 9:12
  • 2
    It seems you wrote l (L-letter) instead of | in the tabular definition. – dexteritas Aug 3 '17 at 9:13
  • You should only add the required packages to make a minimal working example (MWE). – dexteritas Aug 3 '17 at 9:18
1

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.

0

Try with this:

\documentclass{article}
\usepackage{multirow,array,booktabs}

\begin{document}
\begin{table}
  \centering
%  \setlength{\tabcolsep}{.14cm} % Abstand zwischen den Spalten einer 
Tabelle
\caption{babalaba.}
\begin{tabular}{ccc!{\vrule width 0.2em}c}
    \specialrule{0.2em}{0em}{0em}
{L1}&{Linkers}&{L3}&{Dyes} \\
    \specialrule{0.2em}{0em}{0em}
 RNA1 & \multirow{2}{*}[-0.72ex]{cL}&{D dye}\\
 blabla & & {D dye}\\
    \specialrule{0.2em}{0em}{0em}
\end{tabular}
\label{table1}
\end{table}
\end{document}
  • Unfortunately, the lines are too tight. – Mathy Aug 3 '17 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.