emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables


From: Vikas Rawal
Subject: Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables
Date: Wed, 27 Oct 2021 09:14:48 +0530

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]