Dissertate icon indicating copy to clipboard operation
Dissertate copied to clipboard

Caption bug

Open suchow opened this issue 8 years ago • 1 comments

To follow up on my note from earlier, I wanted to let you know I found a workaround that seems to be helping me (in case you're curious). In the Dissertate.cls file I narrowed down the lines causing issues for me to the section below:

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

I removed the "sf" from the first two lines and my captions reappeared. I'm not sure if this has something to do with how the fonts were installed onto my system? but it at least seems to have resolved the problem so I thought I'd let you know.

Thanks again for sharing your files.

Best,

Christine

Hi Jordan,

I'm writing my thesis now at Harvard and downloaded your template from the Physics website. Thank you for sharing your work! I can get by in LaTeX but am in no way proficient and I'm having a problem that I can't seem to figure out and I was hoping you may be able to help point me in the right direction.

Summary of the issue: I am unable to get any figure captions to appear under the figures. I am using the format as shown below.

\begin{figure} \centering \includegraphics[height=8cm,width=8cm,keepaspectratio]{figures/LSP.jpg} \caption[Localized surface plasmons]{This is the figure caption.} \label{fig:lsp} \end{figure}

The short captions in brackets [ ] DO show up in the "list of figures" however the long captions in curly brackets { } DO NOT show up under the figures, just a figure number and blank space (no caption). Just to test, I took your code off of the physics website and just re-ran the script file without changing anything and saw the same issue. All figure captions disappeared in the PDF. I briefly saw a warning appear that caption support for ragged2e had been changed and thought that may be the problem but am having trouble tracking it further.

Please let me know if you have any suggestions and I hope you're enjoying your time at Berkeley. Thank you.

Sincerely,

Christine Zgrabik

suchow avatar Feb 24 '16 22:02 suchow

This also worked for me when my figure captions had a totally different font than the rest of the text. Not the slightest idea why, hopefully it didn't break anything important

tessadgreen avatar May 31 '23 20:05 tessadgreen