<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="" style="word-wrap:break-word">Yes, that works very nicely (though to get a visible gap I had to use black line width 0.8 pt (I think that is the default) and white line width 4.5 pt.
<div class=""><br class="">
</div>
<div class="">A different but related question: is it possible to do arithmetic inside one of these macros?</div>
<div class=""><br class="">
</div>
<div class="">I have set it up so that the node at integer coordinates (i,j) is called Vij.  Then I have two macros, one for an edge joining Vij to V(i+1)j, but can only do it by entering i, j, and i+1 by hand:</div>
<div class="">\stay{i}{i+1}{j}, defined by</div>
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">\newcommand{\stay}[3]{\ncline{V#1#3}{V#2#3}}%</div>
<div class="">%<span class="x_Apple-tab-span" style="white-space:pre"> </span>Usage: [V13,V23]: 2=1+1, and join position 3 at level 1 to itself</div>
</blockquote>
<br class="">
<div class="">
<div class=""> and another for two edges,one  joining Vij to V(i+1)(j+1) over one joining Vi(j+1) to V(i+1)j:</div>
</div>
<div class="">\cross{i}{i+1}{j}{j+1}(or reverse j and j+1 to get a negative crossing) defined by</div>
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">\newcommand{\cross}[4]{</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\ncline{V#1#4}{V#2#3}</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\ncline[linewidth=4.5pt, linecolor=white]{V#1#3}{V#2#4}</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>\ncline[linewidth=0.8pt, linecolor=black]{V#1#3}{V#2#4}</div>
<div class="">}<span class="x_Apple-tab-span" style="white-space:pre"> </span>%Usage: [V13,V24] crosses over [V14,V23]--ie,2=1+1, and cross 3 to 4 (over)</div>
</blockquote>
</div>
<div class=""><br class="">
</div>
<div class="">It would be convenient to get two better levels of efficiency:</div>
<div class=""><br class="">
</div>
<div class="">1. Redefine \stay so that only i and j need be entered, i+1 being computed from this and entered automatically;</div>
<div class="">similarly enter only i and j for cross, computing i+1 and j+1 internally;</div>
<div class=""><br class="">
</div>
<div class="">2. Combine these to only enter i and j, and get a crossing of [Vij,V(i+1)(j+1)] over [Vi(j+1),V(i+1)j], and “stay” for all other positions between level i and level i+1.</div>
<div class=""><br class="">
</div>
<div class="">For (1) I am not sure whether there is an option, and if so should I use the reverse Polish notation used by Metafont; and for (2) I don’t know if one can insert a kind of “if…then..” loop inside one of these commands.</div>
<div class=""><br class="">
</div>
<div class="">Any information/suggestions gratefully accepted.  The current way of doing it is counterintuitive and prone to error.</div>
<div class=""><br class="">
</div>
<div class="">Here is the code I have presently, and the output:</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div></div>
</div>
</div>
<div class="" style="word-wrap:break-word">
<div class="">
<div class=""></div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Jun 13, 2016, at 16:18, Nitecki, Zbigniew H. <<a href="mailto:Zbigniew.Nitecki@tufts.edu" class="">Zbigniew.Nitecki@tufts.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word">Nice idea—thanks.  I’ll try it.
<div class="">Z<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Jun 13, 2016, at 13:43, Michael Sharpe <<a href="mailto:msharpe@ucsd.edu" class="">msharpe@ucsd.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">On Jun 13, 2016, at 7:02 AM, Nitecki, Zbigniew H. <<a href="mailto:Zbigniew.Nitecki@tufts.edu" class="">Zbigniew.Nitecki@tufts.edu</a>> wrote:<br class="">
<br class="">
In trying to create braid diagrams, I would like (in an automatic way) to create crossings which go “over” other crossings.  That is, something like the \rput* option, that is, an \ncline{A}{B} which, if it crosses an earlier \ncline{C}{D}, dominates it, in
 the sense that there is a slight space around \ncline{A}{B} so that \ncline{C}{D} “breaks” at the crossing point.  My first guess, \ncline* , has a totally different effect—the unstarred \ncline becomes totally invisible.<br class="">
<br class="">
Is there such an option?  Of course a workaround is to give \ncline{C}{D} linestyle=dashed, but the standard picture is to only have a break near the crossing, otherwise it is simply a straight line.<br class="">
<br class="">
</blockquote>
<br class="">
You can achieve this effect by drawing each node connection using two passes. On the first pass, draw a white curve about 2pt wider than your standard curve width, and draw the real node connection on the second pass. This can all be put into a small macro,
 for efficiency.<br class="">
<br class="">
Michael<br class="">
<br class="">
<br class="">
----------- Please Consult the Following Before Posting -----------<br class="">
TeX FAQ: <a href="http://www.tex.ac.uk/faq" class="">http://www.tex.ac.uk/faq</a><br class="">
List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/" class="">
https://www.esm.psu.edu/~gray/tex/</a><br class="">
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">
               <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" class="">http://mactex-wiki.tug.org/</a><br class="">
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" class="">
https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class=""><span class="x_Apple-style-span" style="border-collapse:separate; font-family:Helvetica; line-height:normal; border-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; font-family:Helvetica; font-style:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px">
<div class="" style="word-wrap:break-word"><span class="x_Apple-style-span" style="border-collapse:separate; font-family:Helvetica; font-style:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px">
<div class="" style="word-wrap:break-word">
<div class="">
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica"><br class="x_Apple-interchange-newline">
Zbigniew Nitecki</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Department of Mathematics</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Tufts University</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Medford, MA 02155</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font:normal normal normal 12px/normal Helvetica; min-height:14px; font-size:12px">
<br class="">
</div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">telephones:</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Office<span class="x_Apple-converted-tab">    </span>(617)627-3843</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Dept.<span class="x_Apple-converted-tab">    </span>(617)627-3234</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Dept. fax<span class="x_Apple-converted-tab">    </span>(617)627-3966</font></div>
<span class="x_Apple-style-span" style="font-size:12px"><a href="http://www.tufts.edu/~znitecki/" class="">http://www.tufts.edu/~znitecki/</a></span></div>
</div>
</span><br class="x_Apple-interchange-newline">
</div>
</span><br class="x_Apple-interchange-newline">
</span><br class="x_Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
----------- Please Consult the Following Before Posting -----------<br class="">
TeX FAQ: <a href="http://www.tex.ac.uk/faq" class="">http://www.tex.ac.uk/faq</a><br class="">
List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/" class="">
https://www.esm.psu.edu/~gray/tex/</a><br class="">
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">
               <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" class="">http://mactex-wiki.tug.org/</a><br class="">
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" class="">
https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class="">
</div>
</blockquote>
</div>
<br class="">
<div class=""><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-align:auto; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div class="" style="word-wrap:break-word"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div class="" style="word-wrap:break-word">
<div class="">
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica"><br class="x_Apple-interchange-newline">
Zbigniew Nitecki</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Department of Mathematics</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Tufts University</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Medford, MA 02155</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font:normal normal normal 12px/normal Helvetica; min-height:14px; font-size:12px">
<br class="">
</div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">telephones:</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Office<span class="x_Apple-converted-tab">    </span>(617)627-3843</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Dept.<span class="x_Apple-converted-tab">    </span>(617)627-3234</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Dept. fax<span class="x_Apple-converted-tab">    </span>(617)627-3966</font></div>
<span class="x_Apple-style-span" style="font-size:12px"><a href="http://www.tufts.edu/~znitecki/" class="">http://www.tufts.edu/~znitecki/</a></span></div>
</div>
</span><br class="x_Apple-interchange-newline">
</div>
</span><br class="x_Apple-interchange-newline">
</span><br class="x_Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</body>
</html>