Re: [O] Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
From: Nicolas Goaziou <m...@nicolasgoaziou.fr> Subject: Re: Bug: the code(convert the file to objc-mode) cause orgmode export to html file error Date: Tue, 26 Dec 2017 14:35:18 +0100 > Your function doesn't handle buffers not associated to a file. You may > want to try > > (and (stringp buffer-file-name) >(equal "h" (file-name-extension buffer-file-name)) >...) > > Regards, thanks for your help. -- Best regards Peck Chen / 陈泼杨
Re: [O] Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
陈泼杨writes: > > (add-to-list 'magic-mode-alist > `(,(lambda () > (and (equal (file-name-extension buffer-file-name) "h") > (re-search-forward "@\\ " >magic-mode-regexp-match-limit t))) > . objc-mode)) > > > still unable to export org file to html: Your function doesn't handle buffers not associated to a file. You may want to try (and (stringp buffer-file-name) (equal "h" (file-name-extension buffer-file-name)) ...) Regards,
Re: [O] Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
From: Nicolas Goaziou <m...@nicolasgoaziou.fr> Subject: Re: Bug: the code(convert the file to objc-mode) cause orgmode export to html file error Date: Tue, 26 Dec 2017 12:28:47 +0100 > Hello, > > =E9=99=88=E6=B3=BC=E6=9D=A8 <chenpoy...@163.com> writes: > >> .h file use c/c++ mode or objc-mode base on it's content, so there is ema= > cswiki solution there: >> https://www.emacswiki.org/emacs/ObjectiveCMode, so i put the the code in = > my configuration: >> >> ;; header .h add to objc-mode, this cause org unable to export to html fi= > le >> (add-to-list 'magic-mode-alist >> `(,(lambda () >>(and (string=3D (file-name-extension buffer-file-name) "h") >> (re-search-forward "@\\<interface\\>" >>magic-mode-regexp-match-limit t))) >> . objc-mode)) > > Try to use `equal' instead of `string=3D'. > > Regards, > > --=20 > Nicolas Goaziou follow your tips, i change to code, use equal, and the code is: (add-to-list 'magic-mode-alist `(,(lambda () (and (equal (file-name-extension buffer-file-name) "h") (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t))) . objc-mode)) still unable to export org file to html: Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-nondirectory(nil) file-name-extension(nil) (equal (file-name-extension buffer-file-name) "h") (and (equal (file-name-extension buffer-file-name) "h") (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t)) (lambda nil (and (equal (file-name-extension buffer-file-name) "h") (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t)))() #[514 "\300!\203 \207\301!\207" [functionp looking-at] 4 "\n\n(fn RE DUMMY)"]((lambda nil (and (equal (file-name-extension buffer-file-name) "h") (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t))) nil) assoc-default(nil (((lambda nil (and (equal (file-name-extension buffer-file-name) "h") (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t))) . objc-mode) ("^[{[]$" . json-mode)) #[514 "\300!\203 \207\301!\207" [functionp looking-at] 4 "\n\n(fn RE DUMMY)"]) set-auto-mode(t) org-html-final-function(...) org-export-filter-apply-functions(...) org-export-as(html nil nil nil (:output-file "note.html")) org-export-to-file(html "note.html" nil nil nil nil nil) org-html-export-to-html(nil nil nil nil) org-export-dispatch(nil) funcall-interactively(org-export-dispatch nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) -- Best regards Peck Chen / 陈泼杨
Re: [O] Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
Hello, 陈泼杨writes: > .h file use c/c++ mode or objc-mode base on it's content, so there is > emacswiki solution there: > https://www.emacswiki.org/emacs/ObjectiveCMode, so i put the the code in my > configuration: > > ;; header .h add to objc-mode, this cause org unable to export to html file > (add-to-list 'magic-mode-alist >`(,(lambda () > (and (string= (file-name-extension buffer-file-name) "h") > (re-search-forward "@\\ " > magic-mode-regexp-match-limit t))) > . objc-mode)) Try to use `equal' instead of `string='. Regards, -- Nicolas Goaziou
[O] Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
.h file use c/c++ mode or objc-mode base on it's content, so there is emacswiki solution there: https://www.emacswiki.org/emacs/ObjectiveCMode, so i put the the code in my configuration: ;; header .h add to objc-mode, this cause org unable to export to html file (add-to-list 'magic-mode-alist `(,(lambda () (and (string= (file-name-extension buffer-file-name) "h") (re-search-forward "@\\" magic-mode-regexp-match-limit t))) . objc-mode)) i turn on debug-on-error options:(setq debug-on-error t), and export org file to html by typing: C-c C-e h h, and there is error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-nondirectory(nil) file-name-extension(nil) (string= (file-name-extension buffer-file-name) "h") (and (string= (file-name-extension buffer-file-name) "h") (re-search-forward "@\\ " magic-mode-regexp-match-limit t)) (lambda nil (and (string= (file-name-extension buffer-file-name) "h") (re-search-forward "@\\ " magic-mode-regexp-match-limit t)))() #[514 "\300!\203 \207\301!\207" [functionp looking-at] 4 "\n\n(fn RE DUMMY)"]((lambda nil (and (string= (file-name-extension buffer-file-name) "h") (re-search-forward "@\\ " magic-mode-regexp-match-limit t))) nil) assoc-default(nil (((lambda nil (and (string= (file-name-extension buffer-file-name) "h") (re-search-forward "@\\ " magic-mode-regexp-match-limit t))) . objc-mode) ("^[{[]$" . json-mode)) #[514 "\300!\203 \207\301!\207" [functionp looking-at] 4 "\n\n(fn RE DUMMY)"]) set-auto-mode(t) org-html-final-function(...) ;; some long text i delete to make the mail clean org-export-filter-apply-functions(...) ;; some long text i delete to make the mail clean org-export-as(html nil nil nil (:output-file "study.html")) org-export-to-file(html "study.html" nil nil nil nil nil) org-html-export-to-html(nil nil nil nil) org-export-dispatch(nil) funcall-interactively(org-export-dispatch nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) may be it cause org file unable to convert to other format files too. Emacs : GNU Emacs 25.3.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2017-09-13 Package: Org mode version 9.1.5 (9.1.5-1-gb3ddb0-elpa @ /Users/peck/.emacs.d/elpa/org-20171225/) current state: == (setq org-hide-leading-stars t org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-log-done t org-confirm-shell-link-function 'yes-or-no-p org-agenda-custom-commands '(("h" "Daily habits" ((agenda "")) ((org-agenda-show-log t) (org-agenda-ndays-to-span 7) (org-agenda-log-mode-items (quote (state))) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote notregexp) ":DAILY:"))) ) ) ("w" . "Task schedule") ("wa" "Important and urgent task" tags-todo "+PRIORITY=\"A\"") ("wb" "Important but not urgent task" tags-todo "-Weekly-Monthly-Daily+PRIORITY=\"B\"") ("wc" "Unimportant and not urgent task" tags-todo "+PRIORITY=\"C\"") ("p" . "Project schedule") ("pw" tags-todo "PROJECT+WORK+CATEGORY=\"c/c++/objc\"") ("pl" tags-todo "PROJECT+DREAM+CATEGORY=\"peckchen\"") ("W" "Weekly Review" ((stuck "") (tags-todo "PROJECT" org-after-todo-state-change-hook '(org-clock-out-if-current) 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-font-lock-set-keywords-hook '(doom-org-custom-fontification) org-mode-hook '((lambda nil (org-bullets-mode 1)) (lambda nil (company-mode) (local-set-key "w" (quote org-pomodoro))) #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [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-fontify-done-headline t
[Orgmode] Export to html
Aloha all, On the bus this morning I was able to find out a bit more about problems with html export. Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git bisect says: 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e Author: Tom Breton (Tehom) te...@panix.com Date: Mon May 17 18:17:38 2010 -0400 Moved to new branch Prior to this commit file links are exported like this: a href=index.pdffile:index.pdf/a After the commit, file links are exported like this: a href=file:index.pdfindex.pdf/a I was a bit surprised at the git bisect result because I understood Tom Breton (Tehom) to be working on a testing framework, rather than html export. So, I ran through git bisect a second time and got identical results. I hope I've understood the procedure correctly and that this information is useful. At this point, I'm in way over my head and won't be able to do more without specific instructions. I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on the master branch to make my exporting and publishing setup work as expected. All the best, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to html
Thomas S. Dye t...@tsdye.com wrote: Aloha all, On the bus this morning I was able to find out a bit more about problems with html export. Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git bisect says: 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e Author: Tom Breton (Tehom) te...@panix.com Date: Mon May 17 18:17:38 2010 -0400 Moved to new branch Prior to this commit file links are exported like this: a href=index.pdffile:index.pdf/a After the commit, file links are exported like this: a href=file:index.pdfindex.pdf/a I was a bit surprised at the git bisect result because I understood Tom Breton (Tehom) to be working on a testing framework, rather than html export. So, I ran through git bisect a second time and got identical results. I hope I've understood the procedure correctly and that this information is useful. At this point, I'm in way over my head and won't be able to do more without specific instructions. I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on the master branch to make my exporting and publishing setup work as expected. Tom, I can't reproduce the busted link. With more-or-less-current Org-mode (version 6.36trans (release_6.36.102.g67b5)), the link looks like this: a href=foo.pdffoo.pdf/a Reverting the commit you identified (the revert was not clean: I had to resolve a merge conflict by hand - a dicey proposition, particularly in this situation where I have no idea what the patch is trying to do) gives me: a href=foo.pdffile:foo.pdf/a That's with your minimal.emacs for the other problem you've identified (changed to produce html of course). So it looks like the patch cleaned up the link name in this case. Nick PS. I also looked at the commit: I gave up on figuring it out in any reasonable time, but I must say the commit comment is no help. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to html
Thanks Nick, Sebastian Rose thinks this is fixed now. I haven't had time to pull the latest org-mode, but hope to do so soon. Apologies if my adventure with git bisect led you into dicey territory. As always, I appreciate the benefit of your experience. All the best, Tom On May 27, 2010, at 11:30 AM, Nick Dokos wrote: Thomas S. Dye t...@tsdye.com wrote: Aloha all, On the bus this morning I was able to find out a bit more about problems with html export. Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git bisect says: 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e Author: Tom Breton (Tehom) te...@panix.com Date: Mon May 17 18:17:38 2010 -0400 Moved to new branch Prior to this commit file links are exported like this: a href=index.pdffile:index.pdf/a After the commit, file links are exported like this: a href=file:index.pdfindex.pdf/a I was a bit surprised at the git bisect result because I understood Tom Breton (Tehom) to be working on a testing framework, rather than html export. So, I ran through git bisect a second time and got identical results. I hope I've understood the procedure correctly and that this information is useful. At this point, I'm in way over my head and won't be able to do more without specific instructions. I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on the master branch to make my exporting and publishing setup work as expected. Tom, I can't reproduce the busted link. With more-or-less-current Org-mode (version 6.36trans (release_6.36.102.g67b5)), the link looks like this: a href=foo.pdffoo.pdf/a Reverting the commit you identified (the revert was not clean: I had to resolve a merge conflict by hand - a dicey proposition, particularly in this situation where I have no idea what the patch is trying to do) gives me: a href=foo.pdffile:foo.pdf/a That's with your minimal.emacs for the other problem you've identified (changed to produce html of course). So it looks like the patch cleaned up the link name in this case. Nick PS. I also looked at the commit: I gave up on figuring it out in any reasonable time, but I must say the commit comment is no help. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to html
Nick Dokos nicholas.do...@hp.com writes: Thomas S. Dye t...@tsdye.com wrote: Aloha all, On the bus this morning I was able to find out a bit more about problems with html export. Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git bisect says: 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e Author: Tom Breton (Tehom) te...@panix.com Date: Mon May 17 18:17:38 2010 -0400 Moved to new branch Prior to this commit file links are exported like this: a href=index.pdffile:index.pdf/a After the commit, file links are exported like this: a href=file:index.pdfindex.pdf/a I was a bit surprised at the git bisect result because I understood Tom Breton (Tehom) to be working on a testing framework, rather than html export. So, I ran through git bisect a second time and got identical results. I hope I've understood the procedure correctly and that this information is useful. At this point, I'm in way over my head and won't be able to do more without specific instructions. I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on the master branch to make my exporting and publishing setup work as expected. In the current Org-mode's version this should be fixed. Carsten pushed a fix yesterday. Tom, I can't reproduce the busted link. With more-or-less-current Org-mode (version 6.36trans (release_6.36.102.g67b5)), the link looks like this: a href=foo.pdffoo.pdf/a Reverting the commit you identified (the revert was not clean: I had to resolve a merge conflict by hand - a dicey proposition, particularly in this situation where I have no idea what the patch is trying to do) gives me: a href=foo.pdffile:foo.pdf/a That's with your minimal.emacs for the other problem you've identified (changed to produce html of course). So it looks like the patch cleaned up the link name in this case. Nick PS. I also looked at the commit: I gave up on figuring it out in any reasonable time, but I must say the commit comment is no help. Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to html
Aloha Sebastian, Yes, the links are exporting correctly now. Thanks, Tom On May 27, 2010, at 12:35 PM, Sebastian Rose wrote: Nick Dokos nicholas.do...@hp.com writes: Thomas S. Dye t...@tsdye.com wrote: Aloha all, On the bus this morning I was able to find out a bit more about problems with html export. Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git bisect says: 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e Author: Tom Breton (Tehom) te...@panix.com Date: Mon May 17 18:17:38 2010 -0400 Moved to new branch Prior to this commit file links are exported like this: a href=index.pdffile:index.pdf/a After the commit, file links are exported like this: a href=file:index.pdfindex.pdf/a I was a bit surprised at the git bisect result because I understood Tom Breton (Tehom) to be working on a testing framework, rather than html export. So, I ran through git bisect a second time and got identical results. I hope I've understood the procedure correctly and that this information is useful. At this point, I'm in way over my head and won't be able to do more without specific instructions. I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on the master branch to make my exporting and publishing setup work as expected. In the current Org-mode's version this should be fixed. Carsten pushed a fix yesterday. Tom, I can't reproduce the busted link. With more-or-less-current Org-mode (version 6.36trans (release_6.36.102.g67b5)), the link looks like this: a href=foo.pdffoo.pdf/a Reverting the commit you identified (the revert was not clean: I had to resolve a merge conflict by hand - a dicey proposition, particularly in this situation where I have no idea what the patch is trying to do) gives me: a href=foo.pdffile:foo.pdf/a That's with your minimal.emacs for the other problem you've identified (changed to produce html of course). So it looks like the patch cleaned up the link name in this case. Nick PS. I also looked at the commit: I gave up on figuring it out in any reasonable time, but I must say the commit comment is no help. Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Export to HTML open in browser error
Whitespace in the filename isn't being escaped when launching the external browser. Thanks! -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to HTML open in browser error
Hi Russel, I cannot reproduce this. I open a file with emacs test/xx\ yy.org and C-c C-e b opens the corresponding HTML file in the correctly in Firefox. - Carsten On Feb 3, 2010, at 12:10 AM, Russell Adams wrote: Whitespace in the filename isn't being escaped when launching the external browser. Thanks! -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] export table html centered
That is what I am searching for: Is there a markup rule that puts org tables centered on the resulting page when exported as html. Seems that #+BEGIN_CENTER – #+END_CENTER does not do this, marking a table like that solely leads to an error message: progn: Args out of range: 84, 906 henry ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export table html centered
Nick Dokos nicholas.do...@hp.com wrote: ... But if you don't mind using deprecated attributes, and assuming you want *every* table centered, then customizing org-export-table-header-tags ... Correction: that should be org-export-html-table-tag Sorry about that - the BIND version below is correct. should do it. You can also use #+BIND to do it per-file: , | #+BIND: org-export-html-table-tag table align=\center\ border=\2\ cellspacing=\0\ cellpadding=\6\ rules=\groups\ frame=\hsides\ | | foo | bar | | |-+-| | | 1 | 2 | | | 2 | 5 | | | 3 | 10 | ` Thanks, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export table html centered
Hi Henry, Nick, another way would be this: #+STYLE: styletable.center {margin-left:auto; margin- right:auto;}/style * A centered table #+ATTR_HTML: class=center | a | b | c | |---+---+---| | 1 | 2 | 3 | * An uncentered table | a | b | c | |---+---+---| | 1 | 2 | 3 | You can also configure org-export-html-table-tag to add the class=center if you want to center all tables. HTH - Carsten On Aug 16, 2009, at 3:13 AM, Nick Dokos wrote: Nick Dokos nicholas.do...@hp.com wrote: ... But if you don't mind using deprecated attributes, and assuming you want *every* table centered, then customizing org-export-table-header-tags ... Correction: that should be org-export-html-table-tag Sorry about that - the BIND version below is correct. should do it. You can also use #+BIND to do it per-file: , | #+BIND: org-export-html-table-tag table align=\center\ border=\2\ cellspacing=\0\ cellpadding=\6\ rules=\groups\ frame=\hsides\ | | foo | bar | | |-+-| | | 1 | 2 | | | 2 | 5 | | | 3 | 10 | ` Thanks, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html: timestamp-kwd
On Apr 14, 2009, at 1:12 AM, Eraldo Helal wrote: Salve Orgers! When exporting to html my auto-timestamp looks like this: span class=timestamp-kwdCLOSED: /span span class=timestamp2009-04-14 Tue 00:52/spanbr I would rather like to have it like this: span class=timestamp-kwdCLOSED: span class=timestamp2009-04-14 Tue 00:52/span/spanbr In words: I would like timestamp keyword html span to include the timestamp. Reason: This would enable me to move the whole thing to the right side of the headline (float: right). Comments on this idea are welcome :) This is a nice application, but I don't think the kwd span should be extended for this. Instead, I have added a new span around both the keyword and the stamp, with class timestamp-wrapper. HTH - Carsten Greetings and happy orging, Eraldo Ps: If you have any other idea on how to get the same result.. please let me know. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] export to html: timestamp-kwd
Salve Orgers! When exporting to html my auto-timestamp looks like this: span class=timestamp-kwdCLOSED: /span span class=timestamp2009-04-14 Tue 00:52/spanbr I would rather like to have it like this: span class=timestamp-kwdCLOSED: span class=timestamp2009-04-14 Tue 00:52/span/spanbr In words: I would like timestamp keyword html span to include the timestamp. Reason: This would enable me to move the whole thing to the right side of the headline (float: right). Comments on this idea are welcome :) Greetings and happy orging, Eraldo Ps: If you have any other idea on how to get the same result.. please let me know. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export as HTML
On Mar 30, 2009, at 10:55 AM, Sébastien Vauban wrote: Hello, Trying to use free CSS templates for some Web site, I have layout problems with the current export to HTML, as a first `div id=content' is hard-coded into the resulting Web page. Could you remove that line, and its closing tag from `(insert \n/div\n/body\n/html\n))' (in function `org-export-as-html') so that we have a completely naked BODY, that the user can fill at its own freedom via the preamble/postamble? Why and how is this div limiting what you can do? It was recently introduce precisely to aid CSS formatting of the entire body. Sebasian (Rose) and Richard, you helped making getting the outer div into place, would you care to comment? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export as HTML
in org-exp.el, line 3858: (insert div id=\table-of-contents\\n) 2009/3/30 Sébastien Vauban zthjwsqqa...@spammotel.com Hello, Trying to use free CSS templates for some Web site, I have layout problems with the current export to HTML, as a first `div id=content' is hard-coded into the resulting Web page. Could you remove that line, and its closing tag from `(insert \n/div\n/body\n/html\n))' (in function `org-export-as-html') so that we have a completely naked BODY, that the user can fill at its own freedom via the preamble/postamble? Thanks, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export as HTML
2009/3/30 roc lee roc.lee...@gmail.com in org-exp.el, line 3858: (insert div id=\table-of-contents\\n) 2009/3/30 Sébastien Vauban zthjwsqqa...@spammotel.com Hello, Trying to use free CSS templates for some Web site, I have layout problems with the current export to HTML, as a first `div id=content' is hard-coded into the resulting Web page. Could you remove that line, and its closing tag from `(insert \n/div\n/body\n/html\n))' (in function `org-export-as-html') so that we have a completely naked BODY, that the user can fill at its own freedom via the preamble/postamble? Sorry for not throughly understanding your question. In first sight, I think you mean the table-of-contents. There is no such a div on my exported files. The version I am using is 6.17a. Thanks, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Export to html and open bug
Found a small bug. The new export and view in browser function fails if there are spaces in the filename. Org-mode version 6.07b Thanks! -- Russell Adams[EMAIL PROTECTED] PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to html and open bug
On Tue, Nov 18, 2008 at 01:19:01AM +0100, Richard Riley wrote: Couldn't resist trying this in 6.12 (not that I would ever have spaces in an html file name) It seems to work ok in 6.12trans. Then I'll upgrade after I complete my current project. Thanks! -- Russell Adams[EMAIL PROTECTED] PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
On Apr 13, 2008, at 8:48 PM, T. V. Raman wrote: two suggestions: 1) accept paths like ./foo.html as local links. This is now allowed. 2) Augment C-c C-l to react to file: by providing filename completion relative to the working directory. This is hard and therefore not yet implemented. Use `C-u C-c C-l' to insert a file link with completion. - Carsten The emacs binding to the w3m browser does this if you type file: in the minibuffer when prompted for a URL. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten H, this is *such* a good idea, that I will Carsten implement this retroactively into all versions since Carsten ... 2.0 or so? Abracadabra! Done. Carsten Carsten In fact, it has been working just so for a very long Carsten time. Carsten Carsten file:foo.html - href=foo.html file:foo.org - Carsten href=foo.html Carsten Carsten The second line assumes that the org file foo.org Carsten will also be converted to an html file in the Carsten publishing process Carsten Carsten Also, I was mistaken earlier: Carsten Carsten http:foo.html becomes href=http:foo.html and not Carsten href=foo.html Carsten Carsten so this actually cannot be used for a local link. Carsten Carsten So what remains from this exchange? Should we Carsten accept links that look like absolute file names Carsten (including ./foo.html) as equivalent to Carsten file:./foo.html ? Carsten Carsten - Carsten Carsten Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: Carsten I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href=a/b/c.html in the generated html. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Carsten Carsten Can you explain why you think that this is a bad Carsten idea? Educate me! What is wrong with writing Carsten http:foo.html ?? Carsten Carsten - Carsten Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Can you explain why you think that this is a bad idea? Educate me! What is wrong with writing http:foo.html ?? - Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href=a/b/c.html in the generated html. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Carsten Carsten Can you explain why you think that this is a bad Carsten idea? Educate me! What is wrong with writing Carsten http:foo.html ?? Carsten Carsten - Carsten Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
H, this is *such* a good idea, that I will implement this retroactively into all versions since ... 2.0 or so? Abracadabra! Done. In fact, it has been working just so for a very long time. file:foo.html - href=foo.html file:foo.org- href=foo.html The second line assumes that the org file foo.org will also be converted to an html file in the publishing process Also, I was mistaken earlier: http:foo.html becomes href=http:foo.html and not href=foo.html so this actually cannot be used for a local link. So what remains from this exchange? Should we accept links that look like absolute file names (including ./foo.html) as equivalent to file:./foo.html ? - Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href=a/b/c.html in the generated html. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Carsten Carsten Can you explain why you think that this is a bad Carsten idea? Educate me! What is wrong with writing Carsten http:foo.html ?? Carsten Carsten - Carsten Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
two suggestions: 1) accept paths like ./foo.html as local links. 2) Augment C-c C-l to react to file: by providing filename completion relative to the working directory. The emacs binding to the w3m browser does this if you type file: in the minibuffer when prompted for a URL. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten H, this is *such* a good idea, that I will Carsten implement this retroactively into all versions since Carsten ... 2.0 or so? Abracadabra! Done. Carsten Carsten In fact, it has been working just so for a very long Carsten time. Carsten Carsten file:foo.html - href=foo.html file:foo.org - Carsten href=foo.html Carsten Carsten The second line assumes that the org file foo.org Carsten will also be converted to an html file in the Carsten publishing process Carsten Carsten Also, I was mistaken earlier: Carsten Carsten http:foo.html becomes href=http:foo.html and not Carsten href=foo.html Carsten Carsten so this actually cannot be used for a local link. Carsten Carsten So what remains from this exchange? Should we Carsten accept links that look like absolute file names Carsten (including ./foo.html) as equivalent to Carsten file:./foo.html ? Carsten Carsten - Carsten Carsten Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: Carsten I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href=a/b/c.html in the generated html. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Carsten Carsten Can you explain why you think that this is a bad Carsten idea? Educate me! What is wrong with writing Carsten http:foo.html ?? Carsten Carsten - Carsten Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
Hi Raman, On Apr 13, 2008, at 8:48 PM, T. V. Raman wrote: two suggestions: 1) accept paths like ./foo.html as local links. I will look into this. The problem is the system dependence of file names, so I am not sure what a good solution would be that would work on Windows as well as on Unix. 2) Augment C-c C-l to react to file: by providing filename completion relative to the working directory. Hmm, that is difficult, but thanks for the pointer, maybe we can steel some code. For now, if you use `C-u C-c C-l', you get file completion, and the result will be a file: link with a relative path (unless you enter a path starting with /). Even if you find the file with ../../../some/path, it will still be inserted as a relative link. - Carsten The emacs binding to the w3m browser does this if you type file: in the minibuffer when prompted for a URL. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten H, this is *such* a good idea, that I will Carsten implement this retroactively into all versions since Carsten ... 2.0 or so? Abracadabra! Done. Carsten Carsten In fact, it has been working just so for a very long Carsten time. Carsten Carsten file:foo.html - href=foo.html file:foo.org - Carsten href=foo.html Carsten Carsten The second line assumes that the org file foo.org Carsten will also be converted to an html file in the Carsten publishing process Carsten Carsten Also, I was mistaken earlier: Carsten Carsten http:foo.html becomes href=http:foo.html and not Carsten href=foo.html Carsten Carsten so this actually cannot be used for a local link. Carsten Carsten So what remains from this exchange? Should we Carsten accept links that look like absolute file names Carsten (including ./foo.html) as equivalent to Carsten file:./foo.html ? Carsten Carsten - Carsten Carsten Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: Carsten I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href=a/b/c.html in the generated html. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Carsten Carsten Can you explain why you think that this is a bad Carsten idea? Educate me! What is wrong with writing Carsten http:foo.html ?? Carsten Carsten - Carsten Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
On Apr 13, 2008, at 10:32 PM, T. V. Raman wrote: file:// urls are already designed to be platform independent. So an org file should never carry in it a path like a\\b\\c.html -- we should always use a/b/c.html since that's the syntax used by relative URLs. Yes, but while an Org file is still an Org file, the same links function is links to open the corresponding file in Emacs, and my fear is that this can lead to conflicts. Anyway, this is for the windows people to complain about and to propose solutions... :-) - Carsten Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten Hi Raman, On Apr 13, 2008, at 8:48 PM, T. V. Raman Carsten wrote: Carsten two suggestions: 1) accept paths like ./foo.html as local links. Carsten Carsten I will look into this. The problem is the system Carsten dependence of file names, so I am not sure what a Carsten good solution would be that would work on Windows as Carsten well as on Unix. Carsten 2) Augment C-c C-l to react to file: by providing filename completion relative to the working directory. Carsten Carsten Hmm, that is difficult, but thanks for the pointer, Carsten maybe we can steel some code. Carsten Carsten For now, if you use `C-u C-c C-l', you get file Carsten completion, and the result will be a file: link Carsten with a relative path (unless you enter a path Carsten starting with /). Even if you find the file with Carsten ../../../some/path, it will still be inserted as a Carsten relative link. Carsten Carsten - Carsten Carsten The emacs binding to the w3m browser does this if you type file: in the minibuffer when prompted for a URL. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten H, this is *such* a good idea, that I will Carsten implement this retroactively into all versions since Carsten ... 2.0 or so? Abracadabra! Done. Carsten Carsten In fact, it has been working just so for a very long Carsten time. Carsten Carsten file:foo.html - href=foo.html file:foo.org - Carsten href=foo.html Carsten Carsten The second line assumes that the org file foo.org Carsten will also be converted to an html file in the Carsten publishing process Carsten Carsten Also, I was mistaken earlier: Carsten Carsten http:foo.html becomes href=http:foo.html and not Carsten href=foo.html Carsten Carsten so this actually cannot be used for a local link. Carsten Carsten So what remains from this exchange? Should we Carsten accept links that look like absolute file names Carsten (including ./foo.html) as equivalent to Carsten file:./foo.html ? Carsten Carsten - Carsten Carsten Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: Carsten I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href=a/b/c.html in the generated html. Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. Carsten Carsten Can you explain why you think that this is a bad Carsten idea? Educate me! What is wrong with writing Carsten http:foo.html ?? Carsten Carsten - Carsten Carsten I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor Carsten == Carsten Dominik [EMAIL PROTECTED] writes: Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Carsten Carsten Hi Raman, Carsten Carsten the url goes into the first pair of square brackets, Carsten the description into the second. If you put Carsten something into the first bracket pair that does not Carsten look lie a url, it will be treated as an internal Carsten link. Carsten Carsten Have you tried to use something like Carsten Carsten [[http:foo.html][link to relative url]] Carsten Carsten ? Carsten Carsten - Carsten -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: [EMAIL PROTECTED] PGP:
[Orgmode] export to html and relative links:
Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. -- Best Regards, --raman Email: [EMAIL PROTECTED] WWW:http://emacspeak.sf.net/raman/ AIM:emacspeak GTalk: [EMAIL PROTECTED] PGP:http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC:irc://irc.freenode.net/#emacs ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html and relative links:
On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form a href=#foo.../a this means that it becomes impossible to write hyperlinks that are relative URLs. Hi Raman, the url goes into the first pair of square brackets, the description into the second. If you put something into the first bracket pair that does not look lie a url, it will be treated as an internal link. Have you tried to use something like [[http:foo.html][link to relative url]] ? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html bug?
Fixed (I think), thanks. - Carsten On Aug 25, 2007, at 11:14, Rainer Stengele wrote: Carsten Dominik schrieb: Is this a new bug, did it work before? have you changed your config, for example using org-agenda-skip-function? - Carsten On Aug 25, 2007, at 0:39, Rainer Stengele wrote: Carsten Dominik schrieb: Version 5.06b fixes the bugs mentioned here in the last few hours. http://www.astro.uva.nl/~dominik/Tools/org Thanks for keeping the quality control up! I could not do this without you all. - Carsten C-c a e does not export anything for me. Error message is: before first heading. Rainer now with 5.06e export works again for the whole buffer (C-c C-e b). For C-c C-e v b it stops with this error message: :END: line missing How can I find where that line is missing? Rainer ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Carsten Dominik Sterrenkundig Instituut Anton Pannekoek Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] export to html bug?
Carsten Dominik schrieb: Is this a new bug, did it work before? have you changed your config, for example using org-agenda-skip-function? - Carsten On Aug 25, 2007, at 0:39, Rainer Stengele wrote: Carsten Dominik schrieb: Version 5.06b fixes the bugs mentioned here in the last few hours. http://www.astro.uva.nl/~dominik/Tools/org Thanks for keeping the quality control up! I could not do this without you all. - Carsten C-c a e does not export anything for me. Error message is: before first heading. Rainer now with 5.06e export works again for the whole buffer (C-c C-e b). For C-c C-e v b it stops with this error message: :END: line missing How can I find where that line is missing? Rainer ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html bug?
That must have been broken ever since properties were introduced. This happen when a property drawer is folded, but the first line is visible when you call an export command for visible portion. Will be fixed in the next release, hopefully. - Carsten On Aug 25, 2007, at 11:14, Rainer Stengele wrote: Carsten Dominik schrieb: Is this a new bug, did it work before? have you changed your config, for example using org-agenda-skip-function? - Carsten On Aug 25, 2007, at 0:39, Rainer Stengele wrote: Carsten Dominik schrieb: Version 5.06b fixes the bugs mentioned here in the last few hours. http://www.astro.uva.nl/~dominik/Tools/org Thanks for keeping the quality control up! I could not do this without you all. - Carsten C-c a e does not export anything for me. Error message is: before first heading. Rainer now with 5.06e export works again for the whole buffer (C-c C-e b). For C-c C-e v b it stops with this error message: :END: line missing How can I find where that line is missing? Rainer ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Carsten Dominik Sterrenkundig Instituut Anton Pannekoek Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] export to html
I understood that a table can be exported to HTML. I can not find how to do this. How do I do this? -- Cecil Westerhof [EMAIL PROTECTED] ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] export to html
On Jun 16, 2007, at 8:14, Cecil Westerhof wrote: I understood that a table can be exported to HTML. I can not find how to do this. How do I do this? http://staff.science.uva.nl/~dominik/Tools/org/org.html#Exporting - Carsten ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode