emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Publish to html issue
@ 2013-03-16 23:12 Igor Kupczyński
  2013-03-17  0:42 ` Jay Kerns
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Kupczyński @ 2013-03-16 23:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1990 bytes --]

Dear List,

I try to set up a simple org --> html publishing system.

If I configure it according to the manual [
http://orgmode.org/org.html#Project-alist]:

(setq org-publish-project-alist
		'(("org"
		:base-directory "~/tmp/org/"
		:publishing-directory "~/tmp/html"
		:section-numbers nil
		:table-of-contents nil
		:style "<link rel=\"stylesheet\"
		                     href=\"../other/mystyle.css\"
		                     type=\"text/css\"/>")))


I have a following error:


 org-publish-file: No publishing function chosen


OK, so I try to fix it using the configuration posted in the publishing
tutorial [
http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html#text-3-1],
namly by providing the "publishing-function".

(setq org-publish-project-alist
		'(("org"
		:base-directory "~/tmp/org/"
		:publishing-directory "~/tmp/html"
		:section-numbers nil
		:table-of-contents nil*		:publishing-function
org-publish-org-to-html*		:style "<link rel=\"stylesheet\"
		                  href=\"../other/mystyle.css\"
		                  type=\"text/css\"/>")))


With no luck though:


  Publishing file /home/igor/tmp/org/remember.org using
`org-publish-org-to-html'
	      org-publish-file: Symbol's function definition is void:
org-publish-org-to-html


On the mail list archives I see some references to the new
exporter, unfortunately I'm an org-mode newbie and it does not ring any
bells.

If this is relevant I can export a single file with a command
org-html-export-to-html

And my emacs/org versions are:
 Org <http://orgmode.org> mode 8.0-pre in
Emacs<http://www.gnu.org/software/emacs/>
 24.3.50.1.

I'm on ubuntu and got my emacs from cassou-emacs-quantal PPA repo, but with
the stock 24.2 the issue was the same. I have org mode from el-get, which
in turn downloads it from git://orgmode.org/org-mode.git

I'd really appreciate your help with this issue.

Thanks & Cheers,
Igor Kupczyński

[-- Attachment #2: Type: text/html, Size: 5270 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Publish to html issue
  2013-03-16 23:12 Publish to html issue Igor Kupczyński
@ 2013-03-17  0:42 ` Jay Kerns
  2013-03-17  8:14   ` Igor Kupczyński
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Kerns @ 2013-03-17  0:42 UTC (permalink / raw)
  To: Igor Kupczyński; +Cc: emacs-orgmode

Dear Igor,

On Sat, Mar 16, 2013 at 7:12 PM, Igor Kupczyński <puszczyk@gmail.com> wrote:
> Dear List,
>
> I try to set up a simple org --> html publishing system.
[snip]

>
> (setq org-publish-project-alist
> 		'(("org"
> 		:base-directory "~/tmp/org/"
> 		:publishing-directory "~/tmp/html"
> 		:section-numbers nil
> 		:table-of-contents nil
> 		:publishing-function org-publish-org-to-html
> 		:style "<link rel=\"stylesheet\"
> 		                  href=\"../other/mystyle.css\"
> 		                  type=\"text/css\"/>")))

[snip]

Would you please try keeping everything the same except for the
following change:

:publishing-function org-html-publish-to-html

Then (after restart) open one of the *.org files in your ~/tmp/org
directory and do the keybinding C-c C-e P p.  It should do some
thinking and there should be (at least one) *.html file(s) in
~/tmp/html.

Also, please see the following information on Worg which has lots of
updates/changes that haven't made it to the manual yet:

http://orgmode.org/worg/org-8.0.html

I hope this helps,

-- 
Jay

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Publish to html issue
  2013-03-17  0:42 ` Jay Kerns
@ 2013-03-17  8:14   ` Igor Kupczyński
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Kupczyński @ 2013-03-17  8:14 UTC (permalink / raw)
  To: Jay Kerns; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]

Hi Jay,

Changing from *org-publish-org-to-html* to *org-html-publish-to-html *does
the trick indeed. Thank you very much for this hint :-) I also missed the
8.0 document you've mentioned - it is helpful.

Cheers,
Igor


On Sun, Mar 17, 2013 at 1:42 AM, Jay Kerns <gjkernsysu@gmail.com> wrote:

> Dear Igor,
>
> On Sat, Mar 16, 2013 at 7:12 PM, Igor Kupczyński <puszczyk@gmail.com>
> wrote:
> > Dear List,
> >
> > I try to set up a simple org --> html publishing system.
> [snip]
>
> >
> > (setq org-publish-project-alist
> >               '(("org"
> >               :base-directory "~/tmp/org/"
> >               :publishing-directory "~/tmp/html"
> >               :section-numbers nil
> >               :table-of-contents nil
> >               :publishing-function org-publish-org-to-html
> >               :style "<link rel=\"stylesheet\"
> >                                 href=\"../other/mystyle.css\"
> >                                 type=\"text/css\"/>")))
>
> [snip]
>
> Would you please try keeping everything the same except for the
> following change:
>
> :publishing-function org-html-publish-to-html
>
> Then (after restart) open one of the *.org files in your ~/tmp/org
> directory and do the keybinding C-c C-e P p.  It should do some
> thinking and there should be (at least one) *.html file(s) in
> ~/tmp/html.
>
> Also, please see the following information on Worg which has lots of
> updates/changes that haven't made it to the manual yet:
>
> http://orgmode.org/worg/org-8.0.html
>
> I hope this helps,
>
> --
> Jay
>

[-- Attachment #2: Type: text/html, Size: 2538 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-17  8:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-16 23:12 Publish to html issue Igor Kupczyński
2013-03-17  0:42 ` Jay Kerns
2013-03-17  8:14   ` Igor Kupczyński

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).