Re: [Orgmode] Re: DocBook exporter code (version 1.0)
On Mar 13, 2009, at 3:05 AM, Baoqiu Cui wrote: Baoqiu Cui writes: Dale Smith writes: Somthing that muse has that I'd really like to see in org is some way to insert raw docbook into the exported output. The LaTeX exporter already has a feature like this. Muse-mode uses the tag. In the past, I've used this for inserting a programming instruction that cauaes a page-break. I'm sure there could be many many uses. Any ideas or suggestions? Something I've missed? This may require adding a markup like "#+BEGIN DOCBOOK" ... "#+END DOCBOOK", which is some external change that makes Org less lightweight. (LaTeX is a little different, because LaTeX fragments do not need a markup in Org-mode.) Don't know how Carsten and other people think. Oh, I just noticed that #+BEGIN_LaTeX ... #+END_LaTeX already exists. Then maybe it is OK to add #+BEGIN_DOCBOOK ... #+END_DOCBOOK. This is already in org-exp.el and should work: #+DOCBOOK: dockbookcode and #+BEGIN_DOCBOOK docbookcode docbookcode docbookcode #+END_DOCBOOK Also I have just pushed changes to org-mtags.el (contributed package). If you load it, muse-like tags will be understood by Org as well, and you can write: dockbookcode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DocBook exporter code (version 1.0)
Baoqiu Cui writes: >> Dale Smith writes: >> >>> Somthing that muse has that I'd really like to see in org is some way >>> to insert raw docbook into the exported output. The LaTeX exporter >>> already has a feature like this. Muse-mode uses the tag. >>> >>> In the past, I've used this for inserting a programming instruction >>> that cauaes a page-break. I'm sure there could be many many uses. >>> >>> Any ideas or suggestions? Something I've missed? >> >> This may require adding a markup like "#+BEGIN DOCBOOK" ... "#+END >> DOCBOOK", which is some external change that makes Org less lightweight. >> (LaTeX is a little different, because LaTeX fragments do not need a >> markup in Org-mode.) Don't know how Carsten and other people think. > > Oh, I just noticed that #+BEGIN_LaTeX ... #+END_LaTeX already exists. > Then maybe it is OK to add #+BEGIN_DOCBOOK ... #+END_DOCBOOK. Hi Dale, Actually the following markups are already supported when I added the block quote and verse support (I totally forgot about this). We just need to *externalize* these two constructs: #+DOCBOOK: Literal DocBook code for export #+BEGIN_DOCBOOK All lines between these markers are exported literally. #+END_DOCBOOK I have updated the test file with 2 examples. You can take a quick look: http://code.google.com/p/bcui-emacs/source/browse/#svn/trunk/org-docbook Thanks, Baoqiu ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] removal of appointments
Richard: I want to preface this with a statement of truth: I don't know what I am talking about. On Fri, Mar 13, 2009 at 10:34 AM, Richard Riley wrote: > > I guess I was just fishing to see if someone had > implemented something like a "make a noise property" with a sleep > feature for example that associated a certain property with a WAV/mp3 > file and when the appointment is triggered it will play the audo file if > appropriate. > > All the same, I was able to hack together a simple little routine to start a video in vlc from dired and also start an org-mode buffer with a timer at the same time. The elements that can make what you want to happen happen, do exist or could be put together. But you are on your own. Just the same if you contact me off the list I'll send a copy of what I put together (dired-vlc.el) and maybe suggest which part would be useful for modifying to play an mp3. Interestingly, the routines I borrowed from were designed around mplayer, and they are simple. As far as the trigger, I wouldn't know where to begin. The sleep function would be possible too, but I was quite far out of my depth even in what I had done, and up 'til now I have not gotten around to trying to incorporate pausing into dired-vlc.el, although others have indicated it is doable. Alan -- Alan Davis "An inviscid theory of flow renders the screw useless, but the need for one non-existent." ---Lord Raleigh (John William Strutt), or else his son, who was also a scientist. It is undesirable to believe a proposition when there is no ground whatsoever for supposing it is true. Bertrand Russell ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DocBook exporter code (version 1.0)
Baoqiu Cui writes: > Dale Smith writes: > >> Somthing that muse has that I'd really like to see in org is some way >> to insert raw docbook into the exported output. The LaTeX exporter >> already has a feature like this. Muse-mode uses the tag. >> >> In the past, I've used this for inserting a programming instruction >> that cauaes a page-break. I'm sure there could be many many uses. >> >> Any ideas or suggestions? Something I've missed? > > This may require adding a markup like "#+BEGIN DOCBOOK" ... "#+END > DOCBOOK", which is some external change that makes Org less lightweight. > (LaTeX is a little different, because LaTeX fragments do not need a > markup in Org-mode.) Don't know how Carsten and other people think. Oh, I just noticed that #+BEGIN_LaTeX ... #+END_LaTeX already exists. Then maybe it is OK to add #+BEGIN_DOCBOOK ... #+END_DOCBOOK. Baoqiu ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] removal of appointments
Carsten Dominik writes: > On Mar 12, 2009, at 3:02 PM, Richard Riley wrote: > >> >> I use >> >> (run-at-time nil 300 'org-agenda-to-appt) >> (appt-activate t) >> >> to add org tasks to emacs appointment handling. >> >> Is there a way for org to remove these entries when marked as done or >> cancelled? > > There is org-after-todo-state-change-hook which is run after > a state changes. You could check > > (member state org-done-keywords) > > and if yes, refresh the appointment list with > > (org-agenda-to-appt t) > > This will re-generate the entire task list, you > will probably feel the impact. I don't know a way to remove > individual entries. > >> >> While on the subject, is there any concept of an "alarm" in >> org? Or is this just a scheduled item? It would be nice of there was a >> way to trigger specific functions based on the tags -e.g play wave >> file >> for a reminder of a task of a certain type. Is there something like >> this >> anyone can recommend or point me to? I would like to configure org >> as my >> alarm clock too! > > Isn't this exactly what appt does?? Exactly? No. I guess I was just fishing to see if someone had implemented something like a "make a noise property" with a sleep feature for example that associated a certain property with a WAV/mp3 file and when the appointment is triggered it will play the audo file if appropriate. > > - Carsten > -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DocBook exporter code (version 1.0)
Hi Dale, Dale Smith writes: > Baoqiu Cui writes: > >> I just posted the code for DocBook exporter to Google Code. > > I've been enjoying this docbook exporter for sveral days now. Thanks > Baoqiu! Thanks a lot for your great help in testing this exporter. Your early comments were very valuable to me! I am glad to know that the exporter seems to work well for you. > Somthing that muse has that I'd really like to see in org is some way > to insert raw docbook into the exported output. The LaTeX exporter > already has a feature like this. Muse-mode uses the tag. > > In the past, I've used this for inserting a programming instruction > that cauaes a page-break. I'm sure there could be many many uses. > > Any ideas or suggestions? Something I've missed? This may require adding a markup like "#+BEGIN DOCBOOK" ... "#+END DOCBOOK", which is some external change that makes Org less lightweight. (LaTeX is a little different, because LaTeX fragments do not need a markup in Org-mode.) Don't know how Carsten and other people think. Thanks again! Baoqiu ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] removal of appointments
On Mar 12, 2009, at 3:02 PM, Richard Riley wrote: I use (run-at-time nil 300 'org-agenda-to-appt) (appt-activate t) to add org tasks to emacs appointment handling. Is there a way for org to remove these entries when marked as done or cancelled? There is org-after-todo-state-change-hook which is run after a state changes. You could check (member state org-done-keywords) and if yes, refresh the appointment list with (org-agenda-to-appt t) This will re-generate the entire task list, you will probably feel the impact. I don't know a way to remove individual entries. While on the subject, is there any concept of an "alarm" in org? Or is this just a scheduled item? It would be nice of there was a way to trigger specific functions based on the tags -e.g play wave file for a reminder of a task of a certain type. Is there something like this anyone can recommend or point me to? I would like to configure org as my alarm clock too! Isn't this exactly what appt does?? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Feature Request: Simultaneous change using S- / S- on time ranges?
Hi, I routinely use time ranges (and occasionally time-stamp ranges) in my org files to document the scheduled block of time for a meeting or activity. As an example, I will mark meetings as: * A Meeting <2009-03-12 Thu 10:00-11:00> As often happens with meetings, rescheduling needs to be done and I use S- or S- on the time-stamp to make the modifications. While this works fine, it usually leads to a duplication when the *time* part of the time-stamp needs to be changed. For the same example above, if the time-block has now changed to 11:00-12:00, then I need to do S- on both the "10:00" and the "11:00" string. I.e, * A Meeting <2009-03-12 Thu 11:00-11:00> ^ + After the first S- * A Meeting <2009-03-12 Thu 11:00-12:00> ^ + After the second S- Can we have a feature (with a toggle option perhaps) which would *move* the block (i.e., both time entries) by the same amount when either one is moved in the same direction. I.e., the proposal is to have: * A Meeting <2009-03-12 Thu 11:00-12:00> ^ ^ | | | +-- Automatically shifted forward by 1 hour + After the S- Thanks! -- Anupam ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DocBook exporter code (version 1.0)
Baoqiu Cui writes: > I just posted the code for DocBook exporter to Google Code. I've been enjoying this docbook exporter for sveral days now. Thanks Baoqiu! Somthing that muse has that I'd really like to see in org is some way to insert raw docbook into the exported output. The LaTeX exporter already has a feature like this. Muse-mode uses the tag. In the past, I've used this for inserting a programming instruction that cauaes a page-break. I'm sure there could be many many uses. Any ideas or suggestions? Something I've missed? Thanks! -Dale -- Dale P. Smith da...@vtiinstruments.com 216-447-4059 x2018 216-447-8951 FAX (Company mandated disclaimer follows...) The information in this e-mail and any attachments is intended solely for use by the recipient(s) to whom this e-mail is addressed and may contain confidential and/or privileged information which is exempt from disclosure. If you are not an intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this e-mail and any attachments in error and that dissemination, distribution, review or copying of this e-mail and its attachments is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all electronic and paper copies of this e-mail as well as any attachments. Thank you. http://www.vtiinstruments.com/images/vtiemaillogo.gif ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problems with org-mode-hook when files are opened by org-agenda-list
Carsten Dominik writes: >> --8<---cut here---start->8--- >> (defun th-org-update-agenda-file (&optional force) >> (interactive) >> (save-excursion >>(save-window-excursion >> (let ((file "/tmp/org-agenda.txt")) >>(org-agenda-list) >>(org-write-agenda file) >> >> (th-org-update-agenda-file t) >> >> (add-hook 'org-mode-hook 'th-org-mode-init) >> --8<---cut here---end--->8--- > > I think you need to swap the last two lines. Gosh! That's really too stupit. Sometimes I'm really more than routine-blinded... Thanks a lot Carsten! Tassilo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-publish and rss/atom feeds..
"aldrin d'souza" writes: > hello, > > i have setup a small website using org-publish. it works great but > there's one bit missing. i have to generate the rss/atom feed > manually. does anyone know of a better way to generate these feeds > using some extension to the org-publish? I've been hoping to create a simple means of syndicating org-mode content, but, alas, have not had time bring my elisp skills up to speed. There are a few options for publishing blogs via org-mode, but neither is being developed: - http://lumiere.ens.fr/~guerry/blorg.php - http://www.emacswiki.org/emacs/org-blog.el The former produces an entire blog from a single org-file. The latter uses one file per blog entry. Muse mode for emacs has a simple "Journal" feature that produces rss feeds. - http://mwolson.org/static/doc/muse.html#Journal You might want to look at the code in muse-journal.el. So to answer your question: I'm not aware of any simple solution that works at present, but the above packages might provide some ideas. Best, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-publish and rss/atom feeds..
hello, i have setup a small website using org-publish. it works great but there's one bit missing. i have to generate the rss/atom feed manually. does anyone know of a better way to generate these feeds using some extension to the org-publish? thanks, -- ajd. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Code with line numbers in HTML export
It's not just putting line numbers and code into two elements. Putting line-numbers and code into different columns works and is done everywhere, but in Org's this will not be bullet-proof. This depends heavily on styles use for the CSS-classes in the code and the line-numbers. If one defines bigger (or smaller) fonts for some of the classes on the code side, line-numbers and code will get out of sync. 1: line 1, normal font size only 2: line 2 contains bigger fonts 3: 4: this is line 3 of code Actually, it will even look worse, because the lines will be gradually get out of sync. Not sure, if it could even go out of sync when just different fonts are used. The default line-height is 1.2 em which in turn depends on the font I believe. Hence we would have to put every line number and every code line into elements with a certain height. The next problem would be, that we suddenly can't copy the example _with_ line numbers anymore ;-) Saptarshi Guha writes: > Hello, > I got this idea from Google code. An example can be found here (chosen > at random) > > http://code.google.com/p/compcache/source/browse/trunk/compcache.c > > The code is displayed as a table (albeit with lots of css markup > helping it) yet the source column is selectable. Hope it helps. Perhaps this is a candidate for org-export-blocks.el or some extension based on it? Regards, Sebastian > Thanks > Saptarshi Guha > > > > On Thu, Mar 12, 2009 at 3:14 AM, Carsten Dominik > wrote: >> >> On Mar 12, 2009, at 5:41 AM, Saptarshi Guha wrote: >> >>> Lovely. One last question, is there a way to place the source in a >>> table of two cols one for the col numbers and one for the code? So >>> that the reader may easily select the code. >>> The emacs user does not have a problem what with C-x r k (rectangle >>> delete) and all, still it would be nice on the reader. >> >> Hi, >> >> how does one select a column in an HTML table? >> When I try this, it is always entire rows that are being selected, >> so I would not know how to make a table where this works correctly. >> >> - Carsten >> >>> >>> Thanks for amazing org. >>> Saptarshi Guha >>> >>> >>> >>> On Thu, Mar 12, 2009 at 12:28 AM, Saptarshi Guha >>> wrote: Ok. I'll update. Thanks Saptarshi Guha On Thu, Mar 12, 2009 at 12:25 AM, Manish wrote: > > On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote: >> >> Thank you, quite excited I tried this small org file >> *Title >> Some tex >> >> #+BEGIN_SRC emacs-lisp -n >> (save-excursion >> (goto-char (point-min)) >> #+END_SRC >> >> Only to get this in the html file (as copied from my browser): >> >> (save-excursion (goto-char (point-min)) >> >> The corresponding html is >> (save-excursion >> (goto-char (point-min)) >> >> >> if i remove the -n it works - the exported code is formatted but no >> line numbers. >> (org version 6.09a) > > Line numbers and references were added in 6.17. > > -- > Manish > >>> >>> >>> ___ >>> Emacs-orgmode mailing list >>> Remember: use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> > > > ___ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.r...@emma-stil.de, sebastian_r...@gmx.de Http: www.emma-stil.de ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-annotation-quicksilver, Aquamacs path and getting remember mode to stay on
On 11 Mar 2009, at 18:31, Kevin Brubeck Unhammer wrote: I just tried org-annotation-quicksilver, looks like a great tool, thanks for making it! Urrrgh. Thanks. I really must update it, or at least update the website to say it's outdated. As it cannibalises a good chunk of org- remember.el, I've been holding off doing anything much with the code until the rewrite of org-remember is complete. I should mention though that Aquamacs Emacs users who haven't changed the file name of their app need to change the .scpt files so they say /Applications/Aquamacs\\ Emacs.app/Contents/MacOS/bin/ emacsclient ...etc instead of /Applications/Emacs.app/Contents/MacOS/bin/emacsclient ...etc (Or would it be better to assume emacsclient is in PATH?) It would. Thanks for pointing out. Also, for some reason, the *Remember* buffer shows up in org-mode without remember-mode turned on (only when I run it from Quicksilver); does anyone know why this would happen? (Does it have to do with the "duplication of two org-remember functions" in org-annotation-quicksilver.el?) Not sure off top of my head. I hope to have some quality org time in a couple of weeks; I'll let you know if I get anything done... Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Code with line numbers in HTML export
Saptarshi Guha wrote: > Thank you, quite excited I tried this small org file > *Title > Some tex > > #+BEGIN_SRC emacs-lisp -n > (save-excursion > (goto-char (point-min)) > #+END_SRC > > Only to get this in the html file (as copied from my browser): > > (save-excursion (goto-char (point-min)) > > The corresponding html is > (save-excursion > (goto-char (point-min)) > > > if i remove the -n it works - the exported code is formatted but no > line numbers. > (org version 6.09a) I don't know when -n was added, but I use Org-mode version 6.24 and it worked for me (I did have a transient htmlize error about an unknown face, but it went away on its own - I have no idea how). Try upgrading. Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] removal of appointments
I use (run-at-time nil 300 'org-agenda-to-appt) (appt-activate t) to add org tasks to emacs appointment handling. Is there a way for org to remove these entries when marked as done or cancelled? While on the subject, is there any concept of an "alarm" in org? Or is this just a scheduled item? It would be nice of there was a way to trigger specific functions based on the tags -e.g play wave file for a reminder of a task of a certain type. Is there something like this anyone can recommend or point me to? I would like to configure org as my alarm clock too! -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Code with line numbers in HTML export
Hello, I got this idea from Google code. An example can be found here (chosen at random) http://code.google.com/p/compcache/source/browse/trunk/compcache.c The code is displayed as a table (albeit with lots of css markup helping it) yet the source column is selectable. Hope it helps. Thanks Saptarshi Guha On Thu, Mar 12, 2009 at 3:14 AM, Carsten Dominik wrote: > > On Mar 12, 2009, at 5:41 AM, Saptarshi Guha wrote: > >> Lovely. One last question, is there a way to place the source in a >> table of two cols one for the col numbers and one for the code? So >> that the reader may easily select the code. >> The emacs user does not have a problem what with C-x r k (rectangle >> delete) and all, still it would be nice on the reader. > > Hi, > > how does one select a column in an HTML table? > When I try this, it is always entire rows that are being selected, > so I would not know how to make a table where this works correctly. > > - Carsten > >> >> Thanks for amazing org. >> Saptarshi Guha >> >> >> >> On Thu, Mar 12, 2009 at 12:28 AM, Saptarshi Guha >> wrote: >>> >>> Ok. I'll update. >>> Thanks >>> >>> Saptarshi Guha >>> >>> >>> >>> On Thu, Mar 12, 2009 at 12:25 AM, Manish >>> wrote: On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote: > > Thank you, quite excited I tried this small org file > *Title > Some tex > > #+BEGIN_SRC emacs-lisp -n > (save-excursion > (goto-char (point-min)) > #+END_SRC > > Only to get this in the html file (as copied from my browser): > > (save-excursion (goto-char (point-min)) > > The corresponding html is > (save-excursion > (goto-char (point-min)) > > > if i remove the -n it works - the exported code is formatted but no > line numbers. > (org version 6.09a) Line numbers and references were added in 6.17. -- Manish >>> >> >> >> ___ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] a problem with org-exp-bibtex
2009/3/12 Taru Karttunen : > On 12.03 11:44, Carsten Dominik wrote: >> Up to now there was o stable way to enforce a fiven internal link target. >> I have just pushed a change into the git repo that will allow >> [[#foobar][description]] > My repo is updated to support the new link syntax. thanks a lot Taru and Carsten - with your suggestions I got it working just the way I wanted it to. regards, -- ajd. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] a problem with org-exp-bibtex
On 12.03 11:44, Carsten Dominik wrote: > Up to now there was o stable way to enforce a fiven internal link > target. > I have just pushed a change into the git repo that will allow > > [[#foobar][description]] My repo is updated to support the new link syntax. - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] a problem with org-exp-bibtex
On Mar 12, 2009, at 10:39 AM, Taru Karttunen wrote: On 12.03 13:53, aldrin d'souza wrote: i use org mode for publishing my notes and i find the org-exp-bibtex functionality very useful because it allows me to separate my references cite them neatly using the \cite{} notation. however, i'm facing an issue with it. The problem seems to be that org-exp-bibtex generates a link like: \[_{}[[org][1]]\] and newer versions of org-mode seem to want to make that link into the *section* instead to the given anchor. Yes, there is a problem here. Org sees the link [[org][bla]] and thinks it should search for the string "org". It does, finds a match, and consequently liks to the section where the match occurred. Up to now there was o stable way to enforce a fiven internal link target. I have just pushed a change into the git repo that will allow [[#foobar][description]] make a link description Taru, I think if you switch to this after pulling the new versin or Org, it should work. Thanks! - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] a problem with org-exp-bibtex
On 12.03 13:53, aldrin d'souza wrote: > i use org mode for publishing my notes and i find the org-exp-bibtex > functionality very useful because it allows me to separate my > references cite them neatly using the \cite{} notation. however, i'm > facing an issue with it. The problem seems to be that org-exp-bibtex generates a link like: \[_{}[[org][1]]\] and newer versions of org-mode seem to want to make that link into the *section* instead to the given anchor. Now what is currently the sanctioned way to generate a link like: [1] inline? btw the repo at http://aoi.yi.org/~taruti/org-mode/ has some fixes to org-exp-bibtex. - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problems with org-mode-hook when files are opened by org-agenda-list
On Mar 12, 2009, at 8:42 AM, Tassilo Horn wrote: Hi all, I want that each time I startup emacs and each time I change a org file, the agenda for this week should be exported to /tmp/org-agenda.txt. I use this file for creating an agenda popup in my window manager [1] To achive that, I use the following code: --8<---cut here---start->8--- (require 'org-install) (eval-after-load 'org '(require 'org-id)) [...] (defun th-org-mode-init () [...] (add-hook 'after-save-hook 'th-org-update-agenda-file t t)) [...] (defun th-org-update-agenda-file (&optional force) (interactive) (save-excursion (save-window-excursion (let ((file "/tmp/org-agenda.txt")) (org-agenda-list) (org-write-agenda file) (th-org-update-agenda-file t) (add-hook 'org-mode-hook 'th-org-mode-init) --8<---cut here---end--->8--- I think you need to swap the last two lines. During the first call to your update function (and therefore during the first creation of an agenda which will find all the agenda files), the org-mode-hook has not yet been modified. - Carsten When I start emacs now the file /tmp/org-agenda.txt is created by the call to `th-org-update-agenda-file'. But in all org buffers the value of `after-save-hook' is nil, although it should contain `th-org-update-agenda-file'. When I revert the org buffers, the function is correctly added. So it seems to me that when org files are opened by `org-agenda-list' the `org-mode-hook' is skipped somehow. Am I right and is this intended? Bye, Tassilo __ [1] http://tsdh.wordpress.com/2009/03/04/integrating-emacs-org-mode-with-the-awesome-window-manager/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] a problem with org-exp-bibtex
hello, i use org mode for publishing my notes and i find the org-exp-bibtex functionality very useful because it allows me to separate my references cite them neatly using the \cite{} notation. however, i'm facing an issue with it. here's a simple org/bibtex combination to reproduce the probem: --[test.org]-- note * org-exp-bibtex i love org. \cite{org} #+BIBLIOGRAPHY: test plain -- and here is the bibtex file (test.bib): --[test.bib]-- @Manual{org, title = "org-mode manual", url = "http://orgmode.org/manual"; } -- when i export the note as html the \cite{org} bit gets replaced by a link which points to "#sec-1" inside the generated html file. it should have pointed to "#org" because that's where the cite description is. the weird part is that it works fine if i don't have any sections in the file. for example, if the org file is changed to the following everything works fine: --[test.org]-- note org-exp-bibtex i love org. \cite{org} #+BIBLIOGRAPHY: test plain -- any help in getting this to work for org-files with sections would be great. thanks, -- ajd. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Code with line numbers in HTML export
On Mar 12, 2009, at 5:41 AM, Saptarshi Guha wrote: Lovely. One last question, is there a way to place the source in a table of two cols one for the col numbers and one for the code? So that the reader may easily select the code. The emacs user does not have a problem what with C-x r k (rectangle delete) and all, still it would be nice on the reader. Hi, how does one select a column in an HTML table? When I try this, it is always entire rows that are being selected, so I would not know how to make a table where this works correctly. - Carsten Thanks for amazing org. Saptarshi Guha On Thu, Mar 12, 2009 at 12:28 AM, Saptarshi Guha wrote: Ok. I'll update. Thanks Saptarshi Guha On Thu, Mar 12, 2009 at 12:25 AM, Manish > wrote: On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote: Thank you, quite excited I tried this small org file *Title Some tex #+BEGIN_SRC emacs-lisp -n (save-excursion (goto-char (point-min)) #+END_SRC Only to get this in the html file (as copied from my browser): (save-excursion (goto-char (point-min)) The corresponding html is (save-excursion (goto-char (point-min)) if i remove the -n it works - the exported code is formatted but no line numbers. (org version 6.09a) Line numbers and references were added in 6.17. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Problems with org-mode-hook when files are opened by org-agenda-list
Hi all, I want that each time I startup emacs and each time I change a org file, the agenda for this week should be exported to /tmp/org-agenda.txt. I use this file for creating an agenda popup in my window manager [1] To achive that, I use the following code: --8<---cut here---start->8--- (require 'org-install) (eval-after-load 'org '(require 'org-id)) [...] (defun th-org-mode-init () [...] (add-hook 'after-save-hook 'th-org-update-agenda-file t t)) [...] (defun th-org-update-agenda-file (&optional force) (interactive) (save-excursion (save-window-excursion (let ((file "/tmp/org-agenda.txt")) (org-agenda-list) (org-write-agenda file) (th-org-update-agenda-file t) (add-hook 'org-mode-hook 'th-org-mode-init) --8<---cut here---end--->8--- When I start emacs now the file /tmp/org-agenda.txt is created by the call to `th-org-update-agenda-file'. But in all org buffers the value of `after-save-hook' is nil, although it should contain `th-org-update-agenda-file'. When I revert the org buffers, the function is correctly added. So it seems to me that when org files are opened by `org-agenda-list' the `org-mode-hook' is skipped somehow. Am I right and is this intended? Bye, Tassilo __ [1] http://tsdh.wordpress.com/2009/03/04/integrating-emacs-org-mode-with-the-awesome-window-manager/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode