{"id":866,"date":"2020-07-29T08:00:22","date_gmt":"2020-07-29T12:00:22","guid":{"rendered":"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/?p=866"},"modified":"2020-07-28T16:29:17","modified_gmt":"2020-07-28T20:29:17","slug":"making-accessible-html-from-latex-sources-some-initial-impressions","status":"publish","type":"post","link":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/blog\/2020\/07\/29\/making-accessible-html-from-latex-sources-some-initial-impressions\/","title":{"rendered":"Making accessible HTML from LaTeX sources &#8211; some initial impressions"},"content":{"rendered":"<p>Some of you know that I&#8217;ve been making notes from my graduate course in <a href=\"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/eeb348\/\">Population Genetics<\/a> available online for nearly 20 years (<a href=\"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/eeb348\/notes\/\">http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/eeb348\/notes\/<\/a>). What a smaller number of you know is that I use <a href=\"https:\/\/www.latex-project.org\/\">LaTeX<\/a> to write my notes and pdfLaTeX to produce PDFs from the LaTeX source. So far as I can tell (using <a href=\"https:\/\/www.ssa.gov\/accessibility\/andi\/help\/howtouse.html\">ANDI<\/a>), the PDFs produced in this way provide some elements that aid accessibility, but I am exploring options to produce HTML from the same source that might produce documents that are accessible to more readers. For my first experiment, I used the LaTeX file from 2019 that produced notes on resemblance among relatives. Here are links to three versions of the notes:<\/p>\n<ul>\n<li>The PDF from 2019: <a href=\"http:\/\/darwin.eeb.uconn.edu\/eeb348-notes\/quant-resemblance.pdf\">http:\/\/darwin.eeb.uconn.edu\/eeb348-notes\/quant-resemblance.pdf <\/a><\/li>\n<li>HTML produced via Pandoc with MathJAX embedded: <a href=\"http:\/\/darwin.eeb.uconn.edu\/pages\/quant-resemblance-pandoc.html\">http:\/\/darwin.eeb.uconn.edu\/pages\/quant-resemblance-pandoc.html<\/a><\/li>\n<li>HTML produced via LaTeXML: <a href=\"http:\/\/darwin.eeb.uconn.edu\/pages\/quant-resemblance-latexml.html\">http:\/\/darwin.eeb.uconn.edu\/pages\/quant-resemblance-latexml.html<\/a><\/li>\n<\/ul>\n<p>Both approaches to producing HTML are straightforward.<\/p>\n<p>For Pandoc:<\/p>\n<pre>pandoc --standalone --mathjax -o quant-resemblance-pandoc.html quant-resemblance.tex\r\n<\/pre>\n<p>For LaTeXML:<\/p>\n<pre>latexml --includestyles --dest=quant-resemblance.xml quant-resemblance.tex\r\nlatexmlpost --dest=quant-resemblance-latexml.html quant-resemblance.xml\r\n<\/pre>\n<p>With the default options, I like the look of the LaTeXML version better, but it also includes CSS customizations and the Pandoc version doesn&#8217;t. It&#8217;s probably possible to include customized CSS with Pandoc, but I haven&#8217;t had a chance to investigate that yet. I also haven&#8217;t had a chance to consult anyone who knows how to judge accessibility of documents. When I&#8217;ve had a chance to do that. I&#8217;ll return with a report. (Don&#8217;t hold your breath. I am a dean, so I don&#8217;t have a lot of time on my hands.)<\/p>\n<p>Here&#8217;s my to-do list, so that I don&#8217;t forget:<\/p>\n<ul>\n<li>Check CSS styling for Pandoc.<\/li>\n<li>Show the results to an accessibility expert at UConn and get some feedback on the different approaches.<\/li>\n<li>See what happens with figures when they&#8217;re included in a LaTeX document.<\/li>\n<\/ul>\n<p>If you have additional questions, let me know, and I&#8217;ll add them to the list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some of you know that I&#8217;ve been making notes from my graduate course in Population Genetics available online for nearly 20 years (http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/eeb348\/notes\/). What a smaller number of you know&#8230; <a class=\"read-more-button\" href=\"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/blog\/2020\/07\/29\/making-accessible-html-from-latex-sources-some-initial-impressions\/\">Read more &gt;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7],"tags":[],"class_list":["post-866","post","type-post","status-publish","format-standard","hentry","category-academics","category-population-genetics"],"_links":{"self":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts\/866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/comments?post=866"}],"version-history":[{"count":2,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts\/866\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/categories?post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/tags?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}