Change chapter and section color memoir class
I can't figure out how to change the colour of ALL the chapter and section headings. I have tried a lot of different things (see code). No matter what I do I can't change the colour of the started * Chapters and sections. Like so the colour of the appendixpage
and nomenclature doesn't change.
Bonus question: How do I change the appendixpage
to spell "Bilag" instead of "Appendices"?
Sorry for the long code but don't know what's relevant
My main code:
documentclass[a4paper,12pt]{memoir}
chapterstyle{madsen}% Chapter style
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc} % Setting the output font
usepackage[danish]{babel}
usepackage{times}
usepackage{textpos} % positioning of textblocks on the page
usepackage{graphicx} % includes graphics in document
graphicspath{{gfx/}} % Path to graphics
usepackage{ifthen} % provides ifthen structure
usepackage{mathtools}
usepackage{apacite}
usepackage[hidelinks]{hyperref}
%addbibresource{references.bib}
usepackage[intoc, refpage]{nomencl} % Nomenclature package
makenomenclature
usepackage{float}
usepackage{multirow}
setlength{parskip}{1em}
setlength{parindent}{0em}`
`usepackage{enumitem}
setlist[itemize]{noitemsep, topsep=-0pt}`
`renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{G}}{item[textbf{Symboler - Greek}]}{%
ifthenelse{equal{#1}{L}}{item[textbf{Symboler - Latin}]}{%
ifthenelse{equal{#1}{A}}{item[textbf{Forkortelser}]}{}}}}`
`newcommand{myitem}{item[includegraphics{./gfx/item_bullet.png}]}`
`%------------
%------------
% BELOW IS WHAT I HAVE TRIED TO DO
%----------coloring chapters and sections
%usepackage{xcolor}
%usepackage{sectsty}
%chapterfont{color{blue} % sets colour of chapters
%sectionfont{color{cyan}} % sets colour of sections
%----------------------------------------`
`usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{31,78,121}
definecolor{chaptercolour}{RGB}{31,78,121}
definecolor{subsectioncolour}{RGB}{31,78,121}`
`%addtodef{printchaptername}{color{chaptercolour}}{} %Change chapter color
%addtodef{printsectionname}{color{Red}}{} %Change chapter color
%addtodef{tocheadstart}{color{red}}{} % If you want the whole TOC to be blue also
%addtoiargdef{printtoctitle}{color{Green}}{} % If you just want the TOC title blue
%setsechook{color{Red!50!yellow}}`
`% This sets the colours in Tables of Contents
%renewcommand*cftchapterfont{color{chaptercolour}}
%renewcommand*cftsectionfont{color{sectioncolour}}
%renewcommand*cftsubsectionfont{color{subsectioncolour}}`
`% set colours in chapters
addtodef{printchaptername}{color{chaptercolour}}{}
%renewcommand{chapnamefont}{Largebfseriescolor{chaptercolour}}
%renewcommand{chapnumfont}{color{chaptercolour}}
%renewcommand{chaptitlefont}{color{chaptercolour}}`
`% Sets colours and style of sections and subsections
%setchapheadstyle{Largebfseriescolor{chaptercolou}}% Set section style
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style`
`%---------
%---------`
`begin{document}
frontmatter
chapter*{Forord}
newpage
vspace*{-2cm}
tableofcontents*
mainmatter
chapter{Intro}
nomenclature[A]{BIM}{Building Information Modelling}
nomenclature[A]{IPD}{Integrated Project Delivery}
appendixpage
chapter{Tomt appendix A}
backmatter
printnomenclature
bibliographystyle{apacite}
%bibliography{references.bib}
end{document}
color memoir
add a comment |
I can't figure out how to change the colour of ALL the chapter and section headings. I have tried a lot of different things (see code). No matter what I do I can't change the colour of the started * Chapters and sections. Like so the colour of the appendixpage
and nomenclature doesn't change.
Bonus question: How do I change the appendixpage
to spell "Bilag" instead of "Appendices"?
Sorry for the long code but don't know what's relevant
My main code:
documentclass[a4paper,12pt]{memoir}
chapterstyle{madsen}% Chapter style
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc} % Setting the output font
usepackage[danish]{babel}
usepackage{times}
usepackage{textpos} % positioning of textblocks on the page
usepackage{graphicx} % includes graphics in document
graphicspath{{gfx/}} % Path to graphics
usepackage{ifthen} % provides ifthen structure
usepackage{mathtools}
usepackage{apacite}
usepackage[hidelinks]{hyperref}
%addbibresource{references.bib}
usepackage[intoc, refpage]{nomencl} % Nomenclature package
makenomenclature
usepackage{float}
usepackage{multirow}
setlength{parskip}{1em}
setlength{parindent}{0em}`
`usepackage{enumitem}
setlist[itemize]{noitemsep, topsep=-0pt}`
`renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{G}}{item[textbf{Symboler - Greek}]}{%
ifthenelse{equal{#1}{L}}{item[textbf{Symboler - Latin}]}{%
ifthenelse{equal{#1}{A}}{item[textbf{Forkortelser}]}{}}}}`
`newcommand{myitem}{item[includegraphics{./gfx/item_bullet.png}]}`
`%------------
%------------
% BELOW IS WHAT I HAVE TRIED TO DO
%----------coloring chapters and sections
%usepackage{xcolor}
%usepackage{sectsty}
%chapterfont{color{blue} % sets colour of chapters
%sectionfont{color{cyan}} % sets colour of sections
%----------------------------------------`
`usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{31,78,121}
definecolor{chaptercolour}{RGB}{31,78,121}
definecolor{subsectioncolour}{RGB}{31,78,121}`
`%addtodef{printchaptername}{color{chaptercolour}}{} %Change chapter color
%addtodef{printsectionname}{color{Red}}{} %Change chapter color
%addtodef{tocheadstart}{color{red}}{} % If you want the whole TOC to be blue also
%addtoiargdef{printtoctitle}{color{Green}}{} % If you just want the TOC title blue
%setsechook{color{Red!50!yellow}}`
`% This sets the colours in Tables of Contents
%renewcommand*cftchapterfont{color{chaptercolour}}
%renewcommand*cftsectionfont{color{sectioncolour}}
%renewcommand*cftsubsectionfont{color{subsectioncolour}}`
`% set colours in chapters
addtodef{printchaptername}{color{chaptercolour}}{}
%renewcommand{chapnamefont}{Largebfseriescolor{chaptercolour}}
%renewcommand{chapnumfont}{color{chaptercolour}}
%renewcommand{chaptitlefont}{color{chaptercolour}}`
`% Sets colours and style of sections and subsections
%setchapheadstyle{Largebfseriescolor{chaptercolou}}% Set section style
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style`
`%---------
%---------`
`begin{document}
frontmatter
chapter*{Forord}
newpage
vspace*{-2cm}
tableofcontents*
mainmatter
chapter{Intro}
nomenclature[A]{BIM}{Building Information Modelling}
nomenclature[A]{IPD}{Integrated Project Delivery}
appendixpage
chapter{Tomt appendix A}
backmatter
printnomenclature
bibliographystyle{apacite}
%bibliography{references.bib}
end{document}
color memoir
add a comment |
I can't figure out how to change the colour of ALL the chapter and section headings. I have tried a lot of different things (see code). No matter what I do I can't change the colour of the started * Chapters and sections. Like so the colour of the appendixpage
and nomenclature doesn't change.
Bonus question: How do I change the appendixpage
to spell "Bilag" instead of "Appendices"?
Sorry for the long code but don't know what's relevant
My main code:
documentclass[a4paper,12pt]{memoir}
chapterstyle{madsen}% Chapter style
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc} % Setting the output font
usepackage[danish]{babel}
usepackage{times}
usepackage{textpos} % positioning of textblocks on the page
usepackage{graphicx} % includes graphics in document
graphicspath{{gfx/}} % Path to graphics
usepackage{ifthen} % provides ifthen structure
usepackage{mathtools}
usepackage{apacite}
usepackage[hidelinks]{hyperref}
%addbibresource{references.bib}
usepackage[intoc, refpage]{nomencl} % Nomenclature package
makenomenclature
usepackage{float}
usepackage{multirow}
setlength{parskip}{1em}
setlength{parindent}{0em}`
`usepackage{enumitem}
setlist[itemize]{noitemsep, topsep=-0pt}`
`renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{G}}{item[textbf{Symboler - Greek}]}{%
ifthenelse{equal{#1}{L}}{item[textbf{Symboler - Latin}]}{%
ifthenelse{equal{#1}{A}}{item[textbf{Forkortelser}]}{}}}}`
`newcommand{myitem}{item[includegraphics{./gfx/item_bullet.png}]}`
`%------------
%------------
% BELOW IS WHAT I HAVE TRIED TO DO
%----------coloring chapters and sections
%usepackage{xcolor}
%usepackage{sectsty}
%chapterfont{color{blue} % sets colour of chapters
%sectionfont{color{cyan}} % sets colour of sections
%----------------------------------------`
`usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{31,78,121}
definecolor{chaptercolour}{RGB}{31,78,121}
definecolor{subsectioncolour}{RGB}{31,78,121}`
`%addtodef{printchaptername}{color{chaptercolour}}{} %Change chapter color
%addtodef{printsectionname}{color{Red}}{} %Change chapter color
%addtodef{tocheadstart}{color{red}}{} % If you want the whole TOC to be blue also
%addtoiargdef{printtoctitle}{color{Green}}{} % If you just want the TOC title blue
%setsechook{color{Red!50!yellow}}`
`% This sets the colours in Tables of Contents
%renewcommand*cftchapterfont{color{chaptercolour}}
%renewcommand*cftsectionfont{color{sectioncolour}}
%renewcommand*cftsubsectionfont{color{subsectioncolour}}`
`% set colours in chapters
addtodef{printchaptername}{color{chaptercolour}}{}
%renewcommand{chapnamefont}{Largebfseriescolor{chaptercolour}}
%renewcommand{chapnumfont}{color{chaptercolour}}
%renewcommand{chaptitlefont}{color{chaptercolour}}`
`% Sets colours and style of sections and subsections
%setchapheadstyle{Largebfseriescolor{chaptercolou}}% Set section style
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style`
`%---------
%---------`
`begin{document}
frontmatter
chapter*{Forord}
newpage
vspace*{-2cm}
tableofcontents*
mainmatter
chapter{Intro}
nomenclature[A]{BIM}{Building Information Modelling}
nomenclature[A]{IPD}{Integrated Project Delivery}
appendixpage
chapter{Tomt appendix A}
backmatter
printnomenclature
bibliographystyle{apacite}
%bibliography{references.bib}
end{document}
color memoir
I can't figure out how to change the colour of ALL the chapter and section headings. I have tried a lot of different things (see code). No matter what I do I can't change the colour of the started * Chapters and sections. Like so the colour of the appendixpage
and nomenclature doesn't change.
Bonus question: How do I change the appendixpage
to spell "Bilag" instead of "Appendices"?
Sorry for the long code but don't know what's relevant
My main code:
documentclass[a4paper,12pt]{memoir}
chapterstyle{madsen}% Chapter style
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc} % Setting the output font
usepackage[danish]{babel}
usepackage{times}
usepackage{textpos} % positioning of textblocks on the page
usepackage{graphicx} % includes graphics in document
graphicspath{{gfx/}} % Path to graphics
usepackage{ifthen} % provides ifthen structure
usepackage{mathtools}
usepackage{apacite}
usepackage[hidelinks]{hyperref}
%addbibresource{references.bib}
usepackage[intoc, refpage]{nomencl} % Nomenclature package
makenomenclature
usepackage{float}
usepackage{multirow}
setlength{parskip}{1em}
setlength{parindent}{0em}`
`usepackage{enumitem}
setlist[itemize]{noitemsep, topsep=-0pt}`
`renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{G}}{item[textbf{Symboler - Greek}]}{%
ifthenelse{equal{#1}{L}}{item[textbf{Symboler - Latin}]}{%
ifthenelse{equal{#1}{A}}{item[textbf{Forkortelser}]}{}}}}`
`newcommand{myitem}{item[includegraphics{./gfx/item_bullet.png}]}`
`%------------
%------------
% BELOW IS WHAT I HAVE TRIED TO DO
%----------coloring chapters and sections
%usepackage{xcolor}
%usepackage{sectsty}
%chapterfont{color{blue} % sets colour of chapters
%sectionfont{color{cyan}} % sets colour of sections
%----------------------------------------`
`usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{31,78,121}
definecolor{chaptercolour}{RGB}{31,78,121}
definecolor{subsectioncolour}{RGB}{31,78,121}`
`%addtodef{printchaptername}{color{chaptercolour}}{} %Change chapter color
%addtodef{printsectionname}{color{Red}}{} %Change chapter color
%addtodef{tocheadstart}{color{red}}{} % If you want the whole TOC to be blue also
%addtoiargdef{printtoctitle}{color{Green}}{} % If you just want the TOC title blue
%setsechook{color{Red!50!yellow}}`
`% This sets the colours in Tables of Contents
%renewcommand*cftchapterfont{color{chaptercolour}}
%renewcommand*cftsectionfont{color{sectioncolour}}
%renewcommand*cftsubsectionfont{color{subsectioncolour}}`
`% set colours in chapters
addtodef{printchaptername}{color{chaptercolour}}{}
%renewcommand{chapnamefont}{Largebfseriescolor{chaptercolour}}
%renewcommand{chapnumfont}{color{chaptercolour}}
%renewcommand{chaptitlefont}{color{chaptercolour}}`
`% Sets colours and style of sections and subsections
%setchapheadstyle{Largebfseriescolor{chaptercolou}}% Set section style
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style`
`%---------
%---------`
`begin{document}
frontmatter
chapter*{Forord}
newpage
vspace*{-2cm}
tableofcontents*
mainmatter
chapter{Intro}
nomenclature[A]{BIM}{Building Information Modelling}
nomenclature[A]{IPD}{Integrated Project Delivery}
appendixpage
chapter{Tomt appendix A}
backmatter
printnomenclature
bibliographystyle{apacite}
%bibliography{references.bib}
end{document}
color memoir
color memoir
edited 2 days ago
JouleV
4,88611139
4,88611139
asked Feb 26 at 10:55
LeaGLeaG
163
163
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I solved it on my own..
Wrote the following in my preamble
% REDEFINE CHAPTERS AND SECTIONS
usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{23,85,142}
definecolor{chaptercolour}{RGB}{23,85,142}
definecolor{subsectioncolour}{RGB}{23,85,142}
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style
renewcommand{chapnamefont}{normalfontlargescshaperaggedleftcolor{chaptercolour}}
renewcommand{chapnumfont}{Hugebfseriescolor{chaptercolour}}
renewcommand{chaptitlefont}{normalfontHugebfseriessffamilyraggedleftcolor{chaptercolour}}
New contributor
add a comment |
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%2f476735%2fchange-chapter-and-section-color-memoir-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I solved it on my own..
Wrote the following in my preamble
% REDEFINE CHAPTERS AND SECTIONS
usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{23,85,142}
definecolor{chaptercolour}{RGB}{23,85,142}
definecolor{subsectioncolour}{RGB}{23,85,142}
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style
renewcommand{chapnamefont}{normalfontlargescshaperaggedleftcolor{chaptercolour}}
renewcommand{chapnumfont}{Hugebfseriescolor{chaptercolour}}
renewcommand{chaptitlefont}{normalfontHugebfseriessffamilyraggedleftcolor{chaptercolour}}
New contributor
add a comment |
I solved it on my own..
Wrote the following in my preamble
% REDEFINE CHAPTERS AND SECTIONS
usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{23,85,142}
definecolor{chaptercolour}{RGB}{23,85,142}
definecolor{subsectioncolour}{RGB}{23,85,142}
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style
renewcommand{chapnamefont}{normalfontlargescshaperaggedleftcolor{chaptercolour}}
renewcommand{chapnumfont}{Hugebfseriescolor{chaptercolour}}
renewcommand{chaptitlefont}{normalfontHugebfseriessffamilyraggedleftcolor{chaptercolour}}
New contributor
add a comment |
I solved it on my own..
Wrote the following in my preamble
% REDEFINE CHAPTERS AND SECTIONS
usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{23,85,142}
definecolor{chaptercolour}{RGB}{23,85,142}
definecolor{subsectioncolour}{RGB}{23,85,142}
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style
renewcommand{chapnamefont}{normalfontlargescshaperaggedleftcolor{chaptercolour}}
renewcommand{chapnumfont}{Hugebfseriescolor{chaptercolour}}
renewcommand{chaptitlefont}{normalfontHugebfseriessffamilyraggedleftcolor{chaptercolour}}
New contributor
I solved it on my own..
Wrote the following in my preamble
% REDEFINE CHAPTERS AND SECTIONS
usepackage{xcolor}
% define colors
definecolor{sectioncolour}{RGB}{23,85,142}
definecolor{chaptercolour}{RGB}{23,85,142}
definecolor{subsectioncolour}{RGB}{23,85,142}
setsecheadstyle{Largebfseriescolor{sectioncolour}}% Set section style
setsubsecheadstyle{largebfseriescolor{subsectioncolour}}% Set subsection style
renewcommand{chapnamefont}{normalfontlargescshaperaggedleftcolor{chaptercolour}}
renewcommand{chapnumfont}{Hugebfseriescolor{chaptercolour}}
renewcommand{chaptitlefont}{normalfontHugebfseriessffamilyraggedleftcolor{chaptercolour}}
New contributor
New contributor
answered 2 days ago
LeaGLeaG
163
163
New contributor
New contributor
add a comment |
add a comment |
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%2f476735%2fchange-chapter-and-section-color-memoir-class%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