Re: [Orgmode] Export of latex source to html
Hi Eric Thanks for your comments. I will look into both of them. Cheers, Rainer On Wed, Jul 7, 2010 at 1:17 PM, Eric S Fraga ucec...@ucl.ac.uk wrote: Following up on my own message, one thing to consider is that generating the figure in latex creates a PDF that takes up the whole page but the figure is only a small part of this page. In latex, if I wanted the PDF to include only the tikz figure, I would do the following: --8---cut here---start-8--- \documentclass{article} [...] \usepackage[active,tightpage]{preview} \setlength\PreviewBorder{5pt}% \begin{document} % Define block styles \begin{preview} [... the tikz commands ...] \end{preview} \end{document} --8---cut here---end---8--- It may be worthwhile providing this type of option to babel-latex? -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com ___ 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] CSS and Publishing to HTML Tutorial
The Worg tutorial Publishing Org-mode files to HTML ran for me first time, so it seems excellent and well written. However I am trying to use a vanilla CSS, say ssheet1.css, located in ~/org/css as per the tutorial. With only the following line at the end of my org file, #+STYLE: link rel=stylesheet type=text/css href=../ssheet1.css / or even # STYLE: link rel=stylesheet type=text/css href=../ssheet1.css / doing a view source of the HTML published page, shows that it includes the java stuff of org-export-html-style-export, shown below. I feel my defined CSS is being somehow compromised. I am hoping to tweek a CSS from the ground up, or choose a most suitable one from elsewhere. The only other thing, is that I fear my trial CGI Bash script is being clobbered by the Java, as its not working (its permission is OK). Maybe it needs to be enclosed within a unique style/type entry. #+STYLE: !-- #exec cgi=/cgi-bin/count.sh -- Below, I hope not at the risk of a friendship, I include the settings for; org-export-html-style org-export-html-style-default org-export-html-style-include-default org-publish-project-alist And these were noted after a successfuul org-publish operation. My question is, how should I unambiguously use a specific CSS, within the context of the Publishing Org-mode files to HTML tutorial. And whether including the CGI script is as simple as that above. Sorry for my confusion, I cannot see how or where to remove the Java stuff. If its as simple as 13.3.1 of the Org Mode manual, or by modifying the *scratch* evaluations of the tutorial, then I do apologize. Thanks, best, Adam. ;-- org-export-html-style org-export-html-style-default style type=\text/css\ !--/*--![CDATA[/*!--*/ html { font-family: Times, serif; font-size: 12pt; } .title { text-align: center; } .todo { color: red; } .done { color: green; } .tag{ background-color:lightblue; font-weight:normal } .target { } .timestamp { color: grey } .timestamp-kwd { color: CadetBlue } p.verse { margin-left: 3% } pre { border: 1pt solid #AEBDCC; background-color: #F3F5F7; padding: 5pt; font-family: courier, monospace; font-size: 90%; overflow:auto; } table { border-collapse: collapse; } td, th { vertical-align: top; } dt { font-weight: bold; } div.figure { padding: 0.5em; } div.figure p { text-align: center; } .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; } /*]]*/-- /style org-export-html-style-include-default t org-publish-project-alist ((org-notes :base-directory C:\\Adamstuff\\webp\\org\\ :base-extension org :publishing-directory C:\\Adamstuff\\webp\\public_html\\ :recursive t :publishing-function org-publish-org-to-html :headline-levels ...) (org-static :base-directory C:\\Adamstuff\\webp\\org\\ :base-extension css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf :publishing-directory C:\\Adamstuff\\webp\\public_html\\ :recursive t :publishing-function org-publish-attachment) (org :components (org-notes org-static))) ___ 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] Re: New CSS for orgmode and Worg ?
Christian Egli christian.e...@sbszh.ch writes: What I'd like to see is something more aligned with the css for asciidoc which makes for a very pleasant and readable experience. Yes, the CSS behind asciidoc is neat. Unfortunatelly my expertise is limited to trial and error when it comes to css. Trial and error will be very useful for suggested CSS. My secret hope is to collect several CSS and to display screenshots of them in Worg, so that users can pick up their favorite one for the HTML export. -- Bastien ___ 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] Re: New CSS for orgmode and Worg ?
On Thu, Jul 8, 2010 at 3:56 AM, Bastien bastien.gue...@wikimedia.fr wrote: Christian Egli christian.e...@sbszh.ch writes: What I'd like to see is something more aligned with the css for asciidoc which makes for a very pleasant and readable experience. Yes, the CSS behind asciidoc is neat. Unfortunatelly my expertise is limited to trial and error when it comes to css. Trial and error will be very useful for suggested CSS. My secret hope is to collect several CSS and to display screenshots of them in Worg, so that users can pick up their favorite one for the HTML export. In my mind, I'd like to see a few different style sheets too in different flavors (html, html5, etc) for different browser specs or covering all browsers. — Greg ___ 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] Re: Columns with LaTeX beamer export
On Thu, 08 Jul 2010 07:58:19 +0200, Tassilo Horn tass...@member.fsf.org wrote: Eric S Fraga ucec...@ucl.ac.uk writes: Hi Eric, On Wednesday 07 July 2010 12:43:52 Carsten Dominik wrote: There is still a broken link, for the index page of the tutorials directory... Fixed, and the tutorial link now links org-beamer/tutorial.org instead of the directory. What's the presentation.org in that dir? That is the example file referred to by the tutorial and which the reader is encouraged to download! It provides a hopefully useful starting point for the reader's own presentation... Ah, ok. But it was correct not to link it from the index page, right? Yes. That is correct. There should be, however, a link to it from the actual tutorial (I'm offline at the moment so cannot check Worg) under the headings First steps - the export template. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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] must date+time stamps require the day of the week to be processed correctly?
In response to a recent email from Daniel Martins, I am trying to improve my recently posted awk script for converting Google's ics export to org entries. I had through to convert the DTSTART and DTEND calendar entries into two date+time stamps with -- connecting them [1], as in: 2010-07-08 11:00--2010-07-09 12:00 this combination doesn't seem to be recognised by the agenda view. Only the first date+time stamp is recognised. However, if the day of the week is in there: 2010-07-08 Thu 11:00--2010-07-09 Thu 12:00 this construct is recognised as a 1 hour long event! Furthermore, when using S-up or S-down to manipulate the time of day on the stamps without the day of the week, the day of the week is inserted *but* the time of day is reset to midnight of that day. Thanks, eric Footnotes: [1] I can, of course, create a single time stamp with the time interval, and that is what I shall do but I thought I'd highlight what appears to be an inconsistency in behaviour. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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] Re: Columns with LaTeX beamer export
On Thursday 08 July 2010 10:11:03 Eric S Fraga wrote: Ah, ok. But it was correct not to link it from the index page, right? Yes. That is correct. There should be, however, a link to it from the actual tutorial (I'm offline at the moment so cannot check Worg) under the headings First steps - the export template. Yes, there's already a footnote with a link to it. Bye, Tassilo ___ 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] [BABEL] Bugin :session? Export html - works --- export pdf not
Hi I have the attached org file. It seems that when exporting to a pdf, the :session argument is ignored, as I get a Org-Babel Error Output buffer with: Error: object 'x' not found Execution halted and an Org-Babel Error buffer with the same text, and the resulting pdf does only show the code.. HTML export, works as expected. If I put :session *R_test* behind #+begin_src (R2.org) it works. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com R.org Description: Binary data R2.org Description: Binary data ___ 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] remember template is slow
Buck Brody buckbr...@gmail.com writes: Hi, Buck, Windows 7 GNU Emacs 23.2.1Org-mode version 6.36c Emacs : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Org-version: 6.36trans, of 0:45 5th Jul 2010 I'm finding that my remember templates are slow to load. I've got a lag of about three to four seconds. Did you compile the sources? It seems to me that the compiled version is faster. However it brings the problem of old .elc files lying around. cheers, Giovanni ___ 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] question about links in org-mode
hello, I have a org-mode file which contains many many links. Is there kind of export which replace all links with the subtree in which the link point to? Thanks Tomer Walla! Mail - Get your free unlimited mail today ___ 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] Bug: longlines-mode [6.36trans]
Normally, when I save an Org buffer with no trailing newline, a newline will be placed at the end of the buffer (so that the file ends with a newline). But when I enable longlines-mode, a newline is no longer added automatically, and I must add one manually. If I turn longlines-mode off, Emacs does not go back to adding a newline automatically. I'm not sure if this a bug with Org-mode or longlines-mode or Emacs or what, but I have only noticed this when using Org-mode. If this is not a bug in Org-mode, I apologise and hope that it's not any trouble for you to pass this on to the Emacs developers. Emacs : GNU Emacs 24.0.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-07-05 on neko Package: Org-mode version 6.36trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) 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-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point org-babel-execute-src-block-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\Aidan Gauland\\ org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) ) signature.asc Description: OpenPGP digital signature ___ 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] month and day names
Hello All, I would like to see, in certain files, the names of the months and days in Greek. I do that in the Agenda View, by just, denoting it in calendar, i.e. by having (custom-set-variables '(calendar-day-name-array [Κυριακή Δευτέρα Τρίτη Τετάρτη Πέμπτη Παρασκευή Σάββατο]) '(calendar-month-name-array [Ιανουάριος Φεβρουάριος Μάρτιος Απρίλιος Μάιος Ιούνιος Ιούλιος Αύγουστος Σεπτέμβριος Οκτώβριος Νοέμβριος Δεκέμβριος]) ) in my .emacs file. This is not respected however, when I get a timestamp in which I have e.g. 2010-07-07 Wed or in date-tree in org-publish Any ideas how to fix it? I mean to get 2010-07-07 Τετ? a little googling showed that this goes deep in the emacs locale parameters which he gets from POSIX (sounds horrible to me). ___ 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] Bug: Org-publish needs to catch error [6.36trans]
I am trying to use Org-mode and publish to create a website and forgot to specify the publishing directory for a project (in org-publish-project-alist). I thought I had encountered a severe bug in Org-publish when I was dumped into the debugger when I tried to publish my project. I suppose this is not so much a bug as it is an error that should be detected and handled more elegantly (i.e. by Org-publish, instead of the Emacs debugger) ;-). Regards, Aidan Gauland Emacs : GNU Emacs 24.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-07-05 on dimension8 Package: Org-mode version 6.36trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) 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-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point org-babel-execute-src-block-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\Aidan Gauland\\ org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) ) signature.asc Description: OpenPGP digital signature ___ 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] question about links in org-mode
Tomer, Welcome. I don't think that any such export routine exists, but I like the idea. Perhaps someone else could comment on what this would take. Off topic: Did you know that the latest development Emacs has decent (in-progress) bidi support, and that there are new Hebrew input methods (not yet included in the sources, but posted on the emacs-bidi mailing list). They're keen to have testers, before they turn on automatic bidi reordering globally. I use this with org-mode, and so far it works well. You can email me privately if you want help getting started. Scot On Wed, Jul 7, 2010 at 10:10 PM, תומר לוין tomer1le...@walla.com wrote: hello, I have a org-mode file which contains many many links. Is there kind of export which replace all links with the subtree in which the link point to? Thanks Tomer -- Walla! Mail - Get your free unlimited mail today http://www.walla.co.il ___ 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 ___ 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] Exclude some file to be in the agenda
Dear all, The way I set the org agenda file is using all the *.org file in some dir. Like (setq org-agenda-files (file-expand-wildcards ~/.emacs.d/org/org/*.org)) But is it possible to exclude certain file to show up in the agenda? Sometime this will be handy. Thanks, Chao ___ 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] remember template is slow
Yes, they are compiled On Thu, Jul 8, 2010 at 4:01 AM, Giovanni Ridolfi giovanni.rido...@yahoo.itwrote: Buck Brody buckbr...@gmail.com writes: Hi, Buck, Windows 7 GNU Emacs 23.2.1Org-mode version 6.36c Emacs : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Org-version: 6.36trans, of 0:45 5th Jul 2010 I'm finding that my remember templates are slow to load. I've got a lag of about three to four seconds. Did you compile the sources? It seems to me that the compiled version is faster. However it brings the problem of old .elc files lying around. cheers, Giovanni ___ 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] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?
Dear Eric, Updating from the repository, and putting it at the head of my load-path fixed the problem with org-babel-tangle-lang-exts. Thanks. org-version returns org-mode version 6.36trans (release_6.36.576.gec22). I still can't seem to export python to html with syntax coloring when exporting to browser on C-c C-e b. Should this just work? I do see syntax coloring on C-c '. Setting or not setting org-export-htmlize doesn't seem to make any difference. Nik On Thu, Jul 8, 2010 at 12:41 AM, Eric Schulte schulte.e...@gmail.comwrote: Hi Nicholas, There are a couple of problems. The first was a missing autoload in org.el which I've now inserted (thanks for helping this issue come to light). The second has to do with your config. I believe you are loading an old version of Org-mode. Be sure to that the first instance of Org-mode on your load path is the newest version, you can run M-x org-version to see what version you are currently running, when I run that command the output starts with Org-mode version 6.36trans If yours starts with the same then you should be fine. I'm attaching a modified version of your init which worked for me against the latest Org-mode from git. A couple of differences worth noting in my modified version are - I'm putting the path to the org-mode git repository on my load path - I removed the calls to font-lock mode which shouldn't be necessary with current versions of Emacs - I fixed the call to `org-babel-do-load-languages' so that it's second argument is the org-babel-load-languages variable - I'm not loading ruby (which I just did to simplify my test of a minimal Emacs config -- you should be able to replace it) Please do a git pull on the Org-mode repo, re-run make clean make, and then give this new config file a try (with the org-mode load path adjusted to your system) and let me know how it goes. Best -- Eric ___ 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] Re: Exclude some file to be in the agenda
Chao Lu looc...@gmail.com writes: The way I set the org agenda file is using all the *.org file in some dir. Like (setq org-agenda-files (file-expand-wildcards ~/.emacs.d/org/org/*.org)) But is it possible to exclude certain file to show up in the agenda? Sometime this will be handy. Add a #+FILETAGS: sometag to that file and then remove those tagged entries from the agenda with / - TAB sometag RET You might want to look into persistent tag filter settings for this as well C-h v org-agenda-persistent-filter HTH, Bernt ___ 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] [CODE SNIPPET] transpose table at point
The below code snippet is an interactive function to transpose an org-mode table. Just works for normal tables (no formulas, etc.). Evaluate the code below (by throwing into .emacs, or by calling C-x C-e after the defun()), and call M-x org-transpose-table-at-point with the cursor on a table. The magic part was stolen from the Library of Babel (1). Hope it helps. .j. (1) http://orgmode.org/worg/org-contrib/babel/library-of-babel.php#sec-3_2 8 (require 'cl) (defun org-transpose-table-at-point () Transpose orgmode table at point, eliminate hlines. (interactive) (let ((contents (apply #'mapcar* #'list;; == LOB magic imported here (remove-if-not 'listp ;; remove 'hline from list (org-table-to-lisp ;; signals error if not table ) (delete-region (org-table-begin) (org-table-end)) (insert (mapconcat (lambda(x) (concat | (mapconcat 'identity x | ) |\n )) contents )) (org-table-align) ) ) ___ 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] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?
Hi Nicholas, Nicholas Putnam nput...@gmail.com writes: Dear Eric, Updating from the repository, and putting it at the head of my load-path fixed the problem with org-babel-tangle-lang-exts. Thanks. Great, we're making progress org-version returns org-mode version 6.36trans (release_6.36.576.gec22). The Org-mode version looks good. I still can't seem to export python to html with syntax coloring when exporting to browser on C-c C-e b. Should this just work? I do see syntax coloring on C-c '. Setting or not setting org-export-htmlize doesn't seem to make any difference. What version of Emacs are you using? I htmlfontify requires at least Emacs 22 or later. Running 'emacs --version' at the shell will answer this one. If you have a recent enough Emacs, then can you try opening up a source-code buffer (say Python) and running M-x htmlfontify-buffer from withing the buffer. This should open up a buffer of html which when viewed through a web-browser looks very similar to your Emacs buffer fontification. If the above doesn't work, try loading htmlize.el explicitly from org/contrib/lisp/htmlize.el Best -- Eric Nik On Thu, Jul 8, 2010 at 12:41 AM, Eric Schulte schulte.e...@gmail.comwrote: Hi Nicholas, There are a couple of problems. The first was a missing autoload in org.el which I've now inserted (thanks for helping this issue come to light). The second has to do with your config. I believe you are loading an old version of Org-mode. Be sure to that the first instance of Org-mode on your load path is the newest version, you can run M-x org-version to see what version you are currently running, when I run that command the output starts with Org-mode version 6.36trans If yours starts with the same then you should be fine. I'm attaching a modified version of your init which worked for me against the latest Org-mode from git. A couple of differences worth noting in my modified version are - I'm putting the path to the org-mode git repository on my load path - I removed the calls to font-lock mode which shouldn't be necessary with current versions of Emacs - I fixed the call to `org-babel-do-load-languages' so that it's second argument is the org-babel-load-languages variable - I'm not loading ruby (which I just did to simplify my test of a minimal Emacs config -- you should be able to replace it) Please do a git pull on the Org-mode repo, re-run make clean make, and then give this new config file a try (with the org-mode load path adjusted to your system) and let me know how it goes. Best -- Eric ___ 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] Verbatim export
Hello, I would like to know how to make some sequence of characters to be verbatim, ie that special characters lose their special meaning. For instance in the following quote the first `-' will be interpreted as a bullet point when exporting to HTML #+begin_quote - this - #+end_quote So I tried this: #+begin_quote ~-~ this - #+end_quote but then the first `-' is not in the same font as the second one, it looks exaclty the same as if I had used the code =xxx= font specfication. I also tried this: #+begin_quote \- this - #+end_quote I does not work (the first dash is not exported at all). The same problem is for `[0]', how can you get this string not to be interpreted as a footnote reference. It should be possible to make the following type of things: #+begin_verbatim [0] #+end_verbatim or \verbatim{EOF}Hello - EOF where EOF can be any string that is not found in the verbatim string. so \verbatim{.}Hello - . would to the same as \verbatim{xxx}Hello - xxx. In the same vein, it would be useful to have some \relax{} macro not expanding to anything, this way _\relax{} some underlining with underlined leading spaces_ would work. BR, Vincent. ___ 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] [BABEL] Bugin :session? Export html - works --- export pdf not
Hi Rainer, I am aware of this problem, and although I don't know any a good solution, I do have a good workaround (example attached [1]). The problem is that org-latex removes all of the #+ lines from the beginning of any Org-mode file which has headlines as part of the export process. This means that by the time it's Babel's turn to run code blocks, the #+BABEL line has been removed, and the session is not set. If there are no headlines, then this problem does not arise. I sent in a patch last week, [2] but it's application would have broken other features of the latex export, I've yet to work out a good solution to this. There is a decent work-around. Whenever there are no headlines, then the #+BABEL: line works fine on LaTeX export, when there are headlines, then header arguments can be placed as properties in the headlines to the same effect. Cheers -- Eric Rainer M Krug r.m.k...@gmail.com writes: Hi I have the attached org file. It seems that when exporting to a pdf, the :session argument is ignored, as I get a Org-Babel Error Output buffer with: Error: object 'x' not found Execution halted and an Org-Babel Error buffer with the same text, and the resulting pdf does only show the code.. HTML export, works as expected. If I put :session *R_test* behind #+begin_src (R2.org) it works. Cheers, Rainer Footnotes: [1] R.3.org Description: Binary data [2] http://thread.gmane.org/gmane.emacs.orgmode/27081 ___ 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] [babel] feature request - tangle-and-evaluate-tangled-file
Hi Rainer, I just pushed up a new hook `org-babel-post-tangle-hook' which can be used to run activities in tangled code files immediately after tangling. I believe the following can be used implement the feature you described with this hook. (add-hook 'org-babel-post-tangle-hook (lambda () (ess-load-file (buffer-file-name Best -- Eric Rainer M Krug r.m.k...@gmail.com writes: Hi I am using org-babel for literate programming in R and I am using the following approach to test the code: 1) tangle 2) refresh buffer containing the tangled code (I use auto-revert-mode or global-auto-revert-mode for that) 3) load the tangled file into an existing R session via ESS R for evaluation This involves switching between buffers in always the same sequence. Therefore my suggestion: would it be possible to have a tangle-and-evaluate-tangled-file funcction, which is doing this automatically? C-c - 0 and org-babel-execute-buffer do not work in this case, as functions are split over several code blocks in R. Cheers, Rainer ___ 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] [BUG] #+begin_src wo. language blocks XHTML export
Sebastian Rose sebastian_r...@gmx.de writes: [...] It can be considered an error, since the docs say: ...This is done with the ‘src’ block, where you also need to specify the name of the major mode that should be used to fontify the example... I would vote that this be considered an error as a source block doesn't make sense w/o a source language. If others agree with this interpretation, I would be happy to submit a patch which actively raises an errors when this cases is encountered. Cheers -- Eric ___ 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] Verbatim export
Hi, Typographically, isn't what you want here an *en dash*, rather than a hyphen? When the dash is set off by a space, that is usually the case. Try: #+begin_quote -- this -- #+end_quote (don't forget to add a space after the last double hyphen, or it will not be converted) Cheers, CM Vincent Belaïche wrote: Hello, I would like to know how to make some sequence of characters to be verbatim, ie that special characters lose their special meaning. For instance in the following quote the first `-' will be interpreted as a bullet point when exporting to HTML #+begin_quote - this - #+end_quote So I tried this: #+begin_quote ~-~ this - #+end_quote but then the first `-' is not in the same font as the second one, it looks exaclty the same as if I had used the code =xxx= font specfication. I also tried this: #+begin_quote \- this - #+end_quote I does not work (the first dash is not exported at all). The same problem is for `[0]', how can you get this string not to be interpreted as a footnote reference. It should be possible to make the following type of things: #+begin_verbatim [0] #+end_verbatim or \verbatim{EOF}Hello - EOF where EOF can be any string that is not found in the verbatim string. so \verbatim{.}Hello - . would to the same as \verbatim{xxx}Hello - xxx. In the same vein, it would be useful to have some \relax{} macro not expanding to anything, this way _\relax{} some underlining with underlined leading spaces_ would work. BR, Vincent. ___ 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 -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com ___ 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] [BUG] #+begin_src wo. language blocks XHTML export
On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote: Sebastian Rose sebastian_r...@gmx.de writes: [...] It can be considered an error, since the docs say: ...This is done with the ‘src’ block, where you also need to specify the name of the major mode that should be used to fontify the example... I would vote that this be considered an error as a source block doesn't make sense w/o a source language. If others agree with this interpretation, I would be happy to submit a patch which actively raises an errors when this cases is encountered. Cheers -- Eric This seems like the right approach to me. 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] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?
My emacs version is GNU Emacs 23.2.1 (x86_64-apple-darwin10.4.0) of 2010-07-07 htmlfontify-buffer on a python buffer worked -- although at first I thought it hadn't because all the font sizes were set to 0pt. How can I get org-babel to htmlfontify my code on html export? Nik On Thu, Jul 8, 2010 at 1:33 PM, Eric Schulte schulte.e...@gmail.com wrote: Hi Nicholas, Nicholas Putnam nput...@gmail.com writes: Dear Eric, Updating from the repository, and putting it at the head of my load-path fixed the problem with org-babel-tangle-lang-exts. Thanks. Great, we're making progress org-version returns org-mode version 6.36trans (release_6.36.576.gec22). The Org-mode version looks good. I still can't seem to export python to html with syntax coloring when exporting to browser on C-c C-e b. Should this just work? I do see syntax coloring on C-c '. Setting or not setting org-export-htmlize doesn't seem to make any difference. What version of Emacs are you using? I htmlfontify requires at least Emacs 22 or later. Running 'emacs --version' at the shell will answer this one. If you have a recent enough Emacs, then can you try opening up a source-code buffer (say Python) and running M-x htmlfontify-buffer from withing the buffer. This should open up a buffer of html which when viewed through a web-browser looks very similar to your Emacs buffer fontification. If the above doesn't work, try loading htmlize.el explicitly from org/contrib/lisp/htmlize.el Best -- Eric ___ 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] Google calendar to org mode script and a feature request for agenda
On Wed, 7 Jul 2010 17:38:45 -0300, Daniel Martins daniel...@gmail.com wrote: Eric, Your awk seems to get timed appts in GMT How can I adapt it to GMT-3 Daniel Okay! I think I've got this working for any time zone (as well as adding some more functionality -- read the prologue in the script for info). Attached is the awk script. I use this from within a shell script (on Linux) that essentially does this: --8---cut here---start-8--- ICS=basic.ics ORG=googlecalendar.org AWK=ical2org.awk # get the Google calendar wget http://www.google.com/calendar/ical/[...]/basic.ics # convert the ical entries to org format, adjusting for the # time zone information # this next command yields hours from UTC, + or -, times 100 # Note: this does not cater for those people living in time zones # that are not aligned with discrete hours (e.g. Newfoundland)... timezone=$(date +%z | sed 's/^\([+-]\)0/\1/') # convert this to seconds for use in the awk script seconds=$(($timezone*36)) # and now process the ics file with appropriate time zone awk -f $AWK --assign SECONDS=$seconds $ICS $ORG --8---cut here---end---8--- Please test this all out and let me know if it works. If the date and sed commands work, you should be adjusting the times by -3*3600=-10800 seconds. This seems to be working for me with BST (aka GMT+1). eric # awk script for converting an iCal formatted file to a sequence of org-mode headings. # this may not work in general but seems to work for day and timed events from Google's # calendar, which is really all I need right now... # # usage: # awk -f THISFILE --assign SECONDS= icalinputfile.ics orgmodeentries.org # # where is the number of seconds to adjust time to take into # account the local time zone relative to UTC (e.g. GMT+1 == 3600, # GMT-1 == -3600). I have not tested edge effects, specifically what # happens when UTC time is a different day to local time and # especially when an event with a duration crosses midnight in UTC # time. It should work but... # # Note: change org meta information generated below for author and # email entries! # # Known bugs: # - if the iCal entry has an event reminder, the description field in # the VALARM entry for the event will supercede the description field # of the originating entry. # - not so much a bug as a possible assumption: date entries with no time # specified are assumed to be independent of the time zone. # # Eric S Fraga # 20100629 - initial version # 20100708 - added end times to timed events # - adjust times according to time zone information # - fixed incorrect transfer for entries with : embedded within the text # - added support for multi-line summary entries (which become headlines) #-- # a function to take the iCal formatted date+time, converted it into # an internal form (seconds since time 0), and adjust according to the # local time zone (specified by +-SECONDS on the argument to awk) function datetimestamp(input) { # convert the iCal Date+Time entry to a format that mktime can understand datespec = gensub(([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])T([0-9][0-9])([0-9][0-9])([0-9][0-9]).*[\r]*, \\1 \\2 \\3 \\4 \\5 \\6, g, input); # print date spec : datespec; # convert this date+time into seconds from the beginning of time timestamp = mktime(datespec); # print time stamp : timestamp; # and adjust for the time zone, number of seconds from GMT/UTC. timestamp += SECONDS; # print adjusted: timestamp # print Time stamp : strftime(%Y-%m-%d %H:%M, timestamp); return timestamp; } BEGIN { # use a colon to separate the type of data line from the actual contents FS = :; date = ; time2given = 0; entry = icalentry = # the full entry for inspection headline = id = indescription = 0; print #+TITLE: Main Google calendar entries print #+AUTHOR:Eric S Fraga print #+EMAIL: e.fr...@ucl.ac.uk print #+DESCRIPTION: converted using the ical2org awk script print #+CATEGORY: google print } # any line that starts at the left with a non-space character is a new data field /^[A-Z]/ { if (! index(DTSTAMP, $1)) icalentry = icalentry \n $0 # this line terminates the collection of description and summary entries indescription = 0; insummary = 0; } # this type of entry represents a day entry, not timed, with date stamp MMDD /^DTSTART;VALUE=DATE/ { date = gensub(([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9]).*[\r], \\1-\\2-\\3, g, $2) # print date } # this represents a timed entry with date and time stamp MMDDTHHMMSS # we ignore the seconds /^DTSTART:/ { # print $0 date = strftime(%Y-%m-%d %H:%M, datetimestamp($2)); # print date; } # and the same for the end date
Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?
Alright, Fontification is not specifically an Org-babel feature, but is provided by Org-mode at large, the relevant portion of the manual is available online, and may be worth a quick read http://orgmode.org/manual/Literal-examples.html#Literal-examples I suppose it may be possible that you are using an old version of htmlize, I'd recommend looking for a message like the following htmlize.el 1.34 or later is needed for source code formatting in your *Messages* buffer after an html export. Aside from that, and the htmlize variables (which should all be set to their default values) - org-export-htmlize-output-type - org-export-htmlized-org-css-url - org-export-htmlize-css-font-prefix I don't know where the problem could lie. Sorry I can't be of more help -- Eric Nicholas Putnam nput...@gmail.com writes: My emacs version is GNU Emacs 23.2.1 (x86_64-apple-darwin10.4.0) of 2010-07-07 htmlfontify-buffer on a python buffer worked -- although at first I thought it hadn't because all the font sizes were set to 0pt. How can I get org-babel to htmlfontify my code on html export? Nik On Thu, Jul 8, 2010 at 1:33 PM, Eric Schulte schulte.e...@gmail.com wrote: Hi Nicholas, Nicholas Putnam nput...@gmail.com writes: Dear Eric, Updating from the repository, and putting it at the head of my load-path fixed the problem with org-babel-tangle-lang-exts. Thanks. Great, we're making progress org-version returns org-mode version 6.36trans (release_6.36.576.gec22). The Org-mode version looks good. I still can't seem to export python to html with syntax coloring when exporting to browser on C-c C-e b. Should this just work? I do see syntax coloring on C-c '. Setting or not setting org-export-htmlize doesn't seem to make any difference. What version of Emacs are you using? I htmlfontify requires at least Emacs 22 or later. Running 'emacs --version' at the shell will answer this one. If you have a recent enough Emacs, then can you try opening up a source-code buffer (say Python) and running M-x htmlfontify-buffer from withing the buffer. This should open up a buffer of html which when viewed through a web-browser looks very similar to your Emacs buffer fontification. If the above doesn't work, try loading htmlize.el explicitly from org/contrib/lisp/htmlize.el Best -- Eric ___ 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] Re: Verbatim export
Vincent Belaïche vincent@hotmail.fr writes: I would like to know how to make some sequence of characters to be verbatim, ie that special characters lose their special meaning. For instance in the following quote the first `-' will be interpreted as a bullet point when exporting to HTML #+begin_quote - this - #+end_quote So I tried this: #+begin_quote ~-~ this - #+end_quote but then the first `-' is not in the same font as the second one, it looks exaclty the same as if I had used the code =xxx= font specfication. I also tried this: #+begin_quote \- this - #+end_quote I does not work (the first dash is not exported at all). The same problem is for `[0]', how can you get this string not to be interpreted as a footnote reference. It should be possible to make the following type of things: #+begin_verbatim [0] #+end_verbatim #+begin_example - this - #+end_example : - this one too : - and that one - HTH, Bernt ___ 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] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?
I got it working. I think that before emacs wasn't finding org-mode/contrib/lisp, but not generating any error (that I could see). Thanks again. On Thu, Jul 8, 2010 at 3:28 PM, Eric Schulte schulte.e...@gmail.com wrote: Alright, Fontification is not specifically an Org-babel feature, but is provided by Org-mode at large, the relevant portion of the manual is available online, and may be worth a quick read http://orgmode.org/manual/Literal-examples.html#Literal-examples I suppose it may be possible that you are using an old version of htmlize, I'd recommend looking for a message like the following htmlize.el 1.34 or later is needed for source code formatting in your *Messages* buffer after an html export. Aside from that, and the htmlize variables (which should all be set to their default values) - org-export-htmlize-output-type - org-export-htmlized-org-css-url - org-export-htmlize-css-font-prefix I don't know where the problem could lie. Sorry I can't be of more help -- Eric ___ 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] org-log-done
Hello, When I mark a ToDo item as Done, I would like to log the date only and not the time. For ex: ** DONE Update presentation CLOSED: [2010-07-08] Instead of: ** DONE Update presentation CLOSED: [2010-07-08 Thu 17:57] I have searched the website and the mailing list archives. Is there an option I could set or something for my .emacs file? Thanks in advance for any help. Stephen ___ 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] org-log-done
Stephen Lienhard steph...@2bike4.com wrote: Hello, When I mark a ToDo item as Done, I would like to log the date only and not the time. For ex: ** DONE Update presentation CLOSED: [2010-07-08] Instead of: ** DONE Update presentation CLOSED: [2010-07-08 Thu 17:57] I have searched the website and the mailing list archives. Is there an option I could set or something for my .emacs file? Maybe this: , | org-log-done-with-time is a variable defined in `org.el'. | Its value is t | | Documentation: | Non-nil means the CLOSED time stamp will contain date and time. | When nil, only the date will be recorded. | | You can customize this variable. ` HTH, Nick ___ 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] Google calendar to org mode script and a feature request for agenda
Just by reading and without the possibility to test it. Why you multiply the hour with 36 instead of 3600 to get seconds? Grettings Torsten Eric S Fraga ucec...@ucl.ac.uk wrote: On Wed, 7 Jul 2010 17:38:45 -0300, Daniel Martins daniel...@gmail.com wrote: Eric, Your awk seems to get timed appts in GMT How can I adapt it to GMT-3 Daniel Okay! I think I've got this working for any time zone (as well as adding some more functionality -- read the prologue in the script for info). Attached is the awk script. I use this from within a shell script (on Linux) that essentially does this: --8---cut here---start-8--- ICS=basic.ics ORG=googlecalendar.org AWK=ical2org.awk # get the Google calendar wget http://www.google.com/calendar/ical/[...]/basic.ics # convert the ical entries to org format, adjusting for the # time zone information # this next command yields hours from UTC, + or -, times 100 # Note: this does not cater for those people living in time zones # that are not aligned with discrete hours (e.g. Newfoundland)... timezone=$(date +%z | sed 's/^\([+-]\)0/\1/') # convert this to seconds for use in the awk script seconds=$(($timezone*36)) # and now process the ics file with appropriate time zone awk -f $AWK --assign SECONDS=$seconds $ICS $ORG --8---cut here---end---8--- Please test this all out and let me know if it works. If the date and sed commands work, you should be adjusting the times by -3*3600=-10800 seconds. This seems to be working for me with BST (aka GMT+1). eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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 ___ 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] Re: org-capture-templates : should symbols work as a file target ?
David Maus dm...@ictsoc.de writes: Julien Fantin wrote: Hi folks, I'v been trying to setup an org-capture template using a symbol as the file target, but this raises an error. Someone on IRC mentionned this is probably a bug, but I'm not experienced enough to be sure I'm not simply misusing it... my apologies it was me, and im also not that experienced, nice that you answered his question. Here is the bit of config in question: ** Templates #+BEGIN_SRC emacs-lisp (setq org-capture-templates `( (t Task entry (file+headline organizer Tasks) * TODO %?\n%U) (j Journal entry (file+datetree ~/org/journal.org) * %?\nEntered on %U\n %i\n %a) )) #+END_SRC You already backquote the template list so you've just to but the special marker , (comma) in front of organizer and it gets evaluated. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de ___ 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 ___ 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] Google calendar to org mode script and a feature request for agenda
Torsten Wagner torsten.wag...@gmail.com wrote: Just by reading and without the possibility to test it. Why you multiply the hour with 36 instead of 3600 to get seconds? ... # this next command yields hours from UTC, + or -, times 100 ^ There's your factor of 100 (although I, too, have not tested it.) # Note: this does not cater for those people living in time zones # that are not aligned with discrete hours (e.g. Newfoundland)... timezone=$(date +%z | sed 's/^\([+-]\)0/\1/') Cheers, Nick ___ 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] Re: Verbatim export
[...] #+begin_example - this - #+end_example : - this one too : - and that one - Thank you for your quick reply, this is not exactly what I was looking for. What you propose will encapsulate all the text into a pre class=example /pre block. This means that the font and background color are changed. I would not like this to happen, just the characters to lose their special meaning. Probably my initial email was confusing because I used the term verbatim which in LaTeX changes the font. What I am looking for is to make some text to be interpreted litterally, without having all the surrounding formatters to be overloaded. The dash is not a very good example because most of the time the solution is just not to place any dash at the beginning of a line. However I had the following issue: I wanted to quote some text (so using #+begin/end_quote), and this text was beginning with a dash, then I didn't know how to escape the dash. The issue which I meet more often is when there are some `[0]' which I don't want to be interpreted as footnotes, so I was proposing some general solution like \verbatim{EOF}In reference [0] EOF. Another solution would be to have a \relax{} macro, then the following would also work In reference [\relax{}0] \relax would also make it for like for dashes: #+begin_quote \relax{}- this dash is not a bullet mark #+end_quote Well, there are several ways to solve the issue. I am not sure which is better. Vincent HTH, Bernt ___ 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 _ Découvrez Microsoft Security Essentials, l'antivirus gratuit par Microsoft http://clk.atdmt.com/FRM/go/212688364/direct/01/___ 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] Re: LaTeX calendar from org-mode agenda?
It seems possible that at least one of the LaTeX / org gurus on this list has used LaTeX monthly calendars. I have had some problems with LaTeX calendars, but they look really nice, and it would seem not unlikely to use that format as an output from Org-agenda. I found LaTeX monthly calendars pretty ridiculous when they are bloated with dozens of repeated tasks from the diary file. A well sorted list of events would seem to me to suite this nice-looking hard copy calendar nicely. To be sure, I'm not sure how well supported the cal-tex-* series is at this point. I had trouble printing them at some point, even with help from the developer, Edward Reingold. C'mon, doesn't anyone know something about LaTeX calendars that would help? I am offline until my phone is transferred to my new residence. Later this summer, I'll find time to sift through this problem myself. I apologize for repeatedly cluttering this list with often clueless questions. I like org-mode a lot and use it for all kinds of tasks, but I've lost track of some of the more arcane features over the past several months. Summer looks a good time to start catching up. The ability to print out a nice, concise hardcopy checklist from org-agenda would make a world of difference. Alan Davis On Fri, Jul 2, 2010 at 8:59 AM, Alan E. Davis lngn...@gmail.com wrote: I wonder whether anyone has worked up a solution to printing LaTeX monthly or weekly calendars from an org-mode setup? LaTeX calendars can get pretty cluttered up when printed from a diary file, but perhaps tags would help. I was able at some point to print a LaTeX monthly calendar with entries listed in a separate file. Perhaps later this summer I will look into this, but thought someone might have solved this problem already. Thanks, Alan Davis ___ 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] [PATCH] Check if `org-capture-link-is-already-stored' is bound before evaluating.
* org-capture.el (org-capture): Check if `org-capture-link-is-already-stored' is bound before evaluating. If `org-protocol-capture' is the first function that calls `org-capture', this variable is locally bound while it is globally unbound. I.e. org-capture.el was not loaded before, the defvar not evaluated. If `org-protocol-capture' exits, Emacs restores the global value, which is void. --- lisp/org-capture.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 2b02b77..9ba02e2 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -372,7 +372,8 @@ bypassed. (t ;; FIXME: Are these needed? (let* ((orig-buf (current-buffer)) - (annotation (if org-capture-link-is-already-stored + (annotation (if (and (boundp 'org-capture-link-is-already-stored) + org-capture-link-is-already-stored) (plist-get org-store-link-plist :annotation) (org-store-link nil))) (initial (and (org-region-active-p) -- 1.7.1 ___ 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] [ANN] Org to Atom, revisited
Hi Scott, Scott Jaderholm wrote: Unfortunately I haven't been able to get the sitemap/index feed feature in this or an older version to work for me. Can you add more details in Section 4.2? It mentions org-atom-publish-org-as-atom-index but it's not in http://github.com/dmj/dmj-org-mode/raw/org-atom/lisp/org-atom.el. Yes, sorry. I am behind with revising the documentation and as it turned out, the sitemap function was completely broken. I've pushed a fix for the sitemap function yesterday[1] and my current (not yet published) section about the sitemap function reads like this: , | Org's Atom exporter provides a sitemap function to publish a single | combined feed for all files in the publishing project. To use this | function you have to provide the mandatory feed meta data by setting | the property =:publishing-url= to the base URL of the published | project. The sitemap functions assumes, that all files in the | project's =:base-dir= are published relative to this URL and will | create the feed's links pointing to the appropriate locations. | | If you prefer an ID for the feed that is distinct from the feed's URL, | you can provide the ID with the =:feed-id= property. | | The name of the feed can be set by the =:sitemap-file= property and | defaults to =sitemap.atom=. | | For example, this minimal project definition will publish a combined | feed for all entries found in the project's files | | #+begin_src emacs-lisp | (sitemap-feed |:base-directory ~/project/webpage/ |:base-extension org |:publishing-directory ~/www/ |:auto-index t |:publishing-url http://example.org/; |:sitemap-function org-atom-publish-feed-sitemap) | #+end_src ` So, the minimal definition requires :publishing-url, :sitemap-function, and :auto-index to turn on the sitemap. Does this makes the sitemap publishing process somewhat clearer? Best, -- David [1] http://github.com/dmj/dmj-org-mode/raw/org-atom/lisp/org-atom.el -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgptT2z7C6lx4.pgp Description: PGP signature ___ 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