Welcome to TeX.SE. As the old saying goes, "the devil is in the details". Unless you provide some detailed information about your document setup and about the layout of section-level and subsection-level headers, it's not likely anyone will be able to provide you specific and actionable suggestions for how you might go about achieving your formatting objective.
– MicoJun 19 '22 at 11:02
thanks for the reply,
Sorry i kinda new to latex, what i hope to achive is simply adding a left margin to the figure and the figure caption.
For example add 1cm left margin to figure
(so the caption stay centered relative to the figure)
if you include an image then it will follow the current indentation, but the only purpose of the figure evironment is to mark it as not part of the document flow but an insert that can float, so it is reset to document default settings
– David CarlisleJun 19 '22 at 11:18
Ah i see,
i just try it out and without "figure" the image seems to perfectly align with what I wanted. but if I don't use figure" then I can't use captions, is it possible to use "caption" without using "figure"? (and i also need to use figure automatic numbering....)
– VMsJun 19 '22 at 11:25
With \captionof{figure}{ <caption text> } defined in the caption and capt-of packages.
– ZarkoJun 19 '22 at 11:41
Thanks everyone for your reply and help. I just found the solutions to my problem is simply not using figure as placeholder instead use \captionof
For example add 1cm left margin to figure (so the caption stay centered relative to the figure)
– VMs Jun 19 '22 at 11:17figureevironment is to mark it as not part of the document flow but an insert that can float, so it is reset to document default settings – David Carlisle Jun 19 '22 at 11:18\captionof{figure}{ <caption text> }defined in thecaptionandcapt-ofpackages. – Zarko Jun 19 '22 at 11:41ref https://tex.stackexchange.com/questions/275224/inserting-a-not-floating-image https://tex.stackexchange.com/questions/452887/remove-figures-but-keep-references-to-image
– VMs Jun 19 '22 at 11:43