Dissertate icon indicating copy to clipboard operation
Dissertate copied to clipboard

Package caption Error: Undefined justification `justified,RaggedRight'

Open Yuan-Meng opened this issue 2 years ago • 1 comments

I tried to compile the UC Berkeley template in Sublime Text 4 and got the following error:

Errors:

/usr/local/texlive/2021/texmf-dist/tex/latex/caption/caption.sty:187: Package caption Error: Undefined justification `justified,RaggedRight'. [\caption@ProcessOptions*{caption}]

Then I checked the caption package document and saw that both justified and RaggedRight are built-in options. When I then opened caption.sty, I didn't see RaggedRight defined.

I wonder if this has been an issue before and how to possibly fixed it. I thought about downloading a newer caption package but te one here doesn't seem to have a caption.sty. Thanks for any help!

Yuan-Meng avatar Apr 06 '22 05:04 Yuan-Meng

For now I just deleted RaggedRight from the following part in Dissertate.cls:

\RequirePackage[labelfont={bf,sf,footnotesize,singlespacing},
                textfont={footnotesize,singlespacing},
                justification={justified,RaggedRight},
                singlelinecheck=false,
                margin=0pt,
                figurewithin=chapter,
                tablewithin=chapter]{caption}

Yuan-Meng avatar Apr 06 '22 05:04 Yuan-Meng