From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Correct Way to Customize LaTeX Export? Date: Tue, 8 Sep 2009 15:49:54 -0500 Message-ID: <20090908204954.GI18897@thinkpad.adamsinfoserv.com> References: <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 1Ml7da-0004dL-IK for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:50:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml7dZ-0004bV-BW for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:50:02 -0400 Received: from [199.232.76.173] (port=42221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml7dZ-0004bK-88 for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:50:01 -0400 Received: from squirtle.drak.net ([72.52.144.201]:58906) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ml7dY-0005gd-RV for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 16:50:01 -0400 Received: from 206.180.154.148.adsl.hal-pc.org ([206.180.154.148] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1Ml7dN-0006Ji-2p for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 15:49:49 -0500 Content-Disposition: inline In-Reply-To: <86hbvdb24y.fsf@pmade.com> 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 That's where the export header comes in handy. In .emacs: > ,---- > | (setq org-export-latex-classes > | '(("article" > | "\\documentclass[11pt]{article}" > | ("\\section{%s}" . "\\section*{%s}") > | ("\\subsection{%s}" . "\\subsection*{%s}") > | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > | ("\\paragraph{%s}" . "\\paragraph*{%s}") > | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) > `---- At the top of your .org file: #+LATEX_HEADER \\usepackage[utf8]{inputenc} #+LATEX_HEADER \\usepackage[T1]{fontenc} #+LATEX_HEADER \\usepackage{graphicx} #+LATEX_HEADER \\usepackage{longtable} #+LATEX_HEADER \\usepackage{soul} #+LATEX_HEADER \\usepackage{hyperref} #+LATEX_HEADER \\hypersetup{ #+LATEX_HEADER hyperindex=true, #+LATEX_HEADER plainpages=false, #+LATEX_HEADER colorlinks=true, #+LATEX_HEADER linkcolor=black #+LATEX_HEADER } On Tue, Sep 08, 2009 at 02:41:17PM -0600, Peter Jones wrote: > 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: > > > 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3