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
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
[-- 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 --]