[Orgmode] [babel] babel creating corrupt pdf and png
PDFs created by Babel are giving a file corrupt message when trying to open them and a format not recognised message if I try pngs, Same files created directly from R are fine. This is with Ubuntu 10.04 and Org-mode version 6.36trans (release_7.01h.94.g25ac Example of code I am using is below. Can anyone suggest what I am doing wrong? Many thanks, Graham #+srcname:boxpip45byyear #+begin_src R :session bats :file boxpip45byyear.pdf :exports code boxplot(boxplot(allbats$count[allbats$species=="p45"]~allbats$year[allbats$species=="p45"]) #+end_src #+results: boxpip45byyear [[file:boxpip45byyear.pdf]] ___ 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: Argument to org-insert-subheading should be optional [7.01trans]
"M. Creidieki Crouch" writes: > The (org-insert-subheading arg) function in org.el should probably have > "arg" as an optional argument. It's used only as a parameter to > (org-insert-heading (&optional force-heading invisible-ok)), so it > doesn't make much sense as a mandatory parameter. > > I believe that this is also true of (org-insert-todo-subheading arg). > > I'm sorry for not submitting a patch, I'm still just learning lisp. > > -- Creidieki M. Crouch Both of them are interactive "P" functions. Please take a look at 'interactive' definition. C-h f interactive Thanks and Regards Noorul ___ 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: How to customize the org-mode's BEGIN_SRC HTML output
On Mon, 23 Aug 2010 14:03:23 -0500, Erik Iverson wrote: > post-process the html file generated by the export process, (there is > probably a hook so you can do this automatically): apparently it's org-export-html-final-hook --aj ___ 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: [babel] support plantuml
Mike Gauland gmail.com> writes: > I can get an image if I evaluate the block manually (e.g., via 'C-c C-c' with > the cursor on the BEGIN block), but when I export the file the image is > invalid. I figured it out. I was getting extra carriage returns in the file. I've fixed them by setting "coding-system-for-write" to 'no-conversion within the (let). --Mike ___ 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: How to customize the org-mode's BEGIN_SRC HTML output
Puneeth writes: > The line breaks being stripped off is due to code in org2blog. It has > nothing to do with org-mode's export. Wordpress does not ignore > linebreaks in the content, which looks very ugly for normal posts. > Code in org2blog strips off the line breaks from the html generated by > org-export-as-html. It checks for and tags and > leaves out the newlines within those tags. This is (most) probably > what is causing trouble. > > I'll only be able to look into it in the weekend. Anybody is free to > beat me to that. :) This is a workaround, all based on work by Puneeth and Benjamin, that seems to work for me. I did not know what to do with Benjamin's advice stuff (Just evaluating it changed nothing in the output). ;; Benjamin's stuff, one line changed (defun bnb/org2blog-src-blocks-to-wp-syntaxhighlighter () "Export #+BEGIN_SRC blocks as Wordpress Syntaxhighlighter tags. There is a special header option, :syntaxhl that contains the options to pass to syntaxhighlighter. This is intended to be added to `org-export-preprocess-hooks'" (interactive) (save-window-excursion (let ((case-fold-search t) (colon-re "^[ \t]*:\\([ \t]\\|$\\)") lang body headers syntaxhl beg) (goto-char (point-min)) (while (re-search-forward colon-re nil t) (replace-match (match-string 1)) (beginning-of-line 1) (insert "[text light=\"true\"]\n") (setq beg (point)) (while (looking-at colon-re) (replace-match (match-string 1)) (end-of-line 1) (or (eobp) (forward-char 1))) (end-of-line 1) (add-text-properties beg (if (bolp) (1- (point)) (point)) '(org-protected t)) (insert "\n[/text]")) (unless (boundp 'org-babel-src-block-regexp) (require 'ob)) (while (re-search-forward (concat "\\(" org-babel-src-block-regexp "\\|" org-babel-inline-src-block-regexp "\\)") nil t) (setq lang (match-string-no-properties 3)) (if (string-match "-" lang) (error "SyntaxHighlighter does not support languages with '-' in the names")) (setq headers (match-string-no-properties 5)) (setq body (match-string-no-properties 6)) (save-match-data (setq syntaxhl (if (string-match ":syntaxhl[ ]+\\([^ ]+\\)" headers) (concat " " (replace-regexp-in-string "\;" " " (match-string 1 headers)) (replace-match ;(concat "\n\n[" lang syntaxhl "]\n" body "[/" lang "]\n") (concat "\n\n[sourcecode language=\"" lang syntaxhl "\"]\n" body "[/sourcecode]\n") nil t) (add-hook 'org-export-preprocess-hook 'bnb/org2blog-src-blocks-to-wp-syntaxhighlighter) ;; searching for [sourcecode ... ] ... [/sourcecode] so that newlines ;; are not removed ;; Puneeth's stuff, two lines changed (defun org2blog-strip-new-lines (html) "Strip the new lines from the html, except in pre and blockquote tags." (save-excursion (with-temp-buffer (let* (start-pos end-pos) (insert html) (setq start-pos (point-min)) (goto-char start-pos) (while (re-search-forward "\\[sourcecode.*" nil t 1) (setq end-pos (match-beginning 0)) (replace-regexp "\\\n" " " nil start-pos end-pos) (re-search-forward "\\[/sourcecode.*" nil t 1) (setq start-pos (match-end 0)) (goto-char start-pos)) (setq end-pos (point-max)) (replace-regexp "\\\n" " " nil start-pos end-pos) (buffer-substring-no-properties (point-min) (point-max)) ___ 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: [babel] support plantuml
This looks very useful, but I'm having trouble getting it to work. Do you have an example? I tried this: #+BEGIN_SRC plantuml :file uml.png Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response #+END_SRC If I also change ' enduml' to '@uml' in this line: (with-temp-file in-file (insert (concat "@startuml\n" body "\n enduml"))) I can get an image if I evaluate the block manually (e.g., via 'C-c C-c' with the cursor on the BEGIN block), but when I export the file the image is invalid. Any suggestions would be appreciated. Thanks, Mike ___ 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] Gollum
Hi Bastien, I agree it would be great to have web-based editing of Org-mode files on Worg. Unfortunately the Gollum wiki at github uses org-ruby [1] which is a very minimal clone of Org-mode's exported written in ruby. This means that org-mode pages exported by Gollum would in most cases fall far short of our current Worg standards. A long while ago I wrote blorgit [2], which is similar but probably much buggier and certainly less well maintained. Maybe some combination of the two would be a possible future solution. Cheers -- Eric Bastien writes: > Guys, > > some exciting news: the Github team just released Gollum, "a simple wiki > system built on top of Git [...]" > > Read this: > http://github.com/github/gollum#readme > > And the announcement: > http://github.com/blog/699-making-github-more-open-git-backed-wikis > > Among the list of formats that Gollum supports is, of course, Org-mode. > Seems like Gollum is a win for Worg, as we'll be able to edit Worg both > from our local Emacses and from... the web. > > Meaning that we might switch from the left model to the right one: > > >Git Git > XX >/ \ / \ > / \/ \ > / \ / \ > / \/ \ > Emacs | |---\ HTML Emacs --- HTML > > > Does anyone feel like testing Gollum and see how it works? Footnotes: [1] http://orgmode.org/worg/org-tutorials/org-ruby.php [2] http://orgmode.org/worg/blorgit.php ___ 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] merging column view headings across files
Greetings all, I have column view configured differently in several different org files. In some the columns include things like priority and tags, another file has columns like blocker and so on. When I do an agenda search for special todo keywords (in particular "STALLED") the search returns those dreaded stalled projects, which of course include some things from each org file. If I switch to column view, it seems to use the column definitions in place for the first thing on the list. So, if a todo.org item is the first thing on the list the column headings are those defined in the todo.org file. However, there are things from project specific files (where i use the "BLOCKER" property to keep track of what's connected to what), and the column view heading for "BLOCKER" does not appear. Anyone have any bright ideas on how I can keep separate column view definitions in each org file but have them some how magically combined in column-view look at my agenda? Cheers, Neil = Neil Hepburn, Lecturer in Economics Department of Social Sciences, Augustana Faculty University of Alberta 4901-46 Avenue Camrose, Alberta T4V 2R3 Phone (780) 679-1588 email nhepb...@ualberta.ca No trees were harmed in creating this message. (However, millions of electrons were terribly disturbed.) ___ 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] Table of Contents in html export
Hi all, Are there any options to modify the table of contents in the exported html files (other than whether to show it and to what level)? Or, if there are no such options, perhaps I could modify some elisp functions? Specifically, what I wanted to do was to: - change its name to just "Contents" - put a separator between the TOC and the first section? If I add smth like #+html: at the beginning, it gets inserted between the title and the TOC :( Thanks!! --aj ___ 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] Gollum
Guys, some exciting news: the Github team just released Gollum, "a simple wiki system built on top of Git [...]" Read this: http://github.com/github/gollum#readme And the announcement: http://github.com/blog/699-making-github-more-open-git-backed-wikis Among the list of formats that Gollum supports is, of course, Org-mode. Seems like Gollum is a win for Worg, as we'll be able to edit Worg both from our local Emacses and from... the web. Meaning that we might switch from the left model to the right one: Git Git XX / \ / \ / \/ \ / \ / \ / \/ \ Emacs | |---\ HTML Emacs --- HTML Does anyone feel like testing Gollum and see how it works? -- 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] Backspacing into folded items
Hi David, On 25.08.2010 11:22, David Abrahams wrote: > I've gotten myself in trouble several times today by backspacing after > an org-link that ends a headline. That's a typical pattern for > editing an org-link, right? Well it turns out that if the item is > folded, then the backspace writes over the end of the un-folded item > but **appears to have no effect**, and you can easily hit backspace > several times to test your sanity before you realize that something is > wrong, badly corrupting your file. I have had similar such accidents, but not involving links. You probably backspaced into the "..."? > Seems to me that attempts to edit a folded item should either: > > a) restrict changes to the item's headline, or > b) unfold the item and do nothing > > Is there a way to set that up? Just two quick ideas from me here: * You could add a modification hook to all hidden areas to unfold them on modification, or * You could set the read-only property for all hidden areas. This could be setup at the same location where hiding is done. See also here: http://www.gnu.org/software/emacs/elisp/html_node/Special-Properties.html#Special-Properties I proposed a patch for image overlay which show a related problem here: http://patchwork.newartisans.com/patch/31/ Cheers, Martin ___ 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: Mark days in calendar based on agenda
Richard Riley wrote: >Claudius Hubig writes: > >> Richard Riley wrote: >>>Claudius Hubig writes: Anyway, I would like my calendar to mark days based on agenda entries. For example, I have a line like the following: Is there any way to achieve this? >>>Well, you probably know "d" can show org-mode items by including >>> >>>&%%(org-diary) >>> >>>in your ~/.diary (diary-file variable). This is described in the >>>org-mode worg page. >> >> No, I didn’t and I have to admit I didn’t look at the org-mode worg >> page. However, >> >>>Despite playing with fancy display calendar settings as described in the >>>calendar I wasnt able to get the calendar to hilite the day buttons if >>>org items were there. Does the output of org-diary conform to the >>>required calendar appointment format? >> >> this can be easily fixed then: >> >> %%(org-diary) >> >> does exactly what I want :) >> >> Thank you very much Richard! >> >> Claudius > >The calendar shows the actual days hilited if they have items on that >day in org? Yes, though this only happens with active appointments – inactive appointments are not highlighted in the calendar and not visible in the diary. Active appointments, on the other hand, are visible in the diary and the agenda and mark a day in the calendar. This is not perfect since I would like about some things without a mark in the calendar (I have a note like "[2010-08-25 Mi 24:00] 4270 Vokabeln ausstehend" for nearly every day in the near future due to my VEP¹, don’t want that to show up in the calendar but a little reminder in the agenda would be nice…), but it works most of the time as expected. Claudius 1) Vocabulary Enhancing Program ;D, actually Mnemosyne with the SAT-set of 5000 cards… -- Many pages make a thick book. http://chubig.net/ ___ 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 file rendering/manipulation too slow
Hi Marcelo, I don't use a Mac but someone on the #org-mode IRC channel mentioned trying this: (setq font-lock-verbose nil) HTH, Bernt Marcelo de Moraes Serpa writes: > Any hints on this one? It's really annoying to handle (not so) large > org files in the OSX version of emacs. Maybe recompiling it with > different options? > > Marcelo. > > On Sat, Aug 7, 2010 at 5:38 AM, Manuel Hermenegildo wrote: >> >> > Might be related to the OSX build -- any other OSX users around? :) >> >> I also use Mac OS and I also see very slow performance when navigating >> through large org files. Basically, sometimes emacs will freeze for 20 >> seconds or so when I switch to a large org buffer (about 30,000 lines, >> 1M --large but should be workable, see below). The strange thing is >> that it happens only sometimes. When I get desperate (it can be very >> annoying) I switch to a -nw session inside a terminal and then >> everything works fine, so I do get the impression that it has to do >> with screen rendering in the OS X build. My current emacs version is >> 23.2.1. --Manuel >> >> -- >> --- >> Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid >> (UPM) >> Director, IMDEA Software and CLIP Group | +34-91-336-7435 (W) -352-4819 >> (Fax) >> --- >> >> > > ___ > 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: Mark days in calendar based on agenda
Claudius Hubig writes: > Richard Riley wrote: >>Claudius Hubig writes: >>> Anyway, I would like my calendar to mark days based on agenda >>> entries. For example, I have a line like the following: >>> Is there any way to achieve this? >>Well, you probably know "d" can show org-mode items by including >> >>&%%(org-diary) >> >>in your ~/.diary (diary-file variable). This is described in the >>org-mode worg page. > > No, I didn’t and I have to admit I didn’t look at the org-mode worg > page. However, > >>Despite playing with fancy display calendar settings as described in the >>calendar I wasnt able to get the calendar to hilite the day buttons if >>org items were there. Does the output of org-diary conform to the >>required calendar appointment format? > > this can be easily fixed then: > > %%(org-diary) > > does exactly what I want :) > > Thank you very much Richard! > > Claudius The calendar shows the actual days hilited if they have items on that day in org? ___ 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: Mark days in calendar based on agenda
Richard Riley wrote: >Claudius Hubig writes: >> Anyway, I would like my calendar to mark days based on agenda >> entries. For example, I have a line like the following: >> Is there any way to achieve this? >Well, you probably know "d" can show org-mode items by including > >&%%(org-diary) > >in your ~/.diary (diary-file variable). This is described in the >org-mode worg page. No, I didn’t and I have to admit I didn’t look at the org-mode worg page. However, >Despite playing with fancy display calendar settings as described in the >calendar I wasnt able to get the calendar to hilite the day buttons if >org items were there. Does the output of org-diary conform to the >required calendar appointment format? this can be easily fixed then: %%(org-diary) does exactly what I want :) Thank you very much Richard! Claudius -- Line Printer paper is strongest at the perforations. http://chubig.net/ ___ 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] [For Worg?] Gnuplot unevenly spaced non-numeric data plot?
John Hendy writes: [...] > > I'll post back if I have further questions. I kind of anticipate them. For > instance, how do I include my .png files? Do I need to put them on some > other personal server (google doc/site) and have them link to those? Or is > there a Worg pic repository? > You can place pictures in the images/babel/ directory -- or file:../../../images/babel from the languages sub-directory. 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] [For Worg?] Gnuplot unevenly spaced non-numeric data plot?
On Tue, Aug 24, 2010 at 8:35 PM, Eric Schulte wrote: > John Hendy writes: > > [...] > > Cool -- I'm game. > > That's Great. > > > What exactly is required? Can my generated html just be plopped in or > > should I revise anything? If there's an example page we're modeling > > after I can rearrange the pieces to match that? > > Whatever you think is best. Other language pages are linked to from the > table at http://orgmode.org/worg/org-contrib/babel/languages.php#langs, > so they could serve as a model. > > > I'm up for pretty much anything. I'm glad it will make it to a useful > > place! I've no familiarity with how to add to word so I'll definitely > > need some assistance. > > > > Worg is a git repository of org-mode files which are exported to html to > generate the resulting Worg web page. To contribute you clone the git > repository, edit the org-mode files, and commit your changes. See > http://orgmode.org/worg/worg-about.php for more information about Worg, > and specific instructions about how to contribute. > > Thanks -- waiting for push access after registering at the cz git repo. I'll check some of the other language pages and try to model it after that -- both in tone and organization. It shouldn't take much to tweak it. I'll post back if I have further questions. I kind of anticipate them. For instance, how do I include my .png files? Do I need to put them on some other personal server (google doc/site) and have them link to those? Or is there a Worg pic repository? John > > > > I see the stub page, btw. > > > > Wonderful. > > Thanks -- Eric > > > > > > > Best regards, > > John > > > > > >> it should propagate to > >> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php > >> within the next two hours or so > >> > >> 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
[Orgmode] Argument to org-insert-subheading should be optional [7.01trans]
The (org-insert-subheading arg) function in org.el should probably have "arg" as an optional argument. It's used only as a parameter to (org-insert-heading (&optional force-heading invisible-ok)), so it doesn't make much sense as a mandatory parameter. I believe that this is also true of (org-insert-todo-subheading arg). I'm sorry for not submitting a patch, I'm still just learning lisp. -- Creidieki M. Crouch Emacs : GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-08-18 on creidieki-netbook Package: Org-mode version 7.01trans current state: == (setq org-log-done 'time org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-custom-commands '(("H" "TODO items" tags-todo "HOME|COMPUTER" nil) ("h" "TODO items" tags-todo "HOME" nil) ("D" "Daily Action List" ((agenda "" ((org-agenda-ndays 1) (org-agenda-sorting-strategy (quote ((agenda time-up habit-up priority-down tag-down (org-deadline-warning-days 0)) ) ) nil) ("c" "TODO items" tags-todo "COMPUTER" nil) ("T" "TODO items" tags-todo "TOWN" nil)) org-agenda-files '("~/docs/projects/streaming.org" "~/org/data/3f/d84f17-284d-433e-b397-a8199d1b663b/periodicity paper summary" "~/org/gtd.org") org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-attach-directory "~/org/data/" org-agenda-todo-ignore-scheduled 'all org-agenda-time-leading-zero t org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-format-latex-options '(:foreground default :background default :scale 1.3 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) org-deadline-warning-days 7 org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-agenda-skip-scheduled-if-done t 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-babel-configure-edit-buffer 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-default-notes-file "~/org//notes.org" org-directory "~/org/" org-habit-graph-column 60 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-refile-targets '((org-agenda-files :level . 1)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-start-on-weekday 0 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-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) 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)) ) ___ 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] Backspacing into folded items
Hi All, I've gotten myself in trouble several times today by backspacing after an org-link that ends a headline. That's a typical pattern for editing an org-link, right? Well it turns out that if the item is folded, then the backspace writes over the end of the un-folded item but **appears to have no effect**, and you can easily hit backspace several times to test your sanity before you realize that something is wrong, badly corrupting your file. Seems to me that attempts to edit a folded item should either: a) restrict changes to the item's headline, or b) unfold the item and do nothing Is there a way to set that up? Thanks, -- Dave Abrahams BoostPro Computing http://www.boostpro.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] [babel] support plantuml
Hi, I agree plantuml certainly makes sense as a new code block type. I'd like to include your ob-plantuml.el file into Org-mode/Babel, would you be willing to complete the FSF assignment process for contributing to Org-mode as described at http://orgmode.org/worg/org-contribute.php? Thanks! -- Eric zwz writes: > I came across Ian Yang's > [[http://www.emacswiki.org/emacs/org-export-blocks-format-plantuml.el][org-export-blocks-format-plantuml]] > a few days ago, which brought me in front of the > great software [[http://plantuml.sourceforge.net/][Plantuml]]. It is an > open-source tool in java that allows to quickly write: > - sequence diagram, > - use case diagram, > - class diagram, > - activity diagram, > - component diagram, > - state diagram > - object diagram > > using a simple and intuitive language. > > Although Ian Yang's code has incorporated plantuml in org-mode by > =#+BEGIN_UML= and =#+END_UML=, I think it > should be a good idea to introduce the plantuml as a new language into > org-babel. > > Here is the "ob-plantuml.el": > > > I am not sure if it is qualified to be part of org-babel, so I just put > it here first. > > In addition, I also wrote a new major mode “plantuml-mode.el” which > provides preliminary font-lock function for plantuml scripts, see > http://zhangweize.wordpress.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 ___ 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: [SOLVED] [org-babel] References Not Expanding
Thanks for this patch, I've just applied it. -- Eric aditya siram writes: > The last patch is formatted for email. Here's the correct one. Sorry. > -deech > > On Sun, Aug 22, 2010 at 4:21 PM, aditya siram wrote: > >> The function that loads the code block into the interpreter >> org-babel-load-in-session does not do noweb reference expansion. >> >> I have included a git patch that adds that functionality. >> >> -deech >> >> >> On Sat, Aug 21, 2010 at 4:42 PM, aditya siram wrote: >> >>> Hi all, >>> I have the development version of org-mode and org-babel noweb style >>> references are not expanding during evaluation, they are instead copied >>> literally into the temp file. They seem to expand fine when tangling. Here >>> is file that is failing: >>> * Root >>> #+begin_src haskell :noweb yes :tangle Main.hs >>> <> >>> <> >>> main = print $ test [1,2,3] >>> #+end_src >>> >>> * Imports >>> #+srcname: Imports >>> #+begin_src haskell >>> import Control.Monad.State >>> #+end_src >>> >>> * Append Function >>> #+srcname: Test >>> #+begin_src haskell >>> test = length >>> #+end_src >>> >>> I have tried unsuccessfully to make "Imports" and "Append Function" >>> children of "Root". >>> >>> Thanks! >>> -deech >>> >> >> > > ___ > 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] Making folded items less dangerous
On Wed, Aug 25, 2010 at 1:09 PM, Dave Abrahams wrote: > Hi All, > > I've gotten myself in trouble several times today by backspacing after > an org-link that ends a headline. That's a typical pattern for > editing an org-link, right? Well it turns out that if the item is > folded, then the backspace writes over the end of the un-folded item > but **appears to have no effect**, and you can easily hit backspace > several times to test your sanity before you realize that something is > wrong, badly corrupting your file. > > Seems to me that attempts to edit a folded item should either: > > a) restrict changes to the item's headline, or > b) unfold the item and do nothing > I like these ideas. Or even the "this text is read only" message in the mini-buffer when hitting delete at the ellipsis after a headline? I can see both sides (it's come up before): 1) that it's "just text" like everything else so what should one expect but also 2) it doesn't *behave* like text and especially for newer individuals when you keep hitting delete because you don't get what's going on or you lose track of the cursor and press some key combination... it is a bummer. John > > Is there a way to set that up? > > Thanks, > > -- > Dave Abrahams > BoostPro Computing > http://www.boostpro.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 > ___ 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] Making folded items less dangerous
Hi All, I've gotten myself in trouble several times today by backspacing after an org-link that ends a headline. That's a typical pattern for editing an org-link, right? Well it turns out that if the item is folded, then the backspace writes over the end of the un-folded item but **appears to have no effect**, and you can easily hit backspace several times to test your sanity before you realize that something is wrong, badly corrupting your file. Seems to me that attempts to edit a folded item should either: a) restrict changes to the item's headline, or b) unfold the item and do nothing Is there a way to set that up? Thanks, -- Dave Abrahams BoostPro Computing http://www.boostpro.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] Re: [babel] exports, caching, remote execution
Hi Tom, Thanks for pointing this out. It appears that during export the code block is evaluated in an altered version of the original buffer in which (for some reason) Babel is sometimes not able to find properties which are tucked away in either a #+Babel: line at the top of the file, or as properties of an enclosing headline level. This certainly merits a closer investigation, and has been recorded as a bug. Most likely it will require picking apart the subtleties of the actions taken by the exporter. Thanks -- Eric Tom Short writes: > Eric Schulte gmail.com> writes: > >> >> Hi Austin, >> >> Austin Frank gmail.com> writes: >> >> > Hey all-- >> > >> > Two (hopefully quick) questions: >> > >> > 1) Does the exporter respect the :cache argument? When I evaluate a >> >buffer, I can tell that cached blocks are not re-run, as expected. >> >When I export to \LaTeX or PDF, it seems that all blocks in the file >> >are re-run. Is there a way to force the exporter to respect caching? >> > >> >> I believe the exporter does respect caching, the following minimal >> example worked (i.e. was not re-run) for me on export to html. Could >> you provide an example that demonstrates the problem? > > Eric, here's an example where the exporter does not respect caching. - Tom > > #+BABEL: :session *R* :results output :exports both :cache yes > > * A test of caching > > #+begin_src R > cat("random result:", runif(1), "\n") > Sys.sleep(2) > alarm() > #+end_src > > #+results[b2549fac8a1ec2923ae289d47ce55fb2853dd1de]: > : random result: 0.2799064 > > #+begin_src R > cat("random result:", runif(1), "\n") > Sys.sleep(2) > alarm() > #+end_src > > #+results[b2549fac8a1ec2923ae289d47ce55fb2853dd1de]: > : random result: 0.1625634 > > ** cache on export > do we export cached blocks > > #+begin_src emacs-lisp :cache yes :exports results > (random) > #+end_src > > #+results[46632b4fe2e3a23e847953c95adcba58c270b381]: > : 490528137 > > > > > ___ > 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: Mark days in calendar based on agenda
Claudius Hubig writes: > Good day, > > I’m quite new to org-mode so please forgive me in case this question > already has been answered somewhere else – if that is the case, I > wasn’t able to find it. > > Anyway, I would like my calendar to mark days based on agenda > entries. For example, I have a line like the following: > > Exam <2010-09-07 Di 11:00> PC 102 > :ATTACH: > > in my notes.org and agenda displays it nicely > > 7 September 2010 notes: 11:00.. Exam PC 102 :ATTACH: > > However, I would also like to have calendar highlight that day in > it’s overview the same way it would if I entered this line: > > 2010-09-07 11:00 Exam PC 102 > > into my diary file. > > Is there any way to achieve this? > > Best regards and thank you for reading, > > Claudius Well, you probably know "d" can show org-mode items by including &%%(org-diary) in your ~/.diary (diary-file variable). This is described in the org-mode worg page. Despite playing with fancy display calendar settings as described in the calendar I wasnt able to get the calendar to hilite the day buttons if org items were there. Does the output of org-diary conform to the required calendar appointment format? ___ 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 file rendering/manipulation too slow
Any hints on this one? It's really annoying to handle (not so) large org files in the OSX version of emacs. Maybe recompiling it with different options? Marcelo. On Sat, Aug 7, 2010 at 5:38 AM, Manuel Hermenegildo wrote: > > > Might be related to the OSX build -- any other OSX users around? :) > > I also use Mac OS and I also see very slow performance when navigating > through large org files. Basically, sometimes emacs will freeze for 20 > seconds or so when I switch to a large org buffer (about 30,000 lines, > 1M --large but should be workable, see below). The strange thing is > that it happens only sometimes. When I get desperate (it can be very > annoying) I switch to a -nw session inside a terminal and then > everything works fine, so I do get the impression that it has to do > with screen rendering in the OS X build. My current emacs version is > 23.2.1. --Manuel > > -- > --- > Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid (UPM) > Director, IMDEA Software and CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax) > --- > > ___ 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: [babel] evaluating shell commands for side effect
Perfect! Thanks very much. -- Greg -- Greg Sullivan, gregory.sulli...@baesystems.com (781)262-4553 (desk), (978)430-3461 (cell) -Original Message- From: Eric Schulte [mailto:schulte.e...@gmail.com] Sent: Wednesday, August 25, 2010 1:30 PM To: Sullivan, Gregory (US SSA) Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] RE: [babel] evaluating shell commands for side effect good question: code blocks in sessions *are evaluated* even if the results of that particular block are not needed for export. This is because those code blocks could make changes to session state, changes which could be required for other code blocks whose results will be included in the final export. You can do the following to inhibit evaluation of the code block. #+begin_src sh :session *shell* :noeval date #+end_src which will silently inhibit the evaluation of the code block. This :noeval header is not currently document, but it should be. I'm adding this to the babel task list. Thanks -- Eric "Sullivan, Gregory (US SSA)" writes: > Another question related to using babel, shell commands, in a session: > > When I try to export a .org file with "begin_src sh :session *shell* :exports > code" blocks, I'm prompted whether I want to evaluate the code. However, I > thought ":exports code" would avoid evaluation on export (and that :session > is only about evaluation). > > Any help appreciated. > Thanks. > > -- Greg > > -- > Greg Sullivan, gregory.sulli...@baesystems.com > (781)262-4553 (desk), (978)430-3461 (cell) > > > -Original Message- > From: emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org > [mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org] On > Behalf Of Sullivan, Gregory (US SSA) > Sent: Thursday, August 19, 2010 12:51 PM > To: emacs-orgmode@gnu.org > Subject: [Orgmode] [babel] evaluating shell commands for side effect > > I'm writing "how to" documents that include sequences of shell commands, such > as: > > #+begin_src sh :session *shell* > cd /home/sullivan/myproj/src > ./configure --prefix /home/sullivan/myproj/install > make > make test > #+end_src > > and simply want C-c C-c to send the lines, one at a time, to the inferior > shell process. That is, I want readers to read along, and then execute the > code as needed. > > Currently, it never returns (until C-g). It might be related to the issues > discussed last November, > http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg01166.html > I have the latest git version of org mode, and I think I've set > comint-prompt-regexp correctly. > > So: I don't want to filter the output, I don't want to collect the results - > just send the commands and go. > > Looking at ob-sh.el/org-babel-sh-evaluate, I can't figure out what the Right > Thing to do is. Appended is a cheap hack that checks for "ignore" as a > results string (e.g. #+begin_src sh :session *shell* :results ignore) and > sends the lines one at a time to the inferior shell buffer. But I suspect > there's a more straightforward way to do it. > > Thoughts? > Thanks. > > -- Greg > > -- > Greg Sullivan, gregory.sulli...@baesystems.com > (781)262-4553 (desk), (978)430-3461 (cell) > > -- > > (defun org-babel-sh-evaluate (session body &optional result-params) > "Pass BODY to the Shell process in BUFFER. > If RESULT-TYPE equals 'output then return a list of the outputs > of the statements in BODY, if RESULT-TYPE equals 'value then > return the value of the last statement in BODY." > ((lambda (results) > (if (or (member "scalar" result-params) >(member "ignore" result-params) >(member "output" result-params)) >results >(let ((tmp-file (make-temp-file "org-babel-sh"))) >(with-temp-file tmp-file (insert results)) >(org-babel-import-elisp-from-file tmp-file >(if (not session) >(org-babel-eval org-babel-sh-command (org-babel-trim body)) > (if (member "ignore" result-params) >(progn > (save-excursion >(set-buffer session) >(mapc > (lambda (line) > (insert line) (comint-send-input nil t) (sleep-for 0.25)) > (split-string (org-babel-trim body) "\n"))) > '()) > > (let ((tmp-file (make-temp-file "org-babel-sh"))) >(mapconcat > #'org-babel-sh-strip-weird-long-prompt > (mapcar >#'org-babel-trim >(butlast > (org-babel-comint-with-output > (session org-babel-sh-eoe-output t body) > (mapc >(lambda (line) > (insert line) (comint-send-input nil t) (sleep-for 0.25)) >(append > (split-string (org-babel-trim body) "\n") > (list org-babel-sh-eoe-indicator > 2)) "\n") > ) > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org
Re: [Orgmode] RE: [babel] evaluating shell commands for side effect
good question: code blocks in sessions *are evaluated* even if the results of that particular block are not needed for export. This is because those code blocks could make changes to session state, changes which could be required for other code blocks whose results will be included in the final export. You can do the following to inhibit evaluation of the code block. #+begin_src sh :session *shell* :noeval date #+end_src which will silently inhibit the evaluation of the code block. This :noeval header is not currently document, but it should be. I'm adding this to the babel task list. Thanks -- Eric "Sullivan, Gregory (US SSA)" writes: > Another question related to using babel, shell commands, in a session: > > When I try to export a .org file with "begin_src sh :session *shell* :exports > code" blocks, I'm prompted whether I want to evaluate the code. However, I > thought ":exports code" would avoid evaluation on export (and that :session > is only about evaluation). > > Any help appreciated. > Thanks. > > -- Greg > > -- > Greg Sullivan, gregory.sulli...@baesystems.com > (781)262-4553 (desk), (978)430-3461 (cell) > > > -Original Message- > From: emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org > [mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org] On > Behalf Of Sullivan, Gregory (US SSA) > Sent: Thursday, August 19, 2010 12:51 PM > To: emacs-orgmode@gnu.org > Subject: [Orgmode] [babel] evaluating shell commands for side effect > > I'm writing "how to" documents that include sequences of shell commands, such > as: > > #+begin_src sh :session *shell* > cd /home/sullivan/myproj/src > ./configure --prefix /home/sullivan/myproj/install > make > make test > #+end_src > > and simply want C-c C-c to send the lines, one at a time, to the inferior > shell process. That is, I want readers to read along, and then execute the > code as needed. > > Currently, it never returns (until C-g). It might be related to the issues > discussed last November, > http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg01166.html > I have the latest git version of org mode, and I think I've set > comint-prompt-regexp correctly. > > So: I don't want to filter the output, I don't want to collect the results - > just send the commands and go. > > Looking at ob-sh.el/org-babel-sh-evaluate, I can't figure out what the Right > Thing to do is. Appended is a cheap hack that checks for "ignore" as a > results string (e.g. #+begin_src sh :session *shell* :results ignore) and > sends the lines one at a time to the inferior shell buffer. But I suspect > there's a more straightforward way to do it. > > Thoughts? > Thanks. > > -- Greg > > -- > Greg Sullivan, gregory.sulli...@baesystems.com > (781)262-4553 (desk), (978)430-3461 (cell) > > -- > > (defun org-babel-sh-evaluate (session body &optional result-params) > "Pass BODY to the Shell process in BUFFER. > If RESULT-TYPE equals 'output then return a list of the outputs > of the statements in BODY, if RESULT-TYPE equals 'value then > return the value of the last statement in BODY." > ((lambda (results) > (if (or (member "scalar" result-params) >(member "ignore" result-params) >(member "output" result-params)) >results >(let ((tmp-file (make-temp-file "org-babel-sh"))) >(with-temp-file tmp-file (insert results)) >(org-babel-import-elisp-from-file tmp-file >(if (not session) >(org-babel-eval org-babel-sh-command (org-babel-trim body)) > (if (member "ignore" result-params) >(progn > (save-excursion >(set-buffer session) >(mapc > (lambda (line) > (insert line) (comint-send-input nil t) (sleep-for 0.25)) > (split-string (org-babel-trim body) "\n"))) > '()) > > (let ((tmp-file (make-temp-file "org-babel-sh"))) >(mapconcat > #'org-babel-sh-strip-weird-long-prompt > (mapcar >#'org-babel-trim >(butlast > (org-babel-comint-with-output > (session org-babel-sh-eoe-output t body) > (mapc >(lambda (line) > (insert line) (comint-send-input nil t) (sleep-for 0.25)) >(append > (split-string (org-babel-trim body) "\n") > (list org-babel-sh-eoe-indicator > 2)) "\n") > ) > > ___ > 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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the li
Re: [Orgmode] [babel] evaluating shell commands for side effect
Hi Gregory, "Sullivan, Gregory (US SSA)" writes: > I'm writing "how to" documents that include sequences of shell commands, such > as: > > #+begin_src sh :session *shell* > cd /home/sullivan/myproj/src > ./configure --prefix /home/sullivan/myproj/install > make > make test > #+end_src > > and simply want C-c C-c to send the lines, one at a time, to the > inferior shell process. That is, I want readers to read along, and > then execute the code as needed. > I'm not sure why this is hanging when a session is used. Could you remove the session argument? If so then it should execute fine, the following works for me (but the same block fails to complete with a session argument) --8<---cut here---start->8--- #+begin_src sh :results silent cd ~/src/org/ make #+end_src --8<---cut here---end--->8--- > > Currently, it never returns (until C-g). It might be related to the >issues discussed last November, > http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg01166.html > I have the latest git version of org mode, and I think I've set > comint-prompt-regexp correctly. > I believe you're right, I've added this as a bug, and I hope to look into it soon. > > So: I don't want to filter the output, I don't want to collect the >results - just send the commands and go. > Using the ":results silent" argument as shown in the above code block. See http://orgmode.org/manual/results.html#results > > Looking at ob-sh.el/org-babel-sh-evaluate, I can't figure out what the >Right Thing to do is. Appended is a cheap hack that checks for >"ignore" as a results string (e.g. #+begin_src sh :session *shell* >:results ignore) and sends the lines one at a time to the inferior >shell buffer. But I suspect there's a more straightforward way to do >it. > We can't simply send the results and go, as there is still the more common case where the results of the shell evaluation are required. I think the issue here is that for some reason the shell session is not inserting results into the session buffer, and that's where the fix should lie. Thanks -- Eric > > Thoughts? > Thanks. > > -- Greg > > -- > Greg Sullivan, gregory.sulli...@baesystems.com > (781)262-4553 (desk), (978)430-3461 (cell) > > -- > > (defun org-babel-sh-evaluate (session body &optional result-params) > "Pass BODY to the Shell process in BUFFER. > If RESULT-TYPE equals 'output then return a list of the outputs > of the statements in BODY, if RESULT-TYPE equals 'value then > return the value of the last statement in BODY." > ((lambda (results) > (if (or (member "scalar" result-params) >(member "ignore" result-params) >(member "output" result-params)) >results >(let ((tmp-file (make-temp-file "org-babel-sh"))) >(with-temp-file tmp-file (insert results)) >(org-babel-import-elisp-from-file tmp-file >(if (not session) >(org-babel-eval org-babel-sh-command (org-babel-trim body)) > (if (member "ignore" result-params) >(progn > (save-excursion >(set-buffer session) >(mapc > (lambda (line) > (insert line) (comint-send-input nil t) (sleep-for 0.25)) > (split-string (org-babel-trim body) "\n"))) > '()) > > (let ((tmp-file (make-temp-file "org-babel-sh"))) >(mapconcat > #'org-babel-sh-strip-weird-long-prompt > (mapcar >#'org-babel-trim >(butlast > (org-babel-comint-with-output > (session org-babel-sh-eoe-output t body) > (mapc >(lambda (line) > (insert line) (comint-send-input nil t) (sleep-for 0.25)) >(append > (split-string (org-babel-trim body) "\n") > (list org-babel-sh-eoe-indicator > 2)) "\n") > ) > > ___ > 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] Trouble syncing files to mobile-org.
I set it up using the Dropbox option. When I try to sync, it only syncs index.org, mobileorg.org and agendas.org. I looked in the checksums.dat file and noticed that those files are the only files that use 'md5' to generate the checksum. The other files use 'shasum'. I've tried removing all the files and pushing them again but every time mobile-org just syncs index.org and mobileorg.org. After syncing, emacs shows the new items but after a push from emacs and resync on the iphone, the items disappear on the iphone. I'm using version 1.3 of mobileorg and org-mode version 7.01trans. Any ideas? ___ 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] [Patch] org-capture.el
Bastien, I've had a chance to look into this again today, and I've found something that might help you track down the bug (if it is a bug). I've found that when I use this capture template: ("L" "reference" entry (*file+headline* "~/code/org/reference.org" "Test") "* %^{Description} %^G \n%? \n %U" :prepend) tags get aligned properly. However, not so with this one, which differs only with respect to the target parameter (file+headline vs. file): ("L" "reference" entry (*file* "~/code/org/reference.org") "* %^{Description} %^G \n%? \n %U" :prepend) Hope this is helpful and not just distracting. Best, Mark On Thu, Aug 12, 2010 at 9:02 AM, Bastien wrote: > Hi Mark, > > Mark Scala writes: > > > Thanks, I hadn't checked the value of org-auto-realign-tags before > looking at > > org-capture. > > (Please note this is `org-auto-align-tags' -- not > `org-auto-REalign-tags'.) > > > But unfortunately that doeesn't solve the problem for me, the > > tags just aren't realigning. (org-auto-realign-tags is set true by > default in > > my reference branch.) My capture output still looks like this: > > > > * Headline :tag: > > stuff here > > > > Tags align normally for only after adding that line to org-capture. > > Yes, but it should work without that line since `org-set-tags' is called > beforehand in the process of creating the captured entry. > > I'm digging into this to see what's wrong. > > Thanks, > > -- > 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: How to customize the org-mode's BEGIN_SRC HTML output
Eric, I should mention that I am using the "Syntaxhighlighter Evolved" plugin for Wordpress. It allows shortcodes with just the language name. I probably should use the [sourcecode lang="..."] variant instead. Maybe that is why my version did not work for you? My latest page created with my code can be found at: http://bnbeckwith.com/index.php/writegood-mode/ As for the linebreaks, in my haste to share I forgot that I was advising the org2blog-strip-newlines function. Which effectively keeps all line breaks. -- (defadvice org2blog-strip-new-lines (around bnb/org2blog-disable-newline-removal) "Disables the function the removes newlines from the generated HTML" (setq ad-return-value (ad-get-arg 0))) -- ___ 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] support plantuml
I came across Ian Yang's [[http://www.emacswiki.org/emacs/org-export-blocks-format-plantuml.el][org-export-blocks-format-plantuml]] a few days ago, which brought me in front of the great software [[http://plantuml.sourceforge.net/][Plantuml]]. It is an open-source tool in java that allows to quickly write: - sequence diagram, - use case diagram, - class diagram, - activity diagram, - component diagram, - state diagram - object diagram using a simple and intuitive language. Although Ian Yang's code has incorporated plantuml in org-mode by =#+BEGIN_UML= and =#+END_UML=, I think it should be a good idea to introduce the plantuml as a new language into org-babel. Here is the "ob-plantuml.el": ob-plantuml.el Description: application/emacs-lisp I am not sure if it is qualified to be part of org-babel, so I just put it here first. In addition, I also wrote a new major mode “plantuml-mode.el” which provides preliminary font-lock function for plantuml scripts, see http://zhangweize.wordpress.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] [babel] help debugging org-babel-execute-buffer
Hi Nick, Thanks for hunting this bug down. Nick Dokos writes: > Austin Frank wrote: > > >> I have a document that always throws an error when I call >> org-babel-execute-buffer. I'd guess that there's one particular block >> that is to blame, but I can't tell which block babel is in at the point >> when the error is thrown. >> >> The error is: >> >> #v+ >> Debugger entered--Lisp error: (invalid-function org-save-outline-visibility) >> org-save-outline-visibility(t 1 nil nil) >> org-babel-execute-buffer(nil) >> call-interactively(org-babel-execute-buffer nil nil) >> #v- >> >> Looking at the macro for org-save-outline-visibility, I think the >> problem has to do with the last two arguments being passed in as nil >> nil. I don't, however, know how this is happening. >> > > I think this is a bug: org-save-outline-visibility is indeed a macro, > defined in org.el, but ob.el does not require org.el, so when it is > compiled, the compiler thinks it's a function that will be defined elsewhere. > If the uncompiled ob.el is loaded, there should be no problem. > > Two possible solutions: > > - (require 'org) in ob.el. This first solution can't work, because org.el requires ob.el, and circular requires are not allowed. > > - move the definition of the macro to org-macs.el (which is required > by ob.el *and* org.el.) > > I'd vote for the second, but Carsten and/or Eric might have a different > preference. > I agree this sounds like a good solution, if Carsten agrees then I will apply it. Thanks -- Eric > > 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 ___ 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] Mark days in calendar based on agenda
Good day, I’m quite new to org-mode so please forgive me in case this question already has been answered somewhere else – if that is the case, I wasn’t able to find it. Anyway, I would like my calendar to mark days based on agenda entries. For example, I have a line like the following: Exam <2010-09-07 Di 11:00> PC 102 :ATTACH: in my notes.org and agenda displays it nicely 7 September 2010 notes: 11:00.. Exam PC 102 :ATTACH: However, I would also like to have calendar highlight that day in it’s overview the same way it would if I entered this line: 2010-09-07 11:00 Exam PC 102 into my diary file. Is there any way to achieve this? Best regards and thank you for reading, Claudius -- What's love but a second-hand emotion? -- Tina Turner http://chubig.net/ ___ 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: How to customize the org-mode's BEGIN_SRC HTML output
On Wed, 25 Aug 2010 18:21:22 +0530, Puneeth wrote: > > Hi All, > > I'm not sure if I should've jumped into the discussion much earlier, > but anyways, > > On Wed, Aug 25, 2010 at 5:53 PM, Rafael wrote: > > I think Benjamin means that he has customized this > > > > http://en.support.wordpress.com/shortcodes/ > > > > so that his code works directly. But it is not clear to me which changes > > he had to do for that, nor if that is available to free wordpress > > users... > > I do not understand the part about wordpress shortcodes and stuff. For > the theme I use on my wordpress.com blog, I do not get any syntax > highlighting from the direct html export of org(2blog). I only > learnt, recently that wordpress has a special way to include code for > syntax highlighting. (Some themes seem to highlight code in documents > generated directly using org's export. for eg: [1]) It turns, having dug deeper, that there are two formats for source code highlighting. The two formats exist because users that have a blog hosted by wordpress (e.g. someblog.wordpress.com) use one format and those users that have their own hosted blogs based on wordpress.org code use another. The first is based on =[sourcecode language...]= construct; the latter is based on a plugin and the format is =[language]...[/language]=. I don't understand why the difference exists. > > > Oh, and by the way, with Org-mode version 7.01h I concur with Eric in > > that I unfortunately still lose the linebreaks and get LaTeX code > > modified with Benjamin's new version.. > > The line breaks being stripped off is due to code in org2blog. It has [...] Ah ha! This makes sense. Thanks. -- 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: How to customize the org-mode's BEGIN_SRC HTML output
Hi All, I'm not sure if I should've jumped into the discussion much earlier, but anyways, On Wed, Aug 25, 2010 at 5:53 PM, Rafael wrote: > I think Benjamin means that he has customized this > > http://en.support.wordpress.com/shortcodes/ > > so that his code works directly. But it is not clear to me which changes > he had to do for that, nor if that is available to free wordpress > users... I do not understand the part about wordpress shortcodes and stuff. For the theme I use on my wordpress.com blog, I do not get any syntax highlighting from the direct html export of org(2blog). I only learnt, recently that wordpress has a special way to include code for syntax highlighting. (Some themes seem to highlight code in documents generated directly using org's export. for eg: [1]) > Oh, and by the way, with Org-mode version 7.01h I concur with Eric in > that I unfortunately still lose the linebreaks and get LaTeX code > modified with Benjamin's new version.. The line breaks being stripped off is due to code in org2blog. It has nothing to do with org-mode's export. Wordpress does not ignore linebreaks in the content, which looks very ugly for normal posts. Code in org2blog strips off the line breaks from the html generated by org-export-as-html. It checks for and tags and leaves out the newlines within those tags. This is (most) probably what is causing trouble. I'll only be able to look into it in the weekend. Anybody is free to beat me to that. :) HTH, Puneeth [1] - http://rvftestblog.wordpress.com/2010/08/14/testing-code-blocks/ ___ 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: How to customize the org-mode's BEGIN_SRC HTML output
Eric S Fraga writes: > On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith > wrote: >> >> Rafael, >> >> I had my shortcodes setup to accept the language directly. Your change >> should work as you indicated. I have an additional fix to my code that >> should behave better for you. I add a property, org-protected, that >> prevents processing of the text. >> >> I tried it on your code blocks by calling org-export directly (C-c C-e) >> and then choosing 'H' to see the html in a buffer. This really helps >> with debug. >> >> Fixed code follows > > [...] > > Benjamin, > > can you show us a simple example blog entry that works with this? I > have tried and, with your version, I do not get the source code plugin > in Wordpress invoked. If I use Rafael's change, the plugin does get > used. Also, both your code and Rafael's cause all linebreaks in the > code to disappear. > > For instance, with some simple =MATLAB= code: > > #+srcname: matlabblock > #+begin_src matlab > function y = f(x) > x = 1989; > y = (2010-x)^2; > #+end_src > > your most recent code generates > > , > | [matlab] function y = f(x) x = 1989; y = (2010-x)^2; [/matlab] > ` > > which is not something wordpress seems to understand? > I think Benjamin means that he has customized this http://en.support.wordpress.com/shortcodes/ so that his code works directly. But it is not clear to me which changes he had to do for that, nor if that is available to free wordpress users... Oh, and by the way, with Org-mode version 7.01h I concur with Eric in that I unfortunately still lose the linebreaks and get LaTeX code modified with Benjamin's new version.. ___ 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: Bug: habit: better error handling required [TAG=7.01g]
Carsten Dominik writes: > Patch 241 (http://patchwork.newartisans.com/patch/241/) is now "Accepted". > > Maintainer comment: Hat to fix the commit message to contain propert > ChangeLog. Please take a look for next time > I looked at the modified log. I think now I know how it should be. I will keep this in mind. Thank you for fixing the log. Thanks and Regards Noorul ___ 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: [Accepted] [Orgmode] Recognize underscores in URL
On Aug 25, 2010, at 12:33 PM, Carsten Dominik wrote: Patch 214 (http://patchwork.newartisans.com/patch/214/) is now "Accepted". Maintainer comment: Tanks Arrgh! THANKS! This relates to the following submission: http://mid.gmane.org/%3C877hjv90fo.wl%25n.goaziou%40gmail.com%3E Here is the original message containing the patch: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] Recognize underscores in URL Date: Thu, 12 Aug 2010 22:59:39 - From: Nicolas Goaziou X-Patchwork-Id: 214 Message-Id: <877hjv90fo.wl%n.goaz...@gmail.com> To: Org Mode List Hello, This needs some testing as it may break something else, but the following patch should prevent underscores in URL from introducing subscript. Regards, -- Nicolas From dd068df8a0e43a1a4ee85559bddb7ef2dbfa72bd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 12 Aug 2010 19:47:29 +0200 Subject: [PATCH] Recognize URL with underscores * org.el (org-make-link-regexps): modified regexp of org-plain-link- re. --- lisp/org.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 31d2411..4560488 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4851,7 +4851,7 @@ This should be called after the variable `org- link-types' has changed." org-plain-link-re (concat "\\<\\(" (mapconcat 'regexp-quote org-link-types "\\|") "\\):" - (org-re "\\([^ \t\n()<>]+\\(?:([[:word:]0-9]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)")) + (org-re "\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)")) ;; "\\([^]\t\n\r<>() ]+[^]\t\n\r<>,.;() ]\\)") org-bracket-link-regexp "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" ___ 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
[Accepted] [Orgmode] Recognize underscores in URL
Patch 214 (http://patchwork.newartisans.com/patch/214/) is now "Accepted". Maintainer comment: Tanks This relates to the following submission: http://mid.gmane.org/%3C877hjv90fo.wl%25n.goaziou%40gmail.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] Recognize underscores in URL > Date: Thu, 12 Aug 2010 22:59:39 - > From: Nicolas Goaziou > X-Patchwork-Id: 214 > Message-Id: <877hjv90fo.wl%n.goaz...@gmail.com> > To: Org Mode List > > Hello, > > This needs some testing as it may break something else, but the > following patch should prevent underscores in URL from introducing > subscript. > > Regards, > > -- Nicolas > >From dd068df8a0e43a1a4ee85559bddb7ef2dbfa72bd Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Thu, 12 Aug 2010 19:47:29 +0200 > Subject: [PATCH] Recognize URL with underscores > > * org.el (org-make-link-regexps): modified regexp of org-plain-link-re. > > --- > lisp/org.el |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index 31d2411..4560488 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -4851,7 +4851,7 @@ This should be called after the variable > `org-link-types' has changed." > org-plain-link-re > (concat >"\\<\\(" (mapconcat 'regexp-quote org-link-types "\\|") "\\):" > - (org-re "\\([^ \t\n()<>]+\\(?:([[:word:]0-9]+)\\|\\([^[:punct:] > \t\n]\\|/\\)\\)\\)")) > + (org-re "\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] > \t\n]\\|/\\)\\)\\)")) > ;; "\\([^]\t\n\r<>() ]+[^]\t\n\r<>,.;() ]\\)") > org-bracket-link-regexp > "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" > ___ 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
[Accepted] [Orgmode] Re: Bug: habit: better error handling required [TAG=7.01g]
Patch 241 (http://patchwork.newartisans.com/patch/241/) is now "Accepted". Maintainer comment: Hat to fix the commit message to contain propert ChangeLog. Please take a look for next time This relates to the following submission: http://mid.gmane.org/%3C87iq2zkqdg.fsf%40noorul.maa.corp.collab.net%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] Re: Bug: habit: better error handling required [TAG=7.01g] > Date: Wed, 25 Aug 2010 14:12:27 - > From: Noorul Islam > X-Patchwork-Id: 241 > Message-Id: <87iq2zkqdg@noorul.maa.corp.collab.net> > To: paulusm > Cc: emacs-orgmode@gnu.org > > paulusm writes: > > > Hi org-mode people, > > > > Whilst playing with the "shaving" example from > > http://orgmode.org/manual/Tracking-your-habits.html I accidentally put a > > bad character in the SCHEDULED timestamp. > > > > Instead of: "SCHEDULED: <2010-08-26 Thu .+2d/4d>" > > I had: "SCHEDULED: <2010-08-26 Thu .+2nd/4d>" > > > > When trying to view my agenda, I was presented with a blank agenda and Emacs > > very quietly reported: > > "org-habit-duration-to-days: Wrong type argument: stringp, nil" > > which is not really helpful. > > > > Removing the bad character fixes the issue, and I can duplicate the error > > condition as described above. > > > > Perhaps some better error trapping could be done? > > > > > > Attached is the patch which catch this error and throws meaningful > message. > > lisp/org-habit.el : (org-habit-parse-todo) > - Find sr-days only if scheduled-repeat is non nil > - Used 4th element of the list returned by (org-heading-components) > as habit-entry > - Modified the error message to be more meaningful. > > Thanks and Regards > Noorul > > > diff --git a/lisp/org-habit.el b/lisp/org-habit.el > index 2fa352f..9071e2f 100644 > --- a/lisp/org-habit.el > +++ b/lisp/org-habit.el > @@ -149,15 +149,15 @@ This list represents a \"habit\" for the rest of this > module." > (assert (org-is-habit-p (point))) > (let* ((scheduled (org-get-scheduled-time (point))) > (scheduled-repeat (org-get-repeat org-scheduled-string)) > -(sr-days (org-habit-duration-to-days scheduled-repeat)) > (end (org-entry-end-position)) > -(habit-entry (org-no-properties (nth 5 (org-heading-components > -closed-dates deadline dr-days) > +(habit-entry (org-no-properties (nth 4 (org-heading-components > +closed-dates deadline dr-days sr-days) >(if scheduled > (setq scheduled (time-to-days scheduled)) > (error "Habit %s has no scheduled date" habit-entry)) >(unless scheduled-repeat > - (error "Habit %s has no scheduled repeat period" habit-entry)) > + (error "Habit '%s' has no scheduled repeat period or has an incorrect > one" habit-entry)) > + (setq sr-days (org-habit-duration-to-days scheduled-repeat)) >(unless (> sr-days 0) > (error "Habit %s scheduled repeat period is less than 1d" habit-entry)) >(when (string-match "/\\([0-9]+[dwmy]\\)" scheduled-repeat) > ___ 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] "{" in Latex fragments
Christian Wittern, on the road On Aug 25, 2010, at 17:39, Eric S Fraga wrote: >> >> to >> >> hello [\J ウ ] or: (\J ウ) >> >> [] and () are not escaped >> >> cheers, >> Giovanni > > I think because the {}'s define a scope in latex and so the \J only > affects text surrounded by the {}. > Exactly. > > For Christian, what about "\J{ text }" instead as org is careful to > let this type of construct go through unchanged, if I understand > correctly. This does depend on how you have defined J but possibly a > slight redefinition would work (\newcommand{\J}[1]{ #1}). I had tried this first, but somehow the font was not switched back. But now, looking at your example, I think it might have been because of a missing space. I will give it a try. Thanks a lot, Christian ___ 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] Re: Bug: habit: better error handling required [TAG=7.01g]
paulusm writes: > Hi org-mode people, > > Whilst playing with the "shaving" example from > http://orgmode.org/manual/Tracking-your-habits.html I accidentally put a > bad character in the SCHEDULED timestamp. > > Instead of: "SCHEDULED: <2010-08-26 Thu .+2d/4d>" > I had: "SCHEDULED: <2010-08-26 Thu .+2nd/4d>" > > When trying to view my agenda, I was presented with a blank agenda and Emacs > very quietly reported: > "org-habit-duration-to-days: Wrong type argument: stringp, nil" > which is not really helpful. > > Removing the bad character fixes the issue, and I can duplicate the error > condition as described above. > > Perhaps some better error trapping could be done? > > Attached is the patch which catch this error and throws meaningful message. lisp/org-habit.el : (org-habit-parse-todo) - Find sr-days only if scheduled-repeat is non nil - Used 4th element of the list returned by (org-heading-components) as habit-entry - Modified the error message to be more meaningful. Thanks and Regards Noorul diff --git a/lisp/org-habit.el b/lisp/org-habit.el index 2fa352f..9071e2f 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -149,15 +149,15 @@ This list represents a \"habit\" for the rest of this module." (assert (org-is-habit-p (point))) (let* ((scheduled (org-get-scheduled-time (point))) (scheduled-repeat (org-get-repeat org-scheduled-string)) - (sr-days (org-habit-duration-to-days scheduled-repeat)) (end (org-entry-end-position)) - (habit-entry (org-no-properties (nth 5 (org-heading-components - closed-dates deadline dr-days) + (habit-entry (org-no-properties (nth 4 (org-heading-components + closed-dates deadline dr-days sr-days) (if scheduled (setq scheduled (time-to-days scheduled)) (error "Habit %s has no scheduled date" habit-entry)) (unless scheduled-repeat - (error "Habit %s has no scheduled repeat period" habit-entry)) + (error "Habit '%s' has no scheduled repeat period or has an incorrect one" habit-entry)) + (setq sr-days (org-habit-duration-to-days scheduled-repeat)) (unless (> sr-days 0) (error "Habit %s scheduled repeat period is less than 1d" habit-entry)) (when (string-match "/\\([0-9]+[dwmy]\\)" scheduled-repeat) ___ 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] "{" in Latex fragments
On Wed, 25 Aug 2010 10:21:43 +0200, Giovanni Ridolfi wrote: > > Christian Wittern writes: > > > In my org-mode document, I have a special sequence to switch to a Japanese > > font defined as \J. When using this, I have to do something like {\J > > (Japanese characters here}. However, when I run the org-mode export, the > > braces "{" and "}" are escaped as \{ and \} and thus loosing their > > function. > > yes. > > but why don't you change the sequence? I mean: > > from: > > hello {\J ウ} > > to > > hello [\J ウ ] or: (\J ウ) > > [] and () are not escaped > > cheers, > Giovanni I think because the {}'s define a scope in latex and so the \J only affects text surrounded by the {}. For Christian, what about "\J{ text }" instead as org is careful to let this type of construct go through unchanged, if I understand correctly. This does depend on how you have defined J but possibly a slight redefinition would work (\newcommand{\J}[1]{ #1}). HTH, eric -- MC . -.. --- - ..-. .-. .- --. .- .- - ..- -.-. .-.. .- -.-. ..- -.- NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/ PG Fingerprint: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D BF >++[>++>+++[<]>-]>++.>.<-.++.--. ___ 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] "{" in Latex fragments
Or what about \J{japanese characters here}? I do the same with Hebrew, \heb{לִפְנֵי יְהוָה} and (without claiming to have done extensive testing), it seems to work. Org mode is set up to let arbitrary macros of the format \mymacro{data} pass through to LaTeX. You might not even have to change your definitions. Scot On Wed, Aug 25, 2010 at 9:21 AM, Giovanni Ridolfi wrote: > Christian Wittern writes: > > > In my org-mode document, I have a special sequence to switch to a > Japanese > > font defined as \J. When using this, I have to do something like {\J > > (Japanese characters here}. However, when I run the org-mode export, the > > braces "{" and "}" are escaped as \{ and \} and thus loosing their > > function. > > yes. > > but why don't you change the sequence? I mean: > > from: > > hello {\J ウ} > > to > > hello [\J ウ ] or: (\J ウ) > > [] and () are not escaped > > 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 > ___ 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: How to customize the org-mode's BEGIN_SRC HTML output
On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith wrote: > > Rafael, > > I had my shortcodes setup to accept the language directly. Your change > should work as you indicated. I have an additional fix to my code that > should behave better for you. I add a property, org-protected, that > prevents processing of the text. > > I tried it on your code blocks by calling org-export directly (C-c C-e) > and then choosing 'H' to see the html in a buffer. This really helps > with debug. > > Fixed code follows [...] Benjamin, can you show us a simple example blog entry that works with this? I have tried and, with your version, I do not get the source code plugin in Wordpress invoked. If I use Rafael's change, the plugin does get used. Also, both your code and Rafael's cause all linebreaks in the code to disappear. For instance, with some simple =MATLAB= code: --8<---cut here---start->8--- #+srcname: matlabblock #+begin_src matlab function y = f(x) x = 1989; y = (2010-x)^2; #+end_src --8<---cut here---end--->8--- your most recent code generates , | [matlab] function y = f(x) x = 1989; y = (2010-x)^2; [/matlab] ` which is not something wordpress seems to understand? Thanks, 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
Re: [Orgmode] "{" in Latex fragments
Christian Wittern writes: > In my org-mode document, I have a special sequence to switch to a Japanese > font defined as \J. When using this, I have to do something like {\J > (Japanese characters here}. However, when I run the org-mode export, the > braces "{" and "}" are escaped as \{ and \} and thus loosing their > function. yes. but why don't you change the sequence? I mean: from: hello {\J ウ} to hello [\J ウ ] or: (\J ウ) [] and () are not escaped 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] Re: How to customize the org-mode's BEGIN_SRC HTML output
On Tue, 24 Aug 2010 21:36:40 -0500, Rafael wrote: > > Benjamin Beckwith writes: > > > Hi, I also was interested in posting these blocks (through org2blog in > > wordpress). The code I posted below is added to > > 'org-export-preprocess-hooks' where it looks for BEGIN_SRC blocks as > > well as ':' blocks of code. > > > > In the case of BEGIN_SRC blocks, I add a header option, :syntaxhl where > > I can pass in additional settings to the syntaxhighlighter code. > > > > The code below uses Wordpress shortcodes, but I am sure that you can > > adapt for your own purposes. > > Thanks! that seems to almost work for me, if I replace your penultimate > line: > > > (concat "\n\n[" lang syntaxhl "]\n" body "[/" lang "]\n") > > by > > (concat "\n\n[sourcecode language=\"" lang syntaxhl "\"]\n" > body "[/sourcecode]\n") > > but then the line breaks are lost, and the latex exporter tries to be > too smart and replace the code.. Please see [...] Actually, I lose the line breaks with the original version as well. -- 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] "{" in Latex fragments
Hi there, In my org-mode document, I have a special sequence to switch to a Japanese font defined as \J. When using this, I have to do something like {\J (Japanese characters here}. However, when I run the org-mode export, the braces "{" and "}" are escaped as \{ and \} and thus loosing their function. Is there some switch to prevent this from happening? I would much rather write \{ myself in the few cases where I in fact need it. Any help appreciated, Chris ___ 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