From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0BA8FdvQEWew3AAAe85BDQ:P1 (envelope-from ) for ; Fri, 18 Oct 2024 03:07:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0BA8FdvQEWew3AAAe85BDQ (envelope-from ) for ; Fri, 18 Oct 2024 05:07:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="b/G2zab8"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729220827; a=rsa-sha256; cv=none; b=AOxfYc5PA2eh9655mrxxyTebaVTi4DgWnwLGZxxcyhJ5YJaCEl85pMtJt+RxXR57R27h3B +1fQbKaA56RJbN5qhBcDXNzwSIS35+LNdsziDi/Giutr1O1Wui2Jy98xYoRdti1Nc+50Ro CNgElIR7DLnDMQu75omvvxVN2m3CItLKZEfUqE6zZYQU5HvNpi33MKyi5S3cXi1FN7RCaG T2QPleh+Orl4kRnBr6rfiN9hD4zyNSyxLIqBxt86GfNI+2y5tM00TQdnpugM+t4iPA0fwX QO9uG/uLjexMq8MJzv4ANFLmad4160XngignZ1pIme3QgYrOaizaVVS3FCtPQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="b/G2zab8"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729220827; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BvpjYMh7+GJJX/a/WVudFI17LCwYTqb5jfIhQtI39hE=; b=ZDBus31l/L25U3BBPaVfvm+VkL6jUHASD0xpU6/3mE8Rl4tge/LevgtetS3Hk9y6BkzcdP 0HDaDfd9Ne6YbzH0eM135jIVGoDvcfZeaPeYlN4fPGsP2nlRVvygzZKQJxAGkTSapvjoE/ au1lhaJLuZYWHCJ1Ofi2lhRQmvmfmOPbx6dfTKplncsA4EXTJ2la7gl3DkXAS4TdNlSvSM KEibf9IgD3+eujK1tliopvGKwSSfh3Ke/hETXEjiNjyci42mTabNuMjwRCtzOsaqc+p3Z6 3yq/9RO8M5ULyiVi3lLZ7EZ5JY9A8BUvAnxu2f/aLEJZYzdNah7F7vqzxvFWCQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE4651AD23 for ; Fri, 18 Oct 2024 05:07:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1dJZ-0000KF-Em; Thu, 17 Oct 2024 23:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1dJY-0000Jz-07 for emacs-orgmode@gnu.org; Thu, 17 Oct 2024 23:06:08 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1dJV-00016d-1m for emacs-orgmode@gnu.org; Thu, 17 Oct 2024 23:06:07 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-71e8c0bd2c3so1089364b3a.2 for ; Thu, 17 Oct 2024 20:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729220761; x=1729825561; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=BvpjYMh7+GJJX/a/WVudFI17LCwYTqb5jfIhQtI39hE=; b=b/G2zab81lBMouxbgA0vuumhIQQB/pJ72rd364KAq7x2vQAPolII9NA5S/eOZIT9bR rvCwMMFuCPA91gGVXrQ3gOv+7qrbfvapJJJRtHFCeW+9/K3a74BqdlltT81e4RNhGiVA Ww4NSZJ1SJu/kK0IfFS9ixZ3PIFmPURCeZQkAAmNLcSNcJ6zeezstyshsYthpSNm3AvY TkyoHvBKLAbV66C4+pUPS5XbQcOYDl2de2WW5TzPDjKGFCo+DPeTUEzm8YalrBl88bKt I86U8EifovATVA+ZE7KZ9a0j6c2oZfEs7V6tZNI75YuBvP1BK/KbXbQLTg2OlMqD1R4U Bb6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729220761; x=1729825561; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BvpjYMh7+GJJX/a/WVudFI17LCwYTqb5jfIhQtI39hE=; b=tPsuhOtLVuDBc0Km/sRwF0nd+9mywfoF1HpurO2OCbgJSVapyMrJC9hJ6sl4+KD1jM cMm1H4T7hzzrjyzAyDl/R49jJ6DI3mvY2iSCHehFPMZrCkC0O9NZmjHKjD/UKAzr0Pby Fb9o1e2T42K0WvKF5UcWmezc1traVZJM6wTaCTO5el6TZZe9965l1cnZlju9VHtOPout +qu0NQytBE52H6ZDVnBcPL3Hud06SQKZDmSIEr3g88e+kAZ/JGj5v2Oh9/X3AAExcfaP Oauq9Z7LL0ZVH9ClJJMLe6yaeiowCIwW9dup1HPfsIXrbd0QvV2fKopmT4ukjYgXCX3U UB3w== X-Gm-Message-State: AOJu0YztMXMxSw+bGl2t2xMYwbAYPVOal4dmg0VgA+K3e6lpAMTFQeV6 r560UEteLFMtVEOWwNTneKivh9sfd4hN4+CPkwphrEyOUqE5eRiVbI+xUQ== X-Google-Smtp-Source: AGHT+IE9fdHdejBOZJJqEs5+S1W9RRRG+eS+ZqI+CeORj76QM8706/Z+aj9g1zv+bn/ZYJPR8eh2gA== X-Received: by 2002:a05:6a00:cd4:b0:71e:cf8:d6f1 with SMTP id d2e1a72fcca58-71ea316bf4emr1551396b3a.14.1729220761063; Thu, 17 Oct 2024 20:06:01 -0700 (PDT) Received: from ?IPV6:2401:4900:1f3a:749:13be:1821:29f5:897f? ([2401:4900:1f3a:749:13be:1821:29f5:897f]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea34b22e1sm400089b3a.207.2024.10.17.20.05.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Oct 2024 20:05:59 -0700 (PDT) Message-ID: <784ffc4c-1860-4b65-a620-b2b213b51e1d@gmail.com> Date: Fri, 18 Oct 2024 08:35:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How can I export a table to HTML with header and footers To: emacs-orgmode@gnu.org References: <525546d6-dab9-43ed-b581-d79cd0901dca@volkerzell.de> Content-Language: en-US From: Raghavendra Nyshadham In-Reply-To: <525546d6-dab9-43ed-b581-d79cd0901dca@volkerzell.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=raghnysh@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.20 X-Spam-Score: -4.20 X-Migadu-Queue-Id: DE4651AD23 X-Migadu-Scanner: mx10.migadu.com X-TUID: MxuFjYgVp9YU On 2024-10-18 00:44 +05:30, Dr. Volker Zell wrote: > Result should be like the following to be used with the datatable framwork > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
NamePositionOffice
Tiger NixonSystem ArchitectEdinburgh
Ashton CoxTechnical AuthorSan Francisco
NamePositionOffice
AFAIK, exporting tables with specific id attributes is not straightforward, but you can abuse the class attribute by putting the id in it. For example, if you export a file with the following text (C-c C-e h h), the output may be like what you want. Cheers, Raghavendra. #+title: Org Tables to DataTables #+html_doctype: html5 #+html_head: #+html_head: #+html_head: #+html_head: #+html_head: This is an example table. #+attr_html: :class example cell-border hover compact :width 100% | Name | Position | Office | |-------------+------------------+---------------| | Tiger Nixon | System Architect | Edinburgh | | Ashton Cox | Technical Author | San Francisco | ------------------------------------------------------------ This is another example table. #+attr_html: :class another-example display | Author | Title | Shelf | |-------------------+-------------------------+-------| | Capote, Truman | In cold blood | D3B | | Chandler, Raymond | The high window | D3B | | Dai, Mamang | The legends of Pensam | D3B | | Desai, Kiran | The inheritance of loss | D3B | | Farrell, J. G. | The hill station | C1B |