Caption changes when using wrapfigures The 2019 Stack Overflow Developer Survey Results Are...

Ubuntu Server install with full GUI

How much of the clove should I use when using big garlic heads?

Likelihood that a superbug or lethal virus could come from a landfill

What is this business jet?

How did passengers keep warm on sail ships?

Deal with toxic manager when you can't quit

What is the most efficient way to store a numeric range?

Why can I use a list index as an indexing variable in a for loop?

The difference between dialogue marks

Cooking pasta in a water boiler

A female thief is not sold to make restitution -- so what happens instead?

How to translate "being like"?

Correct punctuation for showing a character's confusion

Is it okay to consider publishing in my first year of PhD?

How come people say “Would of”?

Output the Arecibo Message

How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?

ELI5: Why they say that Israel would have been the fourth country to land a spacecraft on the Moon and why they call it low cost?

Can there be female White Walkers?

How do I free up internal storage if I don't have any apps downloaded?

Can a flute soloist sit?

What is the meaning of Triage in Cybersec world?

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

How can I have a shield and a way of attacking with a ranged weapon at the same time?



Caption changes when using wrapfigures



The 2019 Stack Overflow Developer Survey Results Are InIs it possible to add centering and vspace to the caption text of a figure?Two figures side by side with text wrappingPreventing LaTeX from starting a new page before begin{figure}Control errors with subcaption subfigureWrapfigure does not work properlyitems with own icons/symbol, loaded from a png-fileCreating a header design with a logo with LaTeXAdjust intextsep for wrapfigure onlyadd two horizontal lines between a figure and a tableLaTeX: figure + includegraphics unwanted page breaks and wrong spacing between caption












0















I'm writting a memoir and I have figures inside. A normal figure looks like that :
no wrapfigure used



using the following code



begin{figure}[H]
begin{center}
includegraphics[width=0.65textwidth]{...}hspace{0.25cm}
includegraphics[width=0.30textwidth]{...}
end{center}
caption{...}label{...}
end{figure}


But when I use wrapfigures like here :
with wrapfigure



with the following code :



begin{wrapfigure}[13]{r}{0.45textwidth}
centering
vspace{-1cm}
begin{center}
includegraphics[width=0.45textwidth]{...}
end{center}
vspace{-1cm}
caption{...}label{...}
end{wrapfigure}


the caption changes. I mean for a normal figure there is no space between lines in the caption. But for a wrapfigure, there is as much space between lines as in the text + the textsize is bigger for the caption of a wrapfigure. What is wrong ? I want my caption to be compact as the first image.










share|improve this question














bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 2





    As always on this site, please post a full minimal example (you can replace the images with, say, rule{4cm}{4cm}. Then is a lot easier for others to help you. For example you could not use the center env to center figs inside the figure env, though that is not related to this issue.

    – daleif
    Jul 20 '17 at 14:33











  • Sorry I'm just getting started on the site...

    – John
    Jul 20 '17 at 14:36






  • 1





    unrelated to the caption but you just want centering delete the center enviornment (which is just adding vertical space) and the negative vspace (which is compensating for the spuriuous center) presumably you have doublespacing specified somewhere in your document together with specifying single spacing for figures but not wrapfigures

    – David Carlisle
    Jul 20 '17 at 14:40













  • Yet unrelated, you might want to take a look at the siunitx package to format those units. 398,17 nm looks wrong (wrong spacing around the comma). Plus missing spaces at ³Fe₂ and et3 mTorr

    – daleif
    Jul 20 '17 at 14:50













  • @deleif : in France the comma is like the english dot, so in France 398,17 = 398.17 in US/UK. And David Carlisle : it was a bad copy/paste, I corrected it but nothing changes + the thing with the F is a spectroscopic notation. But thanks for the et3 mTorr ;)

    – John
    Jul 20 '17 at 14:54


















0















I'm writting a memoir and I have figures inside. A normal figure looks like that :
no wrapfigure used



using the following code



begin{figure}[H]
begin{center}
includegraphics[width=0.65textwidth]{...}hspace{0.25cm}
includegraphics[width=0.30textwidth]{...}
end{center}
caption{...}label{...}
end{figure}


But when I use wrapfigures like here :
with wrapfigure



with the following code :



begin{wrapfigure}[13]{r}{0.45textwidth}
centering
vspace{-1cm}
begin{center}
includegraphics[width=0.45textwidth]{...}
end{center}
vspace{-1cm}
caption{...}label{...}
end{wrapfigure}


the caption changes. I mean for a normal figure there is no space between lines in the caption. But for a wrapfigure, there is as much space between lines as in the text + the textsize is bigger for the caption of a wrapfigure. What is wrong ? I want my caption to be compact as the first image.










share|improve this question














bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 2





    As always on this site, please post a full minimal example (you can replace the images with, say, rule{4cm}{4cm}. Then is a lot easier for others to help you. For example you could not use the center env to center figs inside the figure env, though that is not related to this issue.

    – daleif
    Jul 20 '17 at 14:33











  • Sorry I'm just getting started on the site...

    – John
    Jul 20 '17 at 14:36






  • 1





    unrelated to the caption but you just want centering delete the center enviornment (which is just adding vertical space) and the negative vspace (which is compensating for the spuriuous center) presumably you have doublespacing specified somewhere in your document together with specifying single spacing for figures but not wrapfigures

    – David Carlisle
    Jul 20 '17 at 14:40













  • Yet unrelated, you might want to take a look at the siunitx package to format those units. 398,17 nm looks wrong (wrong spacing around the comma). Plus missing spaces at ³Fe₂ and et3 mTorr

    – daleif
    Jul 20 '17 at 14:50













  • @deleif : in France the comma is like the english dot, so in France 398,17 = 398.17 in US/UK. And David Carlisle : it was a bad copy/paste, I corrected it but nothing changes + the thing with the F is a spectroscopic notation. But thanks for the et3 mTorr ;)

    – John
    Jul 20 '17 at 14:54
















0












0








0








I'm writting a memoir and I have figures inside. A normal figure looks like that :
no wrapfigure used



using the following code



begin{figure}[H]
begin{center}
includegraphics[width=0.65textwidth]{...}hspace{0.25cm}
includegraphics[width=0.30textwidth]{...}
end{center}
caption{...}label{...}
end{figure}


But when I use wrapfigures like here :
with wrapfigure



with the following code :



begin{wrapfigure}[13]{r}{0.45textwidth}
centering
vspace{-1cm}
begin{center}
includegraphics[width=0.45textwidth]{...}
end{center}
vspace{-1cm}
caption{...}label{...}
end{wrapfigure}


the caption changes. I mean for a normal figure there is no space between lines in the caption. But for a wrapfigure, there is as much space between lines as in the text + the textsize is bigger for the caption of a wrapfigure. What is wrong ? I want my caption to be compact as the first image.










share|improve this question














I'm writting a memoir and I have figures inside. A normal figure looks like that :
no wrapfigure used



using the following code



begin{figure}[H]
begin{center}
includegraphics[width=0.65textwidth]{...}hspace{0.25cm}
includegraphics[width=0.30textwidth]{...}
end{center}
caption{...}label{...}
end{figure}


But when I use wrapfigures like here :
with wrapfigure



with the following code :



begin{wrapfigure}[13]{r}{0.45textwidth}
centering
vspace{-1cm}
begin{center}
includegraphics[width=0.45textwidth]{...}
end{center}
vspace{-1cm}
caption{...}label{...}
end{wrapfigure}


the caption changes. I mean for a normal figure there is no space between lines in the caption. But for a wrapfigure, there is as much space between lines as in the text + the textsize is bigger for the caption of a wrapfigure. What is wrong ? I want my caption to be compact as the first image.







graphics captions wrapfigure






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 20 '17 at 14:21









JohnJohn

453




453





bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 2





    As always on this site, please post a full minimal example (you can replace the images with, say, rule{4cm}{4cm}. Then is a lot easier for others to help you. For example you could not use the center env to center figs inside the figure env, though that is not related to this issue.

    – daleif
    Jul 20 '17 at 14:33











  • Sorry I'm just getting started on the site...

    – John
    Jul 20 '17 at 14:36






  • 1





    unrelated to the caption but you just want centering delete the center enviornment (which is just adding vertical space) and the negative vspace (which is compensating for the spuriuous center) presumably you have doublespacing specified somewhere in your document together with specifying single spacing for figures but not wrapfigures

    – David Carlisle
    Jul 20 '17 at 14:40













  • Yet unrelated, you might want to take a look at the siunitx package to format those units. 398,17 nm looks wrong (wrong spacing around the comma). Plus missing spaces at ³Fe₂ and et3 mTorr

    – daleif
    Jul 20 '17 at 14:50













  • @deleif : in France the comma is like the english dot, so in France 398,17 = 398.17 in US/UK. And David Carlisle : it was a bad copy/paste, I corrected it but nothing changes + the thing with the F is a spectroscopic notation. But thanks for the et3 mTorr ;)

    – John
    Jul 20 '17 at 14:54
















  • 2





    As always on this site, please post a full minimal example (you can replace the images with, say, rule{4cm}{4cm}. Then is a lot easier for others to help you. For example you could not use the center env to center figs inside the figure env, though that is not related to this issue.

    – daleif
    Jul 20 '17 at 14:33











  • Sorry I'm just getting started on the site...

    – John
    Jul 20 '17 at 14:36






  • 1





    unrelated to the caption but you just want centering delete the center enviornment (which is just adding vertical space) and the negative vspace (which is compensating for the spuriuous center) presumably you have doublespacing specified somewhere in your document together with specifying single spacing for figures but not wrapfigures

    – David Carlisle
    Jul 20 '17 at 14:40













  • Yet unrelated, you might want to take a look at the siunitx package to format those units. 398,17 nm looks wrong (wrong spacing around the comma). Plus missing spaces at ³Fe₂ and et3 mTorr

    – daleif
    Jul 20 '17 at 14:50













  • @deleif : in France the comma is like the english dot, so in France 398,17 = 398.17 in US/UK. And David Carlisle : it was a bad copy/paste, I corrected it but nothing changes + the thing with the F is a spectroscopic notation. But thanks for the et3 mTorr ;)

    – John
    Jul 20 '17 at 14:54










2




2





As always on this site, please post a full minimal example (you can replace the images with, say, rule{4cm}{4cm}. Then is a lot easier for others to help you. For example you could not use the center env to center figs inside the figure env, though that is not related to this issue.

– daleif
Jul 20 '17 at 14:33





As always on this site, please post a full minimal example (you can replace the images with, say, rule{4cm}{4cm}. Then is a lot easier for others to help you. For example you could not use the center env to center figs inside the figure env, though that is not related to this issue.

– daleif
Jul 20 '17 at 14:33













Sorry I'm just getting started on the site...

– John
Jul 20 '17 at 14:36





Sorry I'm just getting started on the site...

– John
Jul 20 '17 at 14:36




1




1





unrelated to the caption but you just want centering delete the center enviornment (which is just adding vertical space) and the negative vspace (which is compensating for the spuriuous center) presumably you have doublespacing specified somewhere in your document together with specifying single spacing for figures but not wrapfigures

– David Carlisle
Jul 20 '17 at 14:40







unrelated to the caption but you just want centering delete the center enviornment (which is just adding vertical space) and the negative vspace (which is compensating for the spuriuous center) presumably you have doublespacing specified somewhere in your document together with specifying single spacing for figures but not wrapfigures

– David Carlisle
Jul 20 '17 at 14:40















Yet unrelated, you might want to take a look at the siunitx package to format those units. 398,17 nm looks wrong (wrong spacing around the comma). Plus missing spaces at ³Fe₂ and et3 mTorr

– daleif
Jul 20 '17 at 14:50







Yet unrelated, you might want to take a look at the siunitx package to format those units. 398,17 nm looks wrong (wrong spacing around the comma). Plus missing spaces at ³Fe₂ and et3 mTorr

– daleif
Jul 20 '17 at 14:50















@deleif : in France the comma is like the english dot, so in France 398,17 = 398.17 in US/UK. And David Carlisle : it was a bad copy/paste, I corrected it but nothing changes + the thing with the F is a spectroscopic notation. But thanks for the et3 mTorr ;)

– John
Jul 20 '17 at 14:54







@deleif : in France the comma is like the english dot, so in France 398,17 = 398.17 in US/UK. And David Carlisle : it was a bad copy/paste, I corrected it but nothing changes + the thing with the F is a spectroscopic notation. But thanks for the et3 mTorr ;)

– John
Jul 20 '17 at 14:54












1 Answer
1






active

oldest

votes


















0














I manually use the command linespread{1}selectfont before caption and linespread{1.4}selectfont again after end{wrapfigure}






share|improve this answer
























  • this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

    – David Carlisle
    Jul 20 '17 at 19:13












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%2f381521%2fcaption-changes-when-using-wrapfigures%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









0














I manually use the command linespread{1}selectfont before caption and linespread{1.4}selectfont again after end{wrapfigure}






share|improve this answer
























  • this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

    – David Carlisle
    Jul 20 '17 at 19:13
















0














I manually use the command linespread{1}selectfont before caption and linespread{1.4}selectfont again after end{wrapfigure}






share|improve this answer
























  • this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

    – David Carlisle
    Jul 20 '17 at 19:13














0












0








0







I manually use the command linespread{1}selectfont before caption and linespread{1.4}selectfont again after end{wrapfigure}






share|improve this answer













I manually use the command linespread{1}selectfont before caption and linespread{1.4}selectfont again after end{wrapfigure}







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 20 '17 at 15:27









JohnJohn

453




453













  • this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

    – David Carlisle
    Jul 20 '17 at 19:13



















  • this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

    – David Carlisle
    Jul 20 '17 at 19:13

















this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

– David Carlisle
Jul 20 '17 at 19:13





this is hardly an answer to the question as posed, presumably you had linespread already earlier which you had not mentioned, and which was the cause of the problem? it is a local setting so you should not need to reset it after the environment. normally it is better to use setspace or a similar package that manages setting/resetting the line spacing in figures rather than using linspread directly.

– David Carlisle
Jul 20 '17 at 19:13


















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%2f381521%2fcaption-changes-when-using-wrapfigures%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

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

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

Castillo d'Acher Características Menú de navegación