[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: publishing: no default publishing function, or symbol is not defined

From: Juan Manuel Macías
Subject: Re: publishing: no default publishing function, or symbol is not defined
Date: Sat, 19 Jun 2021 12:48:07 +0000

Hi Christopher,

Christopher W. Ryan" via "General discussions about Org-mode. writes:

> I'm making my first foray into publishing a project. I'm running GNU
> Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13, on Windows 10.
> I've defined a single project, just to try it out and learn.

As Christian Moe said, the function you need is

In case it helps, I keep this blog about typography and TeX (in spanish),
made with org-publish: https://lunotipia.juanmanuelmacias.com/index.html

The blog's public repository is at:

And this is the org-publish configuration for the blog:

;; lunotipia
 ;; Org files
 :base-directory "~/Git/lunotipia/org/"
 :base-extension "org"
 ;; HTML files
 :publishing-directory "~/Git/lunotipia/public/"
 :publishing-function org-html-publish-to-html
 :recursive t
 :auto-sitemap t
 :sitemap-title "Textos publicados"
 :sitemap-function my-sitemap-function-lunotipia
 :sitemap-filename "entradas.org"
 :sitemap-style list
 :sitemap-sort-files anti-chronologically
 :exclude "org-rss\\|theindex\\|acerca-de\.org"
 :makeindex t
 :html-postamble mi-postamble)

;; static files
 :base-directory "~/Git/lunotipia/org/images/"
 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
 :publishing-directory "~/Git/lunotipia/public/images/"
 :recursive t
 :publishing-function org-publish-attachment)

And my custom sitemap function:

(defun my-sitemap-function-lunotipia (title list)
  "Return sitemap using TITLE and LIST returned by 
  (concat "#+TITLE: " title "\n\n"
          "#+SETUPFILE:" "~/Git/lunotipia/html-lunotipia.setup"
          "\n#+SETUPFILE:" "~/Git/gnutas/macros-gnutas.setup"
          "\n#+AUTHOR:" "Juan Manuel Macías"
          "\n#+LANGUAGE:" "es"
          (mapconcat (lambda (li)
                       (format "@@html:<li>@@ %s @@html:</li>@@" (car li)))
                     (seq-filter #'car (cdr list))
          "\n#+begin_export html"
          "\n<hr />"
          "\n<a href=\"acerca-de.html\">Acerca de...</a>"

Best regards,

Juan Manuel 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]