From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Latex export of tables Date: Tue, 16 Apr 2013 19:39:48 +0200 Message-ID: <20130416173948.GC7402@kuru.dyndns-at-home.com> References: <20130412080600.GA18235@panahar> <20130414232953.GC11696@kuru.dyndns-at-home.com> <20130416115619.GA12405@panahar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US9rI-00026D-Tc for emacs-orgmode@gnu.org; Tue, 16 Apr 2013 13:39:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US9rG-0001bE-68 for emacs-orgmode@gnu.org; Tue, 16 Apr 2013 13:39:56 -0400 Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:33435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US9rF-0001ZJ-Uc for emacs-orgmode@gnu.org; Tue, 16 Apr 2013 13:39:54 -0400 Received: by mail-ea0-f171.google.com with SMTP id b15so366132eae.2 for ; Tue, 16 Apr 2013 10:39:53 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130416115619.GA12405@panahar> 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 Hi Vikas, On Tue, Apr 16, 2013 at 05:26:19PM +0530, Vikas Rawal wrote: > > > I am using org-mode version 8.0-pre (release_8.0-pre-247-gbc3ccd @ > > > /home/vikas/lisp/org-mode/lisp/). > > > > > > I have a table generated by a source block in a document that I would > > > like to export to latex. In the exported tex file, I would like org to > > > insert a line like the following between \end(tabular} and \end{table} > > > > > > \begin{minipage}{\textwidth} \tiny Note: Some descriptive text here. \end{minipage} > > > > I do not think this is possible. You have to realise that Org does not > > aim to support everything you can do with a backend natively. One of > > the primary reasons for that is the backend agnostic abstraction > > provided by Org. > > I have seen some way of doing things like this. See section 13.3 at > http://orgmode.org/worg/org-tutorials/org-latex-export.html > > I can't get it to work though. Will keep trying. Many of the things on that page is old exporter specific and probably will not work with the new exporter. > There is also a reason for not doing it natively in latex even if the > org-mode solution is somewhat round-about. I am writing a research > paper using orgmode, with embedded R source blocks in it. I do not > mind embedding some latex source block into it but I would not like to > edit an exported latex file. After all, in the end, the objective is > to be able to have an org file which produces a full paper when exported. Then generate LaTeX tables from R not Org tables. As far as I know, R is capable of that. I believe you can pass the ":wrap latex" option to the babel block to wrap your LaTeX table with "#+begin_latex..#+end_latex". I'm suggesting this because if you continue on this path, i.e. litter your Org file with hacks, soon you will end up with an extremely fragile and complicated Org project. I have been down that road while writing my thesis. At one point I realised the problem and made the decision to split things into two kinds of files: static content (document structuring, text, plots, etc), and dynamic content (babel, TikZ blocks that generate tables, plots, figures, etc used by the static content files). It is still reproducible research, but modular and less hacky (hence more stable). Of course all of this is my personal opinion, it might be completely inappropriate advise for your use case. Good luck, -- Suvayu Open source is the future. It sets us free.