Overfull hbox warning - two plots side-by-sideWhat is the use of percent signs (%) at the end of lines?Fix overfull hbox floatrowPut two pictures above one another within one sub float / reference problemDisplaying two plots side by side not displaying titles correctlyWhy is a minipage using textwidth generating an overfull hbox?minipage has overfull hboxOverfull warning for a minipageTwo figure colums side by side, subfigure aligment issuesTwo tables side by side with minipageThe best way to place two plots side by sideHow increase size of two sub images side by side

Street obstacles in New Zealand

What's the 'present simple' form of the word "нашла́" in 3rd person singular female?

Outlet with 3 sets of wires

Nylon switch cover plate screws

From an axiomatic set theoric approach why can we take uncountable unions?

Having the player face themselves after the mid-game

Signed and unsigned numbers

Why couldn't the separatists legally leave the Republic?

Proving a statement about real numbers

Why is a very small peak with larger m/z not considered to be the molecular ion?

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

How do spaceships determine each other's mass in space?

Numbers app - select all the cells on an existing table to share the same background colour?

Which classes are needed to have access to every spell in the PHB?

MySQL importing CSV files really slow

What sort of fish is this

Is it a Cyclops number? "Nobody" knows!

Source permutation

Gaining more land

How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X

Is this Paypal Github SDK reference really a dangerous site?

Getting the || sign while using Kurier

How does Ehrenfest's theorem apply to the quantum harmonic oscillator?

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



Overfull hbox warning - two plots side-by-side


What is the use of percent signs (%) at the end of lines?Fix overfull hbox floatrowPut two pictures above one another within one sub float / reference problemDisplaying two plots side by side not displaying titles correctlyWhy is a minipage using textwidth generating an overfull hbox?minipage has overfull hboxOverfull warning for a minipageTwo figure colums side by side, subfigure aligment issuesTwo tables side by side with minipageThe best way to place two plots side by sideHow increase size of two sub images side by side













1















I am trying to create an environment for plotting two figures side-by-side:



 beginfigure[t] 
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipage
hspace*14pt% separation between the subfigures
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


The output looks like this:
enter image description here



Unfortunately I get an "Overfull hbox" warning.



I tried several things to remove this warning:



  • remove hspace

  • smaller width (0.4textwidth)


  • linewidth instead of textwidth


  • subfigure instead of minipage

Nothing helped. The plot is not scaled, the textwidth is about 9cm and the size of the plot is about 3cm.



Has someone an idea? Can't figure out where the bug is -.-



If I use hfill as recommended below, my code and the output look like this:



beginfigure[t] 
beginminipage[b]0.49textwidth
raggedright
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipagehfill
beginminipage[b]0.49textwidth
raggedleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


enter image description here



As you can see I would prefer, if both picture align with the margins.



Is there a way to align the second caption with the frame of the plot?










share|improve this question
























  • Between the two subfigures you have a normal space (the end-of-line after endminipage) and 14pt. Remove hspace*14pt and put hfill after endminipage (same line, no space in between). By the way you should use raggedright, not flushleft.

    – egreg
    Mar 15 '16 at 22:03











  • please don't edit the question to ask a completely different question, it makes the existing answers impossible to understand, best to ask a new question, but the normal thing to do is use centering for captions but yours appear to be flush left, probably due to code you have not shown. It is always best to post complete documents that show the issue (use includegraphics[]example-image which is an image in most distributions, to make your example portable.

    – David Carlisle
    Mar 15 '16 at 23:36











  • The caption package has justification=raggedright and justification=raggedleft options. You can call captionsetup inside each minipage.

    – John Kormylo
    Mar 16 '16 at 2:38















1















I am trying to create an environment for plotting two figures side-by-side:



 beginfigure[t] 
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipage
hspace*14pt% separation between the subfigures
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


The output looks like this:
enter image description here



Unfortunately I get an "Overfull hbox" warning.



I tried several things to remove this warning:



  • remove hspace

  • smaller width (0.4textwidth)


  • linewidth instead of textwidth


  • subfigure instead of minipage

Nothing helped. The plot is not scaled, the textwidth is about 9cm and the size of the plot is about 3cm.



Has someone an idea? Can't figure out where the bug is -.-



If I use hfill as recommended below, my code and the output look like this:



beginfigure[t] 
beginminipage[b]0.49textwidth
raggedright
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipagehfill
beginminipage[b]0.49textwidth
raggedleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


enter image description here



As you can see I would prefer, if both picture align with the margins.



Is there a way to align the second caption with the frame of the plot?










share|improve this question
























  • Between the two subfigures you have a normal space (the end-of-line after endminipage) and 14pt. Remove hspace*14pt and put hfill after endminipage (same line, no space in between). By the way you should use raggedright, not flushleft.

    – egreg
    Mar 15 '16 at 22:03











  • please don't edit the question to ask a completely different question, it makes the existing answers impossible to understand, best to ask a new question, but the normal thing to do is use centering for captions but yours appear to be flush left, probably due to code you have not shown. It is always best to post complete documents that show the issue (use includegraphics[]example-image which is an image in most distributions, to make your example portable.

    – David Carlisle
    Mar 15 '16 at 23:36











  • The caption package has justification=raggedright and justification=raggedleft options. You can call captionsetup inside each minipage.

    – John Kormylo
    Mar 16 '16 at 2:38













1












1








1








I am trying to create an environment for plotting two figures side-by-side:



 beginfigure[t] 
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipage
hspace*14pt% separation between the subfigures
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


The output looks like this:
enter image description here



Unfortunately I get an "Overfull hbox" warning.



I tried several things to remove this warning:



  • remove hspace

  • smaller width (0.4textwidth)


  • linewidth instead of textwidth


  • subfigure instead of minipage

Nothing helped. The plot is not scaled, the textwidth is about 9cm and the size of the plot is about 3cm.



Has someone an idea? Can't figure out where the bug is -.-



If I use hfill as recommended below, my code and the output look like this:



beginfigure[t] 
beginminipage[b]0.49textwidth
raggedright
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipagehfill
beginminipage[b]0.49textwidth
raggedleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


enter image description here



As you can see I would prefer, if both picture align with the margins.



Is there a way to align the second caption with the frame of the plot?










share|improve this question
















I am trying to create an environment for plotting two figures side-by-side:



 beginfigure[t] 
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipage
hspace*14pt% separation between the subfigures
beginminipage[b]0.49textwidth
flushleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


The output looks like this:
enter image description here



Unfortunately I get an "Overfull hbox" warning.



I tried several things to remove this warning:



  • remove hspace

  • smaller width (0.4textwidth)


  • linewidth instead of textwidth


  • subfigure instead of minipage

Nothing helped. The plot is not scaled, the textwidth is about 9cm and the size of the plot is about 3cm.



Has someone an idea? Can't figure out where the bug is -.-



If I use hfill as recommended below, my code and the output look like this:



beginfigure[t] 
beginminipage[b]0.49textwidth
raggedright
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_1
captionFigur Nr. 8a
labelfig:8a
endminipagehfill
beginminipage[b]0.49textwidth
raggedleft
psfragfig[frame,mode=nonstop]Plot_random_Breite_05_2
captionFigur Nr. 8b
labelfig:8b
endminipage
endfigure


enter image description here



As you can see I would prefer, if both picture align with the margins.



Is there a way to align the second caption with the frame of the plot?







subfloats minipage psfrag






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 13 mins ago









Sebastiano

10.7k42163




10.7k42163










asked Mar 15 '16 at 21:58









MilouMilou

112




112












  • Between the two subfigures you have a normal space (the end-of-line after endminipage) and 14pt. Remove hspace*14pt and put hfill after endminipage (same line, no space in between). By the way you should use raggedright, not flushleft.

    – egreg
    Mar 15 '16 at 22:03











  • please don't edit the question to ask a completely different question, it makes the existing answers impossible to understand, best to ask a new question, but the normal thing to do is use centering for captions but yours appear to be flush left, probably due to code you have not shown. It is always best to post complete documents that show the issue (use includegraphics[]example-image which is an image in most distributions, to make your example portable.

    – David Carlisle
    Mar 15 '16 at 23:36











  • The caption package has justification=raggedright and justification=raggedleft options. You can call captionsetup inside each minipage.

    – John Kormylo
    Mar 16 '16 at 2:38

















  • Between the two subfigures you have a normal space (the end-of-line after endminipage) and 14pt. Remove hspace*14pt and put hfill after endminipage (same line, no space in between). By the way you should use raggedright, not flushleft.

    – egreg
    Mar 15 '16 at 22:03











  • please don't edit the question to ask a completely different question, it makes the existing answers impossible to understand, best to ask a new question, but the normal thing to do is use centering for captions but yours appear to be flush left, probably due to code you have not shown. It is always best to post complete documents that show the issue (use includegraphics[]example-image which is an image in most distributions, to make your example portable.

    – David Carlisle
    Mar 15 '16 at 23:36











  • The caption package has justification=raggedright and justification=raggedleft options. You can call captionsetup inside each minipage.

    – John Kormylo
    Mar 16 '16 at 2:38
















Between the two subfigures you have a normal space (the end-of-line after endminipage) and 14pt. Remove hspace*14pt and put hfill after endminipage (same line, no space in between). By the way you should use raggedright, not flushleft.

– egreg
Mar 15 '16 at 22:03





Between the two subfigures you have a normal space (the end-of-line after endminipage) and 14pt. Remove hspace*14pt and put hfill after endminipage (same line, no space in between). By the way you should use raggedright, not flushleft.

– egreg
Mar 15 '16 at 22:03













please don't edit the question to ask a completely different question, it makes the existing answers impossible to understand, best to ask a new question, but the normal thing to do is use centering for captions but yours appear to be flush left, probably due to code you have not shown. It is always best to post complete documents that show the issue (use includegraphics[]example-image which is an image in most distributions, to make your example portable.

– David Carlisle
Mar 15 '16 at 23:36





please don't edit the question to ask a completely different question, it makes the existing answers impossible to understand, best to ask a new question, but the normal thing to do is use centering for captions but yours appear to be flush left, probably due to code you have not shown. It is always best to post complete documents that show the issue (use includegraphics[]example-image which is an image in most distributions, to make your example portable.

– David Carlisle
Mar 15 '16 at 23:36













The caption package has justification=raggedright and justification=raggedleft options. You can call captionsetup inside each minipage.

– John Kormylo
Mar 16 '16 at 2:38





The caption package has justification=raggedright and justification=raggedleft options. You can call captionsetup inside each minipage.

– John Kormylo
Mar 16 '16 at 2:38










2 Answers
2






active

oldest

votes


















2














The construction on the line that contains your two sub-figures consist of elements that have the following widths:



  1. A minipage of width 0.49textwidth;


  2. An inter-word space between the first minipage and the hspace*;


  3. A hard space of 14pt;


  4. A minipage of width 0.49textwidth.


The above combination is wider than textwidth, obviously, as is indicated by the first construction below (I'm using rule instead of minipage, but the effect is the same):



enter image description here



documentclassarticle

begindocument

beginfigure
X dotfill X% For reference

rule0.49textwidth1pt
hspace*14pt% Separation between sub-figures
rule0.49textwidth1pt

ruledimexpr0.5textwidth-7pt1pt%
hspace*14pt% Separation between sub-figures
ruledimexpr0.5textwidth-7pt1pt

rule0.49textwidth1pt
hfill% Flexible fill between sub-figures
rule0.49textwidth1pt

X dotfill X% For reference
endfigure

enddocument


If you're stuck on having the fixed 14pt gap between the two sub-figures, then you need to make sure that each component is exactly split between the remainder. That is, each image (or minipage) takes up 0.5textwidth-7pt. That's what the second construction achieves.



Note the use of % sign after the first sub-figure in order to avoid the inter-word space that is naturally inserted after a macro with an argument.




Alternatively, if you're interested in fixing the width of the sub-figures (rather than the 14pt gap mentioned above), then you can insert a flexible fill using hfill.






share|improve this answer
































    1














    You haven't posted enough information to completely diagnose the problem but



    beginminipage[b]0.49textwidth
    endminipage
    hspace*14pt% separation between the subfigures
    beginminipage0.49textwidth
    endminipage


    is a line .98textwidth + 1 word space + 14pt wide so that may or may not be wider than textwidth.



    Perhaps you want



    beginminipage[b]0.49textwidth
    endminipagehfill
    beginminipage0.49textwidth
    endminipage


    which will have exactly .02textwidth space between the minipages, with a total line width of exactly textwidth.






    share|improve this answer

























    • Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

      – Milou
      Mar 15 '16 at 23: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%2f299228%2foverfull-hbox-warning-two-plots-side-by-side%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    The construction on the line that contains your two sub-figures consist of elements that have the following widths:



    1. A minipage of width 0.49textwidth;


    2. An inter-word space between the first minipage and the hspace*;


    3. A hard space of 14pt;


    4. A minipage of width 0.49textwidth.


    The above combination is wider than textwidth, obviously, as is indicated by the first construction below (I'm using rule instead of minipage, but the effect is the same):



    enter image description here



    documentclassarticle

    begindocument

    beginfigure
    X dotfill X% For reference

    rule0.49textwidth1pt
    hspace*14pt% Separation between sub-figures
    rule0.49textwidth1pt

    ruledimexpr0.5textwidth-7pt1pt%
    hspace*14pt% Separation between sub-figures
    ruledimexpr0.5textwidth-7pt1pt

    rule0.49textwidth1pt
    hfill% Flexible fill between sub-figures
    rule0.49textwidth1pt

    X dotfill X% For reference
    endfigure

    enddocument


    If you're stuck on having the fixed 14pt gap between the two sub-figures, then you need to make sure that each component is exactly split between the remainder. That is, each image (or minipage) takes up 0.5textwidth-7pt. That's what the second construction achieves.



    Note the use of % sign after the first sub-figure in order to avoid the inter-word space that is naturally inserted after a macro with an argument.




    Alternatively, if you're interested in fixing the width of the sub-figures (rather than the 14pt gap mentioned above), then you can insert a flexible fill using hfill.






    share|improve this answer





























      2














      The construction on the line that contains your two sub-figures consist of elements that have the following widths:



      1. A minipage of width 0.49textwidth;


      2. An inter-word space between the first minipage and the hspace*;


      3. A hard space of 14pt;


      4. A minipage of width 0.49textwidth.


      The above combination is wider than textwidth, obviously, as is indicated by the first construction below (I'm using rule instead of minipage, but the effect is the same):



      enter image description here



      documentclassarticle

      begindocument

      beginfigure
      X dotfill X% For reference

      rule0.49textwidth1pt
      hspace*14pt% Separation between sub-figures
      rule0.49textwidth1pt

      ruledimexpr0.5textwidth-7pt1pt%
      hspace*14pt% Separation between sub-figures
      ruledimexpr0.5textwidth-7pt1pt

      rule0.49textwidth1pt
      hfill% Flexible fill between sub-figures
      rule0.49textwidth1pt

      X dotfill X% For reference
      endfigure

      enddocument


      If you're stuck on having the fixed 14pt gap between the two sub-figures, then you need to make sure that each component is exactly split between the remainder. That is, each image (or minipage) takes up 0.5textwidth-7pt. That's what the second construction achieves.



      Note the use of % sign after the first sub-figure in order to avoid the inter-word space that is naturally inserted after a macro with an argument.




      Alternatively, if you're interested in fixing the width of the sub-figures (rather than the 14pt gap mentioned above), then you can insert a flexible fill using hfill.






      share|improve this answer



























        2












        2








        2







        The construction on the line that contains your two sub-figures consist of elements that have the following widths:



        1. A minipage of width 0.49textwidth;


        2. An inter-word space between the first minipage and the hspace*;


        3. A hard space of 14pt;


        4. A minipage of width 0.49textwidth.


        The above combination is wider than textwidth, obviously, as is indicated by the first construction below (I'm using rule instead of minipage, but the effect is the same):



        enter image description here



        documentclassarticle

        begindocument

        beginfigure
        X dotfill X% For reference

        rule0.49textwidth1pt
        hspace*14pt% Separation between sub-figures
        rule0.49textwidth1pt

        ruledimexpr0.5textwidth-7pt1pt%
        hspace*14pt% Separation between sub-figures
        ruledimexpr0.5textwidth-7pt1pt

        rule0.49textwidth1pt
        hfill% Flexible fill between sub-figures
        rule0.49textwidth1pt

        X dotfill X% For reference
        endfigure

        enddocument


        If you're stuck on having the fixed 14pt gap between the two sub-figures, then you need to make sure that each component is exactly split between the remainder. That is, each image (or minipage) takes up 0.5textwidth-7pt. That's what the second construction achieves.



        Note the use of % sign after the first sub-figure in order to avoid the inter-word space that is naturally inserted after a macro with an argument.




        Alternatively, if you're interested in fixing the width of the sub-figures (rather than the 14pt gap mentioned above), then you can insert a flexible fill using hfill.






        share|improve this answer















        The construction on the line that contains your two sub-figures consist of elements that have the following widths:



        1. A minipage of width 0.49textwidth;


        2. An inter-word space between the first minipage and the hspace*;


        3. A hard space of 14pt;


        4. A minipage of width 0.49textwidth.


        The above combination is wider than textwidth, obviously, as is indicated by the first construction below (I'm using rule instead of minipage, but the effect is the same):



        enter image description here



        documentclassarticle

        begindocument

        beginfigure
        X dotfill X% For reference

        rule0.49textwidth1pt
        hspace*14pt% Separation between sub-figures
        rule0.49textwidth1pt

        ruledimexpr0.5textwidth-7pt1pt%
        hspace*14pt% Separation between sub-figures
        ruledimexpr0.5textwidth-7pt1pt

        rule0.49textwidth1pt
        hfill% Flexible fill between sub-figures
        rule0.49textwidth1pt

        X dotfill X% For reference
        endfigure

        enddocument


        If you're stuck on having the fixed 14pt gap between the two sub-figures, then you need to make sure that each component is exactly split between the remainder. That is, each image (or minipage) takes up 0.5textwidth-7pt. That's what the second construction achieves.



        Note the use of % sign after the first sub-figure in order to avoid the inter-word space that is naturally inserted after a macro with an argument.




        Alternatively, if you're interested in fixing the width of the sub-figures (rather than the 14pt gap mentioned above), then you can insert a flexible fill using hfill.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:35









        Community

        1




        1










        answered Mar 15 '16 at 22:13









        WernerWerner

        447k699891694




        447k699891694





















            1














            You haven't posted enough information to completely diagnose the problem but



            beginminipage[b]0.49textwidth
            endminipage
            hspace*14pt% separation between the subfigures
            beginminipage0.49textwidth
            endminipage


            is a line .98textwidth + 1 word space + 14pt wide so that may or may not be wider than textwidth.



            Perhaps you want



            beginminipage[b]0.49textwidth
            endminipagehfill
            beginminipage0.49textwidth
            endminipage


            which will have exactly .02textwidth space between the minipages, with a total line width of exactly textwidth.






            share|improve this answer

























            • Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

              – Milou
              Mar 15 '16 at 23:13















            1














            You haven't posted enough information to completely diagnose the problem but



            beginminipage[b]0.49textwidth
            endminipage
            hspace*14pt% separation between the subfigures
            beginminipage0.49textwidth
            endminipage


            is a line .98textwidth + 1 word space + 14pt wide so that may or may not be wider than textwidth.



            Perhaps you want



            beginminipage[b]0.49textwidth
            endminipagehfill
            beginminipage0.49textwidth
            endminipage


            which will have exactly .02textwidth space between the minipages, with a total line width of exactly textwidth.






            share|improve this answer

























            • Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

              – Milou
              Mar 15 '16 at 23:13













            1












            1








            1







            You haven't posted enough information to completely diagnose the problem but



            beginminipage[b]0.49textwidth
            endminipage
            hspace*14pt% separation between the subfigures
            beginminipage0.49textwidth
            endminipage


            is a line .98textwidth + 1 word space + 14pt wide so that may or may not be wider than textwidth.



            Perhaps you want



            beginminipage[b]0.49textwidth
            endminipagehfill
            beginminipage0.49textwidth
            endminipage


            which will have exactly .02textwidth space between the minipages, with a total line width of exactly textwidth.






            share|improve this answer















            You haven't posted enough information to completely diagnose the problem but



            beginminipage[b]0.49textwidth
            endminipage
            hspace*14pt% separation between the subfigures
            beginminipage0.49textwidth
            endminipage


            is a line .98textwidth + 1 word space + 14pt wide so that may or may not be wider than textwidth.



            Perhaps you want



            beginminipage[b]0.49textwidth
            endminipagehfill
            beginminipage0.49textwidth
            endminipage


            which will have exactly .02textwidth space between the minipages, with a total line width of exactly textwidth.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 15 '16 at 22:15









            Werner

            447k699891694




            447k699891694










            answered Mar 15 '16 at 22:02









            David CarlisleDavid Carlisle

            494k4111371885




            494k4111371885












            • Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

              – Milou
              Mar 15 '16 at 23:13

















            • Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

              – Milou
              Mar 15 '16 at 23:13
















            Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

            – Milou
            Mar 15 '16 at 23:13





            Thanks a lot for your fast comments and the explanation! I think there was a big error in reasoning ;-) I have tried your suggestions already and edited my post above with a new question.

            – Milou
            Mar 15 '16 at 23: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%2f299228%2foverfull-hbox-warning-two-plots-side-by-side%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.

            Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

            Compiling documents onlineAre any web base TEX editors with live collaboration available?Is there a web-based LaTeX or TeX editor?Creating a PDF file online from a LaTeX templateAre there any online LaTeX editors that provide the latest packages?Comparison of browser-based latex processorsCan I find something like this online?Is there a site where I can enter a latex expression, and it shows me an image of the compiled expression?Automatic online compiling systemA resource for converting LaTeX within the browserIs there an equivalent of jsfiddle for LaTeX?Online LaTeX syntax highlighterComparison of browser-based latex processorsDo the online LaTeX compilers use a TeX daemon to speed up their compilation?Undefined control sequence documentclassLaTeX Syntax Highlighting in Google DriveWhy are my Latex compile times varying massively?Online compilation with commercial fontsCompiling multiple LaTeX filesSlow compiling of large documents in TeXstudiodocument not compiling with custom .cls