I have huge set of weather related images with are plotted for 12 months for various cities. I would like to present these images to the users in the form of pdf in landscape layout in an organised manner. So that it would be easy for reference. The basic idea is to place four images with some caption as shown below:- Concept of the image lcations Basically A and C are interrelated and B and D are interrelated. Therefore, I would like to draw a box around it and place A&C and B&D side by side (top and bottom). The size of A & B is 747x559 pixels and C&D is 1044x1111 pixels.

I have seen some of the code in this forum and found some basic latex code to place the image like below:-

\includegraphics[width=400px\linewidth,height=200px, left]{bar_at_April_7.png}
\includegraphics[width=400px\linewidth,height=200px, right]{bar_at_April_7.png}
\includegraphics[width=400px\linewidth,height=300px, left]{wr_at_April_7.png}
\includegraphics[width=400px\linewidth,height=300px, right]{wr_at_April_7.png}
\caption{ 4 figures}

However, I am not getting the expected result. Here is the basic output I got:-

enter image description here

It lines up all the images in the harizontal fashion and puts the last image in to next page.

So my query is that how do you put all these four images in the same manner I have listed in the first image? Some code sample would be of great help.

  • Will every image have its own caption, (figure 1, figure 2,...) or will the have a common caption and every figure has its own subcaption ((a), (b), ...)? – leandriis Sep 15 '19 at 19:46

Probably the following is close to what you want to achieve:

enter image description here

\begin{adjustbox}{minipage=0.45\linewidth,frame=1pt 5pt}

\begin{adjustbox}{minipage=0.45\linewidth,frame=1pt 5pt}

\caption{This is the caption}
  • It does not work. It puts each image in four pages. For infor, I used pandoc to convert the tex to pdf using this command pandoc input.tex -t latex -V geometry:landscape -o output.pdf – sundar_ima Sep 16 '19 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.