{"id":305,"date":"2012-10-21T15:14:15","date_gmt":"2012-10-21T15:14:15","guid":{"rendered":"http:\/\/ahay.org\/blog\/?p=305"},"modified":"2015-09-02T16:41:37","modified_gmt":"2015-09-02T16:41:37","slug":"how-do-i-convert-a-reproducible-paper-from-latex-to-html","status":"publish","type":"post","link":"https:\/\/ahay.org\/blog\/2012\/10\/21\/how-do-i-convert-a-reproducible-paper-from-latex-to-html\/","title":{"rendered":"How do I convert a reproducible paper from LaTeX to HTML?"},"content":{"rendered":"<p>Follow the following steps:<\/p>\n<ol>\n<li>Install <a href=\"\/wiki\/SEGTeX\">SEGTeX<\/a>.<\/li>\n<li>Install <a href=\"http:\/\/www.latex2html.org\/~latex2ht\/current\/\">LaTeX2HTML<\/a>.<\/li>\n<li>Set <tt>LATEX2HTML<\/tt> environmental variable to $TEXMF\/latex2html where <tt>$TEXMF<\/tt> is the place of your SEGTeX installation.<\/li>\n<li>In the reproducible paper directory, run\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >sftour scons lock<\/pre><\/div>\n<p> to install reproducible figures. Then run <\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >scons html<\/pre><\/div>\n<p> or <\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >scons papername.html<\/pre><\/div>\n<p>(if the file name is <tt>papername.tex<\/tt> rather than <tt>paper.tex<\/tt>) to convert the paper to HTML.<\/li>\n<li>In the reproducible paper directory, run\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >scons install<\/pre><\/div>\n<p> or <\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >scons papername.install<\/pre><\/div>\n<p> (if the file name is <tt>papername.tex<\/tt> rather than <tt>paper.tex<\/tt>) to install the HTML paper under <tt>$RSFROOT\/share\/madagascar\/book<\/tt><\/li>\n<li>On the <a href=\"\/wiki\/Reproducible_Documents\">book level<\/a>, you can convert a full report or book to HTML by running\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre >scons www<\/pre><\/div>\n<\/li>\n<\/ol>\n<p>See <a href=\"\/blog\/2007\/04\/08\/assembling-reports-from-papers\/\">more instructions<\/a> on assembling reports from papers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow the following steps: Install SEGTeX. Install LaTeX2HTML. Set LATEX2HTML environmental variable to $TEXMF\/latex2html where $TEXMF is the place of your SEGTeX installation. In the reproducible paper directory, run sftour scons lock to install reproducible figures. Then run scons html or scons papername.html (if the file name is papername.tex rather than paper.tex) to convert the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","activitypub_content_warning":"","activitypub_content_visibility":"local","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-faq"],"_links":{"self":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":3,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":19709,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/305\/revisions\/19709"}],"wp:attachment":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}