我对箭头的高度感到困惑,该如何解决?
\documentclass{article}
\usepackage[edges]{forest}
\usetikzlibrary{shadows.blur,shapes.multipart}
\tikzset{grimsel/.style={rectangle split,rectangle split parts=1,draw,
fill=white,blur shadow,rounded corners,align=center}}
\begin{document}
\newcommand{\NodeTitle}[2][]{#2\nodepart[align=left,text width={width("#2")}]{two}}
\begin{forest}
forked edges,
for tree={grimsel,edge={-latex}}
[Recommender Systems,l=17mm,
[ Approach \\ Content Based,l=17mm]
[Approach \\ Filtrado Colaborativo,l=17mm,
[{Memory \\Based }
[{User \\ Based}]
[{Item \\ Based}]
]
[{Model\\ Based}
[{Clustering \\methos}]
[{Matrix factorization \\ Method}]
[{Neural \\ Networks}]
]
]
[{Hybrid\\approach \nodepart[align=left]{two} },l=17mm]
]
\end{forest}
\end{document}
答案1
在以下帮助下这里。
\documentclass{article}
\usepackage[edges]{forest}
\usetikzlibrary{shadows.blur,shapes.multipart}
\tikzset{grimsel/.style={rectangle split,rectangle split parts=1,draw,
fill=white,blur shadow,rounded corners,align=center}}
\begin{document}
\newcommand{\NodeTitle}[2][]{#2\nodepart[align=left,text width={width("#2")}]{two}}
\begin{forest}
forked edges,
for tree={grimsel,thick,edge={-latex,very thick},l sep = 12mm,fork sep=6mm}
[Recommender Systems,
[ Approach \\ Content Based]
[Approach \\ Filtrado Colaborativo,calign with current
[{Memory \\Based }
[{User \\ Based}]
[{Item \\ Based}]
]
[{Model\\ Based}
[{Clustering \\methos}]
[{Matrix factorization \\ Method},calign with current]
[{Neural \\ Networks}]
]
]
[{Hybrid\\approach \nodepart[align=left]{two} }]
]
\end{forest}
\end{document}