From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KLiPJnM3zmCTYgEAgWs5BA (envelope-from ) for ; Sat, 19 Jun 2021 20:29:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iFlMInM3zmDdGgAAB5/wlQ (envelope-from ) for ; Sat, 19 Jun 2021 18:29:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C761A2425E for ; Sat, 19 Jun 2021 20:29:06 +0200 (CEST) Received: from localhost ([::1]:44968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lufiK-000595-Dx for larch@yhetil.org; Sat, 19 Jun 2021 14:29:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufcY-0001YL-H4 for emacs-orgmode@gnu.org; Sat, 19 Jun 2021 14:23:06 -0400 Received: from p-impout001aa.msg.pkvw.co.charter.net ([47.43.26.132]:60458 helo=p-impout001.msg.pkvw.co.charter.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufcV-0006s7-Tx for emacs-orgmode@gnu.org; Sat, 19 Jun 2021 14:23:05 -0400 Received: from [192.168.24.197] ([72.45.238.146]) by cmsmtp with ESMTP id ufcSlwsNM2uJxufcTl0Tco; Sat, 19 Jun 2021 18:23:01 +0000 X-Authority-Analysis: v=2.4 cv=Z8opoFdA c=1 sm=1 tr=0 ts=60ce3605 a=7QgMgp/broLlOr6k+duwOQ==:117 a=7QgMgp/broLlOr6k+duwOQ==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=NjIK7znJAAAA:8 a=IZXko-VkAAAA:8 a=_7qBJ7haAAAA:20 a=WnubTVqVAAAA:8 a=9KwDzvdgAAAA:8 a=t4Q6OGWHkNBJy5z77_sA:9 a=QEXdDO2ut3YA:10 a=nESf7RqEm6AA:10 a=O1c1nmEkCxIQdeELtU9r:22 a=pQlLgLE0qY37jXIg0yPI:22 a=B2whi3dRYPdBTrPFRyn6:22 a=2EONfesh1i7OTIVmns5U:22 Subject: Re: publishing: no default publishing function, or symbol is not defined References: <44f768b5-bade-e07a-29a7-15999eefd148@binghamton.edu> <87v96a81h4.fsf@posteo.net> To: orgmode Openpgp: preference=signencrypt Autocrypt: addr=cryan@binghamton.edu; prefer-encrypt=mutual; keydata= mQGiBD/k4bcRBACmQOZzbo+dfwxAbDra7lKFxYx3q8vz+qoucx5g3s3AahcOvneemvFjmne+ CMoPvUqOt0fA5GNiR6aIN45mtGveXyi0DXgxlAiLKMsdAg8cVKgMeFBY3dhF8okkuAKyN8nJ z6WzF2TY/8axi4PpqtAAXrjDecm1x4kZ1SVh/bFBywCg6gIVov4hywSDQu3LACL80aNONOED /A0S6jnOmcR4mYx4ZK8jn3YEDM0HqB5A1k2HnjNFxcFqW4KlSMWtDZbjrakAr98DvKLIheRe qdUakbMwkcF3NCsernQKb+xgPkR8WyglaFA1HxIJz5Sa9MZtA8ONYqt3x9Fx2kGpI6csdMPm IdwcF65ZwcRjyO1Cz6GzNlNoC25TA/4w+/eSUf0Rfm4YNc2gQcTx9XZWSHg2BmYTBwEOeHQS KobcVpqh+nh2eIO3FxvHn+F8J5mydOcp8cFQNrgy7lt+hVlS2HkztyYszcMD4ROyjwDExsbL sHxQjx8Oc0pAWIDWkteTeWWoKbF5D6tafDgIkNcWJHeg4IJIM1uohN04aLRBQ2hyaXN0b3Bo ZXIgVy4gUnlhbiAoR251UEcga2V5IDEyLTIwLTIwMDMpIDxjcnlhbkBiaW5naGFtdG9uLmVk dT6IXwQTEQIAHwUCP+ThtwIbAwcLCQgHAwIBAxUCAwMWAgECHgECF4AACgkQL3KcV1Z6JNgp 5QCgxo31b6PQ67NM5JkhzO0FGC27absAniTkQoCXYrZeDHu/Mm2bn7ZFQPzhuQENBD/k4coQ BADvkNegrYDhRkBerU28i2mMCl9jds21V89rykUfJdQqku8nfsAF1gPxlzJuT3H5MDDiL0RO LxwKZFN0yHxjNiiprujsyMeO/f2rcJ//Ixzc5eLlJ7RVgm+du6hGP+k8YMMycSaloz9WzNR1 pb62h0GP/8cTE6WGBs+XWtoKQb8NMwADBgP9GzWPc/AdTXBwZIWsni5lTI6Rg5XQoa+pP6R7 7gyGEjhk/DkV2dhzMAXBxPDvE8mW96Gen0+BQWzDv9OtBV9a1CFfFYZNideJgDej27MX6RXp n2FkbNA7l7wzKILRxQXqGPewHABNZroJe4So8WObQO+okO/4N1wTOil8bvN6C0KISQQYEQIA CQUCP+ThygIbDAAKCRAvcpxXVnok2Je2AKCiFMcnx+VvDKoHhyGhqqGFjhZN6QCeLe7EXSnI wGxaox2Ye2l1sYKHlMw= Message-ID: <69e30ec3-e7f6-47c9-d469-ae5aa29d96f9@binghamton.edu> Date: Sat, 19 Jun 2021 14:23:00 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <87v96a81h4.fsf@posteo.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfHPrfJEbAJeM81mcHRKs4AyuFOWPSAAvztow08iuG7dt5G4ooH9+VNUTinHHejix/tVpiNqL336/Ewu2JnmEhY8FvJiPGmiuQ0GKyDCx+5awhRjgP9LF uPdMsWZHih8Pcvmsv2OAc5l4MDpdDV1wwOyKcYjydiclC7XR7JcEXxT5PfD1jeGLGUJnMz8qU2Z+fKuhGSmu+NLtpmxDB3cDmEI= Received-SPF: softfail client-ip=47.43.26.132; envelope-from=cryan@binghamton.edu; helo=p-impout001.msg.pkvw.co.charter.net X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, NICE_REPLY_A=-0.202, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_SBL_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Christopher W. Ryan" From: "Christopher W. Ryan" via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624127347; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:openpgp:openpgp:autocrypt:autocrypt; bh=6oVPK4GtG7JVsI39wwE6yxkTReuGvPfCScYHZLAZ+bE=; b=jCToB2bKJ5c3DhSQNJOwA4XZYv7jzvsLZibjb35klWcbXXUNbPSHJaeVlb3kyGFjgFKgFY i1mfZSGg7EcR+IFMqZxZmHoOUdRYwjfz50Y5Go1M5mU2/fORnfNftBecRr/a6lCkkGIEA7 Wbyapy4Z2E2lFY74BvEKcJccPhFWVeKj3Z0BKH/IpzJWtVPdq0se0f4iYQk3InURnQHIlf 8qF75PCAgmYktv+q/r4arvfmKUfTQTVhe/QPTA8le5crTxzDgOrWQKJvDLbTVXaqiYTBKR P7700S7x6F2V+Tob3u66ORv7TwZyuXOK5zICioIIonbGbPvIHPFt9sj79w68dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624127347; a=rsa-sha256; cv=none; b=VOUMqvr4CmysHdG6NRR74M6VAacG/Lyh8eYyMRWLwtRWr4vRAM5TGeYCnWJ9pQujQOh+WV mECLt3YhgX3mVPBhBVPbQ87Tx+s25XEPBEcyS7Rkf0uy82KQ+01/NMB8jq/vXVdabtzJOk ls/UJplQUmV9Vgbmbq10gW2qllIfDIOnYNb2cn4w3IPb+p5Qt1RQ/8H8i8VdDzn0g6juM6 oHtO76swODR8xeB/LLAKp1x147fXbu2yAyZBgrhmbVxzT7TcA5bvJ3BXdROxnmlO4B8j+g HrybuhPYfyDDFYt0/q2QJnGmBFuX8Ksz7CXwaXvrc8FpFRmMpfOWyRNfDEs+xg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C761A2425E X-Spam-Score: -2.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: 47YBLvEEcDyX Ah, I see I wrote the :publishing-function statement incorrectly. Thanks to both of you. But is there not a default publishing action, that requires no explicit :publishing-function statement? This part of the documentation says there is: https://orgmode.org/manual/Publishing-action.html#Publishing-action But I gave this a try: (setq org-publish-project-alist '(("CaseInvestigationTrainingAndReferenceManual" :base-directory "E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/" :publishing-directory "E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/StagingArea" :publishing-function org-html-publish-to-html))) and I got the expected output in the expected place: a file called "E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/StagingArea/WorkAreaForIndexingTrainingAndReferenceManual-7-June.html However, when I add this line: :makeindex 1 so with a non-null value of :makeindex The output consists *only* of the index: a file called theindex.html. It looks like the expected index to the document, but the document itself is not generated. How do I get both? Thanks. --Chris Juan Manuel Macías wrote: > 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 > `org-html-publish-to-html'. > > 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: > https://gitlab.com/maciaschain/lunotipia > > And this is the org-publish configuration for the blog: > > ;; lunotipia > ("lunotipia-notes" > ;; 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 > ("lunotipia-static" > :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 `org-blog-sitemap-format-entry'." > (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" > "\n#+begin_archive\n" > (mapconcat (lambda (li) > (format "@@html:
  • @@ %s @@html:
  • @@" (car li))) > (seq-filter #'car (cdr list)) > "\n") > "\n#+end_archive\n" > "\n#+begin_export html" > "\n
    " > "\n
    " > "\n

    " > "\nAcerca de..." > "\n

    " > "\n

    " > "\nRSS" > "\n

    " > "\n#+end_export\n")) > > Best regards, > > Juan Manuel >