Document Classessubfig extraneous KV entries

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
wheely_chairs
Posts: 26
Joined: Mon Jun 16, 2008 1:22 pm

subfig extraneous KV entries

Post by wheely_chairs »

Hi,

I am using the subfig package, which is great, but some of the options I'm entering in the preamble appear to be having no effect:

Code: Select all

\usepackage[font={footnotesize,sf},position=top,labelfont={bf,sf},subrefformat=subsimple,
listofformat=subparens,labelformat=simple,justification=raggedright,singlelinecheck=false,
margin=0.075\textwidth]{subfig}
Having investigated a little with the \showcaptionsetup command I find that the subfloat KV list includes other options, some of which are the same (i.e. duplicates), but with different values. Specifically, \showcaptionsetup returns the following:

Code: Select all

Caption Info: KV list on `subfloat'
Caption Data: (font=footnotesize, labelformat=parens,labelsep=space, listofformat=subparens,subrefformat=subsimple,,font={footnotesize,sf},,
position=top,,labelfont={bf,sf},,subrefformat=subsimple,,listofformat=subparens,,
labelformat=simple,,justification=raggedright,,singlelinecheck=false,,margin=0.075\textwidth,)
I've tried the \clearcaptionsetup command but that doesn't seem to do much. I'm not changing settings anywhere else in the code so I'm a bit confused as to where these extraneous settings are coming from; presumably they are the source of the null effect since they must be overiding my values? Any ideas?

Thanks,

Chris

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

subfig extraneous KV entries

Post by localghost »

For a better understanding of your problem it would be good to have a minimal working example (MWE). Processing this MWE we would be able to figure out what's going wrong and giving specific help would be much easier. Please follow the guidelines for creating a MWE on the linked site.


Best regards and welcome to the board
Thorsten¹
wheely_chairs
Posts: 26
Joined: Mon Jun 16, 2008 1:22 pm

subfig extraneous KV entries

Post by wheely_chairs »

localghost wrote:Best regards and welcome to the board
Thanks! Bit of a newbie to LaTeX, having only been using it for the last few months, but loving it so far :)
localghost wrote:For a better understanding of your problem it would be good to have a minimal working example (MWE)
Yeah, sorry about that:

Code: Select all

\documentclass[12pt, titlepage]{report}
\usepackage[font={footnotesize,sf},position=top,labelfont={bf,sf},labelformat=simple,
justification=raggedright,singlelinecheck=false,margin=0]{subfig}
\showcaptionsetup{subfloat}
\begin{document}
Hello World
\end{document}
When I typeset the document, I get the following in the console (I'm using TeXShop):

Code: Select all

Caption Info: KV list on `subfloat'
Caption Data: (font=footnotesize, labelformat=parens,labelsep=space, listofformat=subparens,
subrefformat=subsimple,,font={footnotesize,sf},,position=top,,labelfont={bf,sf},,
labelformat=simple,,justification=raggedright,,singlelinecheck=false,,margin=0.0\textwidth,)
Coincidentally, I am now getting the result I expected (after a re-read of the documentation I discovered that 'subrefformat' only affects \subref*!!) but I'm still curious as to the source of these additional entries...

Thanks,

Chris
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

subfig extraneous KV entries

Post by sommerfee »

wheely_chairs wrote:but I'm still curious as to the source of these additional entries...
They will be done by the subfig package itself:

Code: Select all

\documentclass{report}
\usepackage{subfig}
\showcaptionsetup{subfloat}
\begin{document}
\end{document}
HTH,
Axel
Post Reply