friendly / VCDR

Visualizing categorical data with R
0 stars 0 forks source link

Using part colors for section/subsection headings? #63

Closed friendly closed 8 years ago

friendly commented 8 years ago

I was thinking that the visual look of the book might be improved by using the same color for section and subsection headers as used for the mindmap and chapter titles. What do people think?

It would only involve using something like

\usepackage{sectsty}
\allsectionsfont{\sffamily\color{partcol0}}

rather than

 \usepackage{sfheaders}

The colors come from

\colorlet{col1}{teal}        %% Part I color
\colorlet{col2}{olive}       %% Part II
\colorlet{col3}{orange}      %% Part III
sciencegraph commented 8 years ago

That means that the page number would remain black? If so, I agree that it would improve a search based on the main mindmap.

friendly commented 8 years ago

What I tried (\usepackage{sectsty} ...) doesn't work in chapter.Rnw.

I get lots of warnings, and the section titles appear just as normal text, not colored and not in \sffamily.
Can you look at this? The changes I made, at line 12 are

%\usepackage{sfheaders}        %% Chap/Sec headers in Helvetica; not standard-- maybe switch to sectsty???
\usepackage{sectsty}
\allsectionsfont{\sffamily\color{partcol0}}
sciencegraph commented 8 years ago

I've got the same problem. Let me test some solutions and I'll be back.

friendly commented 8 years ago

I ran a separate test, attached. The problem is the following: ch-sec-color.tex.txt

! Package sectsty Error: The sectsty package doesn't work with
(sectsty)                this document class.

So, need some other solution

friendly commented 8 years ago

I got this to work finally, using the titlesec package, now used in chapter.Rnw. Before I go any further, please take a look at chapter11.pdf and let me know if you think this is any improvement.

If not, I can easily revert it.

davidjohannesmeyer commented 8 years ago

I personally find the new headings pleasant. The Example headings maybe now stand out a bit compared to the light color of the sections headings, IMO. But judgements on colors are quite subjective, of course ...

BTW, maybe we should ask some color-blind person if anything can't be read? That would be embarrassing since we claim in Ch1 that colors should be employed with care.

David

On 2015-10-22 18:45, Michael Friendly wrote:

I got this to work finally, using the |titlesec| package, now used in |chapter.Rnw|. Before I go any further, please take a look at chapter11.pdf and let me know if you think this is any improvement.

If not, I can easily revert it.

— Reply to this email directly or view it on GitHub https://github.com/friendly/VCDR/issues/63#issuecomment-150285092.

FH-Prof. Priv.-Doz. Mag. Dr. David Meyer Institut für Wirtschaftsinformatik

Fachhochschule Technikum Wien Höchstädtplatz 5, 1200 Wien T: +43 1 333 40 77-394 F: +43 1 333 40 77-99 394 E: david.meyer@technikum-wien.at I: www.technikum-wien.at

friendly commented 8 years ago

Check out the new chapter11_color*.pdf testing files (prepared by Pere) in the latest commit.

I'm convinced that color in the page headers is an improvement; Pere thinks that's enough; I haven't decided whether I like color in the \section titles or not. You can vote!

A remaining question is whether this use of foreground color is dark enough or whether more black should be added to the tint. Pere will look into this.

davidjohannesmeyer commented 8 years ago

Yes, the colors are too light for the headers. They work much better with the larger, bold section headings, IMO. For some reason, I prefer the black headers---maybe, because the current, light ones attract too much (of my) attention.

David

On 2015-10-22 23:20, Michael Friendly wrote:

Check out the new |chapter11_color*.pdf| testing files (prepared by Pere) in the latest commit.

I'm convinced that color in the page headers is an improvement; Pere thinks that's enough; I haven't decided whether I like color in the \section titles or not. You can vote!

A remaining question is whether this use of foreground color is dark enough or whether more black should be added to the tint. Pere will look into this.

— Reply to this email directly or view it on GitHub https://github.com/friendly/VCDR/issues/63#issuecomment-150359440.

FH-Prof. Priv.-Doz. Mag. Dr. David Meyer Institut für Wirtschaftsinformatik

Fachhochschule Technikum Wien Höchstädtplatz 5, 1200 Wien T: +43 1 333 40 77-394 F: +43 1 333 40 77-99 394 E: david.meyer@technikum-wien.at I: www.technikum-wien.at

sciencegraph commented 8 years ago

That is right. Putting color in the headers, since the font is small and its shape is italic, may produce unexpected results once printed.

friendly commented 8 years ago

John Kimmel approves of this use of color for both headers and section titles. I tried this in book.Rnw in the latest commit, darkening up the theme colors a bit, and also using \sffamily in the page headers. (page numbers still in roman)

Take a look, and let me know if this is acceptable.

sciencegraph commented 8 years ago

The last version is better than acceptable.

davidjohannesmeyer commented 8 years ago

The readability is much improved now, although the colors now look a little bit sallow now.

The header color of part III is the same than for part II (olive green instead of ocher)---by purpose?

Best David

On 2015-10-26 13:24, sciencegraph wrote:

The last version is better than acceptable.

— Reply to this email directly or view it on GitHub https://github.com/friendly/VCDR/issues/63#issuecomment-151116649.

friendly commented 8 years ago

The header color for part III in book.Rnw was wrong. Thanks for catching this. I'll correct.

friendly commented 8 years ago

Done & closed