From mboxrd@z Thu Jan 1 00:00:00 1970 From: Water Lin Subject: Replace the string in project setting Date: Thu, 24 Dec 2009 10:12:44 +0800 Message-ID: <874onh5dcz.fsf@ymail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNdCA-0001HN-MC for emacs-orgmode@gnu.org; Wed, 23 Dec 2009 21:12:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNdC5-0001GW-4e for emacs-orgmode@gnu.org; Wed, 23 Dec 2009 21:12:53 -0500 Received: from [199.232.76.173] (port=37554 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNdC5-0001GT-1l for emacs-orgmode@gnu.org; Wed, 23 Dec 2009 21:12:49 -0500 Received: from n22b.bullet.mail.mud.yahoo.com ([68.142.206.159]:20076) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NNdC4-0003UL-No for emacs-orgmode@gnu.org; Wed, 23 Dec 2009 21:12:48 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I set publishing project by ------ (require 'org-publish) (setq org-publish-project-alist ----- and I also want to embed css sheetstyle by setting -------- :style "" -------- But the style is too long and I want to use a string to replace it. So I set a string by ------- (setq waterstyle "") ------- and replace the :style like following: ------- :style waterstyle ------- But while I publish the project, Emacs prompts an error about this. I am not very familiar with elisp. Can I embed the style by a string like this? Thanks Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: WaterLin@ymail.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Replace the string in project setting Date: Thu, 24 Dec 2009 08:43:20 +0100 Message-ID: References: <874onh5dcz.fsf@ymail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNiM6-0003K6-T7 for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 02:43:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNiM4-0003Je-3B for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 02:43:29 -0500 Received: from [199.232.76.173] (port=43164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNiM3-0003Jb-H4 for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 02:43:27 -0500 Received: from mx20.gnu.org ([199.232.41.8]:40798) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNiM3-0002S5-2x for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 02:43:27 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNiM1-0006M3-P8 for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 02:43:25 -0500 Received: by fg-out-1718.google.com with SMTP id 19so4122906fgg.12 for ; Wed, 23 Dec 2009 23:43:24 -0800 (PST) In-Reply-To: <874onh5dcz.fsf@ymail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Water Lin Cc: emacs-orgmode@gnu.org On Dec 24, 2009, at 3:12 AM, Water Lin wrote: > > I set publishing project by > ------ > (require 'org-publish) > (setq org-publish-project-alist > ----- > > and I also want to embed css sheetstyle by setting > -------- > :style "" > -------- > > But the style is too long and I want to use a string to replace it. > > So I set a string by > ------- > (setq waterstyle "") > ------- > > and replace the :style like following: > ------- > :style waterstyle > ------- > > But while I publish the project, Emacs prompts an error about this. > > I am not very familiar with elisp. Can I embed the style by a string > like this? Hi, you need to do this: (setq waterstyle .....) (setq org-publish-project-alist `((...... ...... :style ,waterstyle ....))) (note the *backquote* instead of a normal quote to quote the value of org-publish-project-alist, and note the comma before waterstyle to interpolate the value into the quoted list. HTH - Carsten > > Thanks > > Water Lin > > -- > Water Lin's notes and pencils: http://en.waterlin.org > Email: WaterLin@ymail.com > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Water Lin Subject: Re: Replace the string in project setting Date: Thu, 24 Dec 2009 17:02:06 +0800 Message-ID: <877hsc68z5.fsf@ymail.com> References: <874onh5dcz.fsf@ymail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNjaF-00056O-Ty for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 04:02:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNjaA-00051j-Qz for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 04:02:11 -0500 Received: from [199.232.76.173] (port=46599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNjaA-00051B-Ca for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 04:02:06 -0500 Received: from n17.bullet.mail.mud.yahoo.com ([68.142.206.144]:45109) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NNja9-0000Y2-Tm for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 04:02:06 -0500 In-Reply-To: (Carsten Dominik's message of "Thu, 24 Dec 2009 08:43:20 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On Dec 24, 2009, at 3:12 AM, Water Lin wrote: > >> >> I set publishing project by >> ------ >> (require 'org-publish) >> (setq org-publish-project-alist >> ----- >> >> and I also want to embed css sheetstyle by setting >> -------- >> :style "" >> -------- >> >> But the style is too long and I want to use a string to replace it. >> >> So I set a string by >> ------- >> (setq waterstyle "") >> ------- >> >> and replace the :style like following: >> ------- >> :style waterstyle >> ------- >> >> But while I publish the project, Emacs prompts an error about this. >> >> I am not very familiar with elisp. Can I embed the style by a string >> like this? > > Hi, > > you need to do this: > > (setq waterstyle .....) > > (setq org-publish-project-alist > `((...... > ...... > :style ,waterstyle > ....))) > > (note the *backquote* instead of a normal quote to quote > the value of org-publish-project-alist, and note the comma before > waterstyle to interpolate the value into the quoted list. > > HTH > > - Carsten Thanks, I think I am not just know how to do it but also know why I need to do this. Thanks Water Lin > >> >> Thanks >> >> Water Lin >> >> -- >> Water Lin's notes and pencils: http://en.waterlin.org >> Email: WaterLin@ymail.com >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > > > -- Water Lin's notes and pencils: http://en.waterlin.org Email: WaterLin@ymail.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com