Package Caption Error Figurename Undefined
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of captionsetup options this site About Us Learn more about Stack Overflow the company Business Learn latex captionsetup justification left more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ unused captionsetup[table] TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it
Package Caption Warning Unused \captionsetup Table
works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Problem with command \captionsetup from package caption up vote 12 down vote favorite 2 The following MWE: \documentclass[11pt]{memoir} \usepackage{caption} \captionsetup[table]{ listformat=empty, tablename=Table, justification=justified, labelsep=quad, position=above, skip=\onelineskip, width=\linewidth, labelfont={small}, font={small} } \begin{document} \begin{table} \caption{A table.} \end{table} \end{document} generates the error message ! Package caption Error: Can be latex caption justification options used only in preamble. If I comment the \captionsetup command, there is no such error message. I know the class memoir provides its own tools for captions, but I'd rather use the package caption for them. Anyone could possibly shed some light on this issue? EDIT: As soon as I comment the key tablename, the problem disappears. But even though it works, I wouldn't call it precisely a satisfactory solution. captions memoir naming share|improve this question edited Apr 16 '13 at 12:14 lockstep 161k38486646 asked Aug 13 '12 at 19:03 Marcos 2,42311133 add a comment| 2 Answers 2 active oldest votes up vote 17 down vote accepted Edit: Thanks to Gonzalo Medina, I think I have an explanation. :) tablename and figurename are indeed valid entries for \captionsetup, as long as you are using it without the optional argument. The idea: \captionsetup without the optional argument works globally, so it makes sense to set both figure and table names via figurename and tablename respectivelly. The following code works: \captionsetup{ tablename=Table, listformat=empty, justification=justified, labelsep=quad, position=above, skip=\onelineskip, width=\linewidth, labelfont={small}, font={small} } We are setting the caption layout globally. Now, when we provide the optional argument, we are limi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings caption left align latex and policies of this site About Us Learn more about Stack Overflow the
Caption Package Latex
company Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges
Table Caption Latex
Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a http://tex.stackexchange.com/questions/67005/problem-with-command-captionsetup-from-package-caption minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Can not redefine the command of \figureformat (\figureformat undefined) up vote 2 down vote favorite I want to redefine the \figureformat to customize the output of figure captions: \renewcommand*{\figureformat}{\thefigure.\figurename} However, it gives an error when I compile: \figureformat http://tex.stackexchange.com/questions/228623/can-not-redefine-the-command-of-figureformat-figureformat-undefined undefined. \renewcommand*{\figureformat} Here is the test tex: \documentclass[10pt,letterpaper]{article} \renewcommand*{\figureformat}{\thefigure. \figurename} \begin{document} \begin{figure}[h] \caption{{test} \label{fig1} \end{figure} \end{document} I am using TeX Live 2013/W32TeX and TexStudio numbering captions punctuation naming share|improve this question edited Feb 17 '15 at 15:17 asked Feb 17 '15 at 14:51 Changwang Zhang 38829 Out of curiosity, where did you find this command? –Johannes_B Feb 17 '15 at 15:02 @Johannes_B Here: tex.stackexchange.com/questions/27250/… –Changwang Zhang Feb 17 '15 at 15:09 There is your answer, figureformat is only defined with KOMA-classes. With the standard classes, you can use package caption to do it with a nice interface. –Johannes_B Feb 17 '15 at 15:13 @Johannes_B The problem is I want to change the format only for figures. I want the format of tables to remain unchanged. If I use caption interface, I will change both. –Changwang Zhang Feb 17 '15 at 15:22 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted The command you cannot redefine is only provided by KOMA-classes. For the standard classes, package captioncomes in handy. You can define the labelformat f
here for a quick overview http://tex.stackexchange.com/questions/332995/figure-caption-leads-to-error-in-beamer of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us TeX - LaTeX package caption Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a package caption error question Anybody can answer The best answers are voted up and rise to the top figure caption leads to error in beamer up vote 1 down vote favorite I get this coompilation error: No file texto-10.nav.