![未找到文件“elocalloc.sty”](https://linux22.com/image/323907/%E6%9C%AA%E6%89%BE%E5%88%B0%E6%96%87%E4%BB%B6%E2%80%9Celocalloc.sty%E2%80%9D.png)
我正在尝试编译我找到的 Huffmann 示例,但出现了错误:
!LaTeX 错误:未找到文件“elocalloc.sty”。键入 X 退出或继续,或输入新名称。(默认扩展名:sty)
文本
\documentclass[tikz]{standalone}
\usepackage{forest}
\tikzset{el style/.style={midway, font=\scriptsize, inner sep=+1pt, auto=right}}
\forestset{angled/.style={
content/.expanded={\noexpand\textless\forestov{content}\noexpand\textgreater}}}
\begin{document}
\begin{forest}
for tree={parent anchor=south},
where n children={0}{tier=word}{
if={n==1}{% n == 1 means first child
edge label={node[el style]{0}}
}{
edge label={node[el style, swap]{1}}
}
}
%
[205 [ 82 [40 [20 [10 [5 [nl, angled] ]
[5 [I] ] ]
[10 [l ] ] ]
[20 [t ] ] ]
[42 [20 [10 [5 [b] ]
[5 [d] ] ]
[10 [p] ] ]
[22 [12 [5 [k] ]
[7 [u] ] ]
[10 [s ] ] ] ] ]
[123 [53 [24 [12 [i] ]
[12 [o] ] ]
[29 [l ] ] ]
[70 [30 [15 [a] ]
[15 [n] ] ]
[40 [sp, angled] ] ] ] ]
\end{forest}
\end{document}