3

Double stranded crossing

I want to draw this double stranded crossing of a knot with xypic. How do I do this? Any help is much appreciated.

1
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Commented Mar 31, 2015 at 6:55

2 Answers 2

5

This is the needed code:

\documentclass{article}
\usepackage[all]{xy}

\begin{document}

\[
\xymatrix{
&\ar@{-}[ddd]|!{[d]}\hole|!{[dd]}\hole &\ar@{-}[ddd]|!{[d]}\hole|!{[dd]}\hole\\
\ar@{-}[rrr]&&&\\
\ar@{-}[rrr]&&&\\
&&\\
}
\]

\end{document} 

Output:

enter image description here

or

\documentclass{article}
\usepackage[all]{xy}

\begin{document}

\[
\xymatrix{
&&\ar@{-}[ddddd]|!{[dd]}\hole|!{[ddd]}\hole &\ar@{-}[ddddd]|!{[dd]}\hole|!{[ddd]}\hole\\
\\
\ar@{-}[rrrrr]&&&&&\\
\ar@{-}[rrrrr]&&&&&\\
\\
&&&\\
}
\]

\end{document} 

Output:

enter image description here

2
  • \@karlkoeller: How do I resize this? I want to fit this inside two angle braces. Thanks.
    – Zeus
    Commented Mar 31, 2015 at 11:11
  • @Zeus Please ask a follow-up question for that :) Commented Mar 31, 2015 at 11:15
2

Or with :

% arara: pdflatex

\documentclass{article}
\usepackage{tikz-cd}

\begin{document}
\[
\begin{tikzcd}[%
    ,every arrow/.append style={dash}
    ,row sep={1cm,between origins}
    ,column sep={1cm,between origins}]
& \arrow{ddd} & \arrow{ddd} & \\
\arrow[crossing over]{rrr}& & &\null \\
\arrow[crossing over]{rrr}& & &\null \\
& \null & \null &
\end{tikzcd}
\]
\end{document}

enter image description here


Of course, this is highly adjustable:

\begin{tikzcd}[%
    ,every arrow/.append style={dash}
    ,row sep={1cm,between origins}
    ,column sep={1cm,between origins}]
&[1cm] \arrow{ddd} & \arrow{ddd} &[1cm] \\[1cm]
\arrow[crossing over]{rrr}& & &\null \\
\arrow[crossing over]{rrr}& & &\null \\[1cm]
& \null & \null &
\end{tikzcd}

enter image description here

1
  • @Zeus You are very welcome.
    – LaRiFaRi
    Commented Mar 31, 2015 at 10:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .