emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Bug: using org-publish, `#+OPTIONS title:nil` is invalid


From: lux
Subject: [O] Bug: using org-publish, `#+OPTIONS title:nil` is invalid
Date: Mon, 1 Feb 2016 16:45:31 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

first, I write a org file:

       #+TITLE: Just test
       #+OPTIONS: doc:nil title:nil num:nil

       * h1
         hello world

as you see, I define `title:nil` in #+OPTIONS.

I wan't `title` just display in <title> tag, and don't display in body.

But, I did not take effect after executing `org-publish-project`, the
title 'Just test' still in new HTML file:

<h1 class="title">Just test</h1>

and I using `org-html-export-as-html` don't see it.

the `org-publish-project-alits' as follows:

(setq org-publish-project-alist
      '(("src"
         :base-directory "src"
         :base-extension "org"
         :publishing-directory "html"
         :recursive t
         :publishing-function org-html-publish-to-html
         :headline-levels 4
         :auto-preamble nil)
        ("test-project" :components ("src"))))


Emacs  : GNU Emacs 25.0.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.7)
 of 2016-02-01
Package: Org-mode version 8.3.3 (8.3.3-26-ge92a06-elpa @ /home/lu4nx/.emacs.d/elpa/org-20160125/)

current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-pdf-process '("xelatex %f")
org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
(lambda nil (setq org-latex-pdf-process (quote ("xelatex %f"))) (auto-fill-mode nil) (setq truncate-lines nil) (set-face-attribute (quote org-level-1) nil :height 1.5 :bold nil) (set-face-attribute (quote org-level-2) nil :height 1.4 :bold nil) (set-face-attribute (quote org-level-3) nil :height 1.3 :bold nil) (set-face-attribute (quote org-level-4) nil :height 1.2 :bold nil) (setq org-src-fontify-natively t) (if window-system (progn (org-display-inline-images))) (org-indent-mode))
                 )
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function 'org-html-format-headline-default-function org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )




reply via email to

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