From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Large LaTeX project in single file or using publishing Date: Sat, 29 Nov 2014 02:20:07 +0000 Message-ID: References: <87r3wpk5yw.fsf@wmi.amu.edu.pl> <87vblzhxzr.fsf@wmi.amu.edu.pl> <87k32eua8s.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuXdq-0005Xm-6u for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 21:20:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuXdl-0003Z2-6E for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 21:20:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:55863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuXdk-0003Va-W7 for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 21:20:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XuXdj-0000Ho-Fv for emacs-orgmode@gnu.org; Sat, 29 Nov 2014 03:20:03 +0100 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 03:20:03 +0100 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 03:20:03 +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 Richard Lawrence writes: > Marcin Borkowski writes: > >> Also, Richard's post made me realize why I prefer to stay with LaTeX: I >> know it way better than Elisp (even though I'm making progress), and in >> case of troubles, I can more easily deal with them in LaTeX (though >> vertical positioning of things on the page - especially trying to >> typeset on a grid - still beats me). > > Yes, that's a good point: if you already know LaTeX well, but are less > comfortable hacking on Org, that would probably change my advice. > > I have accumulated about 600 lines of custom Elisp that is required to > export my thesis from Org to LaTeX and PDF. (The bulk of this, 471 > lines, is a custom export backend derived from the latex backend. It > deals with exporting certain Org lists as non-standard LaTeX > environments. Most of the rest deals with exporting my reading list to > .bib and defining various custom link types, etc. to make the Org side > more pleasant.) > > By contrast, I have only written about 100 lines in custom LaTeX style > files (so far -- I might need to do more of this when it comes time to > get the final styling right for filing my dissertation). I also rely on > other packages from CTAN, but I don't have to maintain those myself. Just as a second data point. (Well, I did not measure any of this really. Only guesswork) Of all the elisp dealing with orgmode in my .emacs only the lines enabling babel for some languages and and the lines loading the exporters -- I think -- are strictly necessary to compile my thesis. Which are less then 10 lines (and could be set via customize). Ahh, and a few lines from Nicolas enabling :ignoreheading: All the real work is done in a LaTeX cls file. For the process of writing I had some more convenience code (enabling reftex, mapping of inlinetasks to LaTeX todonotes and the kind). As for the lists: Org can export lists do different LaTeX lists via something like --8<---------------cut here---------------start------------->8- #+ATTR_LATEX: :environment enumerate* - foo - bar --8<---------------cut here---------------end--------------->8- or more general (with the definition of myownlist in the cls file) --8<---------------cut here---------------start------------->8- #+ATTR_LATEX: :environment myownlist :options [with options] - foo - bar --8<---------------cut here---------------end--------------->8- In summary, I'd say it is quite possible to do the 'work' in LaTeX but still use org for the actual writing. It is a little more work to set up, as org is another layer that has to be connected to LaTeX correctly which can be tricky to get right. But in my opinion the advantages are numerous (babel, agenda, navigation) and outweigh the limitations when it comes to supporting LaTeX (as compared to what auctex offers, that is). Regards, Andreas