From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Re: Re: Worg needs some reorganizing Date: Tue, 18 Jan 2011 12:50:30 -0600 Message-ID: <87r5cagi6h.fsf@riotblast.dunsmor.com> References: <4CAD81B0.6090807@manor-farm.org> <0E084C6C-6FD1-4C74-BD9F-34F2830B93C5@gmail.com> <87bp6ytacd.fsf_-_@stats.ox.ac.uk> <87fwsubckf.fsf@gnu.org> <87aaj2w5x4.fsf@fastmail.fm> <87d3nyuhkw.fsf@altern.org> <87aaj0kggo.fsf@gmail.com> <87zkr0load.fsf@riotblast.dunsmor.com> <87pqrwipjd.fsf@gmail.com> <87oc7glhef.fsf@riotblast.dunsmor.com> <87hbd8ins8.fsf@gmail.com> <87ipxolgji.fsf@riotblast.dunsmor.com> <87aaj0iiff.fsf@gmail.com> <87r5cbk28p.fsf@riotblast.dunsmor.com> <87fwsrtokh.fsf@gnu.org> <87lj2jouz7.fsf@fastmail.fm> <877he2fvw0.fsf@gnu.org> <87fwsqw8u3.fsf@fastmail.fm> <87d3nufa7a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33838 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfGei-0001ju-Iq for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 13:53:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfGdU-0003xj-SB for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 13:51:48 -0500 Received: from deathroller.dunsmor.com ([98.129.169.48]:43507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfGdU-0003xY-N3 for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 13:50:32 -0500 In-Reply-To: <87d3nufa7a.fsf@gmail.com> (Eric Schulte's message of "Tue, 18 Jan 2011 09:26:43 -0700") 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: Eric Schulte Cc: Dan Davison , Ian Barton , Jeff Horn , Bastien , Matt Lundin , emacs-orgmode@gnu.org, Carsten Dominik "Eric Schulte" writes: > Matt Lundin writes: > >> Bastien writes: >> >>> Jeff Horn writes: >>> >>>> Jason seems to be garnering a lot of votes, but Eric's zenburn >>>> emulation makes my eyes happy. If Jason wins out, I suppose I could >>>> always just read Worg in emacs... :D >>> >>> Or use Eric zenburn-like css by selecting it as an alternative >>> stylesheet in Firefox : View -> Page Style -> [select stylesheet]. >>> >>> I don't know how to make this choice persistent from Firefox and I >>> don't know if this feature is available for other browsers, but it >>> is certainly worth having several stylesheet available. >> >> Could we perhaps go ahead and put the new stylesheets on Worg along with >> alternate stylesheet links in the publishing preamble? That way we could >> begin to tweak the stylesheets as a community and test them "on the >> fly." (It would also save Jason the work of having to publish to tmp >> directories.) Others would then be free to add their own >> stylesheets---though I suppose that adding alternate stylesheet links >> will require access to the publishing options on the server. >> >> Once we've decided on a default, we could then adjust the preamble >> accordingly and clean up the alternates. >> > > This sounds like a great approach to me. I'm convinced that there are > other Org-mode users with much more sophisticated knowledge of CSS who > may improve our initial efforts in time. > > One other alternative that comes to mind--while we're making impositions > on Jason's kindness :)--is that it would be nice to have an alternate > version of Worg published side-by-side with the original, only instead > of publishing each page using org-publish-as-html, it could publish each > page using only htmlize. That way we could show off how nice Org-mode > syntax can be when viewed from inside of Emacs, and users could see a > side-by-side between the plain-text and html versions. An example of > this approach done successfully is Dan's Babel example at > http://www.stats.ox.ac.uk/~davison/software/org-babel/drift.org.html That sounds like a good idea. Do you know exactly how to do this? I added the following to org-publish-project-alist: --8<---------------cut here---------------start------------->8--- ("worg-htmlize" :base-directory "~/git/Worg/" :base-extension "org" :html-extension "org.html" :publishing-directory "/var/www/orgmode.org/worg/" :recursive t :htmlized-source t :publishing-function htmlize) --8<---------------cut here---------------end--------------->8--- But when I run: --8<---------------cut here---------------start------------->8--- (defun publish-worg-htmlize nil "Publish Worg." (interactive) (add-hook 'org-publish-after-export-hook 'worg-fix-symbol-table) (let ((org-format-latex-signal-error nil) (org-startup-folded nil)) (org-publish-project "worg-htmlize"))) --8<---------------cut here---------------end--------------->8--- I get the error "Symbol's function definition is void: publish-htmlize". I made sure to (require 'htmlize).