From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Vorobiev Subject: Re: LaTeX export problem Date: Mon, 24 Sep 2012 16:32:46 -0500 Message-ID: References: <87392epgfw.fsf@bzg.ath.cx> <878vc3kbgu.fsf@bzg.ath.cx> <87wqzmcwfo.fsf@gmail.com> <87pq5b9l7u.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]:53618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGGOe-00070u-DT for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 17:40:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGGH5-0004x4-F3 for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 17:33:23 -0400 Received: from mail-vb0-f41.google.com ([209.85.212.41]:49132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGGH5-0004wV-0b for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 17:33:07 -0400 Received: by vbkv13 with SMTP id v13so7316326vbk.0 for ; Mon, 24 Sep 2012 14:33:06 -0700 (PDT) In-Reply-To: <87pq5b9l7u.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 , Gary Oberbrunner , Orgmode Mailing List Hi Nicolas, Thanks a lot for the help, I configured the org-e-latex-classes and now am getting somewhere - at least my LaTeX settings appear in the output. The next problem I have is babel-related. I create results of execution of my source blocks in org format so they are enclosed in #+BEGIN_ORG ... #END_ORG which gets translated by the new exporter into \begin{org} \end{org} - which makes pdflatex unhappy because the "org environment" is not defined anywhere. The old exported did not do anything like that. What do I have to do to make it work in the new exporter? Thanks Alex On Mon, Sep 24, 2012 at 4:15 PM, Nicolas Goaziou wrote: > Hello, > > Alexander Vorobiev writes: > >> 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 > > You need a space after the colons in #+LATEX_HEADER: and #+LATEX_CLASS > lines. > > > Regards, > > -- > Nicolas Goaziou