Why abntex2 class is inserting a new line after the chapter title? Announcing the arrival of...
Is multiple magic items in one inherently imbalanced?
One-one communication
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
Delete free apps from library
Test print coming out spongy
Is openssl rand command cryptographically secure?
What is the difference between CTSS and ITS?
A `coordinate` command ignored
How does light 'choose' between wave and particle behaviour?
two integers one line calculator
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?
What initially awakened the Balrog?
Monty Hall Problem-Probability Paradox
"klopfte jemand" or "jemand klopfte"?
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
Did any compiler fully use 80-bit floating point?
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
Putting class ranking in CV, but against dept guidelines
How to change the tick of the color bar legend to black
Why is a lens darker than other ones when applying the same settings?
What is the origin of 落第?
What are the main differences between Stargate SG-1 cuts?
Does the Mueller report show a conspiracy between Russia and the Trump Campaign?
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 titleInserting chapter* title to TOCRemoving the “chapter” title for one chapter onlyon new page and chapter title in an imageInserting section titles on the chapter title pageChanging Chapter Title in scrrprt-classVertical Spacing after the Chapter TitleHow to add the chapter number into the chapter title using memoir class?Chapter title under chapter number in KOMA class
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:
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}}}%
}
}
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:
- 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
class, 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
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}}}%
}
}
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:
- 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
class, 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
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}}}%
}
}
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:
- 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
class, 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
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}}}%
}
}
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:
- 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 7 mins 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-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
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-class-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