단계를 나타내는 일부 간트 그룹이 포함된 간트 차트를 만들었습니다. 그러나 이러한 간트 그룹은 내가 원하지 않는 작업과 연결됩니다(빨간색 화살표와 같기를 원하는 첫 번째 그림처럼).
나는 간트 그룹 이전의 개체와 이후의 개체를 연결하려고 시도했지만 그것은 나에게 적합하지 않았습니다(개체 3을 5와 연결하려고 시도했을 때의 두 번째 그림처럼).
이에 대한 해결책이 있습니까?!
\begin{ganttchart}[
vgrid
]{0}{17}
\gantttitle{Weeks}{18} \\
\gantttitlecalendar*[title left shift=1,title right shift=1]{1}{16}{day}
\\[grid]
\ganttgroup{Phase 1}{1}{5} \\
\ganttbar{System Analysis}{1}{3} \\
\ganttlinkedbar{System Design}{4}{5} \ganttnewline
\ganttmilestone{System Architecture}{5} \ganttnewline
\ganttgroup{Phase 3}{6}{12} \\
\ganttlinkedbar{System Implementation}{6}{8} \ganttnewline
\ganttlinkedbar{Benchmarks Implementation}{9}{12} \ganttnewline
\ganttmilestone{System and Benchmarks code}{12} \ganttnewline
\ganttgroup{Phase 4}{13}{13} \\
\ganttlinkedbar{System Evaluation}{13}{13} \ganttnewline
\ganttmilestone{Evaluation Results}{13} \ganttnewline
\ganttgroup{Phase 4}{13}{16} \\
\ganttbar{Documentation}{13}{16}\ganttnewline
\ganttmilestone{Milestone}{16}
\ganttlink{elem1}{elem2}
\ganttlink{elem2}{elem3}
\ganttlink{elem3}{elem5}
\ganttlink{elem5}{elem6}
\ganttlink{elem6}{elem7}
\ganttlink{elem7}{elem8}
\ganttlink{elem8}{elem9}
\ganttlink{elem9}{elem10}
\ganttlink{elem10}{elem11}
\ganttlink{elem11}{elem12}
\ganttlink{elem12}{elem13}
\end{ganttchart}
답변1
link bulge
링크의 매개변수, 즉 및 를 가지고 놀아야 합니다 link mid
. 이를 통해 수직 링크의 돌출 및 위치를 지정할 수 있습니다. pgfgantt
자세한 내용은 설명서(38페이지)를 참조하십시오 .
어쨌든, 코드:
\documentclass{article}
\usepackage{pgfgantt}
\begin{document}
\begin{ganttchart}[
vgrid
]{0}{17}
\gantttitle{Weeks}{18} \\
\gantttitlecalendar*[title left shift=1,title right shift=1]{1}{16}{day}
\\[grid]
\ganttgroup{Phase 1}{1}{5} \\
\ganttbar{System Analysis}{1}{3} \\
\ganttlinkedbar{System Design}{4}{5} \ganttnewline
\ganttmilestone{System Architecture}{5} \ganttnewline
\ganttgroup{Phase 3}{6}{12} \\
\ganttbar{System Implementation}{6}{8} \ganttnewline
\ganttlinkedbar{Benchmarks Implementation}{9}{12} \ganttnewline
\ganttmilestone{System and Benchmarks code}{12} \ganttnewline
\ganttgroup{Phase 4}{13}{13} \\
\ganttbar{System Evaluation}{13}{13} \ganttnewline
\ganttmilestone{Evaluation Results}{13} \ganttnewline
\ganttgroup{Phase 4}{13}{16} \\
\ganttbar{Documentation}{13}{16}\ganttnewline
\ganttmilestone{Milestone}{16}
\ganttlink{elem1}{elem2}
\ganttlink{elem2}{elem3}
\ganttlink[link bulge=1,link mid=0.3]{elem3}{elem5}
\ganttlink{elem5}{elem6}
\ganttlink{elem6}{elem7}
\ganttlink[link bulge=1,link mid=0.3]{elem7}{elem9}
\ganttlink{elem9}{elem10}
\ganttlink[link bulge=1,link mid=0.3]{elem10}{elem12}
\ganttlink{elem12}{elem13}
\end{ganttchart}\end{document}
결과:
편집하다
댓글에서 사용자가 자신의 요청을 구체화했으므로 여기에 새 코드를 보고합니다. 그룹의 첫 번째 항목을 그룹 자체에 연결하지 않으려면 를 로 바꾸는 것으로 충분 \ganttlinkedbar
합니다 \ganttbar
. 나는 다음 줄에서 그것을했습니다 :
\ganttbar{System Implementation}{6}{8} \ganttnewline
새 코드:
\documentclass{article}
\usepackage{pgfgantt}
\begin{document}
\begin{ganttchart}[
vgrid
]{0}{17}
\gantttitle{Weeks}{18} \\
\gantttitlecalendar*[title left shift=1,title right shift=1]{1}{16}{day}
\\[grid]
\ganttgroup{Phase 1}{1}{5} \\
\ganttbar{System Analysis}{1}{3} \\
\ganttlinkedbar{System Design}{4}{5} \ganttnewline
\ganttmilestone{System Architecture}{5} \ganttnewline
\ganttgroup{Phase 3}{6}{12} \\
\ganttbar{System Implementation}{6}{8} \ganttnewline
\ganttlinkedbar{Benchmarks Implementation}{9}{12} \ganttnewline
\ganttmilestone{System and Benchmarks code}{12} \ganttnewline
\ganttgroup{Phase 4}{13}{13} \\
\ganttlinkedbar{System Evaluation}{13}{13} \ganttnewline
\ganttmilestone{Evaluation Results}{13} \ganttnewline
\ganttgroup{Phase 4}{13}{16} \\
\ganttbar{Documentation}{13}{16}\ganttnewline
\ganttmilestone{Milestone}{16}
\ganttlink{elem1}{elem2}
\ganttlink{elem2}{elem3}
\ganttlink[link bulge=2,link mid=0.3]{elem3}{elem5}
\ganttlink{elem5}{elem6}
\ganttlink{elem6}{elem7}
\ganttlink{elem7}{elem8}
\ganttlink{elem8}{elem9}
\ganttlink{elem9}{elem10}
\ganttlink{elem10}{elem11}
\ganttlink{elem11}{elem12}
\ganttlink{elem12}{elem13}
\end{ganttchart}
\end{document}
생산물: