From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Vorobiev Subject: Re: LaTeX export problem Date: Mon, 24 Sep 2012 11:40:13 -0500 Message-ID: References: <87392epgfw.fsf@bzg.ath.cx> <878vc3kbgu.fsf@bzg.ath.cx> <87wqzmcwfo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGBi5-0003HR-2v for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 12:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGBhy-0007h2-JI for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 12:40:41 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:43955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGBhy-0007gk-Cv for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 12:40:34 -0400 Received: by ied10 with SMTP id 10so12724624ied.0 for ; Mon, 24 Sep 2012 09:40:33 -0700 (PDT) In-Reply-To: <87wqzmcwfo.fsf@gmail.com> 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 Cc: Bastien , Orgmode Mailing List , Gary Oberbrunner Nicolas, Here is my configuration section (it goes at the end of the org file). Nothing in the LaTeX_HEADER lines gets inserted into output tex document. The old exporter just inserted them all verbatim. #+STARTUP: align fold nodlcheck hidestars oddeven lognotestate #+PROPERTY: exports results #+TITLE: Test document #+AUTHOR: #+EMAIL: myemail@gmail.com #+DATE: #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: #+LANGUAGE: en #+LaTeX_CLASS:koma-article #+LaTeX_HEADER:\usepackage{color} #+LaTeX_HEADER:\definecolor{spot}{rgb}{0,0.2,0.6} #+LaTeX_HEADER:\definecolor{TUgreen}{RGB}{41,93,80} #+LaTeX_HEADER:\setkomafont{section}{\color{TUgreen}\sffamily\bfseries} #+LaTeX_HEADER:\renewcommand{\sfdefault}{jvn} #+LaTeX_HEADER:\renewcommand*\familydefault{\sfdefault} #+LaTeX_HEADER:\usepackage[automark,nouppercase]{scrpage2} #+LaTeX_HEADER:\clearscrheadfoot #+LaTeX_HEADER:\setheadwidth{paper} #+LaTeX_HEADER:\setfootwidth{paper} #+LaTeX_HEADER:\cohead[]{ #+LaTeX_HEADER: \includegraphics[width=7.75in]{MyHeader.jpg} #+LaTeX_HEADER:} #+LaTeX_HEADER:\cofoot[]{ #+LaTeX_HEADER: \includegraphics[width=7.75in]{MyFooter.png} #+LaTeX_HEADER:} #+LaTeX_HEADER:\pagestyle{scrplain} #+LaTeX_HEADER:\AtBeginDocument{\vspace*{5\baselineskip}\thispagestyle{scrheadings}} #+LaTeX_HEADER:\setlength{\topmargin}{-0.80in} #+LaTeX_HEADER:\setlength{\textheight}{730pt} #+LaTeX_HEADER:\makeatletter #+LaTeX_HEADER:\renewcommand{\maketitle}{ #+LaTeX_HEADER:% \vspace*{5\baselineskip}% #+LaTeX_HEADER: \vskip 2em% #+LaTeX_HEADER: \begin{center}% #+LaTeX_HEADER: {\LARGE \@title \par}% #+LaTeX_HEADER: \end{center}% #+LaTeX_HEADER: \par} \makeatother The new tex file just starts like this % Created 2012-09-24 Mon 11:31 \author{} \date{} \title{Test document} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode 7.9.1 in Emacs 24.2.1.}} \begin{document} \maketitle Thanks Alex On Sat, Sep 22, 2012 at 3:07 AM, Nicolas Goaziou wrote: > Hello, > > Alexander Vorobiev writes: > >> I tried the new exporter (using today's snapshot of the sources) and >> it produced invalid LaTeX (it calls hypersetup without loading >> hyperref package). > > The export back-end doesn't load any package on its own. You have to > make sure hyperref is properly loaded (AFAIK, it is by default). > >> It also ignored the #+LaTeX_CLASS: and all the >> #+LaTeX_HEADER:lines in my file. > > Those lines shouldn't be ignored. You probably don't have any matching > entry in `org-e-latex-classes' for your #+LATEX_CLASS: specification. > > I'm not sure about #+LaTeX_HEADER: lines. Do you have an example? > >> Are there any examples of org files which show how to customize the >> new LaTeX exporter? > > Try first: > > M-x customize-group RET org-export-e-latex RET > > > Regards, > > -- > Nicolas Goaziou