To indicate that two lines - or line segments - I want to typeset two slash characters. I used $\overline{AB} \slash\slash \overline{CD}$. The space between the slash characters is too much, though. I could use a thin negative space command \!. I would like to know what is the typical code to do this.
Asked
Active
Viewed 2,027 times
4
1 Answers
6
To summarise the comments, this symbol is provided by a number of packages:
\sslashfromstmaryrdandunicode-math\parallelslantfrom `fourier\varparallelfromts/pxfonts
or one can build a macro
\newcommand{\parallelsum}{\mathrel{/\mkern-5mu/}}
Andrew Swann
- 95,762
\parallelwork? – Manuel Jul 09 '15 at 21:29\parallel.) – user74973 Jul 09 '15 at 21:32\paralleland then redefine that command so that it looks different. In any case, you should change your username to something more telling than user666. – Manuel Jul 09 '15 at 21:34\paralleland then change the definition.$\vect{AB} \parallel \vect{CD}$is better than$\overline{AB} \mathrel{\slash\!\slash} \overline{CD}$in my opinion; better to use symbolic names. – Manuel Jul 09 '15 at 21:41\mathbininto\mathrel, as the symbol you're looking for is a relation. – egreg Jul 09 '15 at 21:44\parallelslantand\nparallelslantin thefourierpackage, and\varparalleland\nvarparallel in thets/px` fonts. Even if you don't use these fonts, you can define the individual characters as new math binary relation symbols. – Bernard Jul 09 '15 at 23:06stmaryrdhas\sslashand the same name is used inunicode-math. – Andrew Swann Jul 10 '15 at 06:07\newcommand{\parallelsum}{\mathbin{\!/\mkern-5mu/\!}}gives a nice display for the symbol of parallel lines. I think that the negative thin space\!commands bring the slash closer to the pair of letters before and after the symbol. I remember that\mathbintellsLaTeXto regard what is being typeset as a binary symbol for spacing. You already have\!, though. What does\mkern-5mudo? – user74973 Jul 10 '15 at 13:03\mkern-5muis responsible for setting the two slashes closer to one another. In my experiment for that application, also removing some space on either side semeed necessary. – egreg Jul 10 '15 at 13:13\mkernin the manual. I seem to recall that there are 2mu between a character and a binary relation symbol.) I thought that \mkern is smaller than mu. I suppose that the distance between the slash characters is the difference between\mkernand5mu. – user74973 Jul 10 '15 at 13:39\!is a negative space of 3mu. – egreg Jul 10 '15 at 13:43