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 beginfigureControl 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

Can we generate random numbers using irrational numbers like π and e?

The difference between dialogue marks

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

How to support a colleague who finds meetings extremely tiring?

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

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

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Why doesn't UInt have a toDouble()?

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

Why not take a picture of a closer black hole?

Why does the nucleus not repel itself?

Finding the area between two curves with Integrate

Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?

Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past

Why did Peik say, "I'm not an animal"?

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

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Deal with toxic manager when you can't quit

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?

How to translate "being like"?

Does adding complexity mean a more secure cipher?

Getting crown tickets for Statue of Liberty

Short story: child made less intelligent and less attractive

How to type a long/em dash `—`



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 beginfigureControl 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



beginfigure[H]
begincenter
includegraphics[width=0.65textwidth]...hspace0.25cm
includegraphics[width=0.30textwidth]...
endcenter
caption...label...
endfigure


But when I use wrapfigures like here :
with wrapfigure



with the following code :



beginwrapfigure[13]r0.45textwidth
centering
vspace-1cm
begincenter
includegraphics[width=0.45textwidth]...
endcenter
vspace-1cm
caption...label...
endwrapfigure


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 7 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, rule4cm4cm. 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



beginfigure[H]
begincenter
includegraphics[width=0.65textwidth]...hspace0.25cm
includegraphics[width=0.30textwidth]...
endcenter
caption...label...
endfigure


But when I use wrapfigures like here :
with wrapfigure



with the following code :



beginwrapfigure[13]r0.45textwidth
centering
vspace-1cm
begincenter
includegraphics[width=0.45textwidth]...
endcenter
vspace-1cm
caption...label...
endwrapfigure


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 7 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, rule4cm4cm. 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



beginfigure[H]
begincenter
includegraphics[width=0.65textwidth]...hspace0.25cm
includegraphics[width=0.30textwidth]...
endcenter
caption...label...
endfigure


But when I use wrapfigures like here :
with wrapfigure



with the following code :



beginwrapfigure[13]r0.45textwidth
centering
vspace-1cm
begincenter
includegraphics[width=0.45textwidth]...
endcenter
vspace-1cm
caption...label...
endwrapfigure


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



beginfigure[H]
begincenter
includegraphics[width=0.65textwidth]...hspace0.25cm
includegraphics[width=0.30textwidth]...
endcenter
caption...label...
endfigure


But when I use wrapfigures like here :
with wrapfigure



with the following code :



beginwrapfigure[13]r0.45textwidth
centering
vspace-1cm
begincenter
includegraphics[width=0.45textwidth]...
endcenter
vspace-1cm
caption...label...
endwrapfigure


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 7 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 7 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, rule4cm4cm. 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, rule4cm4cm. 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, rule4cm4cm. 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, rule4cm4cm. 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 linespread1selectfont before caption and linespread1.4selectfont again after endwrapfigure






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 linespread1selectfont before caption and linespread1.4selectfont again after endwrapfigure






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 linespread1selectfont before caption and linespread1.4selectfont again after endwrapfigure






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 linespread1selectfont before caption and linespread1.4selectfont again after endwrapfigure






share|improve this answer













I manually use the command linespread1selectfont before caption and linespread1.4selectfont again after endwrapfigure







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

Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm