From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [html-export question] location with JS. Date: Wed, 17 Dec 2014 12:38:46 +0100 Message-ID: <87tx0uv73t.fsf@gmx.us> References: <87wq5rwl5n.fsf@gmx.us> <871tny1sdd.fsf@rudin.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Cwp-0007ft-8C for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 06:39:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1Cwj-0004pu-SG for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 06:39:19 -0500 Received: from plane.gmane.org ([80.91.229.3]:33793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Cwj-0004po-Kj for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 06:39:13 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y1Cwa-0006gx-AZ for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 12:39:04 +0100 Received: from 109.201.152.14 ([109.201.152.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Dec 2014 12:39:04 +0100 Received: from rasmus by 109.201.152.14 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Dec 2014 12:39:04 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Paul Rudin writes: > Hoping for pixel perfect rendering for html is fraught with difficulty - > it's not really designed for that sort of thing. I'm only asking for two things (divs/spans) to be (almost) on the same line (if you rerun the new example I sent to Christian you might see it can go quite bad or see this¹ screen-shot)... I tried to put the script in window.onresize but somehow it's not always working... > If that's what you want then you may be better off producing a pdf. I prefer both. Html is very comfortable on the screen and it's remarkably capable for printing these days as well via CSS. E.g. I found this, @media print {div[class^="outline-"], div[class*=" outline-"] {page-break-inside: avoid;}} Which makes page-breaks on print sensible. I'm still having issues with small-caps, and a \vfill replacement for print. And the above. Other than that I'm quite pleased with html. —Rasmus Footnotes: ¹ Here's what it looks like zooming in and out: http://i.imgur.com/RLHI47C.png -- Bang bang