Setting `caption` parameters for `figures` and `tables` locallyTwo figures side by side with text wrappingWhy...

How do I deal with being jealous of my own players?

How to mitigate "bandwagon attacking" from players?

Is there a frame of reference in which I was born before I was conceived?

How to kill a localhost:8080

What is better: yes / no radio, or simple checkbox?

Why is it "take a leak?"

I can't die. Who am I?

Why are special aircraft used for the carriers in the United States Navy?

How can I create a Table like this in Latex?

Every subset equal to original set?

VAT refund for a conference ticket in Sweden

Starting index at zero

Wrap all numerics in JSON with quotes

Was it really inappropriate to write a pull request for the company I interviewed with?

When to use mean vs median

Reason why dimensional travelling would be restricted

Does "legal poaching" exist?

Skis versus snow shoes - when to choose which for travelling the backcountry?

Would the melodic leap of the opening phrase of Mozart's K545 be considered dissonant?

Did Amazon pay $0 in taxes last year?

What am I? I am in theaters and computer programs

What is the difference between a forward slip and a side slip?

Sometimes a banana is just a banana

Canadian citizen, on US no-fly list. What can I do in order to be allowed on flights which go through US airspace?



Setting `caption` parameters for `figures` and `tables` locally


Two figures side by side with text wrappingWhy are my Images not correctly centered?Missing caption prefix in figures and tables when using XeLaTeXDifferent caption styles for figures and for tablesTikZ scaling graphic and adjust node position and keep font sizeTable caption not appearing in PNAS document class2 different captions for tables and figuresNo caption number for figures and tablesSeparate caption numbering for plates and figureshave different caption for images and figures













1















The answer to a question asked Jan 16 '13 at 4:54 by @manish continued into a discussion on how to set caption parameters locally. The suggestion that this would be done using captionsetup[figure]{..} or captionsetup[table]{..} inside the figure or table environment does not work for me either. How can this be done?



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
captionsetup[figure]{font=large,skip=10pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is a figure.}
end{center}
end{figure}

More text...

begin{figure}[htb]
captionsetup[figure]{font=small,skip=0pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}









share|improve this question


















  • 1





    Please add a link to the question before!

    – Kurt
    yesterday
















1















The answer to a question asked Jan 16 '13 at 4:54 by @manish continued into a discussion on how to set caption parameters locally. The suggestion that this would be done using captionsetup[figure]{..} or captionsetup[table]{..} inside the figure or table environment does not work for me either. How can this be done?



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
captionsetup[figure]{font=large,skip=10pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is a figure.}
end{center}
end{figure}

More text...

begin{figure}[htb]
captionsetup[figure]{font=small,skip=0pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}









share|improve this question


















  • 1





    Please add a link to the question before!

    – Kurt
    yesterday














1












1








1








The answer to a question asked Jan 16 '13 at 4:54 by @manish continued into a discussion on how to set caption parameters locally. The suggestion that this would be done using captionsetup[figure]{..} or captionsetup[table]{..} inside the figure or table environment does not work for me either. How can this be done?



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
captionsetup[figure]{font=large,skip=10pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is a figure.}
end{center}
end{figure}

More text...

begin{figure}[htb]
captionsetup[figure]{font=small,skip=0pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}









share|improve this question














The answer to a question asked Jan 16 '13 at 4:54 by @manish continued into a discussion on how to set caption parameters locally. The suggestion that this would be done using captionsetup[figure]{..} or captionsetup[table]{..} inside the figure or table environment does not work for me either. How can this be done?



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
captionsetup[figure]{font=large,skip=10pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is a figure.}
end{center}
end{figure}

More text...

begin{figure}[htb]
captionsetup[figure]{font=small,skip=0pt}
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}






graphics captions






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









Reinhard NeuwirthReinhard Neuwirth

1,59211422




1,59211422








  • 1





    Please add a link to the question before!

    – Kurt
    yesterday














  • 1





    Please add a link to the question before!

    – Kurt
    yesterday








1




1





Please add a link to the question before!

– Kurt
yesterday





Please add a link to the question before!

– Kurt
yesterday










1 Answer
1






active

oldest

votes


















2














Following the documentation of package caption, chapter 1, you have to use



captionsetup{font=large,skip=10pt}


instead



captionsetup[figure]{font=large,skip=10pt}
% ^^^^^^^^


So with the following MWE



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
centering
includegraphics[height=1in,width=1in,angle=-90]{foo}
captionsetup{font=large,skip=10pt} % <===============================
caption{This is a figure.}
end{figure}

More text...

begin{figure}[htb]
captionsetup{font=small,skip=-10pt} % <================================
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}


you get the result (I only used -10pt to make the second changing better visable):



resulting pdf






share|improve this answer


























  • … and as the statement is inside the specific environment, it works for table just the same.

    – Reinhard Neuwirth
    yesterday











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477800%2fsetting-caption-parameters-for-figures-and-tables-locally%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Following the documentation of package caption, chapter 1, you have to use



captionsetup{font=large,skip=10pt}


instead



captionsetup[figure]{font=large,skip=10pt}
% ^^^^^^^^


So with the following MWE



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
centering
includegraphics[height=1in,width=1in,angle=-90]{foo}
captionsetup{font=large,skip=10pt} % <===============================
caption{This is a figure.}
end{figure}

More text...

begin{figure}[htb]
captionsetup{font=small,skip=-10pt} % <================================
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}


you get the result (I only used -10pt to make the second changing better visable):



resulting pdf






share|improve this answer


























  • … and as the statement is inside the specific environment, it works for table just the same.

    – Reinhard Neuwirth
    yesterday
















2














Following the documentation of package caption, chapter 1, you have to use



captionsetup{font=large,skip=10pt}


instead



captionsetup[figure]{font=large,skip=10pt}
% ^^^^^^^^


So with the following MWE



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
centering
includegraphics[height=1in,width=1in,angle=-90]{foo}
captionsetup{font=large,skip=10pt} % <===============================
caption{This is a figure.}
end{figure}

More text...

begin{figure}[htb]
captionsetup{font=small,skip=-10pt} % <================================
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}


you get the result (I only used -10pt to make the second changing better visable):



resulting pdf






share|improve this answer


























  • … and as the statement is inside the specific environment, it works for table just the same.

    – Reinhard Neuwirth
    yesterday














2












2








2







Following the documentation of package caption, chapter 1, you have to use



captionsetup{font=large,skip=10pt}


instead



captionsetup[figure]{font=large,skip=10pt}
% ^^^^^^^^


So with the following MWE



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
centering
includegraphics[height=1in,width=1in,angle=-90]{foo}
captionsetup{font=large,skip=10pt} % <===============================
caption{This is a figure.}
end{figure}

More text...

begin{figure}[htb]
captionsetup{font=small,skip=-10pt} % <================================
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}


you get the result (I only used -10pt to make the second changing better visable):



resulting pdf






share|improve this answer















Following the documentation of package caption, chapter 1, you have to use



captionsetup{font=large,skip=10pt}


instead



captionsetup[figure]{font=large,skip=10pt}
% ^^^^^^^^


So with the following MWE



documentclass{article}
usepackage[demo]{graphicx} %% Remove [demo] in your file
%usepackage{caption}
%captionsetup[table]{font=small,skip=0pt} %% Adjust here
%or equivalently
usepackage[font=small,skip=0pt]{caption}

begin{document}

Some text...

begin{figure}[htb]
centering
includegraphics[height=1in,width=1in,angle=-90]{foo}
captionsetup{font=large,skip=10pt} % <===============================
caption{This is a figure.}
end{figure}

More text...

begin{figure}[htb]
captionsetup{font=small,skip=-10pt} % <================================
begin{center}
includegraphics[height=1in,width=1in,angle=-90]{foo}
caption{This is another figure.}
end{center}
end{figure}

Still more text...
begin{table}[htb]
centering
caption{This is a table.}
begin{tabular}{|c|c|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & 2 \
4 & 7 \
hline
end{tabular}
end{table}

More text...

end{document}


you get the result (I only used -10pt to make the second changing better visable):



resulting pdf







share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









KurtKurt

38.6k848162




38.6k848162













  • … and as the statement is inside the specific environment, it works for table just the same.

    – Reinhard Neuwirth
    yesterday



















  • … and as the statement is inside the specific environment, it works for table just the same.

    – Reinhard Neuwirth
    yesterday

















… and as the statement is inside the specific environment, it works for table just the same.

– Reinhard Neuwirth
yesterday





… and as the statement is inside the specific environment, it works for table just the same.

– Reinhard Neuwirth
yesterday


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477800%2fsetting-caption-parameters-for-figures-and-tables-locally%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...