Fonts & Character Sets ⇒ Reload Class Style
Reload Class Style
I'm writing an article with a significant amount of formatting rules supplied in a class. I'm also using the subfig package which changes the formatting of table/figure captions (font sizes etc.). Is there a way to reload or reinitialize the style from my class file?
Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
5gon12eder
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Reload Class Style
Code: Select all
\RequirePackage{subfig}
\documentclass{whatever}
Best
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Reload Class Style
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Reload Class Style
Sorry, I got derailed by other work, but finally got back to this. The above worked, but I had to include the \RequirePackage{subfig} in the "whatever" class, not directly in the document (which I gather is normal practice anyway).5gon12eder wrote:This needn't work but it could be worth a try:
I.e. loading the package before the class so the class can redefine what the package did.Code: Select all
\RequirePackage{subfig} \documentclass{whatever}
Best
Thank you for the assistance.
Reload Class Style
It seems that the caption package is incompatible to your document class. (But you should get a clear warning about that.)NFB wrote:I'm writing an article with a significant amount of formatting rules supplied in a class. I'm also using the subfig package which changes the formatting of table/figure captions (font sizes etc.).
You can prevent loading the caption package by using the option "caption=false", e.g.
Code: Select all
\usepackage[caption=false]{subfig}Please note that this is just a guess after a look at the crystal ball, as Thorsten already said, a true minimal example could help us to get closer to a solution.