\usepackage{xspace}
\newcommand{\eg}       {e.\,g.\@\xspace}
\newcommand{\ie}       {i.\,e.\@\xspace}
\newcommand{\qq}    [1]{``#1''}
\newcommand{\figref}[1]{fig.~\ref{#1}}
\newcommand{\etal}  [1]{#1~et~al.\@\xspace}

% Table helpers
\newcommand*{\thead}[1]{\multicolumn{1}{c}{#1}}
\newcommand*{\theadbf}[1]{\multicolumn{1}{c}{\bfseries #1}}
\newcolumntype{L}{>{$}l<{$}} % math-mode version of "l" column type
\newcolumntype{R}{>{$}r<{$}} % math-mode version of "r" column type

\DeclareSIUnit{\belmilliwatt}{Bm}
\DeclareSIUnit{\dBm}{\deci\belmilliwatt}

\newcommand{\ieeWifiFTM}{\mbox{IEEE 802.11-2016}\xspace}
\newcommand{\ieeWifiN}  {\mbox{IEEE 802.11n}\xspace}
\newcommand{\ieeWifiAC} {\mbox{IEEE 802.11ac}\xspace}

\newcommand{\pixelOld}{Pixel~2~XL\xspace}
\newcommand{\pixelNew}{Pixel~3a\xspace}
\newcommand{\pixelBoth}{Pixel~2~XL and~3a\xspace}

\newcommand{\intelOld}{Intel~AC~8260\xspace}
\newcommand{\intelNew}{Intel~AC~9462\xspace}
\newcommand{\intelBoth}{Intel~AC~8260 and~9462\xspace}

% keyword macros
\newcommand{\docIBeacon}{iBeacon}

% wifi naming
\newcommand{\wifiRSSI}{RSSI}
\newcommand{\wifiTxPower}{TX-Power}
\newcommand{\wifiPathLossExp}{PathLoss}

\newcommand{\wifiPropLogScale}{Log-Scale}
\newcommand{\wifiPropLogScaleWalls}{Log-Scale-Walls}
\newcommand{\docLogDistance}{log-distance}
\newcommand{\docLogDistanceWalls}{wall-attenuation-factor}


% misc
\newcommand{\docTxPower}{TX-Power}
\newcommand{\docPathLossExp}{PathLoss}
\newcommand{\docPathLoss}{Pathloss}

\newcommand{\docsAP}{AP}
\newcommand{\docAPshort}{AP}
\newcommand{\docAP}{access point}
\newcommand{\docAPs}{access points}

\newcommand{\docWIFI}{Wi\hbox{-}Fi}
\newcommand{\docBeacon}{\Gls{Beacon}}
\newcommand{\docBeacons}{\Glspl{Beacon}}

\newcommand{\docsRSSI}{RSSI}

\newcommand{\docDSimplex}{downhill-simplex}
\newcommand{\docGaussNetwon}{Gauss–Newton algorithm\xspace}
\newcommand{\docLevenbergMarq}{Levenberg–Marquardt algorithm\xspace}

\DeclareMathOperator{\atan}{atan2}
