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

'Print PDF' output using AH Formatter #604

Open
wants to merge 96 commits into
base: master
Choose a base branch
from

Conversation

tgraham-antenna
Copy link
Contributor

This adds a '1a' option to run-windows.bat to demonstrate generating "Print PDF" using AH Formatter V7.2 (https://www.antennahouse.com/formatter-v7). It has been tested with the 'sample' document. I didn't have a sample PDF to compare against (#594).

Many of the style changes are grouped into samples/styles/print-pdf.scss just for ease of comprehension.

run-windows.bat runs the Saxon XSLT 3.0 processor Node module to merge the XHTML files into one file (#588). gulpfile.js has extra pipe() stages when running MathJax to get XHTML output because I couldn't find a MathJax option to make it generate XHTML itself. MathJax is configured to generate MathML that is rendered using AH Formatter's custom MathML 3.0 engine.

samples-print.pdf

@netlify
Copy link

netlify bot commented Sep 27, 2021

Deploy Preview for electric-book failed.

Name Link
🔨 Latest commit 5af8cc0
🔍 Latest deploy log https://app.netlify.com/sites/electric-book/deploys/6290e11014cbef0009880820

@arthurattwell
Copy link
Member

Thanks, @tgraham-antenna, this is amazing! I'm going to need some time to go through everything here, and will get to it as soon as I can.

tgraham-antenna and others added 12 commits September 28, 2021 12:41
'-ah-flush-zone' nudges the last line of justified text to fill the
line if unadjusted end of the line is within the 'flush zone'.

'-ah-adjust-last-line-spacing' adjusts the spacing of the last line of
justified text so there's less visual difference between a possible
widely-space second last line and an unjustified last line with normal
spacing between words.
…monetization

Add monetization meta tag to head.html
@tgraham-antenna
Copy link
Contributor Author

Current version formatted with AH Formatter V7.2 MR3.
samples-print-2022-02-03.pdf

arthurattwell and others added 20 commits February 11, 2022 16:37
This allows us to use site.export.format as a flag
in markdown and includes for testing whether we are
outputting HTML for Word export. For example, if we
need to modify the question include to show which
MCQ answers are correct in Word outputs for authors.
…act-title-page-logo

Don't hard-code publisher-logo image on title page
…ll_svg-check

Check for book folder before all_svg
…n-page-nav-links

Fix: hide menu when clicking in in-page nav link
'-ah-flush-zone' nudges the last line of justified text to fill the
line if unadjusted end of the line is within the 'flush zone'.

'-ah-adjust-last-line-spacing' adjusts the spacing of the last line of
justified text so there's less visual difference between a possible
widely-space second last line and an unjustified last line with normal
spacing between words.
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

Successfully merging this pull request may close these issues.

4 participants