Re: [O] odt exporter on mixed org setup
Rustom Mody rustompm...@gmail.com writes: Ended with: ox-odt cannot find factory style files You need (setq org-odt-data-dir ~/src/org-mode/etc/) Modify the path. If the *Messages* say that it is not able to find the styles dir, it really means that it is not able to find the styles files. Checked that it comes back it I use emacs23; goes away if I use emacs24 Checked that the messages when it works in emacs24 are like thus: ODT exporter (and hence the style files) made it's appearance in Emacs24. (i.e., There is ALWAYS a styles file that the exporter can safely fallback to.) The styles file that the ODT exporter ACTUALLY USES may come from stock Emacs and which may trail behind the git repo over a period of time. There is no ODT exporter in stock Emacs23. So fallback MAY fail. Stock Emacs has styles file under: C-h v data-directory If you installed Org as a standalone package, use apt to find out where it is located. Someone reported a bug on ox-odt.el paths not being modified when the ODT exporter moved from contrib/ to lisp/ directory in git repo. (Interested people can investigate and propose a patch.) I don't have a link to that post right now. The way make system treats `org-odt-data-dir' is a bit flaky. I didn't pursue the issue further because I felt it is pointless arguing with some people.
Re: [O] How to signal end of a section or subsection
Ken Mankoff mank...@gmail.com writes: [...] I just discovered org inline tasks. This seems to be another approach, and very useful! Indeed! I use these all the time for when I have tasks inersprsed in a large document. I'm not sure why I forgot to mention this capability; probably because org has so many ways to accomplish most tasks. I'm glad you found out anyway. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429
[O] exporting tex macros to mathjax js file
Hi, I am discovering the org-mode. I wonder if there is a way to transpose an include file containing tex macros to a mathjax local configuration file. I guess it is possible to use sed to do that but is there a better way to handle that? Maybe I should ask to mathjax developpers? What do you think? Cédric
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Nicolas Goaziou n.goaz...@gmail.com writes: [...] So, here comes another patch. WDYT? Seems to work fine. I've tried using the export snippets together with the filter for checkboxes and my lists come out looking as they should. Changing my documents won't be too onerous. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5d-479-g8694aa.dirty
Re: [O] using lightbox plugins in HTML export
Alternatively, how do I specify the LaTeX image on one line, and the HTML image as an a href rel=lightbox on a different line, such that the link doesn't appear in the LaTeX export and the image doesn't get duplicated in the HTML export? Thanks! On Wed, Jan 15, 2014 at 1:32 AM, Peter Salazar cycleofs...@gmail.comwrote: Does anyone know of a lightbox-style plug-in that will work with org-mode HTML export that will automatically, on click, expand images to fill the screen, i.e. one doesn't require me to manually add an href and rel=lightbox manually to each image? (Most lightbox-style plugins require you to not just include IMG tags, but to wrap them in something like a href=img/image-1.jpg rel=lightbox/a) Alternatively, is there a way to direct org to automatically add href and rel=lightbox to all images on HTML export in a way that won't break LaTeX export? Thanks!
[O] How to bind opening a custom agenda to a single key?
Hi, Im sorry, if this is obvious, but I did not find a solution in the manual or in the internet: At the moment, I have to type C-c a h to open my main agenda, which I do quite often a day. I want to simplify that keystroke and bind it to a function key, e.g. F12. What works for me is (global-set-key (kbd f12) org-agenda) which at least brings me to the overview over all defined agendas, but how can I bind F12 directly to the Agenda with trigger h? Kind regards Martin
Re: [O] odt exporter on mixed org setup
This is my setup in .emacs; it runs without problems version after version. ;; ;; Remove Org remnants built into Emacs ;; ;; from Achim Gratz ;; https://github.com/emacsmirror/org/blob/master/testing/org-batch-test-init.el ;; clean load-path (setq load-path (delq nil (mapcar (function (lambda (p) (unless (string-match lisp\\(/packages\\)?/org$ p) p))) load-path))) ;; remove property list to defeat cus-load and remove autoloads (mapatoms (function (lambda (s) (let ((sn (symbol-name s))) (when (string-match ^\\(org\\|ob\\|ox\\)\\(-.*\\)?$ sn) (setplist s nil) (when (eq 'autoload (car-safe s)) (unintern s))) ;; we should now start from a clean slate ;;(setq myorg master) (setq myorg maint ) ;; I have several directories under ~/org-mode/ with different ;; versions so I can change easily ;;(add-to-list 'load-path (concat ~/org-mode/ myorg /testing/lisp)) ;;(add-to-list 'load-path (concat ~/org-mode/ myorg /testing)) (add-to-list 'load-path (concat ~/org-mode/ myorg /contrib/lisp)) (add-to-list 'load-path (concat ~/org-mode/ myorg /lisp)) (require 'info) (setq Info-directory-list (cons (expand-file-name (concat ~/org-mode/ myorg /doc)) Info-default-directory-list)) (setq org-odt-data-dir (expand-file-name (concat ~/org-mode/ myorg /etc))) (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) (global-set-key \C-cl 'org-store-link) (global-set-key \C-cc 'org-capture) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) HTH El Jueves 16 de enero de 2014 6:47, Rustom Mody rustompm...@gmail.com escribió: Just helped a friend to install and upgrade to latest org. Method summary: $ git clone $ make update combined with setup of load-paths Ended with: ox-odt cannot find factory style files I remember that I too had this problem http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00341.html and it had recently disappeared. Checked that it comes back it I use emacs23; goes away if I use emacs24 Checked that the messages when it works in emacs24 are like thus: Debug (ox-odt): Searching for OpenDocument styles files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] Debug (ox-odt): Trying ~/pdsw/etc/styles/... Debug (ox-odt): Trying ~/pdsw/org-mode/lisp/etc/styles/... Debug (ox-odt): Trying /usr/share/emacs/24.3/etc/org/... Debug (ox-odt): Using styles under /usr/share/emacs/24.3/etc/org/ Debug (ox-odt): Searching for OpenDocument schema files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] Debug (ox-odt): No OpenDocument schema files installed So evidently my 'working' odt export is working because its using the builtin emacs odt exporter and not the latest one Looking at org-odt-* stuff I see almost a dozen files and directories and file lists and what not. All attempts so far at doing (setq org-odt-styles-dir ~/pdsw/org-mode/etc/styles) in various places, hooks etc have not changed the fact that it gets the builtin one
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Hello Eric, Eric S Fraga wrote: Seems to work fine. I've tried using the export snippets together with the filter for checkboxes and my lists come out looking as they should. Changing my documents won't be too onerous. Would you mind sharing your filter (or put it on Worg hacks, maybe)? Best regards, Seb -- Sebastien Vauban
Re: [O] How to bind opening a custom agenda to a single key?
Martin Beck wrote: I want to simplify that keystroke and bind it to a function key, e.g. F12. What works for me is (global-set-key (kbd f12) 'org-agenda) which at least brings me to the overview over all defined agendas, but how can I bind F12 directly to the Agenda with trigger h? --8---cut here---start-8--- (global-set-key (kbd f12) (lambda () Execute `C-c a h'. (interactive) (org-agenda nil h))) --8---cut here---end---8--- Best regards, Seb -- Sebastien Vauban
[O] Exporting table.el tables to LaTeX: set environment?
If I have a table.el table, is there any way to set the LaTeX table environment for it (longtable, tabularx etc.)? Here's a simple sample: * Table Test This is a table.el table: +-+---+---+ | Test| Test2 | Test3 | +-+---+---+ | this is | some text | in the table | +-+---+---+ | here is | some more | to make it longer | +-+---+---+ -- Gary
Re: [O] odt exporter on mixed org setup
Rustom Mody rustompm...@gmail.com writes: I could check that org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which is non-existent) before the defvar in ox-odt.el, so that defvar is not happening And changing the prefix in local.mk does not seem to do anything Don't worry about the make file. (It is difficult for the make file to cater to different distributions, different installations - git, release tar file etc) The most easiest setup will be ELPA or using ox-odt that ships with Emacs proper.
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Hello, Eric S Fraga e.fr...@ucl.ac.uk writes: Nicolas Goaziou n.goaz...@gmail.com writes: [...] So, here comes another patch. WDYT? Seems to work fine. Applied. Thank you. I've tried using the export snippets together with the filter for checkboxes and my lists come out looking as they should. Changing my documents won't be too onerous. Good news, then. Regards, -- Nicolas Goaziou
Re: [O] odt exporter on mixed org setup
Rustom Mody rustompm...@gmail.com writes: org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which is non-existent) Open a bug against the packager. (ox-odt.el is an exception. It is uncommon for Emacs libraries to come with auxiliary support files). The distributors need to make sure 1. Style files are bundled correctly. 2. `org-odt-data-dir' is configured to point to (1). I don't know much about the build system.
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Sebastien Vauban sva-n...@mygooglest.com writes: Hello Eric, Eric S Fraga wrote: Seems to work fine. I've tried using the export snippets together with the filter for checkboxes and my lists come out looking as they should. Changing my documents won't be too onerous. Would you mind sharing your filter (or put it on Worg hacks, maybe)? Sure: #+begin_src emacs-lisp (defun esf/filter-checkbox-list-items (line backend channel) (if (eq backend 'latex) (replace-regexp-in-string item \\$\\(square\\|boxtimes\\)\\$ item [$\\1$] line))) (add-to-list 'org-export-filter-plain-list-functions 'esf/filter-checkbox-list-items) #+end_src It took a while to suss out the number of backslashes... :) -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5d-479-g8694aa.dirty
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Eric S Fraga e.fr...@ucl.ac.uk writes: Sebastien Vauban sva-n...@mygooglest.com writes: Hello Eric, Eric S Fraga wrote: Seems to work fine. I've tried using the export snippets together with the filter for checkboxes and my lists come out looking as they should. Changing my documents won't be too onerous. Would you mind sharing your filter (or put it on Worg hacks, maybe)? Sure: #+begin_src emacs-lisp (defun esf/filter-checkbox-list-items (line backend channel) (if (eq backend 'latex) (replace-regexp-in-string item \\$\\(square\\|boxtimes\\)\\$ item [$\\1$] line))) (add-to-list 'org-export-filter-plain-list-functions 'esf/filter-checkbox-list-items) #+end_src It took a while to suss out the number of backslashes... :) The question is still open, though: should it be the default? Regards, -- Nicolas Goaziou
Re: [O] [RFC] ox-ascii.el: fixing variable width character handling
Hello, Yasushi SHOJI ya...@atmark-techno.com writes: Opps. Rebased version attached. Applied. Thank you for your work. Regards, -- Nicolas Goaziou
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Nicolas Goaziou wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: Sebastien Vauban sva-n...@mygooglest.com writes: Eric S Fraga wrote: Seems to work fine. I've tried using the export snippets together with the filter for checkboxes and my lists come out looking as they should. Changing my documents won't be too onerous. Would you mind sharing your filter (or put it on Worg hacks, maybe)? Sure: #+begin_src emacs-lisp (defun esf/filter-checkbox-list-items (line backend channel) (if (eq backend 'latex) (replace-regexp-in-string item \\$\\(square\\|boxtimes\\)\\$ item [$\\1$] line))) (add-to-list 'org-export-filter-plain-list-functions 'esf/filter-checkbox-list-items) #+end_src It took a while to suss out the number of backslashes... :) I can imagine ;-) The question is still open, though: should it be the default? I'd vote for it, for both LaTeX and HTML. Best regards, Seb -- Sebastien Vauban
Re: [O] odt exporter on mixed org setup
Jambunathan K writes: Rustom Mody rustompm...@gmail.com writes: I could check that org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which is non-existent) before the defvar in ox-odt.el, so that defvar is not happening And changing the prefix in local.mk does not seem to do anything Don't worry about the make file. (It is difficult for the make file to cater to different distributions, different installations - git, release tar file etc) Bzzt. Wrong. The defaults are set up to work out-of-the box for most free systems with minimal fuzz. Instructions on how to change them if your system looks different are included both in the manual and on Worg (which the manual points to for details). If people would stop listening to bad advice and actually installed Org in the standard location, then they wouldn't even need to modify their init files. ELPA packages do as much as the current state of Emacs' packager allows, but Org really isn't a good fit to it at the moment. That said, a recent Emacs combined with ELPA does work just fine. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)]
Sebastien Vauban sva-n...@mygooglest.com writes: Nicolas Goaziou wrote: [...] The question is still open, though: should it be the default? I'd vote for it, for both LaTeX and HTML. Best regards, Seb As would I. Check boxes with bullet points look quite ugly. Removing the bullet point leaves a very clean format. I have no idea how to achieve this in HTML with filters, mind you... -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5d-479-g8694aa.dirty
Re: [O] Buffer local alias?
Andreas Leha writes: Yes, I know. That's why I am sighing a bit: Both approaches need work or are inconvenient in one way or the other. That trait of reproducibility is shared with security. You might want to have alook at this: https://www.vagrantup.com/ (no direct experience yet). Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ DIY Stuff: http://Synth.Stromeko.net/DIY.html
Re: [O] Buffer local alias?
On 2014-01-16 11:44, Achim Gratz wrote: Andreas Leha writes: Yes, I know. That's why I am sighing a bit: Both approaches need work or are inconvenient in one way or the other. That trait of reproducibility is shared with security. You might want to have alook at this: https://www.vagrantup.com/ (no direct experience yet). FWIW, I've just started using vagrant and virtualbox for creating a reproducible development environment for a ruby-on-rails class I am teaching. So far, it's great. Trying to get students to setup a rails dev environment, esp. on windows, is extremely difficult. With vagrant I have created a script which will build an ubuntu vm with everything needed (ruby, postgres, etc.) installed and configured. (Identical every time modulo 'apt-get upgrade'.). I then distribute THAT to the students (via vagrant), guaranteeing they are all working on identical virtual machines. rick
Re: [O] odt exporter on mixed org setup
Rustom Mody writes: I could check that org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which is non-existent) before the defvar in ox-odt.el, so that defvar is not happening And changing the prefix in local.mk does not seem to do anything What do you expect it to do if you don't actually install Org? Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
Re: [O] odt exporter on mixed org setup
On Thu, Jan 16, 2014 at 8:22 PM, Jambunathan K wrote: Rustom Mody writes: org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which is non-existent) Open a bug against the packager. Dunno what you mean... I am using org fresh-cooked off git! And anyway your setq to org-odt-data-dir has settled the issue as far as I can see. The only question I have (not so much an org question as emacs/elisp) is where to put that setq and whether defvar would be better than setq. Currently I have a setq on org-mode-hook
Re: [O] Buffer local alias?
Aloha Achim, Achim Gratz strom...@nexgo.de writes: Andreas Leha writes: Yes, I know. That's why I am sighing a bit: Both approaches need work or are inconvenient in one way or the other. That trait of reproducibility is shared with security. You might want to have alook at this: https://www.vagrantup.com/ Ah, very nice. Proof that it's a good idea to stir old pots now and again. Thanks for bringing this to the attention of the mailing list. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] python :session does return
Hi John, On Wed, 15 Jan 2014, John Hendy wrote: On Wed, Jan 15, 2014 at 6:22 AM, Ken Mankoff mank...@gmail.com wrote: Are my results contrary to what's been happening to you? Actually things now seem to be working. All cases. No hanging when I run Python in a session, and return and print work when running IPython. I wrote a test example, load it with emacs -q and then load a minimal org setup in a code block (I think I'm just starting to get the hang of some basic lisp and tangling code in Org). I've tried all possible cases (yes/no session, and results of default/output/value) and it all seems to be working. I then repeated it all with IPython instead of default Python. Output results are a bit ugly when using IPython. If I get a chance I'll look into the code. Since regular python output doesn't print the startup info, I assume the same can be done for IPython. It should just ignore everything until the first In [1]: text appears. Perhaps the previous issues were due to a complicated org setup. Test file follows. Cheers, -k. * Intro This is a test file for Python + Emacs. I'm loading this file running emacs -q test.org to try to simplify the setup ** Setup For running Python and other stuff #+BEGIN_SRC emacs-lisp (setq org-confirm-babel-evaluate nil) ;; don't ask to eval code (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (sh . t) (emacs-lisp . t) )) #+END_SRC #+RESULTS: | (python . t) | (sh . t) | (emacs-lisp . t) | ** System setup: #+BEGIN_SRC sh :results output /usr/local/bin/emacs --version uname -a python -V # no ouput for some reason... # Python 2.7.3 -- 64-bit #+END_SRC #+RESULTS: : GNU Emacs 24.3.1 : Darwin 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; xnu-2422.1.72~6/RELEASE_X86_64 x86_64 * Testing There are two tests per :output and per :session option. 1. 'foo' equal to 'print foo' 2. 'print foo'. ** No Session No Session, No Results #+BEGIN_SRC python print 'No Session, No Result' #+END_SRC #+RESULTS: : None #+BEGIN_SRC python return 'No Session, No Result' #+END_SRC #+RESULTS: : No Session, No Result No Session, Result Output #+BEGIN_SRC python :results output print 'No Session, Result Output' #+END_SRC #+RESULTS: *Warning: Does not run* #+BEGIN_SRC python :results output return 'No Session, Result Output' #+END_SRC #+RESULTS: No Session, Result Value #+BEGIN_SRC python :results value print 'No Session, Result Value' #+END_SRC #+RESULTS: : None #+BEGIN_SRC python :results value return 'No Session, Result Value' #+END_SRC #+RESULTS: : No Session, Result Value ** Yes Session Yes Session, No Results #+BEGIN_SRC python :session foo print 'No Session, No Result' #+END_SRC #+RESULTS: : None #+BEGIN_SRC python :session foo return 'No Session, No Result' #+END_SRC #+RESULTS: : No Session, No Result Yes Session, Result Output #+BEGIN_SRC python :results output :session foo print 'No Session, Result Output' #+END_SRC #+RESULTS: *Warning: Does not run* #+BEGIN_SRC python :results output :session foo return 'No Session, Result Output' #+END_SRC #+RESULTS: Yes Session, Result Value #+BEGIN_SRC python :results value :session foo print 'No Session, Result Value' #+END_SRC #+RESULTS: : None #+BEGIN_SRC python :results value :session foo return 'No Session, Result Value' #+END_SRC #+RESULTS: : No Session, Result Value * Second Try with IPython Execute the following and re-run the test code above. #+BEGIN_SRC emacs-lisp (setq org-babel-python-command ipython --pylab --pdb --nosep) #+END_SRC #+RESULTS: : ipython --pylab --pdb --nosep
[O] most robust linking practices?
Hi all, I am using org-mode in a multiuser environment, (i.e. many people have access to the org-files). I create org-files with links in them to other files, and I am trying to find the most robust way to do that. For example, in one file in section I type C-c l to store a link, and then later C-c-C-l to insert it in another file. That link looks like this: [[file:~/dft-book/dft.org::*Introduction%20to%20DFT][Introduction to DFT]] It works for me, but not for other users, because of the ~ in it. I have tried using org-id, with mixed results. I set this up in my init file ;; automatically create ids for links (require 'org-id) (setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id) Now, when C-c l is typed, it creates a unique id in the heading, and the link looks like this: [[id:065443d5-59d7-4119-b530-7b63af28349b][Background]] I haven't figured out a detail though. If the original file is not open, org-mode does not seem to find it when I click on it. Am I missing some setup for org-id? I can see here http://orgmode.org/worg/org-api/org-id-api.html that there is some concept of a database of ids, but I didn't see anything about using it. How would another user click on that id link and get to the file if they didn't have the database? Finally, the end goal here is to package a set of interlinked org-files that someone else would use as a standalone package. What is the best link strategy for that? Thanks! John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
Re: [O] Citations and references in ODT
Ken Mankoff mank...@gmail.com writes: Aric, perhaps you could add markdown support using export filters? I have just come across this feature and it looks useful. http://thread.gmane.org/gmane.emacs.orgmode/74816/focus=74876 I'll give this a try, but my lisp knowledge is nil. I can pretty easily change the references to latex format with a search and replace, but I am running into issues going from latex to docx with pandoc. Will probably need to explore this option here more and wait to see if Jambunathan has any ideas as to why his exporter is not working with my set-up. Thanks, Aric -- ~O /\_, ###-\ |_ (*) / (*)
[O] Spreadsheet formula evaluation without using tables?
Is it possible to have a list of tasks each with a formula to track progress in percentage based on other subtasks? The result will look like this: * [ 30%] Project Name ** [ 50%] Task A ** [ 10%] Task B This is what my formula in lisp will look like: ** [**(format %3d (+ (* TASKA 0.5) (* TASKB 0.5) ))**%] Project Name* *** [**(format %3d *(setq TASKA 50) *%] Task A* *** [**(format %3d *(setq TASKA 10) *%] Task B* All I need to do is evaluate the code in org-mode to get the result. Is this possible? _ Asif
Re: [O] most robust linking practices?
John Kitchin jkitc...@andrew.cmu.edu writes: Hi all, I am using org-mode in a multiuser environment, (i.e. many people have access to the org-files). I create org-files with links in them to other files, and I am trying to find the most robust way to do that. For example, in one file in section I type C-c l to store a link, and then later C-c-C-l to insert it in another file. That link looks like this: [[file:~/dft-book/dft.org::*Introduction%20to%20DFT][Introduction to DFT]] It works for me, but not for other users, because of the ~ in it. How do the other users have access to this file? Is it in a shared filesystem? Are *all* the files you want to share in a shared filesystem? Does everybody have write access or are they read-only? There is org-link-file-path-type which can be set to noabbrev to use links with absolute paths (without ~). That would work in a single namespace but not e.g. if everybody mounts some shared FS over NFS and uses a different mount point. Relative paths would work better in that case. I have tried using org-id, with mixed results. I set this up in my init file ;; automatically create ids for links (require 'org-id) (setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id) Now, when C-c l is typed, it creates a unique id in the heading, and the link looks like this: [[id:065443d5-59d7-4119-b530-7b63af28349b][Background]] I haven't figured out a detail though. If the original file is not open, org-mode does not seem to find it when I click on it. In the same emacs process or a different one? I haven't seen this but the last time I used IDs was some years ago (but see below). Am I missing some setup for org-id? I can see here http://orgmode.org/worg/org-api/org-id-api.html that there is some concept of a database of ids, but I didn't see anything about using it. How would another user click on that id link and get to the file if they didn't have the database? The id database is kept in a file: , | org-id-locations-file is a variable defined in `org-id.el'. | Its value is ~/.emacs.d/.org-id-locations | | Documentation: | The file for remembering in which file an ID was defined. | This variable is only relevant when `org-id-track-globally' is set. | ` so it would have to be in a shared place for others to use. But it seems that writing this file out is racy. It can be made read-only of course but you would not be able to create new links. The problem is that as you create links the id locations are kept in a variable org-id-locations in memory. The value of the variable is saved to the file when emacs exits and when org-id-find is called and cannot find the id (I think), or you eval (org-id-locations-save) explicitly. In particular, if the database file is up-to-date, then starting another emacs and following an id-link works whether the target file is already visited or not. Maybe what you are seeing is this discrepancy. Finally, the end goal here is to package a set of interlinked org-files that someone else would use as a standalone package. What is the best link strategy for that? My guess would be relative file links: all the files are in the hieararchy under a single directory and all the file links are limited to point strictly within the hierarchy, using relative pathnames. Nick
[O] [BUG] Testing fails after rename of ob-sh
Eric- After doing a git pull including the rename of ob-sh.el to ob-shell.el, testing fails with the error: Cannot open load file: no such file or directory, ob-sh rick
Re: [O] [RFC] img vs object in HTML export
On Sat, Jan 11, 2014 at 10:21:39AM +0100, Bastien wrote: Rick Frankel r...@rickster.com writes: I thing the solution is to use an object tag for svg, but an img tag for the rest. Yes -- I'm no HTML guru, but this corresponds to what I see in most HTML pages. Change applied. You can use the html attribute ':fallback' to specify a fallback image file.e.g. #+ATTR_HTML: :width 100 :height 50 :fallback my.png [[file:my.svg]] rick
Re: [O] [RFC] img vs object in HTML export
Rick Frankel r...@rickster.com writes: On Sat, Jan 11, 2014 at 10:21:39AM +0100, Bastien wrote: Rick Frankel r...@rickster.com writes: I thing the solution is to use an object tag for svg, but an img tag for the rest. Yes -- I'm no HTML guru, but this corresponds to what I see in most HTML pages. Change applied. You can use the html attribute ':fallback' to specify a fallback image file.e.g. #+ATTR_HTML: :width 100 :height 50 :fallback my.png [[file:my.svg]] Thanks for doing this, Rick! I tested the basic functionality (i.e. what I need :-)) and it works fine for me (with Chrome/FF on Linux.) Nick
Re: [O] [RFC] img vs object in HTML export
Hello, Rick Frankel r...@rickster.com writes: On Sat, Jan 11, 2014 at 10:21:39AM +0100, Bastien wrote: Rick Frankel r...@rickster.com writes: I thing the solution is to use an object tag for svg, but an img tag for the rest. Yes -- I'm no HTML guru, but this corresponds to what I see in most HTML pages. Change applied. You can use the html attribute ':fallback' to specify a fallback image file.e.g. #+ATTR_HTML: :width 100 :height 50 :fallback my.png [[file:my.svg]] Nit-pick: As a side note, please make the first line in your docstring a complete sentence, and put two spaces between subsequent sentences. Thank you ! Regards, -- Nicolas Goaziou
Re: [O] Bug: s5-export: Improved title template default. [8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org-mode/)]
On Sat, Jan 11, 2014 at 02:27:01AM +0100, Arne Babenhauserheide wrote: The following in ox-s5.el should fix this: (defcustom org-s5-title-slide-template h1%t/h1 h3%a/h3 h4%e/h4 h4%d/h4 applied in maint and master.
[O] Holidays without fixed dates
For instance, New Year's Day is always on January 1st, but something like the start of Daylight Saving Time is always around the same time but on the closest Sunday. Is there a ready-made solution for working this sort of thing into the agenda? So far I just have holidays in my agenda that have fixed dates with ++1y repeat intervals on them. I'm just wondering if there exists a solution or if I should make one. Thanks, Pete