Skip to main content
Markdown + retag
Source Link
Werner
  • 626.6k
  • 146
  • 1.5k
  • 2.4k

I found from http://jblevins.org/notes/latex that I could use the independence symbol:

X \independent Y

\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

I was wondering how this works. Can anybody explain? I don't know the commands mathpalette, rlap, and mkern2mu.

I found from http://jblevins.org/notes/latex that I could use the independence symbol:

X \independent Y

\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

I was wondering how this works. Can anybody explain? I don't know the commands mathpalette, rlap, and mkern2mu.

I found from http://jblevins.org/notes/latex that I could use the independence symbol:

X \independent Y

\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

I was wondering how this works. Can anybody explain? I don't know the commands mathpalette, rlap, and mkern2mu.

Source Link
Memming
  • 1.2k
  • 2
  • 8
  • 15

double perpendicular symbol (for independence)

I found from http://jblevins.org/notes/latex that I could use the independence symbol:

X \independent Y

\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

I was wondering how this works. Can anybody explain? I don't know the commands mathpalette, rlap, and mkern2mu.