4

Is there a way to limit the length of a hline, so that it behaves like a cline? What I want to achieve is to have the the double lines you will get, when calling \hline twice.

What I basically want is the following table without the first 'box' (7C0, 3700, 11111000000). And that the top, left, and bottom border of that column/row is removed.

sample table

Basically this MWE without the top and left border.

\documentclass{article}

\begin{document}
\begin{tabular}{|r|l|}
  \hline
  & hexadecimal \\
  & octal \\ \cline{2-2}
  & binary \\
  \hline \hline
  1984 & decimal \\
  \hline
\end{tabular}
\end{document}
6

If you only want the bottom half of the double line to extend to the first column you can use

enter image description here

\documentclass{article}
\usepackage{hhline}
\begin{document}
\begin{tabular}{r|l|}
  \hhline{~|-}
  & hexadecimal \\
  & octal \\ \cline{2-2}
  & binary \\
  \hhline{-:=}
  \multicolumn{1}{|r|}{1984} & decimal \\
  \hline
\end{tabular}
\end{document}
1

Like this?

enter image description here

\documentclass{standalone}

\begin{document}
\begin{tabular}{r|l|} \cline{2-2}
  & hexadecimal \\
  & octal \\ \cline{2-2}
  & binary \\
  \hline \hline
  \multicolumn{1}{|r|}{1984} & decimal \\
  \hline
\end{tabular}
\end{document}
  • Sorry, my bad explanation. I wanted the bottom border of the first hline removed as well. David Carlisle's answer is what I wanted, though I didn't explaine correctly. – James Union Feb 26 '14 at 13:06

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.