I am looking for a way to build an image by overlaying a large
.eps file (
A.eps) with a smaller inset (
B.eps). I want the final image area to have a fixed dimensions (width=
A.eps needs to be scaled to the image area width (i.e.
\textwidth) and positioned vertically at the bottom of the image area. The original aspect ratio of
A.eps must be preserved. If the height of the scaled
A.eps is less than the image area height, I want the whitespace above it preserved. If it is greater, then I want the
A.eps clipped back to the top of the image area.
Second, I want to inset a much smaller graphic
B.eps (without scaling) positioned so that the northeast corner of
B.eps is 0.5cm south and 0.5cm to the west of the northeast corner of the image area.
Lastly, I want to do this for many files where the aspect ratio of both
B.eps change. Ideally, I want to define a command and feed the names of the images as arguments.