# How to remove dot in tabular rule when using hhline?

I have a large table which represents a calendar (produced by yplan) and I'm trying to typeset the cell in the top left corner without any rules at all. I've all but solved the rules, but I'm left with a small dot in the bottom right corner of the cell. I'm using hhrule for my horizontal rules as it is suggested by the colortbl manual which I am using to fill cells. (Colour not represented in minimal example below).

This is a minimal example of what my problem is:

\documentclass{article}
\usepackage{hhline}

\begin{document}
\begin{tabular}{|c||p{2.5cm}|}
\hhline{~|-}
\multicolumn{1}{c|}{} & \multicolumn{1}{c|}{\textbf{JANUARY}} \\[0.75ex]
\hhline{-::=}
\textbf{Su} & \\[0.75ex]
\end{tabular}
\end{document}


Which produces output that looks like (note the small dot):

I've tried countless combinations of rule options and just can't get it right. Can anyone help?

• This is definitely the wrong tool for the purpose as you are not able to achieve such a layout with \hhline for its restricted commands. Would you accept a solution without hhline? – TeXnician Jan 2 '18 at 18:29
• @TeXnician I would, but it would need to be compatible with clrtable and also permit missing hlines (not shown, but present elsewhere in the table). The default output of yplan uses clines, which I replaced with these hhlines. – Richard Jan 2 '18 at 18:35
• @TeXnician hmpf – David Carlisle Jan 2 '18 at 18:51

this adds a ; which is like : but different.

\documentclass{article}
\usepackage{hhline,colortbl}

\makeatletter
\AtBeginDocument{%
\def\HH@loop{%
\ifx\@tempb\def\next##1{\the\toks@\cr}\else\let\next\HH@let
\ifx\@tempb|\if@tempswa
\ifx\CT@drsc@\relax
\else
\fi
\fi\@tempswatrue
\ifx\@tempb:\if@tempswa
\ifx\CT@drsc@\relax
\else
\fi
\fi\@tempswatrue
\ifx\@tempb;\if@tempswa
\ifx\CT@drsc@\relax
\else
\fi
\fi\@tempswatrue
\ifx\@tempb~\@tempswafalse
\ifx\CT@drsc@\relax
\fi
\else
\ifx\@tempb-\@tempswafalse
\gdef\HH@height{\arrayrulewidth}%
\else
\ifx\@tempb=\@tempswafalse
\gdef\HH@height{\dimen\thr@@}%
\def\HH@height{\dimen\thr@@}%
\HH@box\doublerulesep\z@}\@tempswafalse\else
\def\HH@height{\dimen\thr@@}%
\HH@box\z@\doublerulesep}\@tempswafalse\else
\ifx\@tempb>\def\next##1##2{%
{\baselineskip\p@\relax
##2%
\global\setbox\@ne\HH@box\doublerulesep\doublerulesep}}%
\HH@let!}\else
\PackageWarning{hhline}%
{\meaning\@tempb\space ignored in \noexpand\hhline argument%
\MessageBreak}%
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
\next}
}
\makeatother
\begin{document}
\begin{tabular}{|c||p{2.5cm}|}
\hhline{~|-}
\multicolumn{1}{c|}{} & \multicolumn{1}{c|}{\textbf{JANUARY}} \\[0.75ex]
\hhline{-;:=}
\textbf{Su} & \\[0.75ex]
\end{tabular}
\end{document}

• Wow! Do you intend to incorporate it to the package? – Bernard Jan 2 '18 at 18:53
• And what about the counterpart on the bottom? How can one improve \cline{1-1}\hhline{~;:=}? – Ulrike Fischer Jan 2 '18 at 19:00
• Just a semantic observation: why not use ! and ¡? – Bernard Jan 2 '18 at 19:09

The probelm comes from a\hhline which mixes simple and doublerule. A solution consists in making two simple \hhmines with a vertical space in-between:

\documentclass{article}
\usepackage{hhline}

\begin{document}

\begin{tabular}{|c||p{2.5cm}|}
\hhline{~|-}
\multicolumn{1}{c|}{}& {\textbf{JANUARY}} \\[0.75ex]
\hhline{~|-}\noalign{\vspace*{\doublerulesep}}
\hhline{-||-}
\textbf{Su} & \\[0.75ex]
\end{tabular}

\end{document}
`