0
votes
1answer
12 views

Problem with color in \part heading

Below is my code, where the myBox definition interferes with the color of the heading I define for my part style. Any ideas why the horizontal line in the \part heading becomes blue? I want it to be ...
2
votes
1answer
33 views

KOMA-Script: How to colour just the section numbers

I have added a splash of colour to my thesis and found it looked quite nice. The theme is: Chapter and Section headings are a dark blue, and the numbering is a brighter blue. I managed to do this for ...
5
votes
1answer
45 views

Color only subsection header but NOT its toc entry

I'm having hard times trying to color some lines of my document. I want to color just the title of a subsection, but I don't want that the corresponding title in TOC is colored too. What I have now ...
6
votes
1answer
115 views

Set the font color of a section title formatted with leftmargin

I am trying to set the font color of a section title that is formatted with leftmargin. When I don't use the leftmargin format, the font color changes correctly, but once I add the leftmargin format ...
3
votes
2answers
116 views

Variable color for section titles

The following def takes first three letters as an argument: \newcounter{colorCounter} \def\@sectioncolor#1#2#3{% {% \color{% \ifcase\value{colorCounter}% blue\or% red\or% ...
6
votes
1answer
86 views

Color package interferes with sections

I would like to use the color package to define custom color for listings background but when I include it it creates nasty side effect on my numbered section headers (only section, not lower levels). ...
5
votes
4answers
626 views

Color background of chapter headings

I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule. Currently they look like ...
3
votes
1answer
338 views

Changing font colour in fncychap

I am using the Lenny chapter style from fncychap and I would like to change the colour of the chapter number. I found "How do you change the font when using fncychap?" and followed the recommendations ...
7
votes
2answers
274 views

title of a colored box

In an another post, beamer style text box, I've seen a box that I'm interested in making it. However, I would like to use it in a book, and I would like before the title to write: Definition (or ...
3
votes
1answer
120 views

titleformat has no effect!

I have tried to specify the color for my section as shown here, but it has no effect. What am I doing wrong? MWE: \documentclass[10pt,letterpaper]{article} \usepackage{lipsum} \usepackage{multirow} ...
5
votes
3answers
517 views

Use of shaded box for section numbering only?

I have been wondering "how to get shaded box for section numbers only"? Also, How to get grey square in between left mark and page number in the header? In code below I can get solid black square. I ...
4
votes
4answers
227 views

coloring every chapter name in the document

My question is directly related to post-processing using authoring packages like etoolbox for instance. I've included the package as follow : \usepackage{etoolbox} what i try to do is to prepend ...
7
votes
1answer
562 views

How to best set chapter title color in the memoir class's Hansen style?

I am tinkering with the Hansen chapter style for the memoir class, as reviewed and listed in texblog. The Hansen style is unfortunately not discussed in the memoir class documentation. I changed it ...
2
votes
1answer
217 views

Paragraph and subparagraph titles inherit color settings from TeX group *after* them

I'm getting some strange behaviour when using the color package at paragraph and subparagraph level. See the code snippet below: \usepackage[usenames,dvips]{color} \section{A} {\color{Green} ...
1
vote
0answers
137 views

TOC and section headings colored [closed]

I am writing on a larger probject and I want to have colored headings (the part title and the chapter title, but not the section and subsection and so on). In the toc, I also want the part and the ...
2
votes
1answer
233 views

Titlesec and xcolor not playing nicely?

I am trying to use the titlesec and xcolor packages together (well, actually, the tufte-book class is, but that's another story.) Here is a minimal LaTeX file that illustrates my problem: ...
6
votes
2answers
368 views

Is it possible to change text color for all headings?

I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed. Is there a way to do ...
4
votes
1answer
338 views

Offset color block behind section titles

Joseph Wright's CV source contains a snippet of code that produces an offset color block behind section titles using the titlesec package, like so: \documentclass[11pt]{article} ...
2
votes
1answer
266 views

\subsubsection command and xcolor package

I am using xcolor package to draw some colored tables. But I am having trouble with the \subsubsection command. When I block comment the colored tables and xcolor package, it works. When I do not ...
3
votes
1answer
2k views

How can I set a color for the title rule?

I'm writing a document which uses titlesec, and I'd like to set the title rule to a different color. How can I do that? This is what I currently have, which produces section titles with black ...
15
votes
2answers
1k views

Coloring chapters and sections with respect to parts

I am using the book document class and I want to produce a document with several parts, chapters, sections, sections and subsections. I would like to make it easier for the reader by coloring ...
8
votes
1answer
1k views

Strange behaviour of titlesec, with colored titlerule

With the following MWE, i get the Section title underlined in black : \documentclass[12pt]{article} \usepackage[explicit]{titlesec} \usepackage[dvipsnames]{xcolor} \titleformat{\section}% ...
7
votes
4answers
3k views

Giving headlines a background color spanning across the entire typearea

I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background ...
7
votes
1answer
651 views

How to prevent a page break between section title and colored rule?

I use \usepackage[explicit]{titlesec} to customize the design of my sections, subsections... In particular, i have : \titleformat{\section}% {\large\sffamily\bfseries}% {My Section \arabic{section} ...
1
vote
1answer
396 views

Colored sectioning - headings

I am working on some project in pdflatex. I am not an expert in this so I really need your help :). Well what I am trying to do: I (or somebody) will make some common .tex file (with some text) with ...
1
vote
2answers
1k views

How to frame headings in \texwidth-long colored bounding box?

I am trying to add a background frame around my sections and subsections. The frame should be colored (in an 80% gray) and span the \textwidth. I have tried a few (uninformed) approaches and ...
8
votes
2answers
5k views

Section and subsection colors using titlesec

Im trying to alter the colors on my section, subsection and subsubsection. I do so using the titlesec page: \titleformat*{\section}{\Large\bfseries\sffamily\color{red}} ...
2
votes
1answer
1k views

Colored chapter titles with the quotchap package

I already changed the chapter numbers using \definecolor{chaptergrey}{} But there must be some way to change the chapter titles also. Someone knows how?
2
votes
1answer
1k views

Change font colour of bringhurst chapterstyle in memoir

I would like to change the colour of chapter titles in bringhurst chapterstyle. The following should work, but apparantly I have misunderstood something and am not able to get it to work, and would ...
9
votes
2answers
2k views

How can I change the colour of my document's section numbering?

I know how to change the colour of a section name using for example \section{\color{Red} Foobar} but that still leaves the section number in black. Is there any way to change the colour of the ...