From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp2 ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms0.migadu.com with LMTPS
	id fhc+JnzLeGHTUwAAgWs5BA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 27 Oct 2021 05:46:04 +0200
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2 with LMTPS
	id WORRIXzLeGGuCwAAB5/wlQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 27 Oct 2021 03:46:04 +0000
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 1BB6C82B1
	for <larch@yhetil.org>; Wed, 27 Oct 2021 05:46:02 +0200 (CEST)
Received: from localhost ([::1]:38176 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	id 1mfZt2-0003Am-CA
	for larch@yhetil.org; Tue, 26 Oct 2021 23:46:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39856)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vikasrawal@gmail.com>)
 id 1mfZs1-0003Aa-I6
 for emacs-orgmode@gnu.org; Tue, 26 Oct 2021 23:44:57 -0400
Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:36395)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <vikasrawal@gmail.com>)
 id 1mfZs0-0000rc-3T
 for emacs-orgmode@gnu.org; Tue, 26 Oct 2021 23:44:57 -0400
Received: by mail-pj1-x1034.google.com with SMTP id
 v1-20020a17090a088100b001a21156830bso4030275pjc.1
 for <emacs-orgmode@gnu.org>; Tue, 26 Oct 2021 20:44:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=date:from:to:cc:subject:message-id:mail-followup-to:organisation
 :references:mime-version:content-disposition:in-reply-to;
 bh=JddZ+ZYaOTYM8aJ0X8Q2xqjzY+I/HVEhz3WTfGHEkp8=;
 b=jZ6oUtcaRiwvZ5Yg+vtg96AcJf0ZkUBhyUQiZCrvbwKwIXdbdVLbM2XqMb3vyKeAiI
 /VvbD6UWkzjdUYCrttVoKsq0jsGydnpcWfthQgdkI3/BMKEY4bAZ6VxbSTYf3giwD6+I
 wNeISM0dkx3UNGX5e0l0zoRP+wecAzu79mXgPURZWUlK8ZJeS0ZZMPFJdPC5VUlilieX
 eRFa0cnS25UNrDy9m2u3tQCwyLbTZVpafVy6O3m46neSwxul+JUjEFUOo7/s9+TQdemL
 zlYRh8cSHFDa2KLKz97WJa1/QJE+w/BDtfRahEEPJjM8K8IYVDW0ThARjux2t4VCswJc
 ZqBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:date:from:to:cc:subject:message-id
 :mail-followup-to:organisation:references:mime-version
 :content-disposition:in-reply-to;
 bh=JddZ+ZYaOTYM8aJ0X8Q2xqjzY+I/HVEhz3WTfGHEkp8=;
 b=psYFKtqKo+zNofInwfYnLOQYUadldZVVYVX7fGcgw9vn6OBZpdxn8OQSILJSg6ek8Q
 CchS8mcO+1Ms1Y/Q1V01o6vbTuTPxX7aUwnGf7ryw8ZQzOyzs/KcQJIiA+wmxKWlU1WT
 qZJU83zhDQX2umoKjS3/1D9HhPi3K1mrjHChB5wYl786klDwa/2tuwbIVxiYn9yWmVw6
 R+kxzoJqC8aRm3r8UfNeaBAAjoRNbPUB/lgGmPxuMa3Zguw7T+qIs1k49gvVsr2C254o
 cNtKbCcn27FXg05z6gblkQUCA43qoiECC+ggOPiR8B7JuqDx3caSghZEHfRwSOLlmpTV
 dSvg==
X-Gm-Message-State: AOAM533MZXyqSPJocUNSV73LHByskIwOp+X5Jy69RIXg9HSBZjaRPK0K
 kl+nlXhcde9LwuYdMzoXE+o=
X-Google-Smtp-Source: ABdhPJx9FSnzVDT+1fl6lAxYCSG3dWTIXEZ+1EBdpBD8XLOWL+q2NkvxnVyTG5m4zuFMQNmjcMwB1w==
X-Received: by 2002:a17:902:ab04:b0:141:671e:1188 with SMTP id
 ik4-20020a170902ab0400b00141671e1188mr3226724plb.16.1635306293777; 
 Tue, 26 Oct 2021 20:44:53 -0700 (PDT)
Received: from localhost ([103.49.227.26])
 by smtp.gmail.com with ESMTPSA id j10sm14705854pfu.164.2021.10.26.20.44.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 26 Oct 2021 20:44:53 -0700 (PDT)
Date: Wed, 27 Oct 2021 09:14:48 +0530
From: Vikas Rawal <vikasrawal@gmail.com>
To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= <maciaschain@posteo.net>
Subject: Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables
Message-ID: <20211027034448.ijd337kvnmd3fje2@dalkati>
Mail-Followup-To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= <maciaschain@posteo.net>, 
 orgmode <emacs-orgmode@gnu.org>
Organisation: CESP, Jawaharlal Nehru University, New Delhi
References: <87mtmvwz3m.fsf@posteo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87mtmvwz3m.fsf@posteo.net>
Received-SPF: pass client-ip=2607:f8b0:4864:20::1034;
 envelope-from=vikasrawal@gmail.com; helo=mail-pj1-x1034.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 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Cc: orgmode <emacs-orgmode@gnu.org>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1635306363;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=JddZ+ZYaOTYM8aJ0X8Q2xqjzY+I/HVEhz3WTfGHEkp8=;
	b=nDAKlFkBsa3X2zjaShjMpgBezdMHN5Kfqc9v45gQtVIwvxD9yQngiCYdQpAFObfqC40CVG
	W8P1joDXXGRZ3w/XonWgAoLUn578mmbswx0znxcDelmcVl4vMRG0KR6OPtJ5Z9QYe+DkJ4
	8y/vLonvl4PdQnrczcdtoot9FETZP/G0Xx3LBnO1UDk51UIASJlSxsj7ov4e/Hv7o25UmV
	J33LqtTOgMota2s2E0J+RyAILpITtqvHaPl32FZpwZJiErhlgaj/iEPU7TOcFDHTVbx3Gj
	VandsKDi5HR4RiHfNm5E6egge1dXf550Va1/QQFxAVS6Il1JVuOeEz0T0ccwVA==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635306363; a=rsa-sha256; cv=none;
	b=XyPFeb/92kJoXnB+2ryIsATL3rtWxyNS7CzTG1xVd6Wkah7X+kSXuWcnV9k3EU2DxqpzJs
	z3CGjjANPBt/rYqrJa/LrbVy93/+d2OVLlBBEcwnXE8zouOSo7lMhkdhTyJ0yWEUS+VwW5
	L7UDsvlAH9uis38nW06q9NqFgww1MdiJdasKXiHLag36cRKlWhGMRUcQcOWtLoqd0nlimV
	XXVwsCHJSo8Ftt0c8nXDE0ZgKD7+ZymCdrVraBcqyIRvIO9RUXRX8AWTHNpdw20gJialKS
	4Foa3opbDJ+gmhsK4agDIQExnB5+X/kCrBWFqTOlQMrP4URsACt2f648VlGBKw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20210112 header.b=jZ6oUtca;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org
X-Migadu-Spam-Score: -1.13
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20210112 header.b=jZ6oUtca;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org
X-Migadu-Queue-Id: 1BB6C82B1
X-Spam-Score: -1.13
X-Migadu-Scanner: scn0.migadu.com
X-TUID: 3joaRm+bp2oo


>
> Example:
>
> #+ATTR_LATEX: :environment longtblr
> #+ATTR_LATEX: :align colspec = {XXX}, width = 0.85\linewidth
> #+ATTR_LATEX: :options remark{Note} = {Lorem ipsum dolor sit amet}
>
> ==> \begin{longtblr}[remark{Note} = {Lorem ipsum dolor sit amet}]{colspec = {XXX}, width = 0.85\linewidth}

This is excellent. There is only one improvement that I would like you to consider. Is it possible to allow multiple ":options " lines that are appended when exported to
+latex? Something like this:

#+ATTR_LATEX: :environment longtblr
#+ATTR_LATEX: :align colspec = {XXX}, width = 0.85\linewidth
#+ATTR_LATEX: :options remark{Note} = {Lorem ipsum dolor sit amet}
#+ATTR_LATEX: :options remark{Source} = {The source of data}

 ==> \begin{longtblr}[remark{Note} = {Lorem ipsum dolor sit amet},
                      remark{Source} = {The source of data}]{colspec = {XXX}, width = 0.85\linewidth}

This would be more elegant since table notes can be elaborate and putting them all in one line would make them unwieldy.

At the moment, only the last ":options" line is considered.

Thanks a lot.

Vikas