Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions styles/books/calculus/book.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,12 @@ $bandColor: #093D4C;
@include use('AnswerKeyOneColumnEobSolution', 'corn:::AnswerKeySolutionShape');
@include use('Index', 'corn:::IndexShape');


// Change the page number from 314 to 100π
@page :nth(314):left { @top-left-corner { content: "100π" "     "; } }
@page :nth(314):right { @top-right-corner { content: "     " "100π"; } }

// Do the same for tau.
// See https://www.scientificamerican.com/article/let-s-use-tau-it-s-easier-than-pi/
@page :nth(628):left { @top-left-corner { content: "100τ" "     "; } }
@page :nth(628):right { @top-right-corner { content: "     " "100τ"; } }
2 changes: 1 addition & 1 deletion styles/designs/corn/pdf/_folio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ div[data-type="page"].preface {

[data-type="chapter"] {
page: chapter;
prince-page-group: start;
// prince-page-group: start;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reason why this exists is so that styles applied with :first or :nth(1) can target the first page of a chapter. here is where this is used.

I'm going to try finding an alternative... :nth does seem like the best (maybe only) way of finding this page & applying these styles. I think we're using an old Prince syntax. Maybe updating will help, standby

}

div[data-type="page"].appendix {
Expand Down