Why abntex2 package is inserting a new line after the chapter title? Announcing the arrival of...

How to ask rejected full-time candidates to apply to teach individual courses?

Are the endpoints of the domain of a function counted as critical points?

Differences to CCompactSize and CVarInt

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

White walkers, cemeteries and wights

One-one communication

Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?

Test print coming out spongy

What is the difference between a "ranged attack" and a "ranged weapon attack"?

What is the origin of 落第?

two integers one line calculator

Tips to organize LaTeX presentations for a semester

How much damage would a cupful of neutron star matter do to the Earth?

Trying to understand entropy as a novice in thermodynamics

What initially awakened the Balrog?

What is the difference between CTSS and ITS?

Why datecode is SO IMPORTANT to chip manufacturers?

Sally's older brother

Mounting TV on a weird wall that has some material between the drywall and stud

Why is std::move not [[nodiscard]] in C++20?

The test team as an enemy of development? And how can this be avoided?

How to write capital alpha?

Is it dangerous to install hacking tools on my private linux machine?

Would color changing eyes affect vision?



Why abntex2 package is inserting a new line after the chapter title?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How to automatically put a [Go To Summary] | [Go Back] on each section?What is the equivalent to `Sectionformat` on memoir class for `Chapterformat`?How can the go to summary be fixed so the section[Some]{Some more} does not throw all these errors?Chapter number and chapter title in one lineInserting undertilde in Chapter titleManually Break line in custom chapter titleInserting chapter* title to TOCRemoving the “chapter” title for one chapter onlySet initial line after chapter title relative to top margin, not relative to end of chapter titleabntex2 package chapter creation not workingon new page and chapter title in an imageInserting section titles on the chapter title pageVertical Spacing after the Chapter Title












0















I am using this customization How to automatically put a [Go To Summary] | [Go Back] on each section?, but when I load it together with abntex2 package, my go back buttons are put on the next line for the chapter{} command. Everything works fine for section{} and others:



enter image description here



If I remove the following code from the abntex2 package, then, it is fixed:



https://github.com/abntex/abntex2/blob/15a981c300198ca59920eea17f02893490adf878/tex/latex/abntex2/abntex2.cls#L603-L614



  defprintchaptertitle##1{%
chaptitlefont%
ifthenelse{boolean{abntex@innonumchapter}}{centeringABNTEXchapterupperifneeded{##1}}{%
ifthenelse{boolean{abntex@apendiceousecao}}{%
centering%
settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
ABNTEXchapterupperifneeded{##1}%
}{%
settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
parbox[t]{columnwidth-chapternamenumlength}{ABNTEXchapterupperifneeded{##1}}}%
}
}


enter image description here





This is my minimal example:



documentclass[
10pt,
a5paper
]{abntex2}

usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{xcolor}

definecolor{ultramarine}{RGB}{0,32,96}
RequirePackage{amssymb}
newcommand{goToSummaryText}
{%
smallmdseries
hyperlink{summary}{textcolor{ultramarine}{$leftleftarrows$}}
{$|$}
Acrobatmenu{GoBack}{textcolor{ultramarine}{$leftarrow$}}
}
makeatletter
newififismemoirloadedismemoirloadedfalse
@ifclassloaded{memoir}
{%
ismemoirloadedtrue
}{}
newcommand{addGoToSummary}
{%
renewcommand{Sectionformat}[2]{##1 protectgoToSummaryText}
ifismemoirloaded
letoldprintchaptertitleprintchaptertitle
renewcommand{printchaptertitle}[1]{oldprintchaptertitle{##1} protectgoToSummaryText}
elsefi
}
newcommand{removeGoToSummary}
{%
renewcommand{Sectionformat}[2]{##1}
ifismemoirloaded
letprintchaptertitleoldprintchaptertitle
elsefi
}
makeatother
letoldtableofcontentstableofcontents
renewcommand{tableofcontents}
{%
hypertarget{summary}%
oldtableofcontents%
}

begin{document}
addGoToSummary
chapter{Section contents}
thing2.
end{document}


How can I patch abntex2 package to fix this issue with my command?



References:




  1. What is the equivalent to `Sectionformat` on memoir class for `Chapterformat`?

  2. How can the go to summary be fixed so the section[Some]{Some more} does not throw all these errors?









share



























    0















    I am using this customization How to automatically put a [Go To Summary] | [Go Back] on each section?, but when I load it together with abntex2 package, my go back buttons are put on the next line for the chapter{} command. Everything works fine for section{} and others:



    enter image description here



    If I remove the following code from the abntex2 package, then, it is fixed:



    https://github.com/abntex/abntex2/blob/15a981c300198ca59920eea17f02893490adf878/tex/latex/abntex2/abntex2.cls#L603-L614



      defprintchaptertitle##1{%
    chaptitlefont%
    ifthenelse{boolean{abntex@innonumchapter}}{centeringABNTEXchapterupperifneeded{##1}}{%
    ifthenelse{boolean{abntex@apendiceousecao}}{%
    centering%
    settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
    ABNTEXchapterupperifneeded{##1}%
    }{%
    settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
    parbox[t]{columnwidth-chapternamenumlength}{ABNTEXchapterupperifneeded{##1}}}%
    }
    }


    enter image description here





    This is my minimal example:



    documentclass[
    10pt,
    a5paper
    ]{abntex2}

    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage{xcolor}

    definecolor{ultramarine}{RGB}{0,32,96}
    RequirePackage{amssymb}
    newcommand{goToSummaryText}
    {%
    smallmdseries
    hyperlink{summary}{textcolor{ultramarine}{$leftleftarrows$}}
    {$|$}
    Acrobatmenu{GoBack}{textcolor{ultramarine}{$leftarrow$}}
    }
    makeatletter
    newififismemoirloadedismemoirloadedfalse
    @ifclassloaded{memoir}
    {%
    ismemoirloadedtrue
    }{}
    newcommand{addGoToSummary}
    {%
    renewcommand{Sectionformat}[2]{##1 protectgoToSummaryText}
    ifismemoirloaded
    letoldprintchaptertitleprintchaptertitle
    renewcommand{printchaptertitle}[1]{oldprintchaptertitle{##1} protectgoToSummaryText}
    elsefi
    }
    newcommand{removeGoToSummary}
    {%
    renewcommand{Sectionformat}[2]{##1}
    ifismemoirloaded
    letprintchaptertitleoldprintchaptertitle
    elsefi
    }
    makeatother
    letoldtableofcontentstableofcontents
    renewcommand{tableofcontents}
    {%
    hypertarget{summary}%
    oldtableofcontents%
    }

    begin{document}
    addGoToSummary
    chapter{Section contents}
    thing2.
    end{document}


    How can I patch abntex2 package to fix this issue with my command?



    References:




    1. What is the equivalent to `Sectionformat` on memoir class for `Chapterformat`?

    2. How can the go to summary be fixed so the section[Some]{Some more} does not throw all these errors?









    share

























      0












      0








      0








      I am using this customization How to automatically put a [Go To Summary] | [Go Back] on each section?, but when I load it together with abntex2 package, my go back buttons are put on the next line for the chapter{} command. Everything works fine for section{} and others:



      enter image description here



      If I remove the following code from the abntex2 package, then, it is fixed:



      https://github.com/abntex/abntex2/blob/15a981c300198ca59920eea17f02893490adf878/tex/latex/abntex2/abntex2.cls#L603-L614



        defprintchaptertitle##1{%
      chaptitlefont%
      ifthenelse{boolean{abntex@innonumchapter}}{centeringABNTEXchapterupperifneeded{##1}}{%
      ifthenelse{boolean{abntex@apendiceousecao}}{%
      centering%
      settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
      ABNTEXchapterupperifneeded{##1}%
      }{%
      settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
      parbox[t]{columnwidth-chapternamenumlength}{ABNTEXchapterupperifneeded{##1}}}%
      }
      }


      enter image description here





      This is my minimal example:



      documentclass[
      10pt,
      a5paper
      ]{abntex2}

      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage{xcolor}

      definecolor{ultramarine}{RGB}{0,32,96}
      RequirePackage{amssymb}
      newcommand{goToSummaryText}
      {%
      smallmdseries
      hyperlink{summary}{textcolor{ultramarine}{$leftleftarrows$}}
      {$|$}
      Acrobatmenu{GoBack}{textcolor{ultramarine}{$leftarrow$}}
      }
      makeatletter
      newififismemoirloadedismemoirloadedfalse
      @ifclassloaded{memoir}
      {%
      ismemoirloadedtrue
      }{}
      newcommand{addGoToSummary}
      {%
      renewcommand{Sectionformat}[2]{##1 protectgoToSummaryText}
      ifismemoirloaded
      letoldprintchaptertitleprintchaptertitle
      renewcommand{printchaptertitle}[1]{oldprintchaptertitle{##1} protectgoToSummaryText}
      elsefi
      }
      newcommand{removeGoToSummary}
      {%
      renewcommand{Sectionformat}[2]{##1}
      ifismemoirloaded
      letprintchaptertitleoldprintchaptertitle
      elsefi
      }
      makeatother
      letoldtableofcontentstableofcontents
      renewcommand{tableofcontents}
      {%
      hypertarget{summary}%
      oldtableofcontents%
      }

      begin{document}
      addGoToSummary
      chapter{Section contents}
      thing2.
      end{document}


      How can I patch abntex2 package to fix this issue with my command?



      References:




      1. What is the equivalent to `Sectionformat` on memoir class for `Chapterformat`?

      2. How can the go to summary be fixed so the section[Some]{Some more} does not throw all these errors?









      share














      I am using this customization How to automatically put a [Go To Summary] | [Go Back] on each section?, but when I load it together with abntex2 package, my go back buttons are put on the next line for the chapter{} command. Everything works fine for section{} and others:



      enter image description here



      If I remove the following code from the abntex2 package, then, it is fixed:



      https://github.com/abntex/abntex2/blob/15a981c300198ca59920eea17f02893490adf878/tex/latex/abntex2/abntex2.cls#L603-L614



        defprintchaptertitle##1{%
      chaptitlefont%
      ifthenelse{boolean{abntex@innonumchapter}}{centeringABNTEXchapterupperifneeded{##1}}{%
      ifthenelse{boolean{abntex@apendiceousecao}}{%
      centering%
      settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
      ABNTEXchapterupperifneeded{##1}%
      }{%
      settowidth{chapternamenumlength}{printchapternameprintchapternumafterchapternum}%
      parbox[t]{columnwidth-chapternamenumlength}{ABNTEXchapterupperifneeded{##1}}}%
      }
      }


      enter image description here





      This is my minimal example:



      documentclass[
      10pt,
      a5paper
      ]{abntex2}

      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage{xcolor}

      definecolor{ultramarine}{RGB}{0,32,96}
      RequirePackage{amssymb}
      newcommand{goToSummaryText}
      {%
      smallmdseries
      hyperlink{summary}{textcolor{ultramarine}{$leftleftarrows$}}
      {$|$}
      Acrobatmenu{GoBack}{textcolor{ultramarine}{$leftarrow$}}
      }
      makeatletter
      newififismemoirloadedismemoirloadedfalse
      @ifclassloaded{memoir}
      {%
      ismemoirloadedtrue
      }{}
      newcommand{addGoToSummary}
      {%
      renewcommand{Sectionformat}[2]{##1 protectgoToSummaryText}
      ifismemoirloaded
      letoldprintchaptertitleprintchaptertitle
      renewcommand{printchaptertitle}[1]{oldprintchaptertitle{##1} protectgoToSummaryText}
      elsefi
      }
      newcommand{removeGoToSummary}
      {%
      renewcommand{Sectionformat}[2]{##1}
      ifismemoirloaded
      letprintchaptertitleoldprintchaptertitle
      elsefi
      }
      makeatother
      letoldtableofcontentstableofcontents
      renewcommand{tableofcontents}
      {%
      hypertarget{summary}%
      oldtableofcontents%
      }

      begin{document}
      addGoToSummary
      chapter{Section contents}
      thing2.
      end{document}


      How can I patch abntex2 package to fix this issue with my command?



      References:




      1. What is the equivalent to `Sectionformat` on memoir class for `Chapterformat`?

      2. How can the go to summary be fixed so the section[Some]{Some more} does not throw all these errors?







      chapters abnt





      share












      share










      share



      share










      asked 1 min ago









      useruser

      1,28821030




      1,28821030






















          0






          active

          oldest

          votes












          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%2f485834%2fwhy-abntex2-package-is-inserting-a-new-line-after-the-chapter-title%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f485834%2fwhy-abntex2-package-is-inserting-a-new-line-after-the-chapter-title%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

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

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

          Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...