From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: single file export in HTML (as easy as PDF) (well, almost) Date: Sun, 23 Oct 2016 13:23:39 -0500 Message-ID: References: <580CF2C5.2020103@free.fr> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byNQy-0004s5-8k for emacs-orgmode@gnu.org; Sun, 23 Oct 2016 14:23:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byNQt-000229-Af for emacs-orgmode@gnu.org; Sun, 23 Oct 2016 14:23:48 -0400 Received: from mail-ua0-x22a.google.com ([2607:f8b0:400c:c08::22a]:33786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byNQt-00020r-5U for emacs-orgmode@gnu.org; Sun, 23 Oct 2016 14:23:43 -0400 Received: by mail-ua0-x22a.google.com with SMTP id 6so2150747uat.0 for ; Sun, 23 Oct 2016 11:23:41 -0700 (PDT) In-Reply-To: <580CF2C5.2020103@free.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Thierry Banel Cc: "emacs-orgmode@gnu.org" In my experience pdf2htmlEX successfully converts any PDF to a single HTML f= ile.=20 -k.=20 Please excuse brevity. Sent from pocket computer with tiny non-haptic feedba= ck keyboard.=20 > On Oct 23, 2016, at 12:26, Thierry Banel wrote: >=20 > A single, nicely packaged, PDF file, easy to distribute:this is one of > the appealing features of PDF export. >=20 > But actually, this can be achieved in HTML, out-of-the-box with Org Mode > and Firefox. >=20 > My recipe: >=20 > - Write your book in Org Mode, with any content you want: > + tables, headers, bullet lists, whatever > + PNG or SVG images (file:myimage.svg) > + Ditaa (#+begin_src ditaa :file myditaa.png) > + Gnuplot (#+begin_src gnuplot :file mygnuplot.svg) > + GraphViz (#+begin_src dot :file mygraphviz.png) > + MathJax (#+html_mathjax: align: left) ($$\sqrt{x+1}$$) >=20 > - Add HTML formatting (optional) > + CSS to customize fonts, colors, sizes, layout > (#+html:) > + InfoJS to expand-collapse in the browser as in Org Mode > (#+infojs_opt: view:info toc:nil ...) >=20 > - Export & package to a single file > + C-c C-e h h > + zip the whole directory to mybook.zip > (along with SVG, PNG images, CSS style-sheets, JS) >=20 > - Distribute your book > + send mybook.zip to your friends and colleagues > + ask them to point their Firefox to > jar:file://mybook.zip!/mybook/mybook.html >=20 > The magic Firefox feature is the jar-bang trick which allows browsing > within a ZIP. >=20 > If someone knows a less cryptic syntax, it would be great.Also, this > trick only works in Firefox. Is there something similar in other browsers?= >=20 > Have fun > TB >=20 >=20