
Graphics, Figures & Tables ⇒ Figures with multiple pictures and labels
-
- Posts: 36
- Joined: Tue Oct 09, 2018 1:01 pm
Figures with multiple pictures and labels
Hi. I want to make a figure like the one in the picture below. Can you help me with this?


NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
Figures with multiple pictures and labels
Hi,
I would use the
subcaption package, another way would be using
subfigure. Check these links, let me know how far you get with your code and the package.
Stefan
I would use the


Stefan
LaTeX.org admin
-
- Posts: 36
- Joined: Tue Oct 09, 2018 1:01 pm
Figures with multiple pictures and labels
Hi Stefan,
I downloaded the first package and have some problems with it...
I copied the long code from page 4 of the PDF and when typesetting it says there is a problem with a line where
is.
I see no reason why it might a problem, please can help me with it?
I downloaded the first package and have some problems with it...
I copied the long code from page 4 of the PDF and when typesetting it says there is a problem with a line where
Code: Select all
\subcaption{A subfigure}\label{fig:1a}
I see no reason why it might a problem, please can help me with it?
- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
Figures with multiple pictures and labels
What does it say - what is the error message?
Stefan
Stefan
LaTeX.org admin
-
- Posts: 36
- Joined: Tue Oct 09, 2018 1:01 pm
Figures with multiple pictures and labels
Don't worry, I sorted this out! It was a problem with <options>, I didn't specify them. If I have some more problems, I will post here.
The error message was just a "?".
The error message was just a "?".
- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
Figures with multiple pictures and labels
Ok
error messages often go over several lines - perhaps the editor didn't show everything.
Stefan

Stefan
LaTeX.org admin
-
- Posts: 36
- Joined: Tue Oct 09, 2018 1:01 pm
Figures with multiple pictures and labels
I found this:
http://mirror.ox.ac.uk/sites/ctan.org/m ... on-eng.pdf
caption package PDF to find some options I could use in subcaption. But I don't know what option margin=10pt does on page 4 of this document. I kept changing it up to 100pt, it just shifted the images with respect to each other a little bit, but I still don't know what it does.
http://mirror.ox.ac.uk/sites/ctan.org/m ... on-eng.pdf
caption package PDF to find some options I could use in subcaption. But I don't know what option margin=10pt does on page 4 of this document. I kept changing it up to 100pt, it just shifted the images with respect to each other a little bit, but I still don't know what it does.
- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
Figures with multiple pictures and labels
The margin option is described on page 11, in the section 2.4 Margins and further paragraph options.
For subcaptions, it's like
Stefan
For subcaptions, it's like
\captionsetup[sub]{margin=10pt}
. It depends on what you intend and how. Perhaps post your document code, and what you would like to do.Stefan
LaTeX.org admin