From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Re: org-table: missing vertical boundary when exported Date: Sat, 9 Aug 2014 17:49:27 -0700 Message-ID: References: <425643e10ffe7568a26049ef408851dd@mail.rickster.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b87414e7c7c3605003bcf14 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGHKF-0000hM-8S for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 20:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGHKD-0008Bx-UG for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 20:49:31 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:45541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGHKD-0008Bt-Ij for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 20:49:29 -0400 Received: by mail-wg0-f52.google.com with SMTP id a1so6954092wgh.11 for ; Sat, 09 Aug 2014 17:49:27 -0700 (PDT) In-Reply-To: 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: Rick Frankel Cc: "emacs-orgmode@gnu.org" --047d7b87414e7c7c3605003bcf14 Content-Type: text/plain; charset=UTF-8 Hi, I learned a bit a about html/css and took another look the issue. It turns out that org-mode uses the border attribute which is not respected by my browser(Google Chrome version 36.0.1985.125 on Mac 10.9.4) . Org mode generated this line in the html for table but the border is not displayed, If we use css style to specify the border, the table border would show up:
Don't know why it is that. But is there any org keywords/properties I can specify so that Org would not use the border attribute but use the style attribute instead when exporting to html? Thanks. Shiyuan On Tue, Jun 10, 2014 at 10:34 PM, Shiyuan wrote: > Yes, it seems to be related to the browser or css style stuff. In fact, > for the attached html in Thorsten's previous email, the two boundaries > vertical lines are also missing in my Google Chrome or Firefox. Thanks. > > This is the example directed from copy-paste. > > | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) | > |---+----+-----+-----+-----+---------+------------| > | / | <> | < | | > | < | > | > | # | 1 | 1 | 1 | 1 | 1 | 1 | > | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 | > | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 | > |---+----+-----+-----+-----+---------+------------| > This is my minimal config, Emacs start with '-Q -l "~/myorg.el" which is > > (package-initialize) > (org-babel-do-load-languages > 'org-babel-load-languages > '((python . t) > (emacs-lisp . t) > (latex . t))) > > > > On Tue, Jun 10, 2014 at 6:23 AM, Rick Frankel wrote: > >> On 2014-06-07 17:15, Shiyuan wrote: >> >>> I am following the manual >>> example http://orgmode.org/worg/org-tutorials/tables.html [1]. But the >>> >>> two vertical boundary line on the very left and right >>> is not showing up when exported to html. Anything I am missing? Thanks. >>> >> >> My guess is that it is related to the css being used to style the table >> in your setup. >> >> Could you post a minimal example with the html output? >> >> rick >> > > --047d7b87414e7c7c3605003bcf14 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0
=C2=A0 =C2=A0 I learned a bit a about html/c= ss and took another look the issue. It turns out that org-mode uses the bor= der attribute which is not respected by my browser(Google Chrome version 36= .0.1985.125 on Mac 10.9.4) .=C2=A0

Org mode generated this line in the html for table but = the border is not displayed,=C2=A0
<table border=3D"2&quo= t; cellspacing=3D"0" cellpadding=3D"6" rules=3D"gr= oups" frame=3D"hsides">

If we use css style to specify the border, =C2=A0= the table border would show up:=C2=A0
<table style=3D"bor= der:2px" cellspacing=3D"0" cellpadding=3D"6" rules= =3D"groups" frame=3D"hsides">

Don't know why it is that. But is there any o= rg keywords/properties I can specify so that =C2=A0Org would not use the bo= rder =C2=A0attribute but use the style attribute instead when exporting to = html? Thanks.=C2=A0

Shiyuan =C2=A0



On Tue, Jun 10, 2014 at 10:= 34 PM, Shiyuan <gshy2014@gmail.com> wrote:
Yes, it seems to be re= lated to the browser or css style stuff. =C2=A0In fact, for the attached ht= ml in =C2=A0Thorsten's previous email, the two boundaries vertical line= s are also missing in my Google Chrome or Firefox. =C2=A0Thanks.=C2=A0

This is the example directed from copy-paste.=C2=A0

| =C2=A0 | =C2=A0N | N^2 | N^3 |= N^4 | sqrt(n) | sqrt[4](N) |
|---+----+-----+-----+-----+-------= --+------------|
| / | <> | =C2=A0 < | =C2=A0 =C2=A0 | =C2=A0 > | =C2=A0 =C2=A0 = =C2=A0 < | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> |
| # | =C2= =A01 | =C2=A0 1 | =C2=A0 1 | =C2=A0 1 | =C2=A0 =C2=A0 =C2=A0 1 | =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A01 |
| # | =C2=A02 | =C2=A0 4 | =C2=A0 8 |= =C2=A016 | =C2=A01.4142 | =C2=A0 =C2=A0 1.1892 |
| # | =C2=A03 |= =C2=A0 9 | =C2=A027 | =C2=A081 | =C2=A01.7321 | =C2=A0 =C2=A0 1.3161 |
|---+----+-----+-----+-----+---------+------------|
<= div>This is my minimal config, Emacs start with '-Q =C2=A0-l "~/my= org.el" which is=C2=A0

(package-initiali= ze)
(org-babel-do-load-languages
=C2=A0'org-babel-load-languages<= /div>
=C2=A0'((python . t)
=C2=A0 =C2=A0(emacs-lisp . t)<= /div>
=C2=A0 =C2=A0(latex . t)))


--047d7b87414e7c7c3605003bcf14--