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

2021-11-06 Thread Nicolas Goaziou
Hello, Juan Manuel Macías writes: > Attached here the updated patch. Applied. Thank you. I added two spaces between sentences in org-manual.org. Regards, -- Nicolas Goaziou

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

2021-11-04 Thread Juan Manuel Macías
Hi Nicolas, Nicolas Goaziou writes: > Good idea. Thanks. Attached here the updated patch. Best regards, Juan Manuel >From fc9062caf43956ac68b72f16afbd5584ec84e687 Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Thu, 4 Nov 2021 21:38:26 +0100 Subject: [PATCH] ox-latex.el: add

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

2021-11-03 Thread Nicolas Goaziou
Juan Manuel Macías writes: > Of course, tomorrow I will upload an updated version of the patch with > the documentation in the manual. Should I also add an entry in ORG-NEWS, > in "Version 9.6" node? Good idea. Thanks. Regards,

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

2021-11-03 Thread Juan Manuel Macías
Hi Nicolas, Nicolas Goaziou writes: > Thank you. > > Could you also document it in the manual? Of course, tomorrow I will upload an updated version of the patch with the documentation in the manual. Should I also add an entry in ORG-NEWS, in "Version 9.6" node? Best regards, Juan Manuel

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

2021-11-03 Thread Nicolas Goaziou
Hello, Juan Manuel Macías writes: > The `:options' attr. allows adding an optional argument with various > table options (between brackets in LaTeX export), since certain tabular > environments, such as `longtblr' of the `tabularray' LaTeX package, > provides this structure (see: >

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

2021-10-28 Thread Vikas Rawal
> > Do you still keep this line in your init: > > (advice-add 'org-latex--org-table :override #'my/org-latex--org-table) ? You were right. My bad. I confirm, the new function works and is a significant improvement. Vikas

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

2021-10-28 Thread Vikas Rawal
> > \begin{longtblr}[options 1 options 2 options 3 options 4]{align} > > PS: I think the options should be separated by commas. In this > case, it's necessary to replace the line: > > (mapconcat (lambda (x) (mapconcat 'identity x "")) options-list " "))) > > by this line: > > (mapconcat (lambda

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

2021-10-28 Thread Vikas Rawal
> Do you still keep this line in your init: > > (advice-add 'org-latex--org-table :override #'my/org-latex--org-table) ? > > If so, rename the function from my previous email as > `my/org-latex-org-table' and re-evaluate it. And comment the old > `my/org-latex-org-table'. > You were right. My

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

2021-10-28 Thread Juan Manuel Macías
Juan Manuel Macías writes: > \begin{longtblr}[options 1 options 2 options 3 options 4]{align} PS: I think the options should be separated by commas. In this case, it's necessary to replace the line: (mapconcat (lambda (x) (mapconcat 'identity x "")) options-list " "))) by this line:

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

2021-10-28 Thread Juan Manuel Macías
Vikas Rawal writes: > This still seems to exporting the second "options" value only. Do you still keep this line in your init: (advice-add 'org-latex--org-table :override #'my/org-latex--org-table) ? If so, rename the function from my previous email as `my/org-latex-org-table' and re-evaluate

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

2021-10-28 Thread Vikas Rawal
> > First, you need to convert a plist to an alist (source: > https://caiorss.github.io/Emacs-Elisp-Programming/Elisp_Programming.html#sec-1-8-4): > > > And this would be the modified function: > This still seems to exporting the second "options" value only. Vikas

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

2021-10-27 Thread Juan Manuel Macías
Hi Vikas, Vikas Rawal writes: > 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:

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

2021-10-26 Thread Vikas Rawal
> > 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 =