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
New Order #6: Easter Egg
 
 Tips to organize LaTeX presentations for a semester
 
 Is CEO the "profession" with the most psychopaths?
 
 Moving a wrapfig vertically to encroach partially on a subsection title
 
 Monty Hall Problem-Probability Paradox
 
 I can't produce songs
 
 What would you call this weird metallic apparatus that allows you to lift people?
 
 My mentor says to set image to Fine instead of RAW — how is this different from JPG?
 
 How to force a browser when connecting to a specific domain to be https only using only the client machine?
 
 Why are vacuum tubes still used in amateur radios?
 
 Co-worker has annoying ringtone
 
 How can I prevent/balance waiting and turtling as a response to cooldown mechanics
 
 The Nth Gryphon Number
 
 Sally's older brother
 
 What does 丫 mean? 丫是什么意思?
 
 Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
 
 Tannaka duality for semisimple groups
 
 Getting out of while loop on console
 
 NERDTreeMenu Remapping
 
 Delete free apps from library
 
 How to change the tick of the color bar legend to black
 
 Why is it faster to reheat something than it is to cook it?
 
 Should a wizard buy fine inks every time he want to copy spells into his spellbook?
 
 If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
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
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:

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%
 ifthenelsebooleanabntex@innonumchaptercenteringABNTEXchapterupperifneeded##1%
 ifthenelsebooleanabntex@apendiceousecao%
 centering%
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 ABNTEXchapterupperifneeded##1%
 %
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 parbox[t]columnwidth-chapternamenumlengthABNTEXchapterupperifneeded##1%
 
 

This is my minimal example:
documentclass[
10pt,
a5paper
]abntex2
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagexcolor
definecolorultramarineRGB0,32,96
RequirePackageamssymb
newcommandgoToSummaryText
%
 smallmdseries
 hyperlinksummarytextcolorultramarine$leftleftarrows$
 $
 AcrobatmenuGoBacktextcolorultramarine$leftarrow$
makeatletter
 newififismemoirloadedismemoirloadedfalse
 @ifclassloadedmemoir
 %
 ismemoirloadedtrue
 
 newcommandaddGoToSummary
 %
 renewcommandSectionformat[2]##1 protectgoToSummaryText
 ifismemoirloaded
 letoldprintchaptertitleprintchaptertitle
 renewcommandprintchaptertitle[1]oldprintchaptertitle##1 protectgoToSummaryText
 elsefi
 
 newcommandremoveGoToSummary
 %
 renewcommandSectionformat[2]##1
 ifismemoirloaded
 letprintchaptertitleoldprintchaptertitle
 elsefi
 
makeatother
letoldtableofcontentstableofcontents
renewcommandtableofcontents
%
 hypertargetsummary%
 oldtableofcontents%
begindocument
 addGoToSummary
 chapterSection contents
 thing2.
enddocument
How can I patch abntex2 package to fix this issue with my command?
References:
- 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?
chapters abnt
add a comment |
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:

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%
 ifthenelsebooleanabntex@innonumchaptercenteringABNTEXchapterupperifneeded##1%
 ifthenelsebooleanabntex@apendiceousecao%
 centering%
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 ABNTEXchapterupperifneeded##1%
 %
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 parbox[t]columnwidth-chapternamenumlengthABNTEXchapterupperifneeded##1%
 
 

This is my minimal example:
documentclass[
10pt,
a5paper
]abntex2
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagexcolor
definecolorultramarineRGB0,32,96
RequirePackageamssymb
newcommandgoToSummaryText
%
 smallmdseries
 hyperlinksummarytextcolorultramarine$leftleftarrows$
 $
 AcrobatmenuGoBacktextcolorultramarine$leftarrow$
makeatletter
 newififismemoirloadedismemoirloadedfalse
 @ifclassloadedmemoir
 %
 ismemoirloadedtrue
 
 newcommandaddGoToSummary
 %
 renewcommandSectionformat[2]##1 protectgoToSummaryText
 ifismemoirloaded
 letoldprintchaptertitleprintchaptertitle
 renewcommandprintchaptertitle[1]oldprintchaptertitle##1 protectgoToSummaryText
 elsefi
 
 newcommandremoveGoToSummary
 %
 renewcommandSectionformat[2]##1
 ifismemoirloaded
 letprintchaptertitleoldprintchaptertitle
 elsefi
 
makeatother
letoldtableofcontentstableofcontents
renewcommandtableofcontents
%
 hypertargetsummary%
 oldtableofcontents%
begindocument
 addGoToSummary
 chapterSection contents
 thing2.
enddocument
How can I patch abntex2 package to fix this issue with my command?
References:
- 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?
chapters abnt
add a comment |
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:

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%
 ifthenelsebooleanabntex@innonumchaptercenteringABNTEXchapterupperifneeded##1%
 ifthenelsebooleanabntex@apendiceousecao%
 centering%
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 ABNTEXchapterupperifneeded##1%
 %
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 parbox[t]columnwidth-chapternamenumlengthABNTEXchapterupperifneeded##1%
 
 

This is my minimal example:
documentclass[
10pt,
a5paper
]abntex2
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagexcolor
definecolorultramarineRGB0,32,96
RequirePackageamssymb
newcommandgoToSummaryText
%
 smallmdseries
 hyperlinksummarytextcolorultramarine$leftleftarrows$
 $
 AcrobatmenuGoBacktextcolorultramarine$leftarrow$
makeatletter
 newififismemoirloadedismemoirloadedfalse
 @ifclassloadedmemoir
 %
 ismemoirloadedtrue
 
 newcommandaddGoToSummary
 %
 renewcommandSectionformat[2]##1 protectgoToSummaryText
 ifismemoirloaded
 letoldprintchaptertitleprintchaptertitle
 renewcommandprintchaptertitle[1]oldprintchaptertitle##1 protectgoToSummaryText
 elsefi
 
 newcommandremoveGoToSummary
 %
 renewcommandSectionformat[2]##1
 ifismemoirloaded
 letprintchaptertitleoldprintchaptertitle
 elsefi
 
makeatother
letoldtableofcontentstableofcontents
renewcommandtableofcontents
%
 hypertargetsummary%
 oldtableofcontents%
begindocument
 addGoToSummary
 chapterSection contents
 thing2.
enddocument
How can I patch abntex2 package to fix this issue with my command?
References:
- 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?
chapters abnt
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:

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%
 ifthenelsebooleanabntex@innonumchaptercenteringABNTEXchapterupperifneeded##1%
 ifthenelsebooleanabntex@apendiceousecao%
 centering%
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 ABNTEXchapterupperifneeded##1%
 %
 settowidthchapternamenumlengthprintchapternameprintchapternumafterchapternum%
 parbox[t]columnwidth-chapternamenumlengthABNTEXchapterupperifneeded##1%
 
 

This is my minimal example:
documentclass[
10pt,
a5paper
]abntex2
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagexcolor
definecolorultramarineRGB0,32,96
RequirePackageamssymb
newcommandgoToSummaryText
%
 smallmdseries
 hyperlinksummarytextcolorultramarine$leftleftarrows$
 $
 AcrobatmenuGoBacktextcolorultramarine$leftarrow$
makeatletter
 newififismemoirloadedismemoirloadedfalse
 @ifclassloadedmemoir
 %
 ismemoirloadedtrue
 
 newcommandaddGoToSummary
 %
 renewcommandSectionformat[2]##1 protectgoToSummaryText
 ifismemoirloaded
 letoldprintchaptertitleprintchaptertitle
 renewcommandprintchaptertitle[1]oldprintchaptertitle##1 protectgoToSummaryText
 elsefi
 
 newcommandremoveGoToSummary
 %
 renewcommandSectionformat[2]##1
 ifismemoirloaded
 letprintchaptertitleoldprintchaptertitle
 elsefi
 
makeatother
letoldtableofcontentstableofcontents
renewcommandtableofcontents
%
 hypertargetsummary%
 oldtableofcontents%
begindocument
 addGoToSummary
 chapterSection contents
 thing2.
enddocument
How can I patch abntex2 package to fix this issue with my command?
References:
- 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?
chapters abnt
chapters abnt
asked 56 secs ago
useruser
1,28821030
1,28821030
add a comment |
add a comment |
 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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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