emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <dandavison7@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Worg needs some reorganizing
Date: Thu, 20 Jan 2011 11:22:57 +0000	[thread overview]
Message-ID: <m1k4hzbyzy.fsf@94.197.142.47.threembb.co.uk> (raw)
In-Reply-To: 87r5cagi6h.fsf@riotblast.dunsmor.com

Jason Dunsmore <emacs-orgmode@dunsmor.com> writes:

> "Eric Schulte" <schulte.eric@gmail.com> writes:
>
>> Matt Lundin <mdl@imapmail.org> writes:
>>
>>> Bastien <bastien.guerry@wikimedia.fr> writes:
>>>
>>>> Jeff Horn <jrhorn424@gmail.com> 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.

I strongly second this. In fact I'll stick my neck out more: Worg is
great, but for tutorials on org-mode, HTML export is often the wrong
format for obvious reasons (i.e. unless you go to some trouble, it
conceals a lot of the org syntax). I'm tempted to suggest that htmlized
output should be the default format for many org tutorials on Worg.

>>  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 believe I used this. I'd been meaning to look into adding something
like this more formally to Org, but haven't got round to it.

**** Htmlize with images
Based on
https://stat.ethz.ch/pipermail/ess-help/2009-August/005478.html
by Vitalie S.
#+begin_src emacs-lisp
(defun dan/htmlize-buffer-with-org-images ()
  "Convert buffer to html, including embedded images."
  (interactive)
  (save-excursion
    (switch-to-buffer (htmlize-buffer (current-buffer)))
    (goto-char (point-min))
    (while (re-search-forward "<span class=\"org-link\">file:\\(.+\\)</span>" nil t)
      (replace-match (concat "<img src='\\1'/>")))))
#+end_src


Dan

>
> I added the following to org-publish-project-alist:
>
>         ("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)
>
> But when I run:
>
> (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")))
>
> I get the error "Symbol's function definition is void: publish-htmlize".
> I made sure to (require 'htmlize).
>
> _______________________________________________
> 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

  parent reply	other threads:[~2011-01-20 11:23 UTC|newest]

Thread overview: 140+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07  8:15 Themes Compatible with color-theme.el Ian Barton
2010-10-07  8:56 ` Sébastien Vauban
2010-10-07  9:04   ` Ian Barton
2010-10-09 15:54 ` Yavuz
2010-10-09 18:42   ` David O'Toole
2010-10-10  7:54     ` Ian Barton
2010-10-11  3:29       ` David O'Toole
2010-10-11 19:01         ` Jason McBrayer
2010-10-10  7:52   ` Ian Barton
2010-10-09 21:45 ` Memnon Anon
2010-10-10  7:55   ` Ian Barton
2010-10-10 19:24 ` Scott Jaderholm
2010-10-10 20:55   ` Ian Barton
2010-10-13  3:46     ` Eric Schulte
2010-10-13 10:08       ` Ian Barton
2010-10-13 12:40         ` Carsten Dominik
2010-10-13 14:51           ` Worg needs some reorganizing Dan Davison
2010-10-13 15:41             ` Eric Schulte
2010-10-14  9:44               ` Ian Barton
2011-01-15 16:08                 ` Samuel Wales
2010-10-13 16:02             ` John Hendy
2010-10-14  7:44               ` Sébastien Vauban
2010-10-14 13:09               ` Eric Schulte
2010-10-14 14:07                 ` John Hendy
2010-10-14 15:51                   ` Jeff Horn
2011-01-15 12:01             ` Bastien
2011-01-15 15:19               ` Matt Lundin
2011-01-15 18:50                 ` Bastien
2011-01-16  0:00                   ` Alan E. Davis
2011-01-16 15:37                     ` Eric Schulte
2011-01-16 18:02                       ` Jason Dunsmore
2011-01-16 20:04                         ` Eric Schulte
2011-01-16 20:31                           ` Jason Dunsmore
2011-01-16 20:41                             ` Eric Schulte
2011-01-16 20:50                               ` Jason Dunsmore
2011-01-16 22:37                                 ` Eric Schulte
2011-01-17 14:56                                   ` Jason Dunsmore
2011-01-17 17:41                                     ` Bastien
2011-01-17 18:01                                       ` Jason Dunsmore
2011-01-17 18:57                                         ` Eric Schulte
2011-01-18 16:13                                           ` Eric Schulte
2011-01-18 16:53                                             ` Jeff Horn
2011-01-18 16:55                                             ` Jason Dunsmore
2011-01-18 19:15                                               ` Jason Dunsmore
2011-01-18 19:52                                                 ` Bastien
2011-01-18 21:54                                                   ` Jason Dunsmore
2011-01-18 22:23                                                     ` Nick Dokos
2011-01-18 22:42                                                   ` Eric Schulte
2011-01-19  1:35                                                     ` Jeff Horn
2011-01-19 16:52                                                   ` Achim Gratz
2011-01-19  1:02                                                 ` Matt Lundin
2011-01-19 17:05                                                   ` Achim Gratz
2011-01-19 17:24                                                     ` Eric Schulte
2011-01-19 17:34                                                   ` Jason Dunsmore
2011-01-19 17:56                                                     ` Eric Schulte
2011-01-19 18:13                                                       ` Achim Gratz
2011-01-19 18:20                                                         ` Eric Schulte
2011-01-19 18:46                                                           ` Jason Dunsmore
2011-01-19 18:52                                                             ` Achim Gratz
2011-01-19 19:18                                                               ` Jason Dunsmore
2011-01-19 21:12                                                                 ` Jeff Horn
2011-01-20  2:24                                                                 ` Matt Lundin
2011-01-20  4:30                                                                   ` Jeff Horn
2011-01-20 15:15                                                                     ` Jason Dunsmore
2011-01-20  2:29                                                       ` Matt Lundin
2011-01-20  3:10                                                         ` Nick Dokos
2011-01-20 15:41                                                           ` Matt Lundin
2011-01-20 16:16                                                             ` Nick Dokos
2011-01-20 18:09                                                               ` Jeff Horn
2011-01-20 18:46                                                                 ` Eric Schulte
2011-01-20 19:22                                                                   ` Jeff Horn
2011-01-20 16:17                                                             ` Eric Schulte
2011-01-19 18:07                                                     ` Jeff Horn
2011-01-19 18:32                                                       ` Jason Dunsmore
2011-01-19 21:06                                                         ` Jeff Horn
2011-01-17 19:05                                       ` Achim Gratz
2011-01-17 20:15                                         ` Bastien
2011-01-17 20:52                                         ` Jason Dunsmore
2011-01-17 21:14                                           ` Eric Schulte
2011-01-18 16:01                                             ` Jason Dunsmore
2011-01-18 16:05                                             ` Eric Schulte
2011-01-18 19:18                                               ` Jason Dunsmore
2011-01-18 19:40                                                 ` Bastien
2011-01-17 22:16                                           ` Achim Gratz
2011-01-17 22:47                                             ` Jason Dunsmore
2011-01-17 23:01                                               ` Achim Gratz
2011-01-17 23:29                                                 ` Eric Schulte
2011-01-18  1:34                                       ` Matt Lundin
2011-01-18  1:53                                         ` Eric Schulte
2011-01-18  2:17                                         ` Jeff Horn
2011-01-18  8:39                                           ` Bastien
2011-01-18 15:05                                             ` Matt Lundin
2011-01-18 15:36                                               ` Jason Dunsmore
2011-01-18 15:45                                                 ` Nick Dokos
2011-01-18 15:52                                                   ` Jason Dunsmore
2011-01-18 16:04                                                     ` Nick Dokos
2011-01-18 16:26                                               ` Eric Schulte
2011-01-18 18:50                                                 ` Jason Dunsmore
2011-01-18 19:20                                                   ` Jeff Horn
2011-01-18 19:48                                                   ` Bastien
2011-01-18 23:17                                                     ` Bernt Hansen
2011-01-19  0:57                                                       ` Bastien
2011-01-19  1:03                                                     ` Matt Lundin
2011-01-20 11:22                                                   ` Dan Davison [this message]
2011-01-20 17:02                                                     ` Jeff Horn
2011-01-20 17:21                                                       ` Erik Iverson
2011-01-20 17:38                                                         ` Jason Dunsmore
2011-01-20 18:44                                                           ` Eric Schulte
2011-01-20 17:41                                                       ` Dan Davison
2011-01-20 17:48                                                         ` Dan Davison
2011-01-20 17:50                                                           ` Jeff Horn
2011-01-20 17:49                                                         ` Jeff Horn
2011-01-20 22:23                                                         ` Sébastien Vauban
2011-01-21  8:48                                                           ` Eric S Fraga
2011-01-21  8:58                                                           ` Giovanni Ridolfi
2011-01-20 17:42                                                       ` Jason Dunsmore
2011-01-18 23:13                                               ` Jason Dunsmore
2011-01-19  0:15                                                 ` Eric Schulte
2011-01-19  0:40                                                 ` Bastien
2011-01-19  0:46                                                   ` Eric Schulte
2011-01-19  1:13                                                   ` Matt Lundin
2011-01-19 18:04                                                   ` Achim Gratz
2011-01-18 15:22                                             ` Jason Dunsmore
2011-01-19  1:21                                               ` Bastien
2011-01-19  1:41                                                 ` Jeff Horn
2011-01-20 16:44                                                 ` Eric Schulte
2011-01-20 16:52                                                   ` Jeff Horn
2011-01-19 18:36                                               ` Achim Gratz
2011-01-18 16:46                                             ` Jeff Horn
2011-01-18 16:57                                               ` Brian T. Wightman
2011-01-18  9:23                                         ` Bastien
2011-01-18 15:41                                           ` Jason Dunsmore
2011-01-18 19:38                                         ` Jason Dunsmore
2011-01-17 18:33                         ` Samuel Wales
2011-01-17 18:43                           ` Samuel Wales
2011-01-17 21:39                         ` Matt Lundin
2010-10-14  9:16           ` Themes Compatible with color-theme.el Ian Barton
2010-10-13 15:30         ` Eric Schulte
2010-10-14  9:17           ` Ian Barton
2010-10-10 23:53 ` suvayu ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1k4hzbyzy.fsf@94.197.142.47.threembb.co.uk \
    --to=dandavison7@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).