TQFT로 덮인 경계에만 점선이 표시됩니다.

TQFT로 덮인 경계에만 점선이 표시됩니다.

나는 사용하고있다앤드루 스테이시의아주 멋진TQFT 패키지cobordism의 그림을 만들기 위해. 하지만 경계에 문제가 있습니다.

여기에 이미지 설명을 입력하세요

\documentclass{article}

\usepackage{tikz}
\usepackage{tqft}

\begin{document}
    \begin{tikzpicture}
        \node[draw,tqft/reverse pair of pants,boundary lower style={draw,dashed}] (A) {};
        \node[label={below:should be solid}] at (A.outgoing boundary 1) {};
    \end{tikzpicture}
\end{document}

코보르디즘에 대한 나의 드로잉 규칙은 코보르디즘으로 덮힌 경계가 점선으로 표시되고 눈에 보이는 모든 것이 단단해야 한다는 것입니다. 위는 내가 얼마나 멀리 왔는지입니다. 거의 모든 원이 올바르게 나오지만 맨 아래 원은 완전히 단단해야 합니다. 나가는 아래쪽 경계에만 스타일을 지정하는 키가 있습니까?

답변1

lower boundary키를 통해 전역 설정을 정의합니다 every .... 그래서 덮어써야 합니다.

\documentclass{standalone}

\usepackage{tikz}
\usepackage{tqft}

\begin{document}
    \begin{tikzpicture}[every tqft/.style={draw,boundary lower style={draw,dashed}}]% DASHED!!!
        \node[tqft/pair of pants] (A) {};
        \node[tqft/reverse pair of pants,anchor=incoming boundary 1,
                    boundary lower style={draw,solid}% SOLID AGAIN HERE !!
                    ] (B) at (A.outgoing boundary 1) {};
        \node[label={below:should be solid}] at (B.outgoing boundary 1) {};
    \end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

답변2

바지 위에 경계선을 추가로 그리면 이 문제를 해결할 수 있습니다(이 점을 지적한 Andrew Stacey에게 감사드립니다).

\documentclass{article}

\usepackage{tikz}
\usepackage{tqft}

\begin{document}
    \begin{tikzpicture}
        \node[draw,tqft/reverse pair of pants,boundary lower style={draw,dashed}] (A) {};
        \node[tqft boundary circle,draw] at (A.outgoing boundary 1) {};
        \node[label={below:should be solid}] at (A.outgoing boundary 1) {};
    \end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

답변3

나는 (2014년 4월 7일에) 패키지의 새 버전을 tqftCTAN에 업로드했습니다. 시스템 전체에 전파되면 다음을 통해 원하는 결과를 얻을 수 있습니다.

\documentclass{article}
%\url{http://tex.stackexchange.com/q/167836/86}
\usepackage{tikz}
\usetikzlibrary{tqft}

\begin{document}
    \begin{tikzpicture}
        \pic[
  draw,
  tqft/reverse pair of pants,
  every lower boundary component/.style={draw},
  every incoming lower boundary component/.style={dashed},
  every outgoing lower boundary component/.style={solid},
  name=A
];
        \node[label={below:is solid}] at (A-outgoing boundary 1) {};
    \end{tikzpicture}
\end{document}

이 개정판(TikZ3.0 이상이 필요함)에는 훨씬 더 많은 스타일링 가능성이 도입되었습니다. 본질적으로, cobordism 경로의 모든 세그먼트는 별도로 스타일을 지정할 수 있습니다.

별도의 스타일을 적용한 TQFT

관련 정보