# Closer slanted parallel symbol

by Sebastiano   Last Updated September 11, 2019 22:23 PM

Looking the @egreg's answer where I have deleted some parts of code

\documentclass[12pt]{article}
\newcommand{\parallelsum}{\mathbin{\!/\mkern-5mu/\!}}
\begin{document}
$AB \parallelsum CD$
\end{document}


I would to change the classical symbol of \parallel

to obtain another same symbol of parallel

where the slanted should not be above and below the two red lines, are closer to each other and are in line with the text, in mathematical mode in both subscript and overscript mode. If there's already a symbol like this I'm searching for even better for me.

Tags :

Raise and scale.

\documentclass{article}
\usepackage{amsmath,graphicx}

\makeatletter
\newcommand{\newparallel}{\mathrel{\mathpalette\[email protected]\relax}}
\newcommand{\[email protected]}[2]{%
\begingroup
\sbox\[email protected]{$#1T$}% get the height of an uppercase letter
\resizebox{!}{\ht\[email protected]}{\raisebox{\depth}{$\[email protected]#1/\mkern-5mu/$}}%
\endgroup
}
\makeatother

\begin{document}

$AB\newparallel CD$

$\scriptstyle AB\newparallel CD$

\end{document}


egreg
September 11, 2019 22:15 PM

## Customized root

Updated December 18, 2017 06:23 AM