[O] error when publishing
Hi, With org-mode 8.0.7 (emacs 23.4.1), I have some problems to publish a project. I have this error : "Publishing file /home/xxx/site/org/index.org using `org-publish-org-to-html' find-buffer-visiting: Wrong type argument: stringp, (:base-directory "~/site/org/" :base-extension "org" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-org-to-html ...)" I also had once this error : "org-publish-file: Symbol's function definition is void: org-publish-org-to-html" I have this code into my .emacs : - ;; org-mode publishing (require 'org-publish) (setq org-publish-project-alist '(("org-notes" :base-directory "~/site/org/" :base-extension "org" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-org-to-html :section-numbers nil :table-of-contents nil :export-creator-info nil :export-author-info nil :auto-preamble t ) ("org-static" :base-directory "~/site/org/" :base-extension "css\\|js\\|png\\|jpg\\|pdf\\|mp3\\|ogg" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-attachment ) ("site" :components ("org-notes" "org-static" --- Any ideas ? pw
Re: [O] error when publishing
Le 13/09/2013 17:26, Nicolas Goaziou a écrit : You shouldn't require "org-publish", which belongs to the old framework. I think you can skip this part altogether. If it fails, try requiring "ox-publish" instead. Thanks for your answer. If I remove "require 'org-publish)" I have another error : "org-publish-file: Symbol's function definition is void: org-publish-org-to-html" Adding "(require 'ox-publish)" doesn't change anything. pw
Re: [O] error when publishing
I'm found myself the solution to my question which consiste in replacing "org-publish-org-to-html" by "org-html-publish-to-html" into my .emacs. It's a shame that a lot of very good tutorials like Sebastian Rose's publishing one are a little bit outdated and, so, make people getting wrong. pw
[O] error when publishing
Hi, With org-mode 8.0.7 (emacs 23.4.1), I have some problems to publish a project. I have this error : "Publishing file /home/xxx/site/org/index.org using `org-publish-org-to-html' find-buffer-visiting: Wrong type argument: stringp, (:base-directory "~/site/org/" :base-extension "org" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-org-to-html ...)" I also had once this error : "org-publish-file: Symbol's function definition is void: org-publish-org-to-html" I have this code into my .emacs : - ;; org-mode publishing (require 'org-publish) (setq org-publish-project-alist '(("org-notes" :base-directory "~/site/org/" :base-extension "org" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-org-to-html :section-numbers nil :table-of-contents nil :export-creator-info nil :export-author-info nil :auto-preamble t ) ("org-static" :base-directory "~/site/org/" :base-extension "css\\|js\\|png\\|jpg\\|pdf\\|mp3\\|ogg" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-attachment ) ("site" :components ("org-notes" "org-static" --- Any ideas ? pw
[O] configuration's issues for publishing
Hi, I'm a new user of org-mode and I'm a little bit confused with configuration's issues. My purpose is to use org-mode in order to publish a website (and spare me the time needed by html editing). I'm not use to org-mode but I do know emacs. At the bottom of this email is my configuration for org-publishing. I putted it into my .emacs. I don't know if it is the right thing to do ? These settings works (html files are created) but the propriety values are not working. For example, I do not want section numbering (:section-numbers nil) or toc (:with-toc nil) but I have both in my html result. I'm wonder why these settings are not working. Moreover, I do not know where is the right place to put this kind of information : into .emacs or inside .org files with #+... format. My last question is the following : where are the documentation string for publishing options ? On the manual it's written : "See the documentation string of these options for details." (http://orgmode.org/manual/Publishing-options.html#Publishing-options) but I cannot find it. I'm looking for a reference with the description of every possible string. Thanks for taking the time to read my newbie questions. pw --- ;; org-mode publishing (setq org-publish-project-alist '(("org-notes" :base-directory "~/site/org/" :base-extension "org" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-html-publish-to-html :section-numbers nil :with-toc nil :author nil :creator-info nil :export-creator-info nil :export-author-info nil ) ("org-static" :base-directory "~/site/org/" :base-extension "css\\|js\\|png\\|jpg\\|pdf\\|mp3\\|ogg" :publishing-directory "~/site/public_html/" :recursive t :publishing-function org-publish-attachment ) ("site" :components ("org-notes" "org-static" --
[O] css stylesheet
Hi, I want to define the layout of one html file exported from org-mode. I have putted into the org file this lign to appeal the stylesheet : It's works ! But when I look at the html code generated, I can see a bunch of css which I do not want (see below). Why this css code is here and how can I remove it ? pw <!--/*--><![CDATA[/*><!--*/ .title { text-align: center; } .todo { font-family: monospace; color: red; } .done { color: green; } ... #org-div-home-and-up { text-align: right; font-size: 70%; white-space: nowrap; } textarea { overflow-x: auto; } .linenr { font-size: smaller } .code-highlighted { background-color: #00; } .org-info-js_info-navigation { border-style: none; } #org-info-js_console-label { font-size: 10px; font-weight: bold; white-space: nowrap; } .org-info-js_search-highlight { background-color: #00; color: #00; font-weight: bold; } /*]]>*/-->
[O] modify postamble in html export
Hi, I want to have a postamble in html with just the date (and without hours). I already delete other informations in the postamble with these variables into my .emacs : '(org-export-author-info nil) '(org-export-creator-info nil) '(org-html-validation-link nil) Now I have only the date left in the postamble but I want to change the format. The default is : "Created: 2013-09-19 jeu. 14:09" and I want "Last update : 19 sept. 2013" To do this I tried to set this variable : '(org-export-date-timestamp-format "%d %h %y") But it is not working (and I have no idea how to put the "Last update :"). Could you indicate me how to achieve this. An issue is also I don't want to put this date format in all org-mode (I want to keep the default format for task and other stuff). bye pw
Re: [O] modify postamble in html export
You can override the whole thing by re-defining the `org-html-postable' variable. Set it to a function which returns the string you want: (defun my-org-html-postamble () (format "Last update : %s" (format-time-string "%d %b %Y"))) (setq org-html-postamble 'my-org-html-postamble) I didn't test that, but something like that ought to work. Thanks! I tried to paste your code into my .emacs and I received the following error when publishing : "org-html--build-pre/postamble: Wrong number of arguments: (lambda nil (format "Last update : %s" (format-time-string "%d %b %Y"))), 1" I don't know where is the problem. I tried then to do the same by modifying the variable "Org Export HTML Postamble Format". The default format is : '(("en" "Author: %a (%e)\nclass=\"date\">Date: %d\n%c\nclass=\"xhtml-validation\">%v")) So I changed it to (with the idea to change the string format (%s) later if working) : '(("en"Last update: %s")) (which add to my .emacs : '(org-html-postamble-format (quote (("en" "class=\"date\">Last update: %s" But it does not change at all the postamble ""Created: 2013-09-19 jeu. 14:09"". So I'm stuck! pw
Re: [O] modify postamble in html export
Le 21/09/2013 06:23, Eric Abrahamsen a écrit : Whoops, that's what I get for posting untested code... As Nicholas points out the function should take an argument, but in your simplest case you can ignore it: (defun my-org-html-postamble (plist) (format "Last update : %s" (format-time-string "%d %b %Y"))) Thanks. I tried this new code (by pasting it into .emacs). But I have the default postamble in the result. I tried then to achieve the same but by using org-customization which put into .emacs this : '(org-html-postamble t) '(org-html-postamble-format (quote (("en" "Last update : %d" If it was working I would try to modify %d to have a %d %b %Y format. But for now I have only "Last update : " without time...
[O] link inside square bracket
Hi, I would like to insert a link inside square brackets. For example, I want to have : [link]. If I write in org-mode this : [[[http://...][description]]] org-mode formats automatically the link into this : {description}. Org-mode replaces my square brackets by curly ones. How do I avoid this ? pw