* export org tables to html, configure the borders
@ 2020-03-23 17:58 Uwe Brauer
2020-03-26 3:07 ` Kyle Meyer
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2020-03-23 17:58 UTC (permalink / raw)
To: emacs-orgmode
Hi
I have the following table
#+begin_src
| Product | online clases with pdf | share screen | whiteboard | stability of the connection |
|-------------+-------------------------+-------------------+---------------------------+-------------------------------------|
| collaborate | yes | not with the iPad | yes but | disconnects every 30 min |
| | | | big letter distortion | |
| | | | de delete function | |
| | | | does not work properly: | |
| | | | all the text gets deleted | |
|-------------+-------------------------+-------------------+---------------------------+-------------------------------------|
| Google meet | yes | yes with the iPad | there is none | disconnects every 5 min once |
| | | | | share screen is activated |
|-------------+-------------------------+-------------------+---------------------------+-------------------------------------|
| zoom | yes | yes with the iPad | decent whiteboard | very well, however the free version |
| | | | | only allows 40 min sessions |
|-------------+-------------------------+-------------------+---------------------------+-------------------------------------|
#+end_src
Now I would like to export it to html precisely with these vertical
and horizontal borders.
The standard setting of
org-html-table-default-attributes
is
(:border "2" :cellspacing "0" :cellpadding "6" :rules "groups" :frame "hsides")
Which does not insert the borders.
However the setting
(:border "2" :cellspacing "0" :cellpadding "6" :frame "border" :rules "all")
Inserts borders but to many of them, each line gets a horizontal
border, which I don't want.
1. What is the correct setting
2. How can I have such a setting locally just for one table?
Thanks and regards
Uwe Brauer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export org tables to html, configure the borders
2020-03-23 17:58 export org tables to html, configure the borders Uwe Brauer
@ 2020-03-26 3:07 ` Kyle Meyer
2020-03-26 6:54 ` Uwe Brauer
0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-03-26 3:07 UTC (permalink / raw)
To: Uwe Brauer, emacs-orgmode
Uwe Brauer <oub@mat.ucm.es> writes:
> The standard setting of
> org-html-table-default-attributes
>
> is
> (:border "2" :cellspacing "0" :cellpadding "6" :rules "groups" :frame "hsides")
>
> Which does not insert the borders.
>
> However the setting
> (:border "2" :cellspacing "0" :cellpadding "6" :frame "border" :rules "all")
>
> Inserts borders but to many of them, each line gets a horizontal
> border, which I don't want.
>
> 1. What is the correct setting
I don't know, though AFAICS by trying out the possible values [^0], I
think something more involved than using the :rules attribute would be
needed.
^0: https://www.w3schools.com/tags/att_table_rules.asp
> 2. How can I have such a setting locally just for one table?
You can place something like this before the table:
#+ATTR_HTML: :rules all
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export org tables to html, configure the borders
2020-03-26 3:07 ` Kyle Meyer
@ 2020-03-26 6:54 ` Uwe Brauer
0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2020-03-26 6:54 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2907 bytes --]
>>> "KM" == Kyle Meyer <kyle@kyleam.com> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> The standard setting of
>> org-html-table-default-attributes
>>
>> is
>> (:border "2" :cellspacing "0" :cellpadding "6" :rules "groups" :frame "hsides")
>>
>> Which does not insert the borders.
>>
>> However the setting
>> (:border "2" :cellspacing "0" :cellpadding "6" :frame "border" :rules "all")
>>
>> Inserts borders but to many of them, each line gets a horizontal
>> border, which I don't want.
>>
>> 1. What is the correct setting
> I don't know, though AFAICS by trying out the possible values [^0], I
> think something more involved than using the :rules attribute would be
> needed.
> ^0: https://www.w3schools.com/tags/att_table_rules.asp
Meanwhile I tried out this
#+ATTR_HTML: :border 2 :rules groups :frame box
| Product | online clases with pdf | | share screen | | whiteboard | stability of the connection |
|-------------+--------------------------+---+-------------------+---+---------------------------+-------------------------------------|
| collaborate | yes | | not with the iPad | | yes but | disconnects every 30 min |
| | | | | | big letter distortion | |
| | | | | | de delete function | |
| | | | | | does not work properly: | |
| | | | | | all the text gets deleted | |
|-------------+--------------------------+---+-------------------+---+---------------------------+-------------------------------------|
| Google meet | yes | | yes with the iPad | | there is none | disconnects every 5 min once |
| | | | | | | share screen is activated |
|-------------+--------------------------+---+-------------------+---+---------------------------+-------------------------------------|
| zoom | yes | | yes with the iPad | | decent whiteboard | very well, however the free version |
| | | | | | | only allows 40 min sessions |
That puts a box around the table and insert horizontal line where ever
I have inserted one via |-------------+
It does not insert vertical lines between the columns so I wounder
Uwe
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-26 6:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-23 17:58 export org tables to html, configure the borders Uwe Brauer
2020-03-26 3:07 ` Kyle Meyer
2020-03-26 6:54 ` Uwe Brauer
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).