emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LATEX_HEADER export problem
@ 2014-08-20 19:00 Charles Millar
  2014-08-22 12:14 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Millar @ 2014-08-20 19:00 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LATEX_HEADER export problem
  2014-08-20 19:00 LATEX_HEADER export problem Charles Millar
@ 2014-08-22 12:14 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-08-22 12:14 UTC (permalink / raw)
  To: Charles Millar; +Cc: emacs-orgmode

Hello,

Charles Millar <millarc@verizon.net> writes:

> 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

[...]

> Note - the triple |newcommand{\RATE}{65.00} is present
> whether\newcommand\foo{bar} is commented or uncommented in mysetup

I cannot reproduce the problem.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-22 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 19:00 LATEX_HEADER export problem Charles Millar
2014-08-22 12:14 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).