{"collection":"philosophy-ethics","full_text_available":true,"graph_url":"https://unchartedknowledge.5gfusion.net/v2/api/page/gutenberg_78255/graph","html_url":"https://unchartedknowledge.5gfusion.net/v2/page/gutenberg_78255","id":"gutenberg_78255","license":"Public Domain (US)","rights_basis":"gutenberg_metadata_copyright_false","source":"gutenberg","source_url":"https://www.gutenberg.org/ebooks/78255","summary":null,"tags":["Logic, Symbolic and mathematical","Mathematics","Mathematics -- Philosophy"],"text":"*** x-header ***\nMathJax HTML source file instructions\n==================================\nThis project is a math heavy eBook. The source is a preliminary HTML file that\nuses MathJax to define mathematical expressions, which is processed to generate\na final HTML file with SVG images.\n\nThis source file is kept for the purpose of applying errata fixes. Although the\nMathJax takes some learning, it is clearer than the generated final. This also\nallows the SVG images to be regenerated with changes.\n\n\nTools\n=====\nSee the ppmath GitHub repository:\n    https://github.com/DistributedProofreaders/ppmath.\nFollow the instructions to install m2svg.\n\nCommand line:\n    m2svg -i input.htm -o output.htm\n\n- The SVG files will be placed in a subdirectory of the working directory\n  called \"images\".\n\n- In the converted file, the maths expressions, delimited by the tags `\\[`\n  and `\\]` for *display* expressions or `\\(` and `\\)` for *inline*\n  expressions, are replaced by `<img>` links.\n\n- The \"data-tex\" attribute will contain the original maths expression.\n\n\nInline code example\n===================\nFor the expression \\(\\mathrm{AB}^{2} = \\mathrm{AG} \\times \\mathrm{BD}\\), the\ninput `\\(\\mathrm{AB}^{2} = \\mathrm{AG} \\times \\mathrm{BD}\\)`\n\nbecomes\n    `<span class=\"nowrap\"><img style=\"vertical-align: -0.186ex; width: 16.872ex;\n    height: 2.253ex;\" src=\"images/4.svg\" alt=\"\" data-tex=\"\\mathrm{AB}^{2}\n    = \\mathrm{AG} \\times \\mathrm{BD}\">,</span>`\n\nThe file images/4.svg displays the desired expression.\n\n\nSource files structure\n======================\n(eBook 75107 is used as an example)\n\n- 75107/\n  - README-math.txt  (this file)\n  - 75107-h/\n    - 75107-h.htm  (final HTML file)\n    - images/\n  - 75107-src/\n    - 75107-src.htm  (source HTML file with MathJax)\n\n\nSVG fixup for ebookmaker\n========================\nNow, the SVG files contain a \"data-variant\" attribute that causes errors.\nIt needs to be removed by downloading and running this utility:\nhttps://github.com/user-attachments/files/25548572/remove_data_variant_attribute.py\n\nCommand line:\n    python remove_data_variant_attribute.py images\n    \nHopefully, this step will be removed in the future.\n\n\nSubmission process\n==================\n- Generated final HTML and images should be submitted as normal.\n- In addition, the source HTML will be included, and needs to be renamed\n  to #####-src.htm by the whitewasher or the Workflow app.\n- This readme will need to be added by the whitewasher or the Workflow app.\n  - Having it with the eBook makes it obvious, and avoids issues with\n    procedures changing in the future.\n\n\nErrata process\n==============\n(eBook 75107 is used as an example)\n\n1. Download the project files using Errata Workbench, and unzip.\n2. Install m2svg if not already done.\n3. Make desired changes to 75107-src.htm.\n4. Execute command line `m2svg -i 75107-src.htm -o 75107-h.htm`\n   - The image files will be placed in a subdirectory of the working directory\n     called images.\n5. Move 75107-h.htm to the 75107-h directory.\n6. Move the contents of the images directory to the 75107-h/images directory.\n   - Rename the existing 75107-h/images directory to images-old.\n   - Move the new images directory to 75107-h.\n   - Check images-old, move any non-generated images (JPG, PNG, etc.). to\n     images.\n   - Remove images-old and any other temporary files.\n7. Zip the project directory and upload to Errata Workbench.\n*** x-header ***","title":"Principia mathematica, vol. 2 (of 3)","tradition":"philosophy-ethics","translated_text":null,"word_count":470}
