Fonts & Character SetsReload Class Style

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
NFB
Posts: 2
Joined: Thu Jul 07, 2011 9:14 am

Reload Class Style

Post by NFB »

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.
Last edited by NFB on Mon Jul 18, 2011 7:28 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Reload Class Style

Post by 5gon12eder »

This needn't work but it could be worth a try:

Code: Select all

\RequirePackage{subfig}
\documentclass{whatever}
I.e. loading the package before the class so the class can redefine what the package did.

Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Reload Class Style

Post by localghost »

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
NFB
Posts: 2
Joined: Thu Jul 07, 2011 9:14 am

Reload Class Style

Post by NFB »

5gon12eder wrote:This needn't work but it could be worth a try:

Code: Select all

\RequirePackage{subfig}
\documentclass{whatever}
I.e. loading the package before the class so the class can redefine what the package did.

Best
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).

Thank you for the assistance.
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Reload Class Style

Post by sommerfee »

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.).
It seems that the caption package is incompatible to your document class. (But you should get a clear warning about that.)

You can prevent loading the caption package by using the option "caption=false", e.g.

Code: Select all

\usepackage[caption=false]{subfig}
See subfig package documentation for details.

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.
Post Reply