[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org export to latex tables, with hlines and |
From: |
Uwe Brauer |
Subject: |
Re: [O] org export to latex tables, with hlines and | |
Date: |
Thu, 10 Mar 2016 16:04:38 +0000 |
User-agent: |
Gnus/5.13001 (Ma Gnus v0.10) Emacs/25.1.50 (gnu/linux) |
> Hello,
> Uwe Brauer <address@hidden> writes:
> IIUC you want to put a rule after every row in the table? If that's the
> case, the straightforward way to do it is to explicitly put the rule in
> your table:
> |/|<>|
> | | |
> |-+--|
> Otherwise you can use a filter, e.g.,
> `org-export-filter-table-row-functions' and append "\\hine" there in
> LaTeX-related back-ends.
I got this to work:
(defun my-latex-insert-hline-always (row backend info)
"Add a hline to every row when exporting to LaTeX."
(when (org-export-derived-backend-p backend 'latex)
(replace-regexp-in-string "\\\\\\\\" "\\\\\\\\ \\\\hline" row)))
(add-to-list 'org-export-filter-table-row-functions
'my-latex-insert-hline-always)
Is this what you meant?