From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: org export to latex tables, with hlines and | Date: Thu, 10 Mar 2016 16:04:38 +0000 Message-ID: <87bn6miajt.fsf@mat.ucm.es> References: <87mvq7k943.fsf@mat.ucm.es> <87pov2lm1o.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae35E-0007Cv-6U for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 11:05:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae35A-0007t1-1f for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 11:05:04 -0500 Received: from plane.gmane.org ([80.91.229.3]:52588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae359-0007ss-RY for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 11:04:59 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ae355-0002cY-5r for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 17:04:55 +0100 Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2016 17:04:55 +0100 Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2016 17:04:55 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > Hello, > Uwe Brauer 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?