
저는 Tikz를 처음 사용하고 있으며 SmartArt를 MS PowerPoint에서 LaTeX로 변환하는 작업을 하고 있습니다. 내 다이어그램 중 하나는 다음과 같습니다.
smartdiagram 패키지를 알고 있는데, 위와 다소 비슷해 보이는 "설명 다이어그램"을 발견했습니다. 그러나 나는 프로세스의 단계를 보여주고 각 단계를 설명하려고 노력하고 있습니다(따라서 왼쪽 아래로 향하는 육각형이 표시됩니다). 스마트다이어그램에 이미 존재하는 방법이 있나요? 아니면 나만의 tikz그림을 그려야 하나요?
답변1
또는 패키지 없이 smartdiagram
:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols,positioning}
\definecolor{myblue}{RGB}{79,129,189}
\tikzset{
myshape/.style={
shape=signal,
fill=myblue,
minimum height=1.5cm,
minimum width=1.5cm,
text=white,
signal pointer angle=130,
signal to=east,
signal from=west,
rotate=-90,
transform shape
},
mytext/.style={
draw=myblue,
text width=7cm,
minimum height=1.15cm,
thick,
outer sep=0pt
}
}
\newcounter{tmp}
\newcommand\MyDesc[3][]{
\stepcounter{tmp}%
\node[myshape,#1] (desc\thetmp) {};
\node[font=\color{white}] at (desc\thetmp) {#2};
\node[mytext,anchor=north west] at (desc\thetmp.north west)
{%
\parbox[t]{2em}{\hfill$\bullet$\hfill\null}%
\parbox[t]{\dimexpr\linewidth-2em\relax}{#3}%
};
}
\begin{document}
\begin{tikzpicture}[]
\MyDesc{Foo 1}{Description 1}
\MyDesc[below = 1.5cm of desc1.north]{Foo 2}{Description 2}
\MyDesc[below = 1.5cm of desc2.north]{Foo 3}{Description 3}
\end{tikzpicture}
\end{document}
답변2
작은 패치로 다음을 달성할 수 있습니다.
완벽함과는 거리가 멀지만 참고 사진처럼 보입니다.
코드:
\documentclass[12pt]{article}
\usepackage{smartdiagram}
\usetikzlibrary{shapes.symbols}
\tikzset{description title/.append style={
signal,
signal to=south,
signal from=north,
yshift=-0.65cm,
}
}
\begin{document}
\begin{center}
\smartdiagramset{description title width=2cm,
description title text width=1.75cm,
descriptive items y sep=2,
description text width=5.75cm,
module minimum height=1.25cm}
\smartdiagram[descriptive diagram]{%
{Set up,The set up operation consist of..},
{Run, {After having set up the program, you must run..}},
{Analyse, You must check what did with analytical tools like..},}
\end{center}
\end{document}