From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: BEGIN_LATEX_HEADER [cont] Date: Sat, 21 Jun 2014 01:43:39 -0400 Message-ID: <87mwd624xg.fsf@gmail.com> References: <87wqccbgvj.fsf@gmail.com> <864mzghvcl.fsf@somewhere.org> <87ppi4t15s.fsf@nicolasgoaziou.fr> <87simzu6f4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyE5f-0006cQ-PH for emacs-orgmode@gnu.org; Sat, 21 Jun 2014 01:44:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyE5W-0007rZ-Ok for emacs-orgmode@gnu.org; Sat, 21 Jun 2014 01:43:51 -0400 Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:42269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyE5W-0007rD-Is for emacs-orgmode@gnu.org; Sat, 21 Jun 2014 01:43:42 -0400 Received: by mail-qc0-f182.google.com with SMTP id m20so4360659qcx.13 for ; Fri, 20 Jun 2014 22:43:41 -0700 (PDT) In-Reply-To: <87simzu6f4.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , Ken Mankoff , emacs-orgmode@gnu.org Hi Nicolas, 2014ko ekainak 20an, Nicolas Goaziou-ek idatzi zuen: >=20 > Hello, >=20 > Ken Mankoff writes: >=20 >> On 2014-06-20 at 04:50, Nicolas Goaziou wrote: >>> I suggest to use existing solutions instead: configure >>> `org-latex-classes'. >>=20 >> I'm all for using existing solutions, but cannot see how I might use >> this to easily customize export differently for different documents when >> large amounts of LaTeX preamble code is being used. >=20 > It's quite simple. You add your large amount of LaTeX preamble code in > a new class, e.g., "my-class", in `org-latex-classes'. Then, in all > documents needing this preamble code, you just add: >=20 > #+latex_class: my-class >=20 > Rinse and repeat for each document type. There are two issues with this solution. The first is that editing non-trivial latex code embedded in an elisp string quickly becomes tedious, whereas it=E2=80=99s much pleasanter in org using org-edit-special, syntax highlighting of src blocks, etc. The second is that it=E2=80=99s impossible to share without distributing el= isp code. From the twin standpoints of reproducible research and security, I think org ought to maximize the degree to which export use cases are sharable without resorting to executing elisp code. There=E2=80=99s a thre= shold beyond which it=E2=80=99s impossible to keep these goals, of course. But i= t=E2=80=99s worth considering how org-latex-classes and friends might adapt to increase the territory that falls within rather than outside the Turing-complete boundary. Just my 2 cents, --=20 Aaron Ecay