I am new to smartdiagram. Used to use Tikz a bit but that was more than a few years ago. For some reason, I am baffled by my inability to easily shrink the width of the three red "pillow boxes" which have my three labels "Tasks", "Tools", and "Techniques".
Thanks for any suggestions.
\documentclass[tikz,border=5mm]{standalone}
\usepackage[utf8]{inputenc}
\renewcommand{\familydefault}{\sfdefault} % % to change font to the default style of sans serif:
\usepackage{tikz}
\usepackage{smartdiagram}
\usetikzlibrary{chains, backgrounds}
\begin{document}
\begin{tikzpicture}
\newcommand{\col}{red}
\tikzfading[name=priorityarrowfadingdown,
top color=transparent!5,
bottom color=transparent!80
]
\tikzset{priority
arrow fill/.style={
fill=gray,
path fading=priorityarrowfadingdown
}
}
\begin{scope}[
start chain=c going above,
node distance=2mm,
local bounding box=a,
]
\foreach \t in {
\textbf{TECHNIQUES},
\textbf{TOOLS},
\textbf{TASKS}}
\node [description, drop shadow, on chain, align=center] {\t};
\end{scope}
\newcommand{\distancemodules}{4cm}
% draw big arrow on side
\node [priority arrow, left=12mm, rotate=180, transform shape, anchor=before tail] (f) at (a.north west) {}; % wdg: "left=7mm" is the distance btw the boxes and the arrow
% draw ticks on big arrow
\foreach \i in {1,...,3}
\draw [\col, line width=5pt] (c-\i -| f.south) -- (c-\i -| f.north);
\end{tikzpicture}
\end{document}
\smartdiagramset{description text width=2.5cm, description width=3cm}
before\foreach
would do the work. These options are documented in manual ofsmartdiagrame
, sec. 4.2.2. In addition, your code is still intikz
style, but notsmartdiagram
style. – muzimuzhi Z Jul 30 '20 at 23:54