{"id":597,"date":"2012-09-30T14:31:48","date_gmt":"2012-09-30T09:01:48","guid":{"rendered":"http:\/\/www.cvr.cc\/?p=597"},"modified":"2012-09-30T14:31:48","modified_gmt":"2012-09-30T09:01:48","slug":"tex4ht-supports-lettrine","status":"publish","type":"post","link":"https:\/\/cvr.cc\/?p=597","title":{"rendered":"TeX4ht Supports Lettrine"},"content":{"rendered":"<p><a href=\"http:\/\/www.raphink.info\">Rapha&euml;l Pinson<\/a> has kindly contributed the code that enables T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht to support <code>lettrine<\/code> package. (<code>lettrine.sty<\/code> helps to typeset dropped capitals in a 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 document.) This probably will solve the long standing problem of drop capital support in T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht, even if all the options of <code>lettrine<\/code> package are not supported at this time. Hope, Rapha&euml;l will continue support to enhance T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht by adding all the missing options of <code>lettrine<\/code>.<\/p>\n<p><!--more--><\/p>\n<p>Only <code>ante<\/code> option is supported now apart from basic command <code>lettrine<\/code> with two arguments, the first being the character for dropped capital and second, rest of characters in that string or chosen to form what is usually called <code>lettrine line<\/code>.<\/p>\n<p>Seven T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht hooks have been provided to configure <code>lettrine<\/code> as given hereunder:<\/p>\n<ol>\n<li>Before <code>lettrine<\/code><\/li>\n<li>After <code>lettrine<\/code><\/li>\n<li>Before lettrine initial character<\/li>\n<li>Between lettrine initial character and lettrine line<\/li>\n<li>After lettrine line<\/li>\n<li>Before lettrine ante<\/li>\n<li>After lettrine ante<\/li>\n<\/ol>\n<p>Further hooks, namely, <code>HlettrineChar<\/code> and <code>HlettrineString<\/code> have been defined to access initial character and lettrine line respectively, in case, we want to further re-configure <code>lettrine<\/code>. The default configuration is provided below:<\/p>\n<pre>\nConfigure{lettrine}\n   {\\HCode{&lt;span class=\"lettrine lettrine-HlettrineChar\"&gt;}}\n   {\\HCode{&lt;\/span&gt;}}\n   {\\HCode{&lt;span class=\"lettrine-letter\"&gt;}}\n   {\\HCode{&lt;\/span&gt;&lt;span class=\"lettrine-line\"&gt;}}\n   {\\HCode{&lt;\/span&gt;}}\n   {\\HCode{&lt;span class=\"lettrine-ante\"&gt;}}\n   {\\HCode{&lt;\/span&gt;}}\n<\/pre>\n<p>Users shall write their own custom <code>\\Css<\/code> declarations to format the dropcapital and lettrine line to suit their taste. The default <code>\\Css<\/code> declarations are:<\/p>\n<pre>\n\\Css{.lettrine{float: left;\n    line-height: 0.7; margin-left: -0.1em;\n    margin-bottom: -.5em; margin-right: 0.2em;}}\n\\Css{.lettrine-ante{vertical-align: top;}}\n\\Css{.lettrine-letter{font-family: InitialsFont; font-style: normal;\n    font-size: 4em; color: gray;}}\n\\Css{.lettrine-A{margin-right: 0.3em;}}\n\\Css{.lettrine-A + .lettrine-line{margin-left: -0.4em;}}\n\\Css{.lettrine-{margin-right: 0.3em;}}\n\\Css{.lettrine- + .lettrine-line{margin-left: -0.4em;}}\n\\Css{.lettrine-J{line-height: 1; margin-right: 0;}}\n\\Css{.lettrine-H, .lettrine-I, .lettrine-N, .lettrine-U{margin-right: 0;}}\n\\Css{.lettrine-V{margin-right: -0.3em;}}\n\\Css{.lettrine-V + .lettrine-line{margin-left: 0.3em;}}\n\\Css{.lettrine-Q{padding-bottom: 1em;margin-top: -0.6em;}}\n\\Css{.lettrine-line{font-variant: small-caps;}}\n<\/pre>\n<p>A typical <code>html<\/code> page generated with the help of this newly created <a href=\"http:\/\/download.river-valley.com\/tex4ht\/lettrine\/lettrine.4ht\"><code>lettrine.4ht<\/code><\/a> can be seen <a href=\"http:\/\/download.river-valley.com\/tex4ht\/lettrine\/ltrn-test.html\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rapha&euml;l Pinson has kindly contributed the code that enables TeX4ht to support lettrine package. (lettrine.sty helps to typeset dropped capitals in a LaTeX document.) This probably will solve the long standing problem of drop capital support in TeX4ht, even if all the options of lettrine package are not supported at this time. Hope, Rapha&euml;l will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,15,16],"tags":[],"class_list":["post-597","post","type-post","status-publish","format-standard","hentry","category-lettrine","category-tex","category-tex4ht"],"_links":{"self":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/597","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=597"}],"version-history":[{"count":0,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/597\/revisions"}],"wp:attachment":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}