向 TikZ 思维导图添加轮廓

向 TikZ 思维导图添加轮廓

我使用 TiKZ 绘制了以下思维导图:

\documentclass[10pt]{standalone}

\usepackage[svgnames]{xcolor}

% Font Settings

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{stix}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage[protrusion,expansion,babel,final]{microtype}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees}

\begin{document}

\begin{tikzpicture}
  \path[mindmap,concept color=Gainsboro,text=Black]
    node[concept] {CS Core}
    [clockwise from=0]
    child[concept] { node[concept] {AI Track} }
    child[concept] { node[concept] {Theory Track} }
    child[concept] { node[concept] {Systems Track} }
    child[concept] { node[concept] {Game Programming Track} }
    child[concept] { node[concept] {Software Engineering Track} }
    child[concept] { node[concept] {Internet Technologies Track} }
    ;
\end{tikzpicture}

\end{document}

总体而言,我对外观总体上感到满意,但我想知道如何在基本形状周围添加黑色轮廓。任何关于如何做到这一点的想法都将不胜感激。

答案1

一个非常肮脏的解决方案是添加稍微大一点的黑色思维导图。

\documentclass[10pt]{standalone}

\usepackage[svgnames]{xcolor}

% Font Settings

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{stix}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage[protrusion,expansion,babel,final]{microtype}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees,calc}

\begin{document}

\begin{tikzpicture}
\path[mindmap,concept color=black,text=Black]
    node[concept,text width=26ex] {}
    [clockwise from=0]
    child[concept] { node[concept,text width=15ex] {} }
    child[concept] { node[concept,text width=15ex] {} }
    child[concept] { node[concept,text width=15ex] {} }
    child[concept] { node[concept,text width=15ex] {} }
    child[concept] { node[concept,text width=15ex] {} }
    child[concept] { node[concept,text width=15ex] {} }
    ;
  \path[mindmap,concept color=Gainsboro,text=Black]
    node[concept] {CS Core}
    [clockwise from=0]
    child[concept] { node[concept] {AI Track} }
    child[concept] { node[concept] {Theory Track} }
    child[concept] { node[concept] {Systems Track} }
    child[concept] { node[concept] {Game Programming Track} }
    child[concept] { node[concept] {Software Engineering Track} }
    child[concept] { node[concept] {Internet Technologies Track} }
    ;
\end{tikzpicture}

\end{document}

带边框的思维导图

相关内容