Rainer M Krug <rai...@krugs.de> writes:

>
> I like Dan's approach as it looks relatively simple, although I still
> have to look into it in detail (and as Joseph notes, there must be a
> problem in the code).
>
> ...
> Dan Griswold <kc5...@gmail.com> writes:
>> ...
>>
>> First, a "cv" class added to org-latex-classes:
>>
>> (add-to-list '("cv"
>>
>> "\\documentclass[10pt]{article}\n\\usepackage[margin=.75in]{geometry}\n%\\usepackage{palatino}\n\\usepackage{sectsty}\n\\sectionfont{\\normalsize\\selectfont\\itshape}\n\\usepackage[T1]{fontenc}\n\\usepackage{libertine}\n\\renewcommand*\\oldstylenums[1]{{\\fontfamily{fxlj}\\selectfont
>> #1}}"
>>   ("\\section{%s}" . "\\section*{%s}")))
>>
>> ...
>
> Joseph Vidal-Rosset <joseph.vidal.ros...@gmail.com> writes:
>
>> Le sam.  20 sept. 2014  à 02:49:03  , Dan Griswold  <kc5...@gmail.com> a
>> envoyé ce message:
>>
>> I guess that there  is a code problem in this (add-to-list  ...) , in my
>> init.el (or custom.el) , it produces this warning:
>>
>> Wrong number of arguments: #[(list-var element &optional append compare-fn) 
>> \204   
>> J\235\202>\305=\203 
>> J>\202>\306=\203&\307       
>> J"\202>
>> J\211\203<  @"\204<A\211\204-)\203D
>> J\207
>> \203R\304
>> J    C"\202V 
>> JBL\207  [compare-fn  element  list-var  lst  append  eq  eql  memql]  5
>> 1615569], 1
>>

The problem is that the add-to-list needs a list to work on:

(add-to-list 'org-latex-classess '("cv" "\documentclass ...." ("\\section{%s}" 
. "\\section*{%s}")))

-- 
Nick




Reply via email to