Building a word cloud
A visual representation of a concept can show information quickly and intuitively in a more engaging way than a textual explanation. A popular example is a word cloud, which displays words in different sizes based on their frequency or importance within a particular context. People like word clouds because they provide a quick and visually appealing way to grasp the most significant keywords of a topic.
So, we will define a word cloud and learn how to generate word clouds automatically from PDF or text files.
Getting ready
We will use the wordcloud package programmed by Maxime Chupin. It is included in TeX Live and MiKTeX, but you can also get it from https://ctan.org/pkg/wordcloud. The package requires LuaLaTeX, so choose this as the compiler in your editor. The wordcloud package uses Lua for parsing LaTeX commands and arguments, building lists of words from a text file, and generating MetaPost code. That code is interpreted by the luamplib package....