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

"Note" heading turns into h5 if it's underneath an existing h4 #146

Closed
shiffman opened this issue Oct 2, 2012 · 2 comments
Closed

"Note" heading turns into h5 if it's underneath an existing h4 #146

shiffman opened this issue Oct 2, 2012 · 2 comments

Comments

@shiffman
Copy link
Collaborator

shiffman commented Oct 2, 2012

=== 1.3 Vector Addition

some text

==== Vector subtraction

some text

[NOTE]
.Basic Number Properties with Vectors
=====================================================================
heading above is wrong
=====================================================================

The above yields the wrong style b/c "Basic Number Properties with Vectors" ends up as an h5 instead of h4. Should we fix with CSS or is this a bug and we need to enforce h4 for NOTE headings?

@Manindra29
Copy link

I made the following change. It restores correct Note heading (h4) in the Vector chapter. Please review.

--- a/raw/noc_pdf/stylesheets/print.css
+++ b/raw/noc_pdf/stylesheets/print.css

@@ -395,7 +395,7 @@ ____________________________________________________________

    .note h2, .tip, .example h2,
    .note h3, .tip h3, .example h3,
--- .note h4, .tip h4, .example h4 {
+++ .note h4, .tip h4, .example h4, .note h5 {
    font-size: 12pt;

@shiffman
Copy link
Collaborator Author

Closing, see NOC issue: nature-of-code/noc-book#20

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

2 participants