emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [html-export question] location with JS.
Date: Wed, 17 Dec 2014 12:38:46 +0100	[thread overview]
Message-ID: <87tx0uv73t.fsf@gmx.us> (raw)
In-Reply-To: 871tny1sdd.fsf@rudin.co.uk

Paul Rudin <paul@rudin.co.uk> 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

      reply	other threads:[~2014-12-17 11:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-16 17:37 [html-export question] location with JS Rasmus
2014-12-17  9:27 ` Christian Moe
2014-12-17 11:19   ` Rasmus
2014-12-17 13:11     ` Christian Moe
2014-12-17 15:01       ` Rasmus
2014-12-17 10:29 ` Paul Rudin
2014-12-17 11:38   ` Rasmus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tx0uv73t.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).