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

Trying to understand entropy as a novice in thermodynamics

What is the origin of 落第?

What are the main differences between Stargate SG-1 cuts?

Moving a wrapfig vertically to encroach partially on a subsection title

What initially awakened the Balrog?

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

Sally's older brother

Why is it faster to reheat something than it is to cook it?

Why is a lens darker than other ones when applying the same settings?

Asymptotics question

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

What does it mean that physics no longer uses mechanical models to describe phenomena?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?

A proverb that is used to imply that you have unexpectedly faced a big problem

What would you call this weird metallic apparatus that allows you to lift people?

Is CEO the "profession" with the most psychopaths?

"klopfte jemand" or "jemand klopfte"?

How do living politicians protect their readily obtainable signatures from misuse?

NERDTreeMenu Remapping

Would color changing eyes affect vision?

Is openssl rand command cryptographically secure?

Does silver oxide react with hydrogen sulfide?

Special flights



Why abntex2 class 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 class, 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 class, 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 class or my command to fix this issue?



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 class, 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 class, 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 class or my command to fix this issue?



    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 class, 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 class, 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 class or my command to fix this issue?



      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 class, 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 class, 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 class or my command to fix this issue?



      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 7 mins 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-class-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-class-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

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