From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Pass LaTeX exporter option prior to \documentclass Date: Fri, 04 Nov 2011 13:29:53 -0400 Message-ID: <25343.1320427793@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMNaX-0000H7-N1 for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 13:29:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMNaW-000270-Mb for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 13:29:57 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:1541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMNaW-00026q-GJ for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 13:29:56 -0400 In-Reply-To: Message from John Hendy of "Thu, 03 Nov 2011 13:07:36 CDT." 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: John Hendy Cc: emacs-orgmode , nicholas.dokos@hp.com John Hendy wrote: > On Thu, Nov 3, 2011 at 12:55 PM, suvayu ali wrote: > > On Thu, Nov 3, 2011 at 18:48, John Hendy wrote: > >> On Wed, Nov 2, 2011 at 5:30 AM, suvayu ali wrote: > >>> On Wed, Nov 2, 2011 at 03:43, suvayu ali wrote: > >>>> You could try replacing that with the following: > >>>> > >>>> pdflatex -interaction nonstopmode -output-directory %o > >>>> \pdfminorversion=4 $(cat %f) > >>> > >>> I did some testing. The following should work. > >>> > >>> pdflatex -interaction nonstopmode -output-directory %o > >>> \\pdfminorversion=4 \\input{%f} > >> > >> Thanks for the workaround! So, to be clear, I'd type in what you wrote > >> when I'm prompted for the command to use after =C-c C-e p=? > > > > No. I don't think org prompts for the command when exporting. You > > should use customize to set the variable org-latex-to-pdf-process to > > the above command. > > > > Ah, sorry. You're right. I was thinking of =C-c C-c= from the .tex file buffer. > > Thanks again! It was a fringe scenario for sure! > > Alternatively, you can define a new entry in org-export-latex-classes that does what you want - I just cribbed the existing beamer entry and modified it a bit (I had called it "beamerpdf14" at first, but apparently numerics are not allowed): ,---- | (require 'org-latex) | (setq beamerpdf '("beamerpdf" "\\pdfminorversion=4\\documentclass{beamer}" org-beamer-sectioning)) | (add-to-list 'org-export-latex-classes beamerpdf t) `---- and then set #+LATEX_CLASS: beamerpdf in your org file. Nick