Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package caption Error: Undefined justification `justified,RaggedRight' #84

Open
Yuan-Meng opened this issue Apr 6, 2022 · 1 comment

Comments

@Yuan-Meng
Copy link

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
Copy link
Author

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant