Contents
How to get a reference to a subfigure?
But in the subfigures are labeled with uppercase letters (A), (B), etc. So what I would like to get is a reference like 1.1 (A). Can someone help me to fix this problem? Thanks in advance! Simple alternative: Use \\captionsetup [subfigure] {labelfont=rm} after loading package subcaption.
What is the labelformat of subfigure captions?
The labelformat of the subfigure captions is set to simple, which produces only the caption letter without parentheses. The labelsep is colon for subfigure captions and a newline for the figure.
How to reference to subfigures in latex templates?
Hallo everybody. I am unsing the template for Theses of Sunil Patel provided by LaTeX-Templates. I am trying to reference to subfigures but I don’t get it correctly. I include my figures with Code, edit and compile here: and this works quite well.
What happens if I don’t put a caption in a subfigure?
But I get an error when compiling the document that the reference doesn’t exist. If instead I put a caption in each subfigure then the error goes away, but that’s not what I really want to do.
By some search I found different ways but not working for me. May be I am using shareLatex and others use proper Latex (I don’t know very much difference so sorry if I say something odd).
Can a label be set after a caption?
If your structure is such that you will never use numbered subfigures, then one can update the way label works inside a subfigure environment. The only way you can get the correct reference, is if you place content after a caption, as the caption steps the associated counter and sets the correct reference.
How is a subfigure caption separated from a caption?
In the above, the subfigure caption label is enclosed by parentheses and the figure caption label is separated from the caption text by a colon.
How are figure captions and subcaptions formatted in latex?
The figure caption labels is italic, the caption text is bold and italic. The subfigure label is bold, the text is normal and it is aligned left. As explained in the code block, singlelinecheck is turned off so that even short, one line captions use the justification setting. Otherwise, it will always be centered.