* Bug: customizing HTML export postamble [8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/)]
@ 2014-10-08 18:33 Gitsis Christos
2014-10-08 18:45 ` Gitsis Christos
0 siblings, 1 reply; 3+ messages in thread
From: Gitsis Christos @ 2014-10-08 18:33 UTC (permalink / raw
To: emacs-orgmode
Hello,
I was trying to translate the postamble in HTML export in order to
translate it in greek and I faced multiple issues.
1) Setting org-html-postamble to auto generates a postamble different
than setting it to t and leaving org-html-postamble-format to
default. The differences are a) the date string is "Created:" in the
first case and "Date:" in the second, and b) most importantly, in the
second case the Date does not show up at all
2) I added a new language to org-html-postamble-format so that in the
end it looked like
(("el" "<p class=\"author\">Συγγραφέας: %a (%e)</p>
<p class=\"date\">Ημερομηνία: %d</p>
<p class=\"creator\">%c</p>") ("en" "<p class=\"author\">Author: %a (%e)</p>
<p class=\"date\">Date: %d</p>
<p class=\"creator\">%c</p>
<p class=\"validation\">%v</p>"))
I set org-export-default-language to "el" and I got unexpected results.
Strangely, I observed that the postamble of my index.html page was
translated in greek, but
a) the Date was missing (naturally)
b) the author field was different (strangely, it was my linux
username@my hostname, but ok, I guess, since my index.org is
automatically generated and I have no author set for it -- how do I
set it by the way?)
and c) the rest of the pages were in english, and with
org-html-postamble = t ("Date:" + empty date)
------------------------------------------------------------------------
Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
of 2014-09-12 on gandalf
Package: Org-mode version 8.2.7c (8.2.7c-61-g4b9146-elpa @
/home/christos/.emacs.d/elpa/org-20140908/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-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 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-export-date-timestamp-format "%Y-%m-%d"
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-from-is-user-regexp nil
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-export-copy-to-kill-ring t
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)
org-export-with-tags 'not-in-toc
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-hide-inline-tasks
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-export-with-drawers nil
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function 'ignore
org-babel-load-languages '((ditaa . t))
org-html-format-inlinetask-function 'ignore
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-publish-project-alist '(("website" :components ("website-content"))
("website-content" :language "el" :base-directory
"~/org/chessblog/" :base-extension "org" :publishing-directory
"~/public_html/chessblog/" :recursive t
:publishing-function org-html-publish-to-html :export-with-tags nil
:headline-levels 3 :with-toc t :section-numbers nil
:auto-sitemap t :sitemap-filename "index.org" :sitemap-title
"Σκακιστική Προπόνηση" :timestamp t :exclude-tags
("noexport" "todo") :exclude "data.org"
:html-head-include-default-style nil
:html-html5-fancy t :html-link-use-abs-url t :html-link-home "."
:html-head
"<link rel=\"stylesheet\"
href=\"static/css/pure-release-0.5.0/pure.css\" type=\"text/css\">
<link rel=\"stylesheet\" href=\"static/css/org.css\"
type=\"text/css\"/> <link rel=\"stylesheet\"
href=\"static/css/worg.css\" type=\"text/css\"/> <link
rel=\"stylesheet\" href=\"static/css/solarized-light.css\"
type=\"text/css\"/>")
)
)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: customizing HTML export postamble [8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/)]
2014-10-08 18:33 Bug: customizing HTML export postamble [8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/)] Gitsis Christos
@ 2014-10-08 18:45 ` Gitsis Christos
2014-10-08 21:54 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: Gitsis Christos @ 2014-10-08 18:45 UTC (permalink / raw
To: emacs-orgmode
Hello,
I want to correct a mistake I had made before, actually a blunder from my part.
I was trying to translate the postamble in HTML export in order to
translate it in greek and I faced an issue.
1) Setting org-html-postamble to auto generates a postamble different
than setting it to t and leaving org-html-postamble-format to
default. The differences are a) the date string is "Created:" in the
first case and "Date:" in the second, and b) most importantly, in the
second case the Date does not show up at all.
2) I would also like to ask about the author field in the postamble of
my index page.
It was different (strangely, it was my linux username@my hostname, but
ok, I guess, since my index.org is
automatically generated and I have no author set for it) How can I set
it by the way?
------------------------------------------------------------------------
Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
of 2014-09-12 on gandalf
Package: Org-mode version 8.2.7c (8.2.7c-61-g4b9146-elpa @
/home/christos/.emacs.d/elpa/org-20140908/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-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 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-export-date-timestamp-format "%Y-%m-%d"
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-from-is-user-regexp nil
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-export-copy-to-kill-ring t
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)
org-export-with-tags 'not-in-toc
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-hide-inline-tasks
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-export-with-drawers nil
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function 'ignore
org-babel-load-languages '((ditaa . t))
org-html-format-inlinetask-function 'ignore
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-publish-project-alist '(("website" :components ("website-content"))
("website-content" :language "el" :base-directory
"~/org/chessblog/" :base-extension "org" :publishing-directory
"~/public_html/chessblog/" :recursive t
:publishing-function org-html-publish-to-html :export-with-tags nil
:headline-levels 3 :with-toc t :section-numbers nil
:auto-sitemap t :sitemap-filename "index.org" :sitemap-title
"Σκακιστική Προπόνηση" :timestamp t :exclude-tags
("noexport" "todo") :exclude "data.org"
:html-head-include-default-style nil
:html-html5-fancy t :html-link-use-abs-url t :html-link-home "."
:html-head
"<link rel=\"stylesheet\"
href=\"static/css/pure-release-0.5.0/pure.css\" type=\"text/css\">
<link rel=\"stylesheet\" href=\"static/css/org.css\"
type=\"text/css\"/> <link rel=\"stylesheet\"
href=\"static/css/worg.css\" type=\"text/css\"/> <link
rel=\"stylesheet\" href=\"static/css/solarized-light.css\"
type=\"text/css\"/>")
)
)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: customizing HTML export postamble [8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/)]
2014-10-08 18:45 ` Gitsis Christos
@ 2014-10-08 21:54 ` Nick Dokos
0 siblings, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2014-10-08 21:54 UTC (permalink / raw
To: emacs-orgmode
Gitsis Christos <cgitsis@gmail.com> writes:
> I was trying to translate the postamble in HTML export in order to
> translate it in greek and I faced an issue.
>
> 1) Setting org-html-postamble to auto generates a postamble different
> than setting it to t and leaving org-html-postamble-format to
> default. The differences are a) the date string is "Created:" in the
> first case and "Date:" in the second, and b) most importantly, in the
> second case the Date does not show up at all.
>
Adding
#+DATE: ....
to your file would fill it in, but it probably should have a default.
> 2) I would also like to ask about the author field in the postamble of
> my index page.
> It was different (strangely, it was my linux username@my hostname, but
> ok, I guess, since my index.org is
> automatically generated and I have no author set for it) How can I set
> it by the way?
>
#+AUTHOR: A.U. Thor
--
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-08 21:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 18:33 Bug: customizing HTML export postamble [8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/)] Gitsis Christos
2014-10-08 18:45 ` Gitsis Christos
2014-10-08 21:54 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.