I am writing a technical report related to text processing and would like to use a figure to illustrate something like what is shown in figure 1 below.
So basically, it is just a figure with text. As I wan't to keep the "latex-look" in the entire document, I would prefer not doing it as I have done in this example (e.g. using notepad).
I am sorry for not providing a minimal working example, but I could not figure out what to search for other than e.g. "latex figures with text". This only results in descriptions on how to create figure captions.
So basically what I am asking for is guidance on how to do this, or what to search for.
Also, if someone knows if this is a proper way of illustrating what I am trying to do (like you see in the example figure) when it comes to academic reports, I would appreciate your input. I assume this would be preferable rather than just writing the lists of strings and integers (as in this example) out in raw text.


\begin{figure} <float content> \end{figure}. Usingfigurewill make caption look like "Figure 1. xxxx" yet then, content is up to you. For several sub-figures, have a look at thesubfigpackage. For displaying code, it'slisting. It's then up to you to combine all these elements together (-; ! – ebosi Apr 11 '17 at 21:17minipage, inside which you could put whatever you want. – GuM Apr 11 '17 at 21:18