1

I was trying to align my caption in https://www.overleaf.com/14116991zfbttpsgjsym#/54641567/ to the left. But I can't use \captionsetup{justification=raggedright,singlelinecheck=false} Since I only want several caption to be aligned to the left. Interestingly, if you delete all the code before begin document and replace it by

    \documentclass{article}
    \usepackage{animate}
    \usepackage{graphicx}
    \usepackage{hyperref}

Then the caption will be aligned automatically (in central). Anyway I just want my caption to be aligned/ looks neat.

Thanks!

1
  • You can use \captionsetup several times in your document
    – user2478
    Commented Mar 22, 2018 at 21:05

1 Answer 1

1

\captionsetup can also be used locally:

  • A large group:

    \begingroup
       \captionsetup{justification=raggedright, singlelinecheck=false}
       ...
    \endgroup
    
  • or inside the floating environment:

    \begin{figure}
      \captionsetup{justification=raggedright, singlelinecheck=false}
      \caption{...}
    \end{figure}
    

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .