TeX - LaTeX Asked by Yaacov NNNNM on July 17, 2021
I did not find an issue that would attempt to define a setting for the font size (including any font size) here at tex.stackexchange.com. There is a probability that I am posting an issue that will become “duplicate”, but I will post anyway. My question is how to set any font size for the nodes of a mindmap in a “global” way. Although it is a simple matter, I think there are some subtleties in it.
Here my MWE:
documentclass{article}
usepackage{anyfontsize}
usepackage{tikz}
usepackage[paperwidth=5cm,paperheight=5cm]{geometry}
usetikzlibrary{mindmap}
begin{document}
centeringbegin{tikzpicture}[mindmap]
tikzstyle{every node}=[text width=1cm,align=flush center,minimum size=1cm]
node [concept, text=white] at (0,0)
{any other text}
child [concept color=blue!50, grow=0,level distance=80]
{node [concept] (text) {Text}};
end{tikzpicture}
end{document}
Here my own answer, using fontselect{X-size-unitdimen}{X-size-unitdimen}selectfont
. I consider that to have effect it is necessary to use selectfont
:
documentclass{article}
usepackage{anyfontsize}
usepackage{tikz}
usepackage[paperwidth=5cm,paperheight=5cm]{geometry}
usetikzlibrary{mindmap}
begin{document}
centeringbegin{tikzpicture}[mindmap]
tikzstyle{every node}=[font=fontsize{2mm}{3mm}selectfont,text width=1cm,align=flush center,minimum size=1cm]
node [concept, text=white] at (0,0)
{any other text}
child [concept color=blue!50, grow=0,level distance=80]
{node [concept] (text) {Text}};
end{tikzpicture}
end{document}
Answered by Yaacov NNNNM on July 17, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP