{"id":543,"date":"2012-05-26T15:03:35","date_gmt":"2012-05-26T09:33:35","guid":{"rendered":"http:\/\/www.cvr.cc\/?p=543"},"modified":"2012-05-26T15:03:35","modified_gmt":"2012-05-26T09:33:35","slug":"tex4ht-and-biblatex","status":"publish","type":"post","link":"https:\/\/cvr.cc\/?p=543","title":{"rendered":"TeX4ht and biblatex"},"content":{"rendered":"<p>The very powerful L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X bibliography processing package namely, <code>biblatex.sty<\/code> often clashes with T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht. I do not have much knowledge about the innards of <code>biblatex<\/code>. However, I could fix problems found in <code>biblatex.4ht<\/code> consequent to two previous revisions. Now one more revision had taken place, as we can expect, T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht fails to work with current version of <code>biblatex<\/code> (v. 1.7). Therefore, one more revision of <code>biblatex.4ht<\/code> becomes necessary which has been done now. Since <code>biblatex<\/code> is widely used by L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X users and many <code>biblatex<\/code> users also deploy T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht for generating <small>HTML<\/small> versions of their documents, it has now become an absolute necessity to maintain <code>biblatex.4ht<\/code> in such a way that each revision of the package also triggers a newer releases of <code>biblatex.4ht<\/code>. Developers of <code>biblatex<\/code> have notified that we are going to get a major revision (v. 2.0), so we have to work hard to catch up with new releases.<\/p>\n<p><!--more--><\/p>\n<p><code>biblatex<\/code> package provides many options which are very useful to authors, at the same time, it raises problems of compatibility with T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht. Therefore, in order to verify compatibility with all options, I have taken all the example files provided with <code>biblatex<\/code> bundle and tried to generate <small>HTML<\/small> versions of the documents. The names of all files tested are given below. A brief description of the file as provided in those files are also given for the benefit of the readers of this post. Download links to archives of each file containing, original L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X source of the example file; <small>PDF<\/small> and <small>HTML<\/small> outputs; all auxiliary files generated by <small>PDF<\/small>L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X, T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht, <code>biber<\/code>, <code>makeindex<\/code> (wherever applicable), new version of <code>biblatex.4ht<\/code> and bib database are provided. A link to an archive that has all the example files and related stuff is also provided, in case, someone wants everything in one go.<\/p>\n<p>A small modification has been added to all the source files. Since, <code>biber<\/code> is the best backend for <code>biblatex<\/code>, I have introduced the option <code>backend=biber<\/code> to the package loading line in all the example files.<\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">01-introduction<\/h4>\n<p>This file briefly presents the main citation commands. It also illustrates the typical structure of a document based on biblatex.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/01-introduction.zip\">01-introduction.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">10-references-per-section<\/h4>\n<p>This file demonstrates a setup typically used in a collection of articles by different authors, such as a conference proceedings volume for example. Each article is presented as a separate chapter with its own bibliography. The citation labels are local to the &lsquo;refsection&rsquo; environments.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/10-references-per-section.zip\">10-references-per-section.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">11-references-by-section<\/h4>\n<p>This file is similar to the &lsquo;per section&rsquo; example except that all references are printed at the end of the document. The citation labels are still local to the &lsquo;refsection&rsquo; environments.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/11-references-by-section.zip\">11-references-by-section.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">12-references-by-segment<\/h4>\n<p>This file differs from the &lsquo;by section&rsquo; example in that the citation labels are assigned globally. They are not local to the &lsquo;refsegment&rsquo; environments.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/12-references-by-segment.zip\">12-references-by-segment.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">13-references-by-keyword<\/h4>\n<p>It is common requirement to subdivide a bibliography by certain criteria. This example demonstrates how to use keyword filters to subdivide the list of references into primary and secondary sources. The keyword filter depends on the &lsquo;keywords&rsquo; fields in the bib file.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/13-references-by-keyword.zip\">13-references-by-keyword.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">14-references-by-category<\/h4>\n<p>This example will yield the same output as the &lsquo;keywords&rsquo; example but the approach is different. Instead of adding the filter criteria to the bib file, we assign keys to categories in the document preamble and use &lsquo;category&rsquo; filters to create a subdivided bibliography.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/14-references-by-category.zip\">14-references-by-category.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">15-references-by-type<\/h4>\n<p>This example demonstrates how to subdivide a bibliography by type, using &lsquo;type&rsquo; filters.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/15-references-by-type.zip\">15-references-by-type.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">19-alphabetic-prefixed<\/h4>\n<p>Prefixes also work with alphabetic the styles.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/19-alphabetic-prefixed.zip\">19-alphabetic-prefixed.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">20-indexing-basic<\/h4>\n<p>This file demonstrates indexing with the &lsquo;makeidx&rsquo; package. This file is processed as given after the download link.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/20-indexing-basic.zip\">20-indexing-basic.zip<\/a><\/p>\n<pre>\n  latex        file\n  bibtex\/biber file\n  latex        file\n  makeindex    file\n  latex        file\n<\/pre>\n<h4 style=\"color: #27d; font-size: 1.25em;\">21-indexing-advanced<\/h4>\n<p>This file demonstrates indexing with the &lsquo;index&rsquo; package. This file is processed as provided after the download link.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/21-indexing-advanced.zip\">21-indexing-advanced.zip<\/a><\/p>\n<pre>\n  latex        file\n  bibtex\/biber file\n  latex        file\n  makeindex -o file.ind file.idx = makeindex file\n  makeindex -o file.nnd file.ndx\n  makeindex -o file.tnd file.tdx\n  latex        file\n<\/pre>\n<h4 style=\"color: #27d; font-size: 1.25em;\">30-style-numeric<\/h4>\n<p>This file presents the &lsquo;numeric&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/30-style-numeric.zip\">30-style-numeric.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">31-style-numeric-comp<\/h4>\n<p>This file presents the &lsquo;numeric-comp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/31-style-numeric-comp.zip\">31-style-numeric-comp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">32-style-numeric-verb<\/h4>\n<p>This file presents the &lsquo;numeric-verb&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/32-style-numeric-verb.zip\">32-style-numeric-verb.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">40-style-alphabetic<\/h4>\n<p>This file presents the &lsquo;alphabetic&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/40-style-alphabetic.zip\">40-style-alphabetic.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">41-style-alphabetic-verb<\/h4>\n<p>This file presents the &lsquo;alphabetic-verb&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/41-style-alphabetic-verb.zip\">41-style-alphabetic-verb.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">50-style-authoryear<\/h4>\n<p>This file presents the &lsquo;authoryear&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/50-style-authoryear.zip\">50-style-authoryear.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">51-style-authoryear-ibid<\/h4>\n<p>This file presents the &lsquo;authoryear-ibid&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/51-style-authoryear-ibid.zip\">51-style-authoryear-ibid.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">52-style-authoryear-comp<\/h4>\n<p>This file presents the &lsquo;authoryear-comp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/52-style-authoryear-comp.zip\">52-style-authoryear-comp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">53-style-authoryear-icomp<\/h4>\n<p>This file presents the &lsquo;authoryear-icomp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/53-style-authoryear-icomp.zip\">53-style-authoryear-icomp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">61-style-authortitle-ibid<\/h4>\n<p>This file presents the &lsquo;authortitle-ibid&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/61-style-authortitle-ibid.zip\">61-style-authortitle-ibid.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">62-style-authortitle-comp<\/h4>\n<p>This file presents the &lsquo;authortitle-comp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/62-style-authortitle-comp.zip\">62-style-authortitle-comp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">63-style-authortitle-icomp<\/h4>\n<p>This file presents the &lsquo;authortitle-icomp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/63-style-authortitle-icomp.zip\">63-style-authortitle-icomp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">64-style-authortitle-terse<\/h4>\n<p>This file presents the &lsquo;authortitle-terse&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/64-style-authortitle-terse.zip\">64-style-authortitle-terse.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">65-style-authortitle-tcomp<\/h4>\n<p>This file presents the &lsquo;authortitle-tcomp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/65-style-authortitle-tcomp.zip\">65-style-authortitle-tcomp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">66-style-authortitle-ticomp<\/h4>\n<p>This file presents the &lsquo;authortitle-ticomp&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/66-style-authortitle-ticomp.zip\">66-style-authortitle-ticomp.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">71-style-verbose-ibid<\/h4>\n<p>This file presents the &lsquo;verbose-ibid&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/71-style-verbose-ibid.zip\">71-style-verbose-ibid.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">72-style-verbose-note<\/h4>\n<p>This file presents the &lsquo;verbose-note&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/72-style-verbose-note.zip\">72-style-verbose-note.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">73-style-verbose-inote<\/h4>\n<p>This file presents the &lsquo;verbose-inote&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/73-style-verbose-inote.zip\">73-style-verbose-inote.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">74-style-verbose-trad1<\/h4>\n<p>This file presents the &lsquo;verbose-trad1&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/74-style-verbose-trad1.zip\">74-style-verbose-trad1.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">75-style-verbose-trad2<\/h4>\n<p>This file presents the &lsquo;verbose-trad2&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/75-style-verbose-trad2.zip\">75-style-verbose-trad2.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">76-style-verbose-trad3<\/h4>\n<p>This file presents the &lsquo;verbose-trad3&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/76-style-verbose-trad3.zip\">76-style-verbose-trad3.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">82-style-debug<\/h4>\n<p>This file presents the &lsquo;debug&rsquo; style.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/82-style-debug.zip\">82-style-debug.zip<\/a><\/p>\n<h4 style=\"color: #27d; font-size: 1.25em;\">biblatex-1-7-examples<\/h4>\n<p>All the above files in a single archive.<\/p>\n<p>Download link: <a href=\"http:\/\/download.river-valley.com\/cvr\/biblatex\/1.7\/biblatex-1-7-examples.zip\">biblatex-1-7-examples.zip<\/a><\/p>\n<p>However not all files did pass through my tests. The following files need further debugging:<\/p>\n<ol>\n<li><!-- \n   .  --><code>02-annotations.tex<\/code><\/li>\n<li><!-- \n   .  --><code>16-numeric-prefixed-1.tex<\/code><\/li>\n<li><!-- \n   .  --><code>17-numeric-prefixed-2.tex<\/code><\/li>\n<li><!-- \n   .  --><code>18-numeric-hybrid.tex<\/code><\/li>\n<li><!-- \n   .  --><code>60-style-authortitle.tex<\/code><\/li>\n<li><!-- \n   .  --><code>70-style-verbose.tex<\/code><\/li>\n<li><!-- \n   .  --><code>80-style-reading.tex<\/code><\/li>\n<li><!-- \n   .  --><code>81-style-draft.tex<\/code><\/li>\n<\/ol>\n<h4 style=\"color: #27d; font-size: 1.25em;\">TODO<\/h4>\n<ol>\n<li><!-- \n   .  -->The above files will be tested, <code>biblatex.4ht<\/code> will be modified and will be updated soon.<\/li>\n<li><!-- \n   .  -->Auto-recognition of <code>biblatex<\/code> version and switching between different versions of <code>biblatex.4ht<\/code> without user intervention.<\/li>\n<li><!-- \n   .  -->Updating T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht literate sources.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The very powerful LaTeX bibliography processing package namely, biblatex.sty often clashes with TeX4ht. I do not have much knowledge about the innards of biblatex. However, I could fix problems found in biblatex.4ht consequent to two previous revisions. Now one more revision had taken place, as we can expect, TeX4ht fails to work with current version [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,16],"tags":[],"class_list":["post-543","post","type-post","status-publish","format-standard","hentry","category-biblatex","category-tex4ht"],"_links":{"self":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=543"}],"version-history":[{"count":0,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions"}],"wp:attachment":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}