From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: CV in orgmode for export to pdf (and html? Date: Mon, 22 Sep 2014 07:55:28 -0400 Message-ID: <877g0vswcv.fsf@pierrot.dokosmarshall.org> References: <8738bnuzxm.fsf@nicolasgoaziou.fr> <8738bnuzxm.fsf@nicolasgoaziou.fr> <87fvfnor9j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW2Dt-0000h8-Jm for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 07:56:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW2Dn-0003LJ-3J for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 07:56:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:55445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW2Dm-0003KO-Td for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 07:55:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XW2DY-0006E7-M9 for emacs-orgmode@gnu.org; Mon, 22 Sep 2014 13:55:44 +0200 Received: from pool-108-20-41-17.bstnma.fios.verizon.net ([108.20.41.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Sep 2014 13:55:44 +0200 Received: from ndokos by pool-108-20-41-17.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Sep 2014 13:55:44 +0200 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 Rainer M Krug 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 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 writes: > >> Le sam. 20 sept. 2014 à 02:49:03 , Dan Griswold 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