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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- 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.