Title: Theory / Unimportant / CS / Descriptive / LaTeX / Package / Subfig
Tags: FromInstruction computer_to_instruction FromVariables declaration hasNotNewEffectReturnsMeaning todo_declaration

Instruction: subfig
Page: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Effect: package to allow having multiple floats in a float environment, each with its label
Language: Latex
Chapter: 1

Variable: \c@subfigure
Meaning: Internal counter variable.
Page: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Context: subfig
Language: Latex
Chapter: 1
Typ: counter
Initialization: 0

Variable: \c@subfigure+save
Meaning: Internal variable to save last counter value in case of a continued figure
Page: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Context: subfig
Language: Latex
Chapter: 1
Typ: counter
Initialization: 0

Variable: \subfigurename
Meaning: Name prepended to the subcaption number
Page: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Context: subfig
Language: Latex
Chapter: 1
Initialization: empty

Instruction: \newsubfloat[bar]{foo}
Page: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Effect: Creates all of the internal structures and commandes to support the new subfloat, with bar a key-value list, and foo the name of the figure
Language: Latex
Context: subfig
Chapter: 1

Instruction: \DeclareCaptionListOfFormat{foo}{bar}
Page: 11
Meaning: allows the specification of how the subcaption references are shown on the List-of-Floats pages. bar is passed two parameters that may be used or ignored
Language: Latex
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 1.3
Context: subfig

Instruction: \DeclareSubrefFormat{foo}{bar}
Page: 11
Meaning: allows the specification of how the \subref* command generates its reference to a sub-caption label in the text
Language: Latex
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 1.3
Context: subfig

Instruction: \subfloat[foo][bar]{plop}
Page: 11
Effect: creates the sub-float in the floating environment
plop is the body
bar is the caption
foo states to print the number of the caption
Language: Latex
Context: subfig
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 2

Instruction: \subref{foo}
Page: 12
Language: Latex
Context: subfig
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 2
Returns: the label shown on the List-of-Floats page. E.g. (a)

Instruction: \subref*{foo}
Page: 12
Language: Latex
Context: subfig
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 2
Returns: the label shown on the List-of-Floats page, of the form \thesubfloat. I.e. like «a» without its parenthesis

Instruction: \ContinuedFloat
Page: 13
Effect: make the next subfloat a continuation of the last float \caption of the same type
Language: Latex
Context: subfig
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 2.3
Where to use it: Beginning of the floating environment or after changing
\@captype inside the floating environment

Instruction: \listsubcaptions
Page: 14
Effect: To call before changing the type of captionscalled by the \caption command and at the end of the float environmen.
Language: Latex
Context: subfig
Chapter: 2 http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/subfig/subfig.pdf
Section: 2.4