From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 CNWfDy9IEmeEGAAAqHPOHw:P1 (envelope-from ) for ; Fri, 18 Oct 2024 11:36:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CNWfDy9IEmeEGAAAqHPOHw (envelope-from ) for ; Fri, 18 Oct 2024 13:36:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MmND6Ykm; 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=1729251375; a=rsa-sha256; cv=none; b=DkOXEZc5HpugjcbwGAHPEYNpvEjKNzKEb/oBQUma5vqoNOZdpSs+Nvynfk0hhKjxnKFucA GeE6RpTGW02RC5x/AGjnCmnTFTssQl5yPqdtQ9dHuOH2WdvqjpcnQzbP9+oRjBw/TWmkJX bb3idNWIFIV4Ya1pxSsz/XUctdPWA4sdqPc6Vx1WJTdQFo2QxmX4Y0OyuMOaypoDhpqmCV i18gv0TssJKh8oq4Bhan8FpMh9aHXeF+xGCXbIFL8+rI+ggXiPbDCfoluzNSIW4XsAKWKC CRaU0DLFcLsrUK3+7zkmZVtDVKGgnj+FZ3xk8XrWE7DnObQQlKDptEc13arCQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MmND6Ykm; 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=1729251375; 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=OBJ4B8wCyZGWhB4lCjCYdo/aXhGmswHGDD2CPKN1/Ns=; b=IqWNa0wBz5AczIYjdQJL10ZEDKDrR5+a0WTIjFjYfVpN8k4zU9X5Uh373zUUrQRcZrTQ73 bz5YRG5943jIC0X9Keodweklwl6+VUUqQyl6UQAyHuVYjaN4NceJgsk5IlwFN687mGaKav aWf1R5PpYWVZvH3Vn+skjjHFfABmg+F/w++zYb91tkujz5Dbwk9C4uU7IhUHhYO0apUmPT M9f9vy+bY59R3CPXPeGD1MTQiWnhmyGXWi91UDf+aQiacnkLD7GKo059q9UbM7tVnDP2UB 9yLnEMK9yFe7l4Vdvn7KUocLhTXA7r/LKoTebj0D6oHphdQg7JU/wOirVJQiBg== 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 CDA9D86D2C for ; Fri, 18 Oct 2024 13:36:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1lGH-0003l3-2d; Fri, 18 Oct 2024 07:35:17 -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 1t1lGE-0003kh-Sk for emacs-orgmode@gnu.org; Fri, 18 Oct 2024 07:35:14 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1lGC-000816-QU for emacs-orgmode@gnu.org; Fri, 18 Oct 2024 07:35:14 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-71e6d988ecfso1556502b3a.0 for ; Fri, 18 Oct 2024 04:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729251310; x=1729856110; darn=gnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=OBJ4B8wCyZGWhB4lCjCYdo/aXhGmswHGDD2CPKN1/Ns=; b=MmND6Ykmg6IFhhFavFqdVJ7WGs/LTYv0gKDEH3bWCzH0Ff2JkvS7cgyaRqB9YewhL7 ftKq9qpNIqQFlHMay+6uqvyeSSPajpli5+zbiyUm+SutKd6OMzXp/UCmX/LC9LHCcEl6 76lZBWvo7I7ys1z68rTo4QrDAsi1bsgOUFOcnj2FOunQoYXJ3e7xwuroefK1+eowRshy mBCtBrdvmZn/ad8UtzGq9FfE9shr8hqB8t9hTIH5roqnf9EUYxMI+FJGRCzjrm/xt7Hj AVtvwjMj8yna6ATVj9TsOwfWP/exOMnZ2rqgV40lTkSWxlUvUQ4/Kdf6L0t93fUfprjp TiNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729251310; x=1729856110; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OBJ4B8wCyZGWhB4lCjCYdo/aXhGmswHGDD2CPKN1/Ns=; b=hXV3nzRXRviXzsloIKAGHwsl1MTpp7z4wvndmcp951kxeyntQNS3Tph3IvCxHeg9aV Sv+yGjzprEADPU0g17e8b5qUp5oUHjNDB7ei7pXWZ+73B8QRoaN+apwyjgDMuOeUjbex e1h2/dYK/B1ibuYWVWHfIOvMoE9Ixuot5xiK5lDC5UpFHb7fddeTtNAM2M5Zw0gRLUKR ygFDxHDm8Kjp31ndpuwIphEK9DHjow0FYhk7wAsE9pK4lyZItuyci7I7mVjwIPQoIjeQ eyjUbHAOa3+KyA3Lw/dUI2Pm286BzwklxCquCUsmYwvDvPtqcpJnP69R+l+FKRNb3g8d Fj5Q== X-Gm-Message-State: AOJu0Yz30at2ysNQEyay02m6LW3gyefdtq7i0fs+HsYl4Q6uGmTJ0Ofz jdYzXQM/JQ1rRU1rHM4gweD51F5qSqQ6s+vXTfE4Jmr9+753tayMoG1GGF4C X-Google-Smtp-Source: AGHT+IHlJGIOPIkTl6QDUMQY5u6F4S6TvwTZzwM4kUHwX9rKh4MGkI2rynjqHtJ9Wg7+BAquArIWNA== X-Received: by 2002:a05:6a00:2d9b:b0:71e:5f2c:c019 with SMTP id d2e1a72fcca58-71ea31ae9b4mr2643856b3a.9.1729251310032; Fri, 18 Oct 2024 04:35:10 -0700 (PDT) Received: from ?IPV6:2401:4900:1f3a:749:8514:eef3:cdd3:3a1a? ([2401:4900:1f3a:749:8514:eef3:cdd3:3a1a]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea3311ef3sm1278921b3a.15.2024.10.18.04.35.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Oct 2024 04:35:09 -0700 (PDT) Message-ID: <222fd521-c336-435d-ba81-3f70ef01ed45@gmail.com> Date: Fri, 18 Oct 2024 17:05:05 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How can I export a table to HTML with header and footers From: Raghavendra Nyshadham To: emacs-orgmode@gnu.org References: <525546d6-dab9-43ed-b581-d79cd0901dca@volkerzell.de> <784ffc4c-1860-4b65-a620-b2b213b51e1d@gmail.com> Content-Language: en-US In-Reply-To: <784ffc4c-1860-4b65-a620-b2b213b51e1d@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=raghnysh@gmail.com; helo=mail-pf1-x42e.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.34 X-Spam-Score: -4.34 X-Migadu-Queue-Id: CDA9D86D2C X-Migadu-Scanner: mx10.migadu.com X-TUID: 3fNSKpp8A8T8 On 2024-10-18 08:35 +05:30, Raghavendra Nyshadham wrote: > AFAIK, exporting tables with specific id attributes is not straightforward, > but you can abuse the class attribute by putting the id in it. I think I was wrong about that:it looks like you can inject a specific id into a table element with attr_html; I must've misunderstood something I'd read. So the following should work too, and does not abuse the class attribute. 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: :id example :class 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: :id another-example :class 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 |