emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: AW <alexander.willand@t-online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: DTD prohibited
Date: Thu, 05 Jun 2014 09:54:24 -0400	[thread overview]
Message-ID: <5b13ebc59ec60d1a0e75ff4ce07a8912@mail.rickster.com> (raw)
In-Reply-To: <4076991.QH5rK4IgDH@linux-j9m3.site>

On 2014-06-04 12:52, AW wrote:
> Am Mittwoch, 4. Juni 2014, 17:04:14 schrieb Eric Abrahamsen:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> > On Tuesday,  3 Jun 2014 at 22:14, AW wrote:
> >
> > [...]
> >
> >> Hi,
> >>
> >> thank you, I started again digging into this strange thing and the
> >> culprit
> >> seems the first line of the html-file:
> >>
> >> <?xml version="1.0" encoding="utf-8"?>
> >>
> Seems like simply exporting as html5 might solve the problem.
> 
> Yes, it does, thank you. But the price is that tabulars lose the frames 
> and
> lines. I did not invest whether due to export without those elements or
> because Word had issues with html5.

It's because the html5 export has no default style for tables --
before opening in word, try opening the html in a browser, you will
see that xhtml-strict export adds style info to the table element, but 
xhtml5 doesn't.

If you want the same style in html5 as html4, try the following
preamble in your org file:

#+HTML_DOCTYPE: xhtml5
#+HTML_HEAD: <style type="text/css">
#+HTML_HEAD: table {
#+HTML_HEAD: border-top: thin solid gray;
#+HTML_HEAD: border-bottom: thin solid gray;
#+HTML_HEAD: }
#+HTML_HEAD: thead {border-bottom: thin solid grey;}
#+HTML_HEAD: td, th {padding: 6px;}
#+HTML_HEAD:</style>

FYI, here's the table definition output in html4:

<table border="2" cellspacing="0" cellpadding="6" rules="groups"
frame="hsides">

and html5

<table>

rick

      reply	other threads:[~2014-06-05 14:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02 10:40 DTD prohibited AW
2014-06-02 11:33 ` Bastien
2014-06-03  0:34   ` James Harkins
2014-06-03 20:14     ` AW
2014-06-04  7:39       ` Eric S Fraga
2014-06-04  9:04         ` Eric Abrahamsen
2014-06-04 16:52           ` AW
2014-06-05 13:54             ` Rick Frankel [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=5b13ebc59ec60d1a0e75ff4ce07a8912@mail.rickster.com \
    --to=rick@rickster.com \
    --cc=alexander.willand@t-online.de \
    --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).