Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using part colors for section/subsection headings? #63

Closed
friendly opened this issue Oct 20, 2015 · 14 comments
Closed

Using part colors for section/subsection headings? #63

friendly opened this issue Oct 20, 2015 · 14 comments
Assignees

Comments

@friendly
Copy link
Owner

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
Copy link
Collaborator

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
Copy link
Owner Author

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
Copy link
Collaborator

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

@friendly
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Collaborator

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
#63 (comment).

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
Copy link
Owner Author

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
Copy link
Collaborator

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
#63 (comment).

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
Copy link
Collaborator

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
Copy link
Owner Author

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
Copy link
Collaborator

The last version is better than acceptable.

@davidjohannesmeyer
Copy link
Collaborator

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
#63 (comment).

@friendly
Copy link
Owner Author

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

@friendly
Copy link
Owner Author

friendly commented Nov 9, 2015

Done & closed

@friendly friendly closed this as completed Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants