My presentation from the workshop covers extensive examples of OpenStax’s Sociology textbook in many different formats and locations and then looks at the ways that we use css and transforms to create print and web versions of the books that can be used coherently together.
Paged Media approaches (Part 1 of 2)
Designing a book or a print-ready PDF requires that you think by pages. This is the major difference between formatting for the web and for PDF/Print. In a browser, we are able to implement a fixed height block with overflowing/scrollable content or automatic height block based on content. But for print/PDF, we need to be able to create pages of HTML content i.e. we need to be able to fractionate the content.
Book production with CSS Paged Media at Fire and Lion
Multiformat thinking is hard. The whole point of our digital-first approach is to store content only once, and produce multiple formats automatically. This puts tremendous pressure on project managers, developers, authors, editors, designers and proofreaders to think in multiple formats at once.
Towards an Open Future for Automated Typsetting—Highlights from Paged Media Event, January 9th 2018
Agenda for January meeting of Paged Media initiative
Meeting to be held at MIT Press (Cambridge, MA) on 9 January 2018
Paged Media Open Source initiative
Good morning Julie – and thanks for this very useful overview of current options. I shall be reading it again (several times!) to try and understand them,since this is a new area to me.
Glad to hear that Mauro! So, we have some hooks that let you pass some js in a few different entry points. But it really depends on what you want to achieve. A proper documentations for the hooks and some examples are coming (including maths, side notes, etc.). Meantime, you can jump in the https://mattermost.pagedmedia.org to talk with us about your specific needs.
hey Yihui This use case is a real good one. Since the page counter is implemented using custom properties. We'd be happy to learn more about that use case and how we could update pagedjs to handle this (i got a couple of ideas using hooks), would you come to discuss in here? https://mattermost.pagedmedia.org
Thanks, I finally got around to giving paged.js a try. Looks promising! Is there a way to trigger a re-render? Say, I call `paged.preview(DOMContent...`, then change the DOMContent. If I simply call paged.preview again, I get: `Cannot read property 'querySelector' of undefined` in `chunker/page.js` in `var area = page.querySelector(".pagedjs_page_content");` Thanks!
Hi, I wonder if it is possible to reset the page counter after a certain element? I tried `counter-reset: page;` but it didn't seem to work. My use case is to use roman numerals for the frontmatter of the book (`content: counter(page, lower-roman);`), but change to decimal when the first chapter starts.
Hey Yihui! Thanks for the kind words. :D And for having spotted that one! I fixed the article on that front. Thanks again!
Is `titleRun` in the post a typo? Should it be `runningTitle` instead? I'm very excited about paged.js! Thanks for the awesome work!
Hi ! If you use pagedjs, this specification is implemented, you don't need to increment the `counter(page)` or the `counter(pages)` to use it. You just need to add them to a margin box. You will find an example in this code: https://gitlab.pagedmedia.org/JulieBlanc/refs-specifications/blob/master/counter-pages/counter-pages.html Thank you for your feedback! Julie
Hi Julie Blanc, How are you.I want to count dynamic generated pages from HTMl to PDF using css or JS whatever.Is there any solution for this i have tried in many ways but unable to get the result as same.Like this.counter-increment: page ;content: "page " counter(page) " of " counter(pages);