emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: How can I export a table to HTML with header and footers
@ 2024-10-18 20:38 Dr. Volker Zell
  2024-10-19  2:40 ` Raghavendra Nyshadham
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. Volker Zell @ 2024-10-18 20:38 UTC (permalink / raw)
  To: raghnysh; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]

Hi

Thanks ... you made my day ... even if haven't asked for displaying 2
tables (or maybe even more) at the same time with all the Datatables
magic glue in ORG syntax this was exactly what I would have asked next
... Yeeeeah your solution (even with the id attribute) works perfectly.

But back to the main question ... is it somehow possible to generate the
<tfoot> footer elements (I just realized that my example was actually
wrong, I used <thead> for <tfoot>... it should look like the following

#+attr_html: :id example :class cell-border hover compact :width 100%
| Name        | Position         | Office        |
|-------------+------------------+---------------|
| Tiger Nixon | System Architect | Edinburgh     |
| Ashton Cox  | Technical Author | San Francisco |
|-------------+------------------+---------------|
| Name        | Position         | Office        |

     =====>

<table id="example" class="cell-border hover compact" width="100%">

<thead>
     <tr>
       <th>Name</th>
       <th>Position</th>
       <th>Office</th>
     </tr>
   </thead>

   <tbody>
     <tr>
       <td>Tiger Nixon</td>
       <td>System Architect</td>
       <td>Edinburgh</td>
     </tr>
     <tr>
       <td>Ashton Cox</td>
       <td>Technical Author</td>
       <td>San Francisco</td>
     </tr>
   </tbody>

   <tfoot>
     <tr>
       <th>Name</th>
       <th>Position</th>
       <th>Office</th>
     </tr>
   </tfoot>

</table>

Thx again ... Volker


[-- Attachment #2: Type: text/html, Size: 2225 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* How can I export a table to HTML with header and footers
@ 2024-10-17 19:14 Dr. Volker Zell
  2024-10-18  3:05 ` Raghavendra Nyshadham
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. Volker Zell @ 2024-10-17 19:14 UTC (permalink / raw)
  To: emacs-orgmode

... see subject


Result should be like the following to be used with the datatable framwork


<table id="example" class="cell-border hover compact" width="100%">

   <thead>
     <tr>
       <th>Name</th>
       <th>Position</th>
       <th>Office</th>
     </tr>
   </thead>

   <tbody>
     <tr>
       <td>Tiger Nixon</td>
       <td>System Architect</td>
       <td>Edinburgh</td>
     </tr>
     <tr>
       <td>Ashton Cox</td>
       <td>Technical Author</td>
       <td>San Francisco</td>
     </tr>
   </tbody>

   <thead>
     <tr>
       <th>Name</th>
       <th>Position</th>
       <th>Office</th>
     </tr>
   </thead>

</table>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-19  5:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18 20:38 How can I export a table to HTML with header and footers Dr. Volker Zell
2024-10-19  2:40 ` Raghavendra Nyshadham
  -- strict thread matches above, loose matches on Subject: below --
2024-10-17 19:14 Dr. Volker Zell
2024-10-18  3:05 ` Raghavendra Nyshadham
2024-10-18 11:35   ` Raghavendra Nyshadham

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).