Re: [Orgmode] Re: [PATCH] Suppress extra newlines around source code in LaTeX export
2009/12/14 Carsten Dominik carsten.domi...@gmail.com: Actually, I cannot reproduce this problem - I do not see the extra newline. Hi Carsten, you're absolutely right, I performed yet another git pull and couldn't reproduce this either. Great ! Now, speaking of extra newlines, I'm puzzled about this: at some stage (which I didn't identify yet, maybe when exporting to LaTeX), Org adds an ID property to some headings in my document ; that is, for instance, * Aa * Bb Text becomes * Aa * Bb :PROPERTIES: :ID: fa489059-d27e-47fb-929d-8ca9c749d079 :END: Text Notice the extra newline between :END: and Text. It's all good except when exporting to LaTeX *and* the concerned heading is to be treated as an item. I've been thinking a bit about this special case ; and it seems to me like, on one side, the extra newline should remain, and on the other side, empty lines following a heading should be ignored by the LaTeX translator when this heading is translated into an item. What do you think ? -- Nicolas ___ 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] Logbook mode doesn't honor org-log-note-headings
2009/12/14 Carsten Dominik carsten.domi...@gmail.com: Hi Nicolas, On Dec 10, 2009, at 11:20 PM, Nicolas Girard wrote: Hi, Org offers the ability to customize how state changes should be recorded via the 'org-log-note-headings' variable; and I couldn't prevent myself from doing so. I just came to realize this was the reason why the logbook mode kept being desperatly silent in my agenda views... I think this only applies to the state changes, right? Or is there anything else dependent on this? I'm not sure I understand your question ; I think yes, and what you just added to the documentation is self explaining, thanks ! There seems to be an extra 'because', btw: diff --git a/lisp/org.el b/lisp/org.el @@ -2070,7 +2070,10 @@ empty string. +In fact, it is not a good idea to change the `state' entry, because +because agenda log mode depends on the format of these entries. -- Nicolas ___ 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] Agenda view forgets about including inactive timestamps when refreshed
2009/12/14 Carsten Dominik carsten.domi...@gmail.com: On Dec 10, 2009, at 11:26 PM, Nicolas Girard wrote: Hi, after the inactive timestamps were included into the agenda view by typing '[', they get lost when the view is refreshed by typing 'g'. I'm not sure, but it looks like a bug to me. Yes, I have not really made this into one of the formal view modes, because I believe that this view is the exception, and it is expensive to make. I'd think it is not so bad to press `g [' if you need it, right? Sure, it's harmless ! -- Nicolas ___ 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] Feature request: Remote editing inactive timestamps from the agenda view
2009/12/14 Carsten Dominik carsten.domi...@gmail.com: Hi Nicolas, On Dec 10, 2009, at 11:51 PM, Nicolas Girard wrote: Hi, in the agenda view, the '' key can be used to change the timestamp associated with the current line. 1. It seems inacurrately described in the manual (Change the timestamp associated with the current line **to today**). Indeed, it used to be like this, but no longer. Fixed now 2. When dealing with inactive timestamp, the '' key currently does nothing. Could it be possible to make it also work with inactive timestamps ? You mean if the entry i in the agenda because of an inactive time stamp? Yes, I'd think that makes sense. Done Thanks Carsten, it's quite handy ! -- Nicolas ___ 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] Quoting latex code
I want to do something which I think should be really simple. I'm writing a small guide of latex for org-users, useful for people working with me that don't know latex but must insert some symbols in org-files. So I want to create simple tables where I insert the symbol and the output. But however I insert \phi|\pi|whatever it gets always transformed into the symbol when exporting to pdf. (also \mbox doesn't work) How could I do to get something like this: literal(\phi) - \phi Without possibly having to write some #+BEGIN... Thanks ___ 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] Quoting latex code
2009/12/15 andrea andrea.crott...@gmail.com: I want to do something which I think should be really simple. I'm writing a small guide of latex for org-users, useful for people working with me that don't know latex but must insert some symbols in org-files. So I want to create simple tables where I insert the symbol and the output. But however I insert \phi|\pi|whatever it gets always transformed into the symbol when exporting to pdf. (also \mbox doesn't work) How could I do to get something like this: literal(\phi) - \phi Without possibly having to write some #+BEGIN... Thanks Hi Andrea, what about =\phi= ? -- Nicolas ___ 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: Quoting latex code
Nicolas Girard nicolas.gir...@nerim.net writes: Hi Andrea, what about =\phi= ? Nice thanks, I didn't see it in the doc.. Anyway in the table I still have troubles, when I write this --8---cut here---start-8--- | \pi | #ERROR | | || #+TBLFM: $2=\pi= --8---cut here---end---8--- So writing =\something= is interpreted as the formula for that cell, should I maybe just not use a table? ___ 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: Quoting latex code
On Dec 15, 2009, at 1:49 PM, andrea wrote: Nicolas Girard nicolas.gir...@nerim.net writes: Hi Andrea, what about =\phi= ? Nice thanks, I didn't see it in the doc.. Anyway in the table I still have troubles, when I write this --8---cut here---start-8--- | \pi | #ERROR | | || #+TBLFM: $2=\pi= --8---cut here---end---8--- So writing =\something= is interpreted as the formula for that cell, should I maybe just not use a table? You can also write ~\pi~ - 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
Re: [Orgmode] Integrating ctags org mode (patch)
Another issue is the following: How should we handle export of such links? Maybe we need another function that does not *jump* to the link location, but just returns the file in which the target is, so that the exporters can make use of this? - Carsten On Dec 15, 2009, at 8:20 AM, Carsten Dominik wrote: Hi Paul, I like this very much. But I would like to change the implementation so that there will be a hook. Then people can do different things, including matching tags in source code files etc. Would you be interested to turn your way of doing things into a little add-on that people could load? I realize that it would be a very small file because the heavy lifting is done by the tags creating file and Emacs ctags searches. But it would keep the way open for other ideas. If you agree I will make a new hook and interface for this. I would be very interested to include the new module (if you write it) at least as a contributed package, or, if you are willing to sign the papers with the FSF, in the core. - Carsten On Dec 15, 2009, at 4:02 AM, Paul Sexton wrote: Hi, I have managed to get exuberant ctags working with org mode. This means that plain links [[like this]], instead of defaulting to plain text search when no match is found in the current file, now look for a matching tag like this in all your *.org files, and jumps there. This means your org files all now seamlessly talk to each other and interlink. You can split that monolithic file up into smaller files and the plain links still work. You can throw a plain link to a topic you know exists in another file, without having to worry about the format of special inter- file links, whether you got the directory right, and so on. Steps: 1. First you need a small patch to org.el. This is necessary because AFAIK there is no easy way to customise or advise org's behaviour when opening a plain link. The patch is at the end of this post. 2. Next you need to get exuberant ctags from http://ctags.sourceforge.net/ There is a windows executable there (a zip file). Many linux distributions have 'ctags-exuberant' as an installable package in their repositories. If you are using windows, extract the ctags.zip file into a directory somewhere, eg C:\emacs23\ctags 3. Now make a new file called .ctags in your HOME directory. If you are not sure where this is, evaluate (getenv HOME) in the emacs scratch buffer. Put the following 3 lines into this file, then save it: --langdef=orgmode --langmap=orgmode:.org --regex-orgmode=/([^]+)/\1/d,definition/ The last line is a regular expression that defines what a tag is in orgmode. If you don't like my definition based on angle brackets, or you want to add other destinations as tags, just alter the bit between the first two /...slashes.../ 4. Paste the following into your .emacs file: (defvar home-dir /home/paul/) ; replace with your home dir (defun operating-system () (case system-type ((windows-nt cygwin) 'windows) (darwin 'macos) (otherwise 'unix))) (defvar path-to-ctags (case (operating-system) (windows c:/emacs/ctags/ctags.exe) ; or whereever you extracted it (unix /usr/bin/ctags-exuberant)); wherever it went Path to the CTAGS executable.) (defun create-tags (dir-name) Create tags file. (interactive DBase directory: ) (shell-command (format %s --options=%s/.ctags -f %s/TAGS -e -R %s/* path-to-ctags home-dir dir-name dir-name))) (global-set-key (kbd M-kp-multiply) 'pop-tag-mark) (defadvice find-tag (before set-org-mark-before-finding-tag activate compile) Before trying to find a tag, save our current position on org mark ring. (save-excursion (if (org-mode-p) (org-mark-ring-push 5. Now run create-tags: M-x create-tags ENTER /path/to/org/files/ ENTER create-tags searches all subdirectories as well, and will also create tags for all source code files that if finds (*.c, *.lisp, *.el, etc). All these tags will go in one big TAGS file, located in the base directory that you specify as an argument to create-tags. Thus, if you have any large source trees in subdirectories, create-tags may pause for a few seconds. 6. Check that the file 'TAGS' is in the right place and is not an empty file. Tags is now ready to use. See below for usage. The first time you try and find a tag, you will be asked which tags file to use. The right answer is the file named TAGS which you created with create-tags. To avoid being asked this every time you restart emacs, try putting this in your .emacs: (add-hook 'org-mode-hook (lambda () (visit-tags-table /path/to/TAGSfile) Tags are defined in the .ctags file as any text in double angle brackets. (triple angle brackets work too) When you click on a link [[foo]] and org cannot find a matching foo in the current buffer, the tags facility will take over. The file TAGS is examined to see if the tags facility knows
Re: [Orgmode] Beamer support in Org-mode
At Thu, 10 Dec 2009 17:09:33 +0100, Carsten Dominik wrote: [...] One option would be to turn all those notes into footnotes for other export. Carsten, I wonder if simply turning this on its head wouldn't be a good solution? By this I mean to use org-mode footnotes to represent beamer notes (at least in my view footnotes make no sense in presentations). In export, footnotes are translated to notes for beamer but are treated as usual for all other export targets. A thought... ___ 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: Column mode breaks beamer export [6.33trans]
After I enable column view of properties in the attached file, export to PDF via LaTeX fails with the following error in the minibuffer: org-export-as-latex: Text is read-only: Type `e' to edit property Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on palmer, modified by Debian Package: Org-mode version 6.33trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-files '(/src/greenrd/org) org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-checklist-export-function 'org-export-as-ascii org-after-todo-state-change-hook '(org-clock-out-if-current org-checklist) org-agenda-todo-ignore-scheduled t org-startup-folded nil org-agenda-sorting-strategy '((agenda time-up priority-down effort-up category-keep) (todo priority-down effort-up category-keep) (tags priority-down effort-up category-keep) (search category-keep)) org-agenda-prefix-format '((agenda . %-12:c%-12:T%?-12t% s) (timeline . % s) (todo . %-12:c) (tags . %-12:c) (search . %-12:c)) org-deadline-warning-days 900 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-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-todo-keywords '((sequence TODO(t) QUESTION(q) PLANNING(p) PENDING(e) STARTED(s) FINISHING(f) | DONE(d) OBSOLETE(o)) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file /src/greenrd/org/remember.org org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-global-properties '((Effort_ALL . 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00)) org-return-follows-link t org-confirm-elisp-link-function 'yes-or-no-p org-beamer-environments-extra '((figure F \\begin{figure} \\end{figure})) org-agenda-todo-ignore-with-date t org-enforce-todo-dependencies t org-occur-hook '(org-first-headline-recenter) org-priority-start-cycle-with-default nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-agenda-todo-ignore-deadlines t org-modules '(org-bbdb org-bibtex org-gnus org-info org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m org-checklist org-interactive-query org-man org-registry) org-remember-templates '((Web link 119 * %u %c \n\n%:region\n nil Web links nil)) 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-enforce-todo-checkbox-dependencies t org-lowest-priority 70 ) #+STARTUP: beamer #+TITLE: Cohere: Towards Web 2.0 Argumentation #+AUTHOR: Simon Buckingham Shum #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_FRAME_LEVEL: 2 #+BEAMER_HEADER_EXTRA: \usetheme{Szeged}\usecolortheme{wolverine}\institute{Knowledge Media Institute, The Open University, UK} #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra) #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 :ETC * Context ** What is argumentation software? *** *mapping* an argument :BMCOL: :PROPERTIES: :BEAMER_col: 0.5 :BEAMER_envargs: C[T] :END: exposing its structure * typically in graph form *** for the purposes of this talk # I was going to say typically here, but I've only read 4-5 papers # in this area, so I can't be sure that it's typical. But that's how # it seems to me. *manual* data entry * not extraction can relate back to sources * links * video timestamps *** :B_figure:BMCOL: :BMCOL:B_figure: :PROPERTIES: :BEAMER_col: 0.5 :BEAMER_env: figure :END: \includegraphics[width=.7\columnwidth]{What_the_Bible_says.jpg} *** optionally *queries* for sub-arguments *multiple* I/O styles * directed graph * textual outline *collaborative editing* ** Why use argumentation software? *** example: climate change debates *** large and complex *** interdisciplinary science politics economics ethics *** timely Copenhagen conference * G77 delegates walk out ***
Re: [Orgmode] Beamer support in Org-mode
Good idea Eric (footnotes - \notes) The only minor problem is number of lines per footnote/note. When I make notes on Bemaer in general my notes have more than one line. AFAIK footnotes in org are single lines or you have to separate them with \par which is not so good. Daniel 2009/12/15 Eric S Fraga ucec...@ucl.ac.uk: At Thu, 10 Dec 2009 17:09:33 +0100, Carsten Dominik wrote: [...] One option would be to turn all those notes into footnotes for other export. Carsten, I wonder if simply turning this on its head wouldn't be a good solution? By this I mean to use org-mode footnotes to represent beamer notes (at least in my view footnotes make no sense in presentations). In export, footnotes are translated to notes for beamer but are treated as usual for all other export targets. A thought... ___ 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] [babel] changing size of R graphics in pdf output
Hi Graham, I think your solution is sensible, and thanks for bringing up these issues. Perhaps, as you suggest, we should be automatically setting these attributes in the latex output; we'll get back to you on that. Regarding the number of copies of the figure in the output, it should work as follows: Let's assume you have :exports both or :exports results. Before running the export, do you have a link to the image *already* in your org buffer? If no, then you should just get one copy of the image. If yes, then, if the link is positioned in such a way that it will get replaced by the output (no intervening lines between end of source block and results) then you should get one copy. But if there are intervening lines between the source block and the results, then you will get the original image, and a new one created by the exporter which did not replace the original. Thus I would do something like this, in which the pdf output is the same regardless of whether the #+results line and link are in the buffer before export, and which results in only one copy of the fig in either case. #+options toc:nil #+title: R latex graphics Text before figure. #+CAPTION:Trial boxplots with babel #+LABEL: fig:trial boxplots #+ATTR_LaTeX: width=5cm #+srcname:Boxplots Summary #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both Wingcrd - rnorm(100, 20) ; Tarsus - rnorm(100, 5) ; Head - rnorm(100, 3) ; Wt - rnorm(100, 40) boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt)) #+end_src #+results: Boxplots [[file:BoxplotSummary.pdf]] Text after figure. Dan Graham Smith myotis...@gmail.com writes: OK, This was all to do with the ordering of the latex code Below works, includes the R code, but only one plot of the expected size. #+srcname:Boxplots Summary #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt)) #+end_src #+CAPTION:Trial boxplots with babel #+LABEL: fig:trial boxplots #+ATTR_LaTeX: width=10cm #+resname: Boxplots [[file:BoxplotSummary.pdf]] I await for someone to tell me how it should be done :-) Graham ___ 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] Beamer support in Org-mode
I also thought about suggesting this approach, but the problem is that footnotes and beamer notes are really two different things. Beamer notes can be anything such as tables, figures, several lines of text (with itemize), display equations, etc.. At least for me, these examples of beamer notes are common and if org-mode used standard footnotes as the way to enter notes in beamer then I wouldn't be able to export to standard latex most of the times. In addition, while I also agree that footnotes shouldn't be in a presentation they are allowed when working with beamer and may be useful in some cases. If org-mode export footnotes as beamer notes then some months from now someone would be asking here in the mailing-list how to enter a standard footnote when exporting to beamer. - Darlan Cavalcante At Tue, 15 Dec 2009 17:07:45 -0200, Daniel Martins daniel...@gmail.com wrote: Good idea Eric (footnotes - \notes) The only minor problem is number of lines per footnote/note. When I make notes on Bemaer in general my notes have more than one line. AFAIK footnotes in org are single lines or you have to separate them with \par which is not so good. Daniel 2009/12/15 Eric S Fraga ucec...@ucl.ac.uk: At Thu, 10 Dec 2009 17:09:33 +0100, Carsten Dominik wrote: [...] One option would be to turn all those notes into footnotes for other export. Carsten, I wonder if simply turning this on its head wouldn't be a good solution? By this I mean to use org-mode footnotes to represent beamer notes (at least in my view footnotes make no sense in presentations). In export, footnotes are translated to notes for beamer but are treated as usual for all other export targets. A thought... ___ 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 list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] changing size of R graphics in pdf output
Dan, Before running the export, do you have a link to the image *already* in your org buffer? If no, then you should just get one copy of the image. If yes, then, if the link is positioned in such a way that it will get replaced by the output (no intervening lines between end of source block and results) then you should get one copy. I would almost certainly already have the link as I have been making minor changes and recompiling , what seems like hundreds of times trying to sort out how to fix it #+options toc:nil #+title: R latex graphics Text before figure. #+CAPTION: Trial boxplots with babel #+LABEL: fig:trial boxplots #+ATTR_LaTeX: width=5cm #+srcname:Boxplots Summary #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both Wingcrd - rnorm(100, 20) ; Tarsus - rnorm(100, 5) ; Head - rnorm(100, 3) ; Wt - rnorm(100, 40) boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt)) #+end_src #+results: Boxplots [[file:BoxplotSummary.pdf]] Text after figure. Thanks for this. It has to be said I am really excited about this babel and R combination. I often do a few pages of R explanation on a specific topic for students where I need to combine text and R output, and this is a brilliant solution for this. Graham ___ 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-mac-protocol] How to actually set it up and use it?
On Dec 13, 2009, at 8:48 AM, Christopher Suckling wrote: On Sat, 12 Dec 2009 12:56:00 -0600, Ron Parker r...@inthefaith.net wrote: After reading this message I downloaded org-mac-protocol and installed it. The scripts work for me if I open them in Script Editor and run them, but they do not work from the scripts menu nor from Quicksilver. If you got the scripts from github, they're not compiled. I'd already compiled them. I'm closer. Calling (org-load-modules-maybe) after doing (add-to-list 'org-modules 'org-mac-protocol) seems to have the items on the script menu working. But, calling them from Quicksilver still fails. ___ 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: Integrating ctags org mode (patch)
Carsten Dominik carsten.dominik at gmail.com writes: Hi Paul, I like this very much. But I would like to change the implementation so that there will be a hook. Then people can do different things, including matching tags in source code files etc. Would you be interested to turn your way of doing things into a little add-on that people could load? I realize that it would be a very small file because the heavy lifting is done by the tags creating file and Emacs ctags searches. But it would keep the way open for other ideas. If you agree I will make a new hook and interface for this. I would be very interested to include the new module (if you write it) at least as a contributed package, or, if you are willing to sign the papers with the FSF, in the core. I'm glad you like it. I would be happy for it to be included in the core. Re your followup to this post: I have written a function which takes a tag name and returns the file where it is found: (defun get-filename-for-tag (tag) TAG is a string. Search the active TAGS file for a matching tag, and if found, return a list containing the filename, line number, and buffer position where the tag is found. (unless tags-file-name (visit-tags-file-buffer)) (with-current-buffer (get-file-buffer tags-file-name) (beginning-of-buffer) (cond ;; In the following line, the special characters on either side of ;; the %s should be ASCII 127 (^?) and ASCII 1 (^A) ((re-search-forward (format ^.*%s\\([0-9]+\\),\\([0-9]+\\)$ (regexp-quote tag)) nil t) (let ((line (string-to-number (match-string 1))) (pos (string-to-number (match-string 2 (cond ((re-search-backward \n\\(.*\\),[0-9]+\n) (list (match-string 1) line pos)) (t ; can't find a file name preceding the matched tag?? (error Malformed TAGS file: %s (buffer-name)) (t ; tag not found 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] Re: Integrating ctags org mode (patch)
Also I realised there was a misplaced parenthesis in the (if (y-or-n-p... clause. Corrected patch follows. BEGIN PATCH for org.el (delete this line) 8349,8369c8349,8350 { (condition-case nil (eval cmd) { ;; ORG-TAGS { (error {(progn { (widen) { (condition-case nil (eval cmd) {(error { ;; No matching link found anywhere in this file { ;; See if we can find a tag { ;; If so, jump to it {(condition-case nil (find-tag path) { (error { (cond {(org-make-new-topics-for-missing-links-p { (if (y-or-n-p { (format Topic `%S' not found; append to current buffer? { path)) { (org-append-new-topic path nil))) {(t { (error No match found { --- } (condition-case nil (eval cmd) } (error (progn (widen) (eval cmd)) 8592,8595d8572 { ;; ORG-TAGS { ((not org-open-link-defaults-to-normal-string-search-p) { ;; We don't want to search for a plain text match. { (error No match.)) 8651,8682d8627 { { { ;; ORG-TAGS { { (defvar org-open-link-defaults-to-normal-string-search-p nil { Behaviour when attempting to open a 'thisfile' hyperlink for which no { EXACT match can be found (i.e. no match in angled brackets, etc). { If true (default), exhibit normal org behaviour of doing a search for a string { matching the link name. { If nil, abort the attempt to open the link.) { { { (defvar org-make-new-topics-for-missing-links-p nil { If true, when attempting to follow a 'plain' hyperlink for which no precise { match is found, offer to append a top-level heading with the same name as the { hyperlink, to the end of the buffer.) { { { (defun org-append-new-topic (word) { (interactive s) { (widen) { (end-of-buffer) { (newline 2) { (insert (format * %s word)) ; to make radio word { (backward-char 4) { ;;(org-update-radio-target-regexp) { (end-of-line) { (newline 2) { (next-line 2)) { { { END PATCH (delete this line) ___ 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: Integrating ctags org mode (patch)
Sorry guys, I seem to be spamming this topic, but I just fixed another problem -- properties on the link string were causing problems with find-tag, which expected a propertyless string. Fixed patch follows. BEGIN PATCH for org.el (delete this line) 8349,8369c8349,8350 { (condition-case nil (eval cmd) { ;; ORG-TAGS { (error {(progn { (widen) { (condition-case nil (eval cmd) {(error { ;; No matching link found anywhere in this file { ;; See if we can find a tag {;; If so, jump to it {(let ((linktext path)) { (set-text-properties 0 (length linktext) { nil linktext) { (condition-case nil (find-tag linktext) {(error { (cond { (org-make-new-topics-for-missing-links-p { (if (y-or-n-p {(format Topic `%S' not found; append to current buffer? {linktext)) { (org-append-new-topic linktext nil))) { (t { (error No match found) { { --- } (condition-case nil (eval cmd) } (error (progn (widen) (eval cmd)) 8592,8595d8572 { ;; ORG-TAGS { ((not org-open-link-defaults-to-normal-string-search-p) { ;; We don't want to search for a plain text match. { (error No match.)) 8651,8682d8627 { { { ;; ORG-TAGS { { (defvar org-open-link-defaults-to-normal-string-search-p nil { Behaviour when attempting to open a 'thisfile' hyperlink for which no { EXACT match can be found (i.e. no match in angled brackets, etc). { If true (default), exhibit normal org behaviour of doing a search for a string { matching the link name. { If nil, abort the attempt to open the link.) { { { (defvar org-make-new-topics-for-missing-links-p nil { If true, when attempting to follow a 'plain' hyperlink for which no precise { match is found, offer to append a top-level heading with the same name as the { hyperlink, to the end of the buffer.) { { { (defun org-append-new-topic (word) { (interactive s) { (widen) { (end-of-buffer) { (newline 2) { (insert (format * %s word)) ; to make radio word { (backward-char 4) { ;;(org-update-radio-target-regexp) { (end-of-line) { (newline 2) { (next-line 2)) { { { END PATCH (delete this line) ___ 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: Integrating ctags org mode (patch)
Paul, Can these patches be applied using the standard patch(1) command? I tried and I get $ patch ~/Mail/inbox/1265 patch: Only garbage was found in the patch input. If they cannot be applied that way, can you please provide them in a more standard format? Unified diff format is probably the best: diff -u file.orig file.modified Thanks, Nick PS. Not sure what to do if you are on Windows, however. Paul Sexton psex...@xnet.co.nz wrote: Sorry guys, I seem to be spamming this topic, but I just fixed another problem -- properties on the link string were causing problems with find-tag, which expected a propertyless string. Fixed patch follows. BEGIN PATCH for org.el (delete this line) 8349,8369c8349,8350 { (condition-case nil (eval cmd) { ;; ORG-TAGS { (error {(progn { (widen) { (condition-case nil (eval cmd) {(error { ;; No matching link found anywhere in this file { ;; See if we can find a tag {;; If so, jump to it {(let ((linktext path)) { (set-text-properties 0 (length linktext) { nil linktext) { (condition-case nil (find-tag linktext) {(error { (cond { (org-make-new-topics-for-missing-links-p { (if (y-or-n-p {(format Topic `%S' not found; append to current buffer? {linktext)) { (org-append-new-topic linktext nil))) { (t { (error No match found) { { --- } (condition-case nil (eval cmd) } (error (progn (widen) (eval cmd)) 8592,8595d8572 { ;; ORG-TAGS { ((not org-open-link-defaults-to-normal-string-search-p) { ;; We don't want to search for a plain text match. { (error No match.)) 8651,8682d8627 { { { ;; ORG-TAGS { { (defvar org-open-link-defaults-to-normal-string-search-p nil { Behaviour when attempting to open a 'thisfile' hyperlink for which no { EXACT match can be found (i.e. no match in angled brackets, etc). { If true (default), exhibit normal org behaviour of doing a search for a string { matching the link name. { If nil, abort the attempt to open the link.) { { { (defvar org-make-new-topics-for-missing-links-p nil { If true, when attempting to follow a 'plain' hyperlink for which no precise { match is found, offer to append a top-level heading with the same name as the { hyperlink, to the end of the buffer.) { { { (defun org-append-new-topic (word) { (interactive s) { (widen) { (end-of-buffer) { (newline 2) { (insert (format * %s word)) ; to make radio word { (backward-char 4) { ;;(org-update-radio-target-regexp) { (end-of-line) { (newline 2) { (next-line 2)) { { { END PATCH (delete this line) ___ 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] Customizing how inactive timestamps are displayed
2009/12/14 Carsten Dominik carsten.domi...@gmail.com: On Dec 10, 2009, at 11:34 PM, Nicolas Girard wrote: Hi again, in the agenda view, inactive timestamps are displayed like: category: 12:50.. [ Some stuff Is the '[ ' intentional, or is caused by a bug in my configuration ? I find it a little bit disturbing, as my eyes keep looking for an hypothetic closing ']'... This is intentional, as an indication that this is indeed an inactive time stamp. While I can see that you might be looking for the closing bracket, I also think that this is a quite natural way to mark inactive time stamps. Sure, I *could* make this marker string a variable - what would you propose as better options? Hi Carsten, my personal taste would be some kind of horizontal sign, because it would look closer to what I'd have drawn myself using pen paper, answering my own question hey, what did I do today ? (French people tend to use dashes when writing lists). That said, I'm using the free Inconsolata [*] font as my main font in emacs, which offers a rich collection of various geometric shapes symbols. So, at no extra cost, I can enhance the aspect of my Org buffers. Attached is a little example to demonstrate what can be done. To get this result: 1. I had to redefine org-agenda-format-date-aligned so that I can replace the hardcoded lines surrounding dates with better looking ones 2. I used the Watch unicode character to represent scheduled events: (setq org-agenda-scheduled-leaders '(⌚ ⌚ )) 3. I replaced the hardcoded '[' character denoting inactive timestamps with a white triangle See ? Who said Org couldn't be sexier ? [*] http://www.levien.com/type/myfonts/inconsolata.html -- Nicolas attachment: agenda.png___ 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: Integrating ctags org mode (patch)
Nick Dokos nicholas.do...@hp.com writes: Can these patches be applied using the standard patch(1) command? I tried and I get $ patch ~/Mail/inbox/1265 patch: Only garbage was found in the patch input. You have to replace `{' with `' and `}' with `' in the patch before applying it. If they cannot be applied that way, can you please provide them in a more standard format? Unified diff format is probably the best: diff -u file.orig file.modified The problem the OP has is with the web form he uses for sending the messages. -- Óscar ___ 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 searches (ultimately for agenda)
Hi, In the docs (10.3.3 Matching tags and properties), I see ways to do tag searches that can also search TODO states. Can I also search TODO levels? For example, in one file covered by the agenda, I use the usual DONE to denote done. In another, which is focused on simply stuff that I have borrowed/lent, I have RETURNED as my DONE state. I occasionally apply tags to headings with the name of the person involved. So let's say that I've put :Jack: on some headings of items that have been lent and returned. But I also have :Jack: in my other .org files that are not about lending/borrowing. I want to search for all headlines that have :Jack: in them, but exclude anything that is a DONE state - so exclude both DONE and RETURNED. I know I can just do: Jack-TODO=DONE-TODO=RETURNED But I don't want to keep editing it as I change my DONE states or add more DONE states. Is this possible? Thanks. ___ 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] Can embed css stylesheet directly?
I use org-mode to build my note sites. For some reason, I don't want to create a seperately css stylesheet which is linked by something like following in my org-publish-project-alist: - :style link rel=\stylesheet\ href=\../common/stylesheet.css\ type=\text/css\/ - Can I insert the css stylesheet here directly rather than using a css file? Thanks Water lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] Re: Question about searches (ultimately for agenda)
Mueen Nawaz mu...@nawaz.org writes: In the docs (10.3.3 Matching tags and properties), I see ways to do tag searches that can also search TODO states. Can I also search TODO levels? For example, in one file covered by the agenda, I use the usual DONE to denote done. In another, which is focused on simply stuff that I have borrowed/lent, I have RETURNED as my DONE state. I occasionally apply tags to headings with the name of the person involved. So let's say that I've put :Jack: on some headings of items that have been lent and returned. But I also have :Jack: in my other .org files that are not about lending/borrowing. I want to search for all headlines that have :Jack: in them, but exclude anything that is a DONE state - so exclude both DONE and RETURNED. I know I can just do: Jack-TODO=DONE-TODO=RETURNED Provided DONE and RETURNED are inactive todos than the following should suffice: C-a M Jack [RET] AFAIK, C-a M returns only active TODOs that match the tag. Thus any inactive state will be excluded. (There may be a variable that controls this, but I'm not aware of it.) Best, Matt ___ 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: Question about searches (ultimately for agenda)
On 12/15/09 21:26, Matt Lundin wrote: Provided DONE and RETURNED are inactive todos than the following should suffice: C-a M Jack [RET] I think you meant C-c a M Jack [RET] It actually does filter out inactive TODO's, but I actually wanted to do C-c a m Jack [RET]. I don't want to limit the search to headlines that have a TODO state. I just want to exclude those that have DONE (or anything equivalent to it). ___ 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] keep newlines on pdf export
On Dec 16, 2009, at 5:05 AM, Eraldo Helal wrote: Hi Carsten I am always much more interested in thinking about a solution if I am not just presented with an abstract wish, but rather with a concrete example where this might be useful. First of all I want to thank all of you (again) for this great mailing-list. I am a great fan of the idea of writing an org file and being able to export it to differnt formats as desired. (ASCII, html, pdf, etc) In my case the absence of consistent newlines (as present in html export) was not that much of a problem because the document (scientific article on complex numbers) does not need to be exported to html at all... so I just added \\ to the end of every line. Nontheless I took notice of the problem and wanted to get and give some feedback. Hi Eraldo, still, an example would have been useful, to generate more ideas. In the absence of an example, a few more comments/ideas that have not yet come up (unless I missed them..) \\ at the end of a line does also the right thing in HTML export, i.e. it is converted to br/ Other possibilities to preserve line breaks include 1. the #+begin_verse...#+end_verse block 2. A #+begin_example ... #+end_example block 3. Putting the numbers into a table 4. Starting each line with : (also makes them end up in an example block) Cheers - Carsten Greetings from Austria, Eraldo - 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
Re: [Orgmode] Can embed css stylesheet directly?
Whay don't you just try? The answer is yes, you need to surround the text by style.../style. - Carsten On Dec 16, 2009, at 3:10 AM, Water Lin wrote: I use org-mode to build my note sites. For some reason, I don't want to create a seperately css stylesheet which is linked by something like following in my org-publish-project-alist: - :style link rel=\stylesheet\ href=\../common/stylesheet.css\ type=\text/css\/ - Can I insert the css stylesheet here directly rather than using a css file? Thanks Water lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 - 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
Re: [Orgmode] Customizing how inactive timestamps are displayed
On Dec 15, 2009, at 10:57 PM, Nicolas Girard wrote: 2009/12/14 Carsten Dominik carsten.domi...@gmail.com: On Dec 10, 2009, at 11:34 PM, Nicolas Girard wrote: Hi again, in the agenda view, inactive timestamps are displayed like: category: 12:50.. [ Some stuff Is the '[ ' intentional, or is caused by a bug in my configuration ? I find it a little bit disturbing, as my eyes keep looking for an hypothetic closing ']'... This is intentional, as an indication that this is indeed an inactive time stamp. While I can see that you might be looking for the closing bracket, I also think that this is a quite natural way to mark inactive time stamps. Sure, I *could* make this marker string a variable - what would you propose as better options? Hi Carsten, my personal taste would be some kind of horizontal sign, because it would look closer to what I'd have drawn myself using pen paper, answering my own question hey, what did I do today ? (French people tend to use dashes when writing lists). That said, I'm using the free Inconsolata [*] font as my main font in emacs, which offers a rich collection of various geometric shapes symbols. So, at no extra cost, I can enhance the aspect of my Org buffers. Attached is a little example to demonstrate what can be done. To get this result: 1. I had to redefine org-agenda-format-date-aligned so that I can replace the hardcoded lines surrounding dates with better looking ones 2. I used the Watch unicode character to represent scheduled events: (setq org-agenda-scheduled-leaders '(⌚ ⌚ )) 3. I replaced the hardcoded '[' character denoting inactive timestamps with a white triangle See ? Who said Org couldn't be sexier ? [*] http://www.levien.com/type/myfonts/inconsolata.html That *does* look nice! Please pull and use `org-agenda-inactive-leader' - Carsten -- Nicolas agenda.png___ 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