我正在下面的 MWE 中制作智能图表气泡图,但对我来说,右边黑色气泡中的文本显然没有居中……
虽然其他气泡中的相同文本看起来居中良好,但黑色圆圈中最后一个条目的单词左侧的空间比右侧的空间小得多。
虽然这是一个小问题,但我想知道为什么会发生这种情况,以及是否有办法解决它。非常感谢!
梅威瑟:
\documentclass{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{backgrounds,
calc,
fadings,
shadows,
shapes.arrows,
shapes.symbols
}
\usepackage{xparse}
\edef\RestoreEndlinechar{%
\endlinechar=\the\endlinechar\relax
}
\endlinechar=-1
\usepackage{smartdiagram}
\RestoreEndlinechar
\tikzset{bubble node/.append style={
draw=none, opacity=0.5
}
}
\begin{document}
\smartdiagramset{
distance text center bubble=0.5cm,
bubble center node size=3cm,
bubble node size=3cm,
distance center/other bubbles=1cm,
bubble center node font=\LARGE,
bubble node font=\LARGE,
bubble center node color=magenta,
set color list = {yellow, pink, blue, green, black}
}%
\smartdiagram[bubble diagram]{%
key\\word,
another,
another,
another,
another,
another
}%
\end{document}
其结果为:
答案1
我认为%
在最后一个单词后添加一个问题就解决了:
\documentclass{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{backgrounds,
calc,
fadings,
shadows,
shapes.arrows,
shapes.symbols
}
\usepackage{xparse}
\edef\RestoreEndlinechar{%
\endlinechar=\the\endlinechar\relax
}
\endlinechar=-1
\usepackage{smartdiagram}
\RestoreEndlinechar
\tikzset{bubble node/.append style={
draw=none, opacity=0.5
}
}
\begin{document}
\smartdiagramset{
distance text center bubble=0.5cm,
bubble center node size=3cm,
bubble node size=3cm,
distance center/other bubbles=1cm,
bubble center node font=\LARGE,
bubble node font=\LARGE,
bubble center node color=magenta,
set color list = {yellow, pink, blue, green, black}
}%
\smartdiagram[bubble diagram]{%
key\\word,
another,
another,
another,
another,
another% <---- This white space was the problem!
}%
\end{document}