[Tex/LaTex] How to insert a dashed line over a bigwedge symbol so that the dashed line behaves like overline would


I want to insert a dashed line over symbols \bigwedge and \bigvee in such a way that it looks exactly like a solid line over the same symbols. I know how to insert a solid line over those symbols (for example, \overline{\bigwedge}). Since I asked a question a few years ago about how to add a dashed arrow over a letter, I tried to use the code from there. Resulting code:

\usepackage{tikz} %for dash


  \vbox {\m@th\ialign{##\crcr
  \preclosurefill \crcr

%% fill with (short) minus signs

%% make the minus shorter to fit \dashedleftarrow


In order to distinguish between lattice operations $\bigvee, \bigwedge$ in structure A, we use the following symbols: $\overline{\bigvee}, \overline{\bigwedge}$. Similarly, to distinguish between operations $\bigvee, \bigwedge$ in structure B, we use the following symbols: $\preclosure{\bigvee}, \preclosure{\bigwedge}$.

Inline: $\overline{\bigvee}_{\alpha \in I}$, $\preclosure{\bigvee}_{\alpha \in I}$.

In separate line:
\overline{\bigvee_{\alpha \in I}}, \preclosure{\bigvee_{\alpha \in I}}.

Resulting document:

Resulting document

I have the following problems:

  1. Somehow in inline mode the $\preclosure{\bigwedge}$ symbol is made bigger than just $\bigwedge$.
  2. The dashed line does not allocate vertical space and runs into text
  3. It seems to me that when $\overline{\bigvee}$ is inline, then the overline is too close to the V symbol, making it look almost like triangle. If I zoom in, then I can see that it is not so, but at 100% zoom it looks too close. How to move the overline a bit higher? Or do You think that this is not a problem?

It is not necessary to use exactly the same code I wrote, I just used what I already had, but not successfully 🙂

Best Answer

I'd avoid \overline:


  \xleaders\hbox{\kern.5pt\vrule height.4pt width \dash@width{#1}\kern.5pt}\hfill


$\bigvee_{\alpha\in I}$,
$\fillover{\bigvee}_{\alpha \in I}$,
$\dashover{\bigvee}_{\alpha \in I}$.

$\scriptstyle\bigvee_{\alpha\in I}$,
$\scriptstyle\fillover{\bigvee}_{\alpha \in I}$,
$\scriptstyle\dashover{\bigvee}_{\alpha \in I}$.

\bigvee_{\alpha \in I}
\fillover{\bigvee}_{\alpha \in I}
\dashover{\bigvee}_{\alpha \in I}.

enter image description here

You probably want to define



The commands \fillover and \dashover have an optional argument that sets the type of the object. Default is \mathop, but it can be \mathrel or \mathbin, so you could use


and $x\dvee y$ would produce

enter image description here

You may want to adjust the separation space, the argument to \noalign in the code for \df@@over. However, the macro is not optimized for usages other than \mathop, something more should be done in the case of other types.