[O] ox-texinfo doesn't handle inline images
In: #+NAME: fig1 #+CAPTION: Screen capture [[./emacs-24.5.1-startup-screen-annotated.png]] Buggy out: @uref{./emacs-24.5.1-startup-screen-annotated.png} Desired out: @float Figure,fig1 @image{./emacs-24.5.1-startup-screen-annotated,150mm,,,png} @c @shortcaption{Screen capture} @caption{Screen capture.} @end float Reference: http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Special-Displays.html http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Floats.html#Floats http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Images.html#Images Additional notes: (a) I also see no reference to @listoffloats, for example. There is a some scope for further imporvement around these areas. (b) Without Image width (i.e., image scaling) the image in the PDF output gets cropped.
[O] ox-texinfo: Provide an option to open the *.info file within Emacs
ox-texinfo: Provide an option to open the *.info file within Emacs The following snippet (as suggested by M-x list-command-history), would do the needful. (info ~/src/emacsprimer/emacsprimer.info nil) It would also be useful if I could compile *.info document using texi2html and texi2pdf.
[O] ox-latex: includegraphics should quote filenames
In: [[./emacs-24.5.1-startup-screen-annotated.png]] Buggy Out: \includegraphics[width=.9\linewidth]{./emacs-24.5.1-startup-screen-annotated.png} Desired: Out: \includegraphics[width=.9\linewidth]{{./emacs-24.5.1-startup-screen-annotated}.png} Source: http://tex.stackexchange.com/questions/10574/includegraphics-dots-in-filename
Re: [O] How to elegantly and effectively quote org fragments?
I understand that the indentation is virtual; it is just that I would (ideally) expect for the quoted example to visually look the same as it does in an org buffer. That's not possible. I understand that now. I'll stay disappointed about it :-) OK. I had missed this footnote. I will live with this, but am still surprised by this fact -- the SRC org block looks ugly to me. When we enter [[xx]] (say) the brackets become invisible, so I had assumed that a similar mechanism could exist here; I guess there are advantages to the present situation that I do not see... I am not sure about what situation you're talking about, fontification or escaping mechanism. About the latter, the idea was to make it as little intrusive as possible. In most languages, you never need to escape anything. Of course, Org is an exception since many lines could conflict with enclosing document. To the extent that I understand the terminology, I was talking about escaping mechanism: it would be nice if the escaping commas could be made invisible and not using any space. Thanks for the explanations. a.
Re: [O] Treat custom environment as verbatim on export
Hello, On Sun, May 24, 2015 at 3:43 PM, Charles C. Berry ccbe...@ucsd.edu wrote: Currently, :wrap allows this: #+begin_src emacs-lisp :wrap src latex :wrap my-verbatim :exports results ... This is sufficient for my use case. Thanks for the tip. A special block :raw parameter, as Rasmus suggested, is what I was really asking for (without realizing it), but as Nicolas said it isn't worth implementing, Charles's solution works fine. While obvious in hindsight, it didn't occur to me that marking the results as LaTeX would protect them from interpretation just as verbatim does. Thanks for the help, Jake
Re: [O] org-mode, tikz and beamer
Hello Cédric, First, apologies for the delay. I am swamped with a lot of things for a while now, makes my responses rather irregular. On Thu, May 21, 2015 at 10:33:13PM +0200, cédric ody wrote: Thank you for your answer. Here is the shell script (many comments are in english except the beginning) and the org file I use. To see how I call it, you can have a look at the enclosed Makefile. Note that it uses specific configurations files as well tex macros so it won't work without these files. I can prepare a short example which generates the tex and pdf files if needed. The script probably gives for now a good idea. You can also look at the enclosed generated tex file to see how the tikz language. I think you forgot the Makefile. Aside from that, I looked at the script, and the Org file, albeit not very thoroughly. My impression is, it is a really nice effort but I think it's unsustainable. You have to duplicate a lot of work, and since you do it in a shell script, you are limited. Here are a few particular points: - You reimplement the Org parser. This of course means you do not support a large part of the standard syntax[1]. It's not future proof either. For the same reasons, it is very brittle. Org-element does a great job of parsing, you should use it. - You seem to rely on specific cookies, like `%%%' (and maybe abusing tags like noexport?). This is introducing _new_ syntax. Again, since this is outside of org-element, there is no way to ensure robustness and reproducibility. Basically, the shell script looks recursively into the org file and creates nodes for the tikz headline mindmaps. Thus, there are parent nodes and children nodes. During that excursion, two kinds of files are created: the tree files and the contents files. The first ones are tex files with tikz mindmaps that must be inserted at specific locations at the final latex compilation step. One tree file contains the parent node with all the children files. This part sounds good. The contents files are org files and are converted into tex files via the org-mode export command in a batch way. In the shell script, hyperlinks are added to these newly converted tex files. This, I'm not completely certain. If I got this right, you export one file per beamer frame? Is that right? I also see you do a bit of editing with sed. Again, I think this makes it too brittle, too many assumptions about what is present and what is not. At the end, the assembly of all these files is done before compiling. Numbering of sections through the recursive call is important so that links work properly as you notice. Links allow one to go back and forth the document. To go back, the idea is to click on the headline. If a node exists without content, the links sends you the beginning of the file or something like that. This part I'm not sure I quite understand. Shouldn't normal LaTeX referencing mechanisms (à la \label and \ref) be able to handle this? Anyway, after looking at the script I'm convinced this endeavour is better pursued in lisp. I think it would help if you draft a document outlining the Org elements you want to map to which specific tikz features/commands. You will then have a list of leftover info that tikz still needs to achieve the end goal. At this point others can suggest how you could communicate these missing info to tikz. E.g. you already have one suggestion from Bernhard, but I think it is probably too generic. If you manage to pursue this, I think the outcome will be a new Org backend, possibly derived from ox-latex or ox-beamer. Please don't be afraid to learn lisp, although it is hard to master, it's easy to pick up. I think the list will be more than willing to help you with that. Also, I think this is not a easy project. It will take some iterations to get to a version that can be test widely (by say putting in an experimental branch or something). While proof reading my email, I just realised ox-koma-letter might be a really nice place for you to get familiar with how to repurpose Org syntax to translate info to the backend in different ways. Have a look. Hope this helps, Footnotes: [1] Do not underestimate this aspect, Org users have a way to come up with interesting ways to use features that were not envisioned during development! -- Suvayu Open source is the future. It sets us free.
Re: [O] Fontification of org code block not printed
On Fri, Aug 1, 2014 at 8:31 AM, Francesco Pizzolante f...@missioncriticalit.com wrote: I have to say that I'm surprised about the way this issue has been fixed. Let me tell you why. 1) The fix 'simply' removes a useful Org functionality, which I use for 3 years now, without providing any alternative. Wouldn't it be possible to use Polymode, as in this image? https://github.com/vspinu/polymode/blob/master/img/org.png
Re: [O] Javascript syntax highlighting?
I use somethign similar for blogs I write in orgmode. In my case, it depends on having a server-side library for syntax highlighting: I use google-code-prettify[1] on the server side and then just paste the exported code from orgmode, and it works for me. Peter Davis p...@pfdstudio.com writes: If I edit a JavaScript file in emacs, I get beautiful syntax highlighting. However, if I put the same code in a .org file between #+BEGIN_SRC Javascript ... #+END_SRC I get nothing but plain black text. Is there any way to get the syntax highlighting in HTML output, so I can use it in a blog post? Thanks, -pd Footnotes: [1] https://code.google.com/p/google-code-prettify/
Re: [O] org-clock-persistence-insinuate not working anymore (25.0.5)
How about any suggestions on how to debug this, since it isn't actually throwing any errors (and I'm a novice emacs-debugger)? The tasks list will contain interrupted task and recent task but none of the actual task names. (this comes from passing a single arg to org-clock-in) torys.ander...@gmail.com (Tory S. Anderson) writes: I've been using the following code for several months to make it easy to clock back in to my frequent tasks as I track my time usage: (org-clock-persistence-insinuate) (setq org-clock-persist t) A few days ago I updated emacs to the dev master and my clock is no longer persisting; the list of recent tasks is perpetually nil. Any ideas on how to fix this, or what happened?
Re: [O] Javascript syntax highlighting?
Peter Davis writes: On 5/25/15 10:44 AM, David Engster wrote: Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. Thanks, David. That doesn't appear to make any difference. Neither does js. Do you mean you don't see any highlighting in Emacs, or only in the export? What does 'C-h v major-mode RET' say when you are editing a Javascript file? -David
Re: [O] Javascript syntax highlighting?
David Engster d...@randomsample.de writes: Peter Davis writes: On 5/25/15 10:44 AM, David Engster wrote: Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. Thanks, David. That doesn't appear to make any difference. Neither does js. Do you mean you don't see any highlighting in Emacs, or only in the export? Either one. What does 'C-h v major-mode RET' say when you are editing a Javascript file? I've tried both js-mode and js2-mode. It doesn't seem to make any difference. Thanks! -pd
Re: [O] Javascript syntax highlighting?
On 5/25/15 10:44 AM, David Engster wrote: Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. Thanks, David. That doesn't appear to make any difference. Neither does js. Thanks, -pd -- Peter Davis The Tech Curmudgeon http://www.techcurmudgeon.com
[O] Javascript syntax highlighting?
If I edit a JavaScript file in emacs, I get beautiful syntax highlighting. However, if I put the same code in a .org file between #+BEGIN_SRC Javascript ... #+END_SRC I get nothing but plain black text. Is there any way to get the syntax highlighting in HTML output, so I can use it in a blog post? Thanks, -pd -- Peter Davis The Tech Curmudgeon http://www.techcurmudgeon.com
[O] Bugreport: htmlized.el 1.43 and Org-mode Agenda export to html with C-x C-w has broken http links
I've recently installed emacs 24.5 on two different OS X Mavericks machines, once with Mac Ports, once from the tarball. I didn't see html as an option when using C-c C-e in org-mode, so i ran find across the machine installed with tarball and couldn't find htmlize.el. I fetched version 1.43 and put it in my load path: html now appears in C-c C-e. (This loadpath is mirrored between the two machines.) Now when i run C-x C-w at the agenda view, i have a satisfactory html export with the exception of links. The URL includes the close bracket, open bracket and first word of the link text. (Angle brackets replaced with curly braces in hopes to preserve content across rendering systems.) {a href=https://oclc.webex.com/oclc/j.php?blahblahblah][Webex}Webex{/a} Note that the engine is able to figure out the end of the URL because the second word in the link text in the org document becomes its own second link, well formed: {a href=https://docs.google.com/document/d/blahblah/edit][Engineering}\ Engineering{/a}{a href=https://docs.google.com/document/d/blahblah/edit} Doc{/a} This annoying behavior occurs on both machines. Experiments on the macports machine result in the following. An export of an org file to html via C-c C-e produces well formed links; an export of the agenda via M-x org-export-dispatch produces well formed links, but all the content is in one paragraph tag and all the lines run together. The orgfile source reads: '** 10:00 Team checkin - [[https://oclc.webex.com/oclc/j.php?MTID%blah][Webex]] - [[https://docs.google.com/document/d/blah_blah-blah/edit][Engineering Doc]]' Confirmed in post at http://stackoverflow.com/questions/30399029/org-mode-agenda-export-to- html-with-c-x-c-w-has-broken-http-links
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
I am sorry for reposting, but I'm still in the dark. Am I the only one who experience this kind of issue? Did someone managed to reproduce the problem? Does anyone see this message? :) On Sat, May 23, 2015 at 8:49 PM, Dror Atariah dror...@gmail.com wrote: I am still helpless here. Any idea how to debug the problem? I would be happy to provide any kind of help, but I just cannot do it myself. Further findings: 1) I don't think that matplotlib changes Python's '_', since the tmp file that contains the content of '_' is correct. 2) Somehow, emacs/orgmode fails to extract the filename. 3) It doesn't work also when using emacs 24.5 and orgmode 8.2.10. Following is an org file that tries to summarize the issue: #+TITLE: Integrate matplotlib figures in an org mode buffer * Goal The ultimate goal is to use org-babel as a replacement of IPython. The first motivation is to enable an easier version controling of the document. The first challenge I faced is integration of plots returned by ~matplotlib~ in the org buffer. * Capturing filename I would like to use (babel) orgmode as an interactive python notebook. Therefore, in order to allow the various code blocks to know each other, it is important to use the ~:session~ option. However, once ~:session~ is used, together with ~matplotlib~ the desired behavior is no longer in place. * Clean testing, no Matplotlib For the sake of testing, the following merely suppose to return the filename #+BEGIN_SRC python :session no_matplotlib :results file :exports both x = 'hello ' y = 'world' z = x + y 'foo.bar' #+END_SRC #+RESULTS: [[file:foo.bar]] *Passed* Indeed, the ~RESULTS~ block contains a link to the filename indicated by the last string. * Importing Matplotlib The following minimal example should generate a simple figure, ~myfig.png~, and orgmode should capture it and interpret it as a filename to be used by the following ~RESULTS~ block. #+BEGIN_SRC python :session with_matplotlib :results file :exports both import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig=plt.figure(figsize=(3,2)) plt.plot([1,3,2]) plt.savefig('myfig.png') 'myfig.png' #+END_SRC #+RESULTS: [[file:]] *Failed!* This time, it doesn't work anymore. The file ~myfig.png~ is properly generated, but the last string is not captured by ~matplotlib~. Following is the content of the corresponding interactive python session: #+BEGIN_SRC Process with_matplotlib finished Python 3.4.3 (default, Mar 10 2015, 14:53:35) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin Type help, copyright, credits or license for more information. , '''/var/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/py32771xVI''', 'exec')); import matplotlib import matplotlib matplotlib.use('Agg') matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.pyplot as plt fig=plt.figure(figsize=(3,2)) fig=plt.figure(figsize=(3,2)) plt.plot([1,3,2]) plt.plot([1,3,2]) plt.savefig('myfig.png') plt.savefig('myfig.png') 'myfig.png' 'myfig.png' open('/var/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/babel-32771x4j/python-32771-fO', 'w').write(str(_)) open('/var/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/babel-32771x4j/python-32771-fO', 'w').write(str(_)) 'org_babel_python_eoe' 'org_babel_python_eoe' [matplotlib.lines.Line2D object at 0x108e01828] 'myfig.png' 9 'org_babel_python_eoe' #+END_SRC * Some background ** Python Version #+BEGIN_SRC python :session background :results raw import sys sys.version #+END_SRC #+RESULTS: 3.4.3 (default, Mar 10 2015, 14:53:35) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] ** Matplotlib version #+BEGIN_SRC python :session background :results raw import matplotlib matplotlib.__version__ #+END_SRC #+RESULTS: 1.4.3 ** System I am running Emacs version ~GNU Emacs 24.5.1 (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72) of 2015-04-19 on tenten-slave.macports.org~ The orgmode version is: ~Org-mode version 8.2.10 (8.2.10-40-gc763fa-elpaplus @ /Users/drorata/.emacs.d/elpa/org-plus-contrib-20150518/)~ ** Stackoverflow reference I also posted a question in the SE network: [[ http://emacs.stackexchange.com/questions/11075/org-mode-python-session-does-not-return-a-file-name ]] * Question So, my question is how to tackle/debug this issue? Can someone give me a hand here? That would be really great! Thanks! -- Dror Atariah, Ph.D. de.linkedin.com/in/atariah
Re: [O] Javascript syntax highlighting?
Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. -David
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
With emacs -Q, and this org file: #+BEGIN_SRC emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (python . t))) #+END_SRC #+RESULTS: #+BEGIN_SRC python :session with_matplotlib :results file :exports both import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig=plt.figure(figsize=(3,2)) plt.plot([1,3,2]) plt.savefig('myfig.png') 'myfig.png' #+END_SRC #+RESULTS: [[file:myfig.png]] I get what you expect to happen. In my customized emacs, I get something else that is more like you see. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, May 25, 2015 at 2:22 PM, Dror Atariah dror...@gmail.com wrote: On Mon, May 25, 2015 at 7:29 PM, Ken Mankoff mank...@gmail.com wrote: On 2015-05-25 at 13:25, Dror Atariah dror...@gmail.com wrote: I am sorry for reposting, but I'm still in the dark. Am I the only one who experience this kind of issue? Don't know. Did someone managed to reproduce the problem? I could not reproduce it. Does anyone see this message? :) Yes. Thanks for your reply :) I'm on Mac too, which is where your problem is. Are you starting with emacs -Q? I haven't seen you post a full MWE with both =init.el= and = test.org=. You did provide a test Org file but it wasn't clear to me if that was being used with emacs -Q. I tried to evaluate the problematic file using =emacs -Q= and the problem is the same. Following is the section of my =init.el= that deals with org-mode (if you need more, let me know): --8--8--8--8--8--8--8--8--8--8--8--8--8--8-- ;;; ;; Org Mode related ;;; (setq org-directory ~/Dropbox/org) ;; Set a location for the list of agena files (setq org-agenda-files ~/.emacs.d/agenda_files) ;; Assigns org-mode to .org files (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (define-key global-map \C-cl 'org-store-link) (define-key global-map \C-ca 'org-agenda) (setq org-log-done t) (when window-system (require 'org-mouse)) ;; Auto enable flyspell-mode (add-hook 'org-mode-hook 'turn-on-flyspell) ;; Auto fill minor mode in org files (add-hook 'org-mode-hook 'turn-on-auto-fill) ;; Enable org-indent-mode for org buffers (add-hook 'org-mode-hook (lambda ()(org-indent-mode t)) t) ;; Use text-mode abbrev table in org-mode (add-hook 'org-mode-hook '(lambda () (setq local-abbrev-table text-mode-abbrev-table))) ;; Enables selection using SHIFT, while maintaining useful actions ;; related to SHITF in org (setq org-support-shift-select 't) ;; Enable smart qoutes (http://stackoverflow.com/q/15097114/671013) (setq org-export-with-smart-quotes t) ;; Customize the TODO-like keywords (setq org-use-fast-todo-selection t) (setq org-todo-keywords '((sequence TODO(t) PROCESS(p@/!) | DONE(d!) CANCELED(c@ /! (setq org-todo-keyword-faces (quote ((TODO :foreground red :weight bold) (PROCESS :foreground blue :weight bold) (DONE :foreground forest green :weight bold) (CANCELLED :foreground forest green :weight bold (setq org-log-into-drawer t) ;; Capture-org (setq org-default-notes-file (concat org-directory /notes.org)) (define-key global-map \C-cc 'org-capture) (setq org-capture-templates (quote ((t todo entry (file (concat org-directory /gtd.org)) * TODO %?\n%U\n%a\n :clock-in t :clock-resume t) (n note entry (file (concat org-directory /gtd.org)) * %? :NOTE:\n%U\n%a\n :clock-in t :clock-resume t) (j Journal entry (file+datetree (concat org-directory / diary.org)) * %?\n%U\n :clock-in t :clock-resume t) (v Vocabulary entry (file+headline (concat org-directory /vocab.org) Vocabulary) * %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be empty)} \n** Answer \n%^{The definition}) ))) ;; Make use of refTeX in org-mode (defun org-mode-reftex-setup () Setups RefTeX to be used with a org file. Code is based on http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/. Once you run this, you will be asked to set a master file of the org. (interactive) (load-library reftex) (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (define-key org-mode-map (kbd C-c )) 'reftex-citation) ) ;; Open indirect buffer in new frame (setq org-indirect-buffer-display 'new-frame) ;; Set common TAGS ;; Check:
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
On 2015-05-25 at 13:25, Dror Atariah dror...@gmail.com wrote: I am sorry for reposting, but I'm still in the dark. Am I the only one who experience this kind of issue? Don't know. Did someone managed to reproduce the problem? I could not reproduce it. Does anyone see this message? :) Yes. I'm on Mac too, which is where your problem is. Are you starting with emacs -Q? I haven't seen you post a full MWE with both =init.el= and =test.org=. You did provide a test Org file but it wasn't clear to me if that was being used with emacs -Q. -k.
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
On Mon, May 25, 2015 at 7:29 PM, Ken Mankoff mank...@gmail.com wrote: On 2015-05-25 at 13:25, Dror Atariah dror...@gmail.com wrote: I am sorry for reposting, but I'm still in the dark. Am I the only one who experience this kind of issue? Don't know. Did someone managed to reproduce the problem? I could not reproduce it. Does anyone see this message? :) Yes. Thanks for your reply :) I'm on Mac too, which is where your problem is. Are you starting with emacs -Q? I haven't seen you post a full MWE with both =init.el= and = test.org=. You did provide a test Org file but it wasn't clear to me if that was being used with emacs -Q. I tried to evaluate the problematic file using =emacs -Q= and the problem is the same. Following is the section of my =init.el= that deals with org-mode (if you need more, let me know): --8--8--8--8--8--8--8--8--8--8--8--8--8--8-- ;;; ;; Org Mode related ;;; (setq org-directory ~/Dropbox/org) ;; Set a location for the list of agena files (setq org-agenda-files ~/.emacs.d/agenda_files) ;; Assigns org-mode to .org files (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (define-key global-map \C-cl 'org-store-link) (define-key global-map \C-ca 'org-agenda) (setq org-log-done t) (when window-system (require 'org-mouse)) ;; Auto enable flyspell-mode (add-hook 'org-mode-hook 'turn-on-flyspell) ;; Auto fill minor mode in org files (add-hook 'org-mode-hook 'turn-on-auto-fill) ;; Enable org-indent-mode for org buffers (add-hook 'org-mode-hook (lambda ()(org-indent-mode t)) t) ;; Use text-mode abbrev table in org-mode (add-hook 'org-mode-hook '(lambda () (setq local-abbrev-table text-mode-abbrev-table))) ;; Enables selection using SHIFT, while maintaining useful actions ;; related to SHITF in org (setq org-support-shift-select 't) ;; Enable smart qoutes (http://stackoverflow.com/q/15097114/671013) (setq org-export-with-smart-quotes t) ;; Customize the TODO-like keywords (setq org-use-fast-todo-selection t) (setq org-todo-keywords '((sequence TODO(t) PROCESS(p@/!) | DONE(d!) CANCELED(c@ /! (setq org-todo-keyword-faces (quote ((TODO :foreground red :weight bold) (PROCESS :foreground blue :weight bold) (DONE :foreground forest green :weight bold) (CANCELLED :foreground forest green :weight bold (setq org-log-into-drawer t) ;; Capture-org (setq org-default-notes-file (concat org-directory /notes.org)) (define-key global-map \C-cc 'org-capture) (setq org-capture-templates (quote ((t todo entry (file (concat org-directory /gtd.org)) * TODO %?\n%U\n%a\n :clock-in t :clock-resume t) (n note entry (file (concat org-directory /gtd.org)) * %? :NOTE:\n%U\n%a\n :clock-in t :clock-resume t) (j Journal entry (file+datetree (concat org-directory / diary.org)) * %?\n%U\n :clock-in t :clock-resume t) (v Vocabulary entry (file+headline (concat org-directory /vocab.org) Vocabulary) * %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be empty)} \n** Answer \n%^{The definition}) ))) ;; Make use of refTeX in org-mode (defun org-mode-reftex-setup () Setups RefTeX to be used with a org file. Code is based on http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/. Once you run this, you will be asked to set a master file of the org. (interactive) (load-library reftex) (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (define-key org-mode-map (kbd C-c )) 'reftex-citation) ) ;; Open indirect buffer in new frame (setq org-indirect-buffer-display 'new-frame) ;; Set common TAGS ;; Check: http://sachachua.com/blog/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/ (setq org-tag-alist '( (PRIVATE . ?p) (:startgroup . nil) (WORK .?w) (:grouptags . nil) (WORK@mittagseminar . ?m) (WORK@open_questions . ?i) (WORK@diss . ?d) (WORK@CV . nil) (:endgroup . nil) (:startgroup . nil) (IT . ?I) (:grouptags . nil) (IT@emacs . nil) (IT@git . nil) (IT@TeX . nil) (:endgroup . nil) (:startgroup . nil) (PROG . ?p) (:grouptags . nil) (PROG@mathematica . nil) (PROG@cgal . nil)
Re: [O] org-clock-persistence-insinuate not working anymore (25.0.5)
torys.ander...@gmail.com (Tory S. Anderson) wrote: I've been using the following code for several months to make it easy to clock back in to my frequent tasks as I track my time usage: (org-clock-persistence-insinuate) (setq org-clock-persist t) A few days ago I updated emacs to the dev master and my clock is no longer persisting; the list of recent tasks is perpetually nil. Any ideas on how to fix this, or what happened? torys.ander...@gmail.com (Tory S. Anderson) wrote: How about any suggestions on how to debug this, since it isn't actually throwing any errors (and I'm a novice emacs-debugger)? The tasks list will contain interrupted task and recent task but none of the actual task names. (this comes from passing a single arg to org-clock-in) Since you think it was a recent change that is causing problems, you could try some combination of the following. - In the Emacs source directory, run 'git log -- lisp/org/org-clock.el' to see what's been done recently in the file. - Come up with a minimum test config and Org file that you can run with 'emacs -Q'. - Run 'git bisect' between HEAD and the last commit that you know was behaving. Come up with a simple test using the minimal configuration above to see if a given revision is good or bad. - When you find a function that you suspect is causing issues, run eval-defun with EDEBUG-IT (C-u C-M-x) and walk through the call of that function. I've been unable to reproduce the problem using a Emacs from a recent commit (ac59d538982d040c) with the attached test files. If I run emacs -Q -l org-clock-persistent.el and clock in to the heading in org-clock-persistent.org and then kill Emacs, the values in org-clock-save.el are non-nil. Restarting emacs with the command above and opening org-clock-persistent.org offers to resume. org-clock-persistent.el Description: application/emacs-lisp * h Can you reproduce the problem if you do the same? -- Kyle
[O] Remaining org-src.el free variable warnings
Compiling org-src.el since 71641bc3a0882b has given free variable warnings. One of these was fixed in e50472d926f92c, but some still remain: In org-src--contents-area: org-src.el:303:49:Warning: reference to free variable `beg' org-src.el:303:53:Warning: reference to free variable `end' Despite the line numbers given, I think these are referring to the line marked below (line 284 in org-src.el). #+begin_src elisp (defun org-src--contents-area (datum) Return contents boundaries of DATUM. DATUM is an element or object. Return a list (BEG END CONTENTS) where BEG and END are buffer positions and CONTENTS is a string. (let ((type (org-element-type datum))) (cond ((eq type 'footnote-definition) (let* ((beg (org-with-wide-buffer (goto-char (org-element-property :post-affiliated datum)) (search-forward ]))) (end (or (org-element-property :contents-end datum) beg))) (list beg end (buffer-substring-no-properties beg end ((org-element-property :contents-begin datum) (list (org-element-property :contents-begin datum) (org-element-property :contents-end datum) (buffer-substring-no-properties beg end))) ; HERE ((memq type '(example-block export-block src-block)) [...] (t (error Unsupported element or object: %s type) #+end_src Also, what case does that branch of cond cover? -- Kyle
Re: [O] ox-texinfo: Provide an option to open the *.info file within Emacs
Hello, Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes: ox-texinfo: Provide an option to open the *.info file within Emacs The following snippet (as suggested by M-x list-command-history), would do the needful. (info ~/src/emacsprimer/emacsprimer.info nil) Done. However, file is opened with `org-open-file' since the back-end can output various formats. You can add (info . (info file)) to `org-file-apps' if you want to read info files with info. It would also be useful if I could compile *.info document using texi2html and texi2pdf. See `org-texinfo-info-process'. Regards, -- Nicolas Goaziou
Re: [O] Remaining org-src.el free variable warnings
Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, Kyle Meyer k...@kyleam.com writes: Compiling org-src.el since 71641bc3a0882b has given free variable warnings. One of these was fixed in e50472d926f92c, but some still remain: In org-src--contents-area: org-src.el:303:49:Warning: reference to free variable `beg' org-src.el:303:53:Warning: reference to free variable `end' I just noticed it, and fixed it. Great. Thank you. Also, what case does that branch of cond cover? Inline footnote references with a definition, at the moment. Ahhh, thanks. I was trying out a bunch of different elements and couldn't find anything that went down that branch. -- Kyle
Re: [O] ox-texinfo doesn't handle inline images
Hello, Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes: In: #+NAME: fig1 #+CAPTION: Screen capture [[./emacs-24.5.1-startup-screen-annotated.png]] Buggy out: @uref{./emacs-24.5.1-startup-screen-annotated.png} Desired out: @float Figure,fig1 @image{./emacs-24.5.1-startup-screen-annotated,150mm,,,png} @c @shortcaption{Screen capture} @caption{Screen capture.} @end float Implemented. (b) Without Image width (i.e., image scaling) the image in the PDF output gets cropped. Implemented, too. Regards, -- Nicolas Goaziou
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
Nick Dokos removed from Cc. On 2015-05-25 at 14:22, Dror Atariah dror...@gmail.com wrote: I tried to evaluate the problematic file using =emacs -Q= and the problem is the same. Sorry I can't help much. It works on my system. The only difference I see is my python version: #+BEGIN_SRC python :session background :results raw import sys sys.version #+END_SRC #+RESULTS: 2.7.9 |Anaconda 2.2.0 (x86_64)| (default, Dec 15 2014, 10:37:34) [GCC 4.2.1 (Apple Inc. build 5577)] Following is the section of my =init.el= that deals with org-mode (if you need more, let me know): If the bug exists with emacs -Q, then sending a large init file is just noise and not helpful. A minimum working example would be similar to your previous email, but include the necessary Org setup code to execute Python, and nothing else. -k.
Re: [O] Remaining org-src.el free variable warnings
Hello, Kyle Meyer k...@kyleam.com writes: Compiling org-src.el since 71641bc3a0882b has given free variable warnings. One of these was fixed in e50472d926f92c, but some still remain: In org-src--contents-area: org-src.el:303:49:Warning: reference to free variable `beg' org-src.el:303:53:Warning: reference to free variable `end' I just noticed it, and fixed it. Also, what case does that branch of cond cover? Inline footnote references with a definition, at the moment. Regards, -- Nicolas Goaziou