When I create my LaTeX documents, I’m heavy on figures. It is a problem when I want to insert them through code in good order and with an appropriate size. With that in mind, I created a little bash script. It searches through a directory of all the .pdf files (I save all of my figures in this format, you can change it to .png or some other LaTeX-friendly image format). The script goes as follows:
|
|
It writes the code into the multiFigure.md
file. You can copy and paste the code wherever you want and edit sizes, change positions, and everything without worrying about the names of the files. It goes through files alphabetically. If you have the names numbered, the output will respect that.
They are some prerequisites inside LaTeX. They are:
|
|
Example
With the bash script, you can create results like this with minimal configuration:
Now you can create code automatically to solve your image needs in LaTeX.