Sorry if it is a simple matter, but I am quite new to advanced LaTeX (before I only used preset styles and did simple things), and I couldn't find an answer after ~30 min of searching.
I want to use Harvard PhD thesis style with sidenotes
package. By default Harvard PhD uses caption
package to manage figure captions, but sidenotes
introduces more styles (e.g. for full width figures, side captions and margin figures). I am trying to make all captions look the same. Here are my settings for caption
:
\RequirePackage[labelfont={sf,bf,small},textfont={sf,small},
justification=RaggedRight,margin=0pt]{caption}
Then in order to make sidenotes
captions look the same, I go through all of styles and set the same settings:
\DeclareCaptionStyle{widefigure}{labelfont={sf,bf,small},textfont={sf,small}}
\DeclareCaptionStyle{marginfigure}{labelfont={sf,bf,small},textfont={sf,small}}
\DeclareCaptionStyle{sidecaption}{labelfont={sf,bf,small},textfont={sf,small}}
But I make double work here and if I need to change one thing, I would have to change it in many places. I realize that I can define a variable which would contain style settings and then just pass it to all of these styles, but I wonder if I can instead pull the settings I already defined from caption
package and pass them to sidenotes
styles.
I guess in a more general form my question is: how I can pull already defined package options to use same options in another place.
\documentclass{...}
and ending with\end{document}
.