From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org export to latex tables, with hlines and | Date: Thu, 10 Mar 2016 21:03:33 +0100 Message-ID: <87lh5q3xt6.fsf@nicolasgoaziou.fr> References: <87mvq7k943.fsf@mat.ucm.es> <87pov2lm1o.fsf@nicolasgoaziou.fr> <87bn6miajt.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6m5-0004Ih-AP for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 15:01:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae6m2-0002Ei-4u for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 15:01:33 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:56364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6m1-0002Ee-UY for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 15:01:30 -0500 Received: from selenimh (unknown [IPv6:2a03:a0a0:0:4301::2de]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 6AFC2A80CE for ; Thu, 10 Mar 2016 21:01:28 +0100 (CET) In-Reply-To: <87bn6miajt.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 10 Mar 2016 16:04:38 +0000") 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: > > 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? Something like that, yes. Regards, -- Nicolas Goaziou