{"id":230,"date":"2014-03-05T13:42:14","date_gmt":"2014-03-05T11:42:14","guid":{"rendered":"http:\/\/mednis.info\/wp\/?p=230"},"modified":"2014-03-05T13:42:14","modified_gmt":"2014-03-05T11:42:14","slug":"working-with-asciidoc-on-fedora","status":"publish","type":"post","link":"http:\/\/mednis.info\/wp\/?p=230","title":{"rendered":"Working with asciidoc on Fedora"},"content":{"rendered":"<p><strong>Install Asciidoc and DocBook<\/strong><br \/>\n<code>yum install asciidoc<br \/>\nyum install docbook-dtds<br \/>\nyum install publican<br \/>\nyum install dblatex<br \/>\nyum install libxml2-devel<br \/>\nyum install libxslt docbook5-style-xsl docbook-utils<br \/>\n<\/code><\/p>\n<p>To generate PDF files LaTeX is required. See here <a title=\"How to install LaTeX and XeLaTeX in Fedora 19\" href=\"http:\/\/mednis.info\/wp\/?p=63\" target=\"_blank\">how to install LaTeX and XeLaTeX on Fedora<\/a>.<\/p>\n<p><strong>Generate html file from asciidoc file<\/strong><br \/>\n<code>asciidoc myfile.txt<\/code><br \/>\n<strong>Use &#8216;-n&#8217; to have numbered sections<\/strong><br \/>\n<code>asciidoc -n myfile.txt<\/code><\/p>\n<p><strong>Generate PDF file<\/strong><br \/>\nAlthough it is possible to directly create PDF files using a2x utility, I prefer to convert my file to docbook format and then to PDF.<br \/>\n<code>asciidoc -n --doctype=article --backend=docbook45 myfile.txt<\/code><br \/>\nor<br \/>\n<code>asciidoc --doctype=book --backend=docbook45 myfile.txt<\/code><br \/>\nThen<br \/>\n<code>dblatex gramata.xml<\/code><br \/>\nor<br \/>\n<code>dblatex --backend=xetex gramata.xml<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Asciidoc and DocBook yum install asciidoc yum install docbook-dtds yum install publican yum install dblatex yum install libxml2-devel yum install libxslt docbook5-style-xsl docbook-utils To generate PDF files LaTeX is required. See here how to install LaTeX and XeLaTeX on Fedora. Generate html file from asciidoc file asciidoc myfile.txt Use &#8216;-n&#8217; to have numbered sections &hellip; <a href=\"http:\/\/mednis.info\/wp\/?p=230\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Working with asciidoc on Fedora<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,10,15,9],"tags":[],"_links":{"self":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/230"}],"collection":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230"}],"version-history":[{"count":2,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":233,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/230\/revisions\/233"}],"wp:attachment":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}