Why does Latex make a small adjustment when I change section colorWhy does colorblue differ from colorBlue?Why does color cause a vertical shift?Change general color when using textbfWhy does xcolor lighten a color when mixedLaTex - Change color of sectionSection Horizontal Lines - Change ColorDoes LaTeX consider text color?when use lots of color command, can't change colorChange color of section heading and text until next sectionChange chapter and section color memoir class

What is a Mono Word™?

If I buy and download a game through second Nintendo account do I own it on my main account too?

NULL value causes blank row in SELECT results for text concatenation

What would the United Kingdom's "optimal" Brexit deal look like?

How does the barbarian bonus damage interact with two weapon fighting?

Introduction to the Sicilian

Using Python in a Bash Script

PCB design using code instead of clicking a mouse?

How and when is the best time to reveal to new hires you are trans?

How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?

Applications of pure mathematics in operations research

What Marvel character has this 'W' symbol?

How to calculate points under the curve?

Were there any unmanned expeditions to the moon that returned to Earth prior to Apollo?

What force enables us to walk? Friction or normal reaction?

Gold Battle KoTH

Can I shorten this filter, that finds disk sizes over 100G?

Avoiding Implicit Conversion in Constructor. Explicit keyword doesn't help here

Can you remove a blindfold using the Telekinesis spell?

Just how much information should you share with a former client?

What does 「ちんちんかいかい」 mean?

Reducing the time for rolling hash

Why would an invisible personal shield be necessary?

Why isn't LOX/UDMH used in staged combustion rockets now-a-days?



Why does Latex make a small adjustment when I change section color


Why does colorblue differ from colorBlue?Why does color cause a vertical shift?Change general color when using textbfWhy does xcolor lighten a color when mixedLaTex - Change color of sectionSection Horizontal Lines - Change ColorDoes LaTeX consider text color?when use lots of color command, can't change colorChange color of section heading and text until next sectionChange chapter and section color memoir class






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I want to change the color of a section of a document.
The command to do so is



colorred sectionIntroduction


(Merely doing sectioncolorIntroduction does not change the color of the section number).



So when I carry out the command above, it slightly adjusts the vertical space of all of the text in the entire document. This can be observed in the gif https://imgur.com/a/RLpPLU6



So, how do I carry out color changes without changing the vertical spacing, etc ?



Edit : A minimal code snippet and the effect of changing color can be seen here https://imgur.com/a/pI3NmuX (no other change except color)



documentclassarticle % For LaTeX2e
usepackagexcolor

titleGenerative Adversarial Nets

begindocument

sectionIntroduction

The promise of deep learning is to discover rich, hierarchical models that represent
probability distributions over the kinds of data encountered in artificial intelligence applications,
such as natural images, audio waveforms containing speech, and symbols in natural language corpora.

colorred sectionNext Section

This framework can yield specific training algorithms for many kinds of model and optimization
algorithm. In this article, we explore the special case when the generative model generates
samples by passing random noise through a multilayer perceptron, and the discriminative model
is also a multilayer perceptron. We refer to this special case as em adversarial nets.
In this case, we can train both models using only
the highly successful backpropagation and dropout algorithms
and sample from the generative
model using only forward propagation. No approximate inference or Markov chains are necessary.


enddocument




I previously thought the culprit was the nips14submit_e (which can be found here (https://pastebin.com/aw96SzXB)), but it doesn't seem to be










share|improve this question





















  • 2





    Welcome to TeX.se. Please don't post a code fragment. Instead make a minimal compilable document that shows the problem (i.e., not your whole paper). This is not the correct way to make a section title coloured, but without knowing what document class you are using it's hard to say what's going on.

    – Alan Munn
    8 hours ago






  • 2





    Is it a single section, or all sections that you want to have coloured?

    – Bernard
    8 hours ago






  • 2





    texdoc color see footnote on page 6 of grfguide.

    – David Carlisle
    7 hours ago






  • 1





    @crazydiamond yes but it would have been easier to answer if the posted document displayed the problem you are asking about.

    – David Carlisle
    5 hours ago






  • 1





    tex would give you the exact coordinates of the text without needing to post process the pdf, if that is what you want (pdfsavepos)

    – David Carlisle
    5 hours ago


















4















I want to change the color of a section of a document.
The command to do so is



colorred sectionIntroduction


(Merely doing sectioncolorIntroduction does not change the color of the section number).



So when I carry out the command above, it slightly adjusts the vertical space of all of the text in the entire document. This can be observed in the gif https://imgur.com/a/RLpPLU6



So, how do I carry out color changes without changing the vertical spacing, etc ?



Edit : A minimal code snippet and the effect of changing color can be seen here https://imgur.com/a/pI3NmuX (no other change except color)



documentclassarticle % For LaTeX2e
usepackagexcolor

titleGenerative Adversarial Nets

begindocument

sectionIntroduction

The promise of deep learning is to discover rich, hierarchical models that represent
probability distributions over the kinds of data encountered in artificial intelligence applications,
such as natural images, audio waveforms containing speech, and symbols in natural language corpora.

colorred sectionNext Section

This framework can yield specific training algorithms for many kinds of model and optimization
algorithm. In this article, we explore the special case when the generative model generates
samples by passing random noise through a multilayer perceptron, and the discriminative model
is also a multilayer perceptron. We refer to this special case as em adversarial nets.
In this case, we can train both models using only
the highly successful backpropagation and dropout algorithms
and sample from the generative
model using only forward propagation. No approximate inference or Markov chains are necessary.


enddocument




I previously thought the culprit was the nips14submit_e (which can be found here (https://pastebin.com/aw96SzXB)), but it doesn't seem to be










share|improve this question





















  • 2





    Welcome to TeX.se. Please don't post a code fragment. Instead make a minimal compilable document that shows the problem (i.e., not your whole paper). This is not the correct way to make a section title coloured, but without knowing what document class you are using it's hard to say what's going on.

    – Alan Munn
    8 hours ago






  • 2





    Is it a single section, or all sections that you want to have coloured?

    – Bernard
    8 hours ago






  • 2





    texdoc color see footnote on page 6 of grfguide.

    – David Carlisle
    7 hours ago






  • 1





    @crazydiamond yes but it would have been easier to answer if the posted document displayed the problem you are asking about.

    – David Carlisle
    5 hours ago






  • 1





    tex would give you the exact coordinates of the text without needing to post process the pdf, if that is what you want (pdfsavepos)

    – David Carlisle
    5 hours ago














4












4








4








I want to change the color of a section of a document.
The command to do so is



colorred sectionIntroduction


(Merely doing sectioncolorIntroduction does not change the color of the section number).



So when I carry out the command above, it slightly adjusts the vertical space of all of the text in the entire document. This can be observed in the gif https://imgur.com/a/RLpPLU6



So, how do I carry out color changes without changing the vertical spacing, etc ?



Edit : A minimal code snippet and the effect of changing color can be seen here https://imgur.com/a/pI3NmuX (no other change except color)



documentclassarticle % For LaTeX2e
usepackagexcolor

titleGenerative Adversarial Nets

begindocument

sectionIntroduction

The promise of deep learning is to discover rich, hierarchical models that represent
probability distributions over the kinds of data encountered in artificial intelligence applications,
such as natural images, audio waveforms containing speech, and symbols in natural language corpora.

colorred sectionNext Section

This framework can yield specific training algorithms for many kinds of model and optimization
algorithm. In this article, we explore the special case when the generative model generates
samples by passing random noise through a multilayer perceptron, and the discriminative model
is also a multilayer perceptron. We refer to this special case as em adversarial nets.
In this case, we can train both models using only
the highly successful backpropagation and dropout algorithms
and sample from the generative
model using only forward propagation. No approximate inference or Markov chains are necessary.


enddocument




I previously thought the culprit was the nips14submit_e (which can be found here (https://pastebin.com/aw96SzXB)), but it doesn't seem to be










share|improve this question
















I want to change the color of a section of a document.
The command to do so is



colorred sectionIntroduction


(Merely doing sectioncolorIntroduction does not change the color of the section number).



So when I carry out the command above, it slightly adjusts the vertical space of all of the text in the entire document. This can be observed in the gif https://imgur.com/a/RLpPLU6



So, how do I carry out color changes without changing the vertical spacing, etc ?



Edit : A minimal code snippet and the effect of changing color can be seen here https://imgur.com/a/pI3NmuX (no other change except color)



documentclassarticle % For LaTeX2e
usepackagexcolor

titleGenerative Adversarial Nets

begindocument

sectionIntroduction

The promise of deep learning is to discover rich, hierarchical models that represent
probability distributions over the kinds of data encountered in artificial intelligence applications,
such as natural images, audio waveforms containing speech, and symbols in natural language corpora.

colorred sectionNext Section

This framework can yield specific training algorithms for many kinds of model and optimization
algorithm. In this article, we explore the special case when the generative model generates
samples by passing random noise through a multilayer perceptron, and the discriminative model
is also a multilayer perceptron. We refer to this special case as em adversarial nets.
In this case, we can train both models using only
the highly successful backpropagation and dropout algorithms
and sample from the generative
model using only forward propagation. No approximate inference or Markov chains are necessary.


enddocument




I previously thought the culprit was the nips14submit_e (which can be found here (https://pastebin.com/aw96SzXB)), but it doesn't seem to be







color






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 hours ago







crazydiamond

















asked 8 hours ago









crazydiamondcrazydiamond

313 bronze badges




313 bronze badges










  • 2





    Welcome to TeX.se. Please don't post a code fragment. Instead make a minimal compilable document that shows the problem (i.e., not your whole paper). This is not the correct way to make a section title coloured, but without knowing what document class you are using it's hard to say what's going on.

    – Alan Munn
    8 hours ago






  • 2





    Is it a single section, or all sections that you want to have coloured?

    – Bernard
    8 hours ago






  • 2





    texdoc color see footnote on page 6 of grfguide.

    – David Carlisle
    7 hours ago






  • 1





    @crazydiamond yes but it would have been easier to answer if the posted document displayed the problem you are asking about.

    – David Carlisle
    5 hours ago






  • 1





    tex would give you the exact coordinates of the text without needing to post process the pdf, if that is what you want (pdfsavepos)

    – David Carlisle
    5 hours ago













  • 2





    Welcome to TeX.se. Please don't post a code fragment. Instead make a minimal compilable document that shows the problem (i.e., not your whole paper). This is not the correct way to make a section title coloured, but without knowing what document class you are using it's hard to say what's going on.

    – Alan Munn
    8 hours ago






  • 2





    Is it a single section, or all sections that you want to have coloured?

    – Bernard
    8 hours ago






  • 2





    texdoc color see footnote on page 6 of grfguide.

    – David Carlisle
    7 hours ago






  • 1





    @crazydiamond yes but it would have been easier to answer if the posted document displayed the problem you are asking about.

    – David Carlisle
    5 hours ago






  • 1





    tex would give you the exact coordinates of the text without needing to post process the pdf, if that is what you want (pdfsavepos)

    – David Carlisle
    5 hours ago








2




2





Welcome to TeX.se. Please don't post a code fragment. Instead make a minimal compilable document that shows the problem (i.e., not your whole paper). This is not the correct way to make a section title coloured, but without knowing what document class you are using it's hard to say what's going on.

– Alan Munn
8 hours ago





Welcome to TeX.se. Please don't post a code fragment. Instead make a minimal compilable document that shows the problem (i.e., not your whole paper). This is not the correct way to make a section title coloured, but without knowing what document class you are using it's hard to say what's going on.

– Alan Munn
8 hours ago




2




2





Is it a single section, or all sections that you want to have coloured?

– Bernard
8 hours ago





Is it a single section, or all sections that you want to have coloured?

– Bernard
8 hours ago




2




2





texdoc color see footnote on page 6 of grfguide.

– David Carlisle
7 hours ago





texdoc color see footnote on page 6 of grfguide.

– David Carlisle
7 hours ago




1




1





@crazydiamond yes but it would have been easier to answer if the posted document displayed the problem you are asking about.

– David Carlisle
5 hours ago





@crazydiamond yes but it would have been easier to answer if the posted document displayed the problem you are asking about.

– David Carlisle
5 hours ago




1




1





tex would give you the exact coordinates of the text without needing to post process the pdf, if that is what you want (pdfsavepos)

– David Carlisle
5 hours ago






tex would give you the exact coordinates of the text without needing to post process the pdf, if that is what you want (pdfsavepos)

– David Carlisle
5 hours ago











2 Answers
2






active

oldest

votes


















5















I want to change the color of a section of a document ... one section at a time.




If you prefer using high-level commands and letting LaTeX perform most of the hard work for you "behind the scenes", while not having to be concerned with subtle positional shifts, I recommend loading the sectsty package and using its sectionfont command. As the following example shows, one can employ sectionfontcolor... multiple times.



enter image description here



documentclassarticle
usepackagesectsty % for "sectionfont" macro
usepackage[dvipsnames]xcolor

begindocument

sectionfontcolorRubineRed
sectionIntroduction

sectionfontcolorDandelion
sectionLiterature

sectionfontcolorAquamarine
sectionData

sectionfontcolorPineGreen
sectionMethods

sectionfontcolorNavyBlue
sectionResults

sectionfontcolorViolet
sectionConclusion

enddocument





share|improve this answer
































    5














    As you can check with showoutput there are no spacing differences in the supplied example in the question with and without colorred so it isn't an example of this problem...



    However the issue can occur (and is shown in the first posted gif with the centred abstract).



    A real example is



    documentclassarticle % For LaTeX2e
    usepackagexcolor
    showoutput
    showboxdepth3
    titleGenerative Adversarial Nets

    begindocument

    begincenter
    zzzzz
    endcenter

    %colorred
    sectionNext Section

    This framework can yield specific training algorithms for many kinds of model and optimization
    algorithm. In this article, we explore the special case when the generative model generates
    samples by passing random noise through a multilayer perceptron, and the discriminative model
    is also a multilayer perceptron. We refer to this special case as em adversarial nets.
    In this case, we can train both models using only
    the highly successful backpropagation and dropout algorithms
    and sample from the generative
    model using only forward propagation. No approximate inference or Markov chains are necessary.


    enddocument


    If you uncomment the colour command you get additional space before the heading as the colour whatsit node prevents the section command "seeing" the vertical space already added by the endcenter and so it adds its full specified amount rather than merging the spaces specified by endcenter and section.



    The trick is to do colour changes as far as possible in horizontal not vertical mode, so for example this works



    documentclassarticle % For LaTeX2e
    usepackagexcolor
    showoutput
    showboxdepth3
    titleGenerative Adversarial Nets

    begindocument
    colorred

    begincenter
    textcolorblackzzzzz
    endcenter


    sectionNext Section

    mboxcolorblackThis framework can yield specific training algorithms for many kinds of model and optimization
    algorithm. In this article, we explore the special case when the generative model generates
    samples by passing random noise through a multilayer perceptron, and the discriminative model
    is also a multilayer perceptron. We refer to this special case as em adversarial nets.
    In this case, we can train both models using only
    the highly successful backpropagation and dropout algorithms
    and sample from the generative
    model using only forward propagation. No approximate inference or Markov chains are necessary.


    enddocument


    Or perhaps nicer the following which just locally tacks the color on to the Large used by the section heading



    documentclassarticle % For LaTeX2e
    usepackagexcolor
    showoutput
    showboxdepth3
    letrealLargeLarge
    titleGenerative Adversarial Nets

    begindocument


    begincenter
    zzzzz
    endcenter

    %defLargerealLargecolorred
    sectionNext Section
    %letLargerealLarge

    This framework can yield specific training algorithms for many kinds of model and optimization
    algorithm. In this article, we explore the special case when the generative model generates
    samples by passing random noise through a multilayer perceptron, and the discriminative model
    is also a multilayer perceptron. We refer to this special case as em adversarial nets.
    In this case, we can train both models using only
    the highly successful backpropagation and dropout algorithms
    and sample from the generative
    model using only forward propagation. No approximate inference or Markov chains are necessary.


    enddocument





    share|improve this answer





























      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%2f502437%2fwhy-does-latex-make-a-small-adjustment-when-i-change-section-color%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









      5















      I want to change the color of a section of a document ... one section at a time.




      If you prefer using high-level commands and letting LaTeX perform most of the hard work for you "behind the scenes", while not having to be concerned with subtle positional shifts, I recommend loading the sectsty package and using its sectionfont command. As the following example shows, one can employ sectionfontcolor... multiple times.



      enter image description here



      documentclassarticle
      usepackagesectsty % for "sectionfont" macro
      usepackage[dvipsnames]xcolor

      begindocument

      sectionfontcolorRubineRed
      sectionIntroduction

      sectionfontcolorDandelion
      sectionLiterature

      sectionfontcolorAquamarine
      sectionData

      sectionfontcolorPineGreen
      sectionMethods

      sectionfontcolorNavyBlue
      sectionResults

      sectionfontcolorViolet
      sectionConclusion

      enddocument





      share|improve this answer





























        5















        I want to change the color of a section of a document ... one section at a time.




        If you prefer using high-level commands and letting LaTeX perform most of the hard work for you "behind the scenes", while not having to be concerned with subtle positional shifts, I recommend loading the sectsty package and using its sectionfont command. As the following example shows, one can employ sectionfontcolor... multiple times.



        enter image description here



        documentclassarticle
        usepackagesectsty % for "sectionfont" macro
        usepackage[dvipsnames]xcolor

        begindocument

        sectionfontcolorRubineRed
        sectionIntroduction

        sectionfontcolorDandelion
        sectionLiterature

        sectionfontcolorAquamarine
        sectionData

        sectionfontcolorPineGreen
        sectionMethods

        sectionfontcolorNavyBlue
        sectionResults

        sectionfontcolorViolet
        sectionConclusion

        enddocument





        share|improve this answer



























          5












          5








          5








          I want to change the color of a section of a document ... one section at a time.




          If you prefer using high-level commands and letting LaTeX perform most of the hard work for you "behind the scenes", while not having to be concerned with subtle positional shifts, I recommend loading the sectsty package and using its sectionfont command. As the following example shows, one can employ sectionfontcolor... multiple times.



          enter image description here



          documentclassarticle
          usepackagesectsty % for "sectionfont" macro
          usepackage[dvipsnames]xcolor

          begindocument

          sectionfontcolorRubineRed
          sectionIntroduction

          sectionfontcolorDandelion
          sectionLiterature

          sectionfontcolorAquamarine
          sectionData

          sectionfontcolorPineGreen
          sectionMethods

          sectionfontcolorNavyBlue
          sectionResults

          sectionfontcolorViolet
          sectionConclusion

          enddocument





          share|improve this answer














          I want to change the color of a section of a document ... one section at a time.




          If you prefer using high-level commands and letting LaTeX perform most of the hard work for you "behind the scenes", while not having to be concerned with subtle positional shifts, I recommend loading the sectsty package and using its sectionfont command. As the following example shows, one can employ sectionfontcolor... multiple times.



          enter image description here



          documentclassarticle
          usepackagesectsty % for "sectionfont" macro
          usepackage[dvipsnames]xcolor

          begindocument

          sectionfontcolorRubineRed
          sectionIntroduction

          sectionfontcolorDandelion
          sectionLiterature

          sectionfontcolorAquamarine
          sectionData

          sectionfontcolorPineGreen
          sectionMethods

          sectionfontcolorNavyBlue
          sectionResults

          sectionfontcolorViolet
          sectionConclusion

          enddocument






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 5 hours ago









          MicoMico

          300k32 gold badges411 silver badges815 bronze badges




          300k32 gold badges411 silver badges815 bronze badges


























              5














              As you can check with showoutput there are no spacing differences in the supplied example in the question with and without colorred so it isn't an example of this problem...



              However the issue can occur (and is shown in the first posted gif with the centred abstract).



              A real example is



              documentclassarticle % For LaTeX2e
              usepackagexcolor
              showoutput
              showboxdepth3
              titleGenerative Adversarial Nets

              begindocument

              begincenter
              zzzzz
              endcenter

              %colorred
              sectionNext Section

              This framework can yield specific training algorithms for many kinds of model and optimization
              algorithm. In this article, we explore the special case when the generative model generates
              samples by passing random noise through a multilayer perceptron, and the discriminative model
              is also a multilayer perceptron. We refer to this special case as em adversarial nets.
              In this case, we can train both models using only
              the highly successful backpropagation and dropout algorithms
              and sample from the generative
              model using only forward propagation. No approximate inference or Markov chains are necessary.


              enddocument


              If you uncomment the colour command you get additional space before the heading as the colour whatsit node prevents the section command "seeing" the vertical space already added by the endcenter and so it adds its full specified amount rather than merging the spaces specified by endcenter and section.



              The trick is to do colour changes as far as possible in horizontal not vertical mode, so for example this works



              documentclassarticle % For LaTeX2e
              usepackagexcolor
              showoutput
              showboxdepth3
              titleGenerative Adversarial Nets

              begindocument
              colorred

              begincenter
              textcolorblackzzzzz
              endcenter


              sectionNext Section

              mboxcolorblackThis framework can yield specific training algorithms for many kinds of model and optimization
              algorithm. In this article, we explore the special case when the generative model generates
              samples by passing random noise through a multilayer perceptron, and the discriminative model
              is also a multilayer perceptron. We refer to this special case as em adversarial nets.
              In this case, we can train both models using only
              the highly successful backpropagation and dropout algorithms
              and sample from the generative
              model using only forward propagation. No approximate inference or Markov chains are necessary.


              enddocument


              Or perhaps nicer the following which just locally tacks the color on to the Large used by the section heading



              documentclassarticle % For LaTeX2e
              usepackagexcolor
              showoutput
              showboxdepth3
              letrealLargeLarge
              titleGenerative Adversarial Nets

              begindocument


              begincenter
              zzzzz
              endcenter

              %defLargerealLargecolorred
              sectionNext Section
              %letLargerealLarge

              This framework can yield specific training algorithms for many kinds of model and optimization
              algorithm. In this article, we explore the special case when the generative model generates
              samples by passing random noise through a multilayer perceptron, and the discriminative model
              is also a multilayer perceptron. We refer to this special case as em adversarial nets.
              In this case, we can train both models using only
              the highly successful backpropagation and dropout algorithms
              and sample from the generative
              model using only forward propagation. No approximate inference or Markov chains are necessary.


              enddocument





              share|improve this answer































                5














                As you can check with showoutput there are no spacing differences in the supplied example in the question with and without colorred so it isn't an example of this problem...



                However the issue can occur (and is shown in the first posted gif with the centred abstract).



                A real example is



                documentclassarticle % For LaTeX2e
                usepackagexcolor
                showoutput
                showboxdepth3
                titleGenerative Adversarial Nets

                begindocument

                begincenter
                zzzzz
                endcenter

                %colorred
                sectionNext Section

                This framework can yield specific training algorithms for many kinds of model and optimization
                algorithm. In this article, we explore the special case when the generative model generates
                samples by passing random noise through a multilayer perceptron, and the discriminative model
                is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                In this case, we can train both models using only
                the highly successful backpropagation and dropout algorithms
                and sample from the generative
                model using only forward propagation. No approximate inference or Markov chains are necessary.


                enddocument


                If you uncomment the colour command you get additional space before the heading as the colour whatsit node prevents the section command "seeing" the vertical space already added by the endcenter and so it adds its full specified amount rather than merging the spaces specified by endcenter and section.



                The trick is to do colour changes as far as possible in horizontal not vertical mode, so for example this works



                documentclassarticle % For LaTeX2e
                usepackagexcolor
                showoutput
                showboxdepth3
                titleGenerative Adversarial Nets

                begindocument
                colorred

                begincenter
                textcolorblackzzzzz
                endcenter


                sectionNext Section

                mboxcolorblackThis framework can yield specific training algorithms for many kinds of model and optimization
                algorithm. In this article, we explore the special case when the generative model generates
                samples by passing random noise through a multilayer perceptron, and the discriminative model
                is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                In this case, we can train both models using only
                the highly successful backpropagation and dropout algorithms
                and sample from the generative
                model using only forward propagation. No approximate inference or Markov chains are necessary.


                enddocument


                Or perhaps nicer the following which just locally tacks the color on to the Large used by the section heading



                documentclassarticle % For LaTeX2e
                usepackagexcolor
                showoutput
                showboxdepth3
                letrealLargeLarge
                titleGenerative Adversarial Nets

                begindocument


                begincenter
                zzzzz
                endcenter

                %defLargerealLargecolorred
                sectionNext Section
                %letLargerealLarge

                This framework can yield specific training algorithms for many kinds of model and optimization
                algorithm. In this article, we explore the special case when the generative model generates
                samples by passing random noise through a multilayer perceptron, and the discriminative model
                is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                In this case, we can train both models using only
                the highly successful backpropagation and dropout algorithms
                and sample from the generative
                model using only forward propagation. No approximate inference or Markov chains are necessary.


                enddocument





                share|improve this answer





























                  5












                  5








                  5







                  As you can check with showoutput there are no spacing differences in the supplied example in the question with and without colorred so it isn't an example of this problem...



                  However the issue can occur (and is shown in the first posted gif with the centred abstract).



                  A real example is



                  documentclassarticle % For LaTeX2e
                  usepackagexcolor
                  showoutput
                  showboxdepth3
                  titleGenerative Adversarial Nets

                  begindocument

                  begincenter
                  zzzzz
                  endcenter

                  %colorred
                  sectionNext Section

                  This framework can yield specific training algorithms for many kinds of model and optimization
                  algorithm. In this article, we explore the special case when the generative model generates
                  samples by passing random noise through a multilayer perceptron, and the discriminative model
                  is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                  In this case, we can train both models using only
                  the highly successful backpropagation and dropout algorithms
                  and sample from the generative
                  model using only forward propagation. No approximate inference or Markov chains are necessary.


                  enddocument


                  If you uncomment the colour command you get additional space before the heading as the colour whatsit node prevents the section command "seeing" the vertical space already added by the endcenter and so it adds its full specified amount rather than merging the spaces specified by endcenter and section.



                  The trick is to do colour changes as far as possible in horizontal not vertical mode, so for example this works



                  documentclassarticle % For LaTeX2e
                  usepackagexcolor
                  showoutput
                  showboxdepth3
                  titleGenerative Adversarial Nets

                  begindocument
                  colorred

                  begincenter
                  textcolorblackzzzzz
                  endcenter


                  sectionNext Section

                  mboxcolorblackThis framework can yield specific training algorithms for many kinds of model and optimization
                  algorithm. In this article, we explore the special case when the generative model generates
                  samples by passing random noise through a multilayer perceptron, and the discriminative model
                  is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                  In this case, we can train both models using only
                  the highly successful backpropagation and dropout algorithms
                  and sample from the generative
                  model using only forward propagation. No approximate inference or Markov chains are necessary.


                  enddocument


                  Or perhaps nicer the following which just locally tacks the color on to the Large used by the section heading



                  documentclassarticle % For LaTeX2e
                  usepackagexcolor
                  showoutput
                  showboxdepth3
                  letrealLargeLarge
                  titleGenerative Adversarial Nets

                  begindocument


                  begincenter
                  zzzzz
                  endcenter

                  %defLargerealLargecolorred
                  sectionNext Section
                  %letLargerealLarge

                  This framework can yield specific training algorithms for many kinds of model and optimization
                  algorithm. In this article, we explore the special case when the generative model generates
                  samples by passing random noise through a multilayer perceptron, and the discriminative model
                  is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                  In this case, we can train both models using only
                  the highly successful backpropagation and dropout algorithms
                  and sample from the generative
                  model using only forward propagation. No approximate inference or Markov chains are necessary.


                  enddocument





                  share|improve this answer















                  As you can check with showoutput there are no spacing differences in the supplied example in the question with and without colorred so it isn't an example of this problem...



                  However the issue can occur (and is shown in the first posted gif with the centred abstract).



                  A real example is



                  documentclassarticle % For LaTeX2e
                  usepackagexcolor
                  showoutput
                  showboxdepth3
                  titleGenerative Adversarial Nets

                  begindocument

                  begincenter
                  zzzzz
                  endcenter

                  %colorred
                  sectionNext Section

                  This framework can yield specific training algorithms for many kinds of model and optimization
                  algorithm. In this article, we explore the special case when the generative model generates
                  samples by passing random noise through a multilayer perceptron, and the discriminative model
                  is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                  In this case, we can train both models using only
                  the highly successful backpropagation and dropout algorithms
                  and sample from the generative
                  model using only forward propagation. No approximate inference or Markov chains are necessary.


                  enddocument


                  If you uncomment the colour command you get additional space before the heading as the colour whatsit node prevents the section command "seeing" the vertical space already added by the endcenter and so it adds its full specified amount rather than merging the spaces specified by endcenter and section.



                  The trick is to do colour changes as far as possible in horizontal not vertical mode, so for example this works



                  documentclassarticle % For LaTeX2e
                  usepackagexcolor
                  showoutput
                  showboxdepth3
                  titleGenerative Adversarial Nets

                  begindocument
                  colorred

                  begincenter
                  textcolorblackzzzzz
                  endcenter


                  sectionNext Section

                  mboxcolorblackThis framework can yield specific training algorithms for many kinds of model and optimization
                  algorithm. In this article, we explore the special case when the generative model generates
                  samples by passing random noise through a multilayer perceptron, and the discriminative model
                  is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                  In this case, we can train both models using only
                  the highly successful backpropagation and dropout algorithms
                  and sample from the generative
                  model using only forward propagation. No approximate inference or Markov chains are necessary.


                  enddocument


                  Or perhaps nicer the following which just locally tacks the color on to the Large used by the section heading



                  documentclassarticle % For LaTeX2e
                  usepackagexcolor
                  showoutput
                  showboxdepth3
                  letrealLargeLarge
                  titleGenerative Adversarial Nets

                  begindocument


                  begincenter
                  zzzzz
                  endcenter

                  %defLargerealLargecolorred
                  sectionNext Section
                  %letLargerealLarge

                  This framework can yield specific training algorithms for many kinds of model and optimization
                  algorithm. In this article, we explore the special case when the generative model generates
                  samples by passing random noise through a multilayer perceptron, and the discriminative model
                  is also a multilayer perceptron. We refer to this special case as em adversarial nets.
                  In this case, we can train both models using only
                  the highly successful backpropagation and dropout algorithms
                  and sample from the generative
                  model using only forward propagation. No approximate inference or Markov chains are necessary.


                  enddocument






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 4 hours ago









                  Sigur

                  26.7k4 gold badges61 silver badges146 bronze badges




                  26.7k4 gold badges61 silver badges146 bronze badges










                  answered 5 hours ago









                  David CarlisleDavid Carlisle

                  517k44 gold badges1173 silver badges1943 bronze badges




                  517k44 gold badges1173 silver badges1943 bronze badges






























                      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%2f502437%2fwhy-does-latex-make-a-small-adjustment-when-i-change-section-color%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

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її