From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: LATEX_HEADER export problem Date: Wed, 20 Aug 2014 15:00:06 -0400 Message-ID: <53F4F036.6050009@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKB7T-0000aP-78 for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 15:00:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKB7K-00056n-4H for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 15:00:27 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:29914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKB7J-00056U-Vs for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 15:00:18 -0400 Received: from [127.0.0.1] ([unknown] [24.39.254.154]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0NAM00LMLCS53A60@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 14:00:08 -0500 (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: emacs-orgmode@gnu.org Hi, I have the following in a file that I export to LaTeX #+LATEX_CLASS: mysetup #+LATEX_HEADER: \newcommand{\RATE}{65.00} mysetup class (add-to-list 'org-latex-classes '("mysetup" "\\documentclass[11pt,letterpaper,oneside]{scrartcl} \\usepackage{verbatim} % \\usepackage[T1]{fontenc} % \\usepackage{charter,parskip,setspace,layout} commented out for Komascript \\usepackage{charter,setspace,layout} \\usepackage{array,graphicx} \\usepackage{tabularx,tabulary} \\usepackage{longtable} \\usepackage{numprint} \\npstyleenglish \\usepackage[at]{easylist} \\usepackage{csquotes} %\\usepackage[letterpaper,margin=1.00in]{geometry} \\usepackage[letterpaper,left=1.00in,right=1.00in,top=1.00in,bottom=0.50in]{geometry} % \\usepackage[top=1.0in,bottom=0.4in,left=1.2in,nohead]{geometry} %\\pagestyle{empty} \\pagenumbering{arabic} %\\newcommand\\foo{bar} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] [EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) When I export the pdf is generated, however with an error; the following output to the *.tex results ss[11pt,letterpaper,oneside]{scrartcl} \usepackage{verbatim} % \usepackage[T1]{fontenc} % \usepackage{charter,parskip,setspace,layout} \usepackage{charter,setspace,layout} \usepackage{array,graphicx} \usepackage{tabularx,tabulary} \usepackage{longtable} \usepackage{numprint} \npstyleenglish \usepackage[at]{easylist} \usepackage{csquotes} %\usepackage[letterpaper,margin=1.00in]{geometry} \usepackage[letterpaper,left=1.00in,right=1.00in,top=1.00in,bottom=0.50in]{geometry} % \usepackage[top=1.0in,bottom=0.4in,left=1.2in,nohead]{geometry} %\pagestyle{empty} \pagenumbering{arabic} %\newcommand\foo{bar} \newcommand{\RATE}{65.00} \newcommand{\RATE}{65.00} \newcommand{\RATE}{65.00} \date{} Note - the triple |newcommand{\RATE}{65.00} is present whether\newcommand\foo{bar} is commented or uncommented in mysetup When *.tex is typset there are two "\RATE already defined" errors. I have searched around for an answer/solution. Any suggestions? As I said, the pdf is still typeset; all I want is to be rid of this error. Charlie Millar --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com