From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Jones Subject: Correct Way to Customize LaTeX Export? Date: Tue, 08 Sep 2009 14:41:17 -0600 Message-ID: <86hbvdb24y.fsf@pmade.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ml7Ve-0006GS-9z for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:41:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml7VZ-00069L-B3 for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:41:49 -0400 Received: from [199.232.76.173] (port=58974 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml7VZ-00069G-1N for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:41:45 -0400 Received: from lo.gmane.org ([80.91.229.12]:34572) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ml7VY-00044e-LH for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:41:44 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Ml7VW-0007CW-1A for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 22:41:42 +0200 Received: from c-67-177-207-68.hsd1.co.comcast.net ([67.177.207.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Sep 2009 22:41:42 +0200 Received: from mlists by c-67-177-207-68.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Sep 2009 22:41:42 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I recently started exporting some org headlines to LaTeX. I poked around but couldn't find the best way to customize the output, e.g. add a call to hypersetup. The best I came up with was: ,---- | (setq org-export-latex-classes | '(("article" | "\\documentclass[11pt]{article} | \\usepackage[utf8]{inputenc} | \\usepackage[T1]{fontenc} | \\usepackage{graphicx} | \\usepackage{longtable} | \\usepackage{soul} | \\usepackage{hyperref} | \\hypersetup{ | hyperindex=true, | plainpages=false, | colorlinks=true, | linkcolor=black | }" | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) `---- But by doing that, I would have to update this variable when pulling down a new org version that might have changed the default value of org-export-latex-classes. Is there a better way to do stuff like insert a call to hypersetup? -- Peter Jones - 303-219-0226 pmade inc. - http://pmade.com