Hi,
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.
Fonts & Character Sets ⇒ Reload Class Style
Reload Class Style
Last edited by NFB on Mon Jul 18, 2011 7:28 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Reload Class Style
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.
Best
Code: Select all
\RequirePackage{subfig}
\documentclass{whatever}
Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Reload Class Style
I don't think that the subfig package does changes to the formatting for no reasons. A true minimal example could help to get closer to a solution.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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.