org-mode

Embedding R plots in Latex via org-mode

烂漫一生 提交于 2019-12-03 17:50:41
问题 I'm just getting started with org-mode and so far I love it. I've seen that it is possible to insert R in the org-mode file and execute it upon export. But I have some trouble getting org-babel (the code embedding) to generate the plot I'm interested in and embed the resulting image instead of the code or the output from running the code. So far I've got this to work: #+BABEL: :session *R* :results output graphics :exports both #+begin_src R :file img.pdf :results output graphics :session *R*

Can we make an Emacs buffer to be static/pinned?

徘徊边缘 提交于 2019-12-03 17:25:50
I use an Org file to keep track of my activities, because it's often that I am loosing track of what actually I am aiming to do :) Now, I would like to reserved a top buffer window with only 5 lines tall and show the narrowed todo from that org file. All other window/buffer activites will not touch that static/pinned buffer. Is there a way to achieve that result??? Thanks! EDITED : Can we make that certain buffer to have different background Color? I pressume it's not, because all we have is set-background-color... I hope I am wrong.. If you clock in to the Org TODO item, that task will be

How to display the full context of the entries in org-mode agenda tree view

随声附和 提交于 2019-12-03 17:15:10
问题 In org-mode's daily/weekly agenda view, is there a way to display the full context of the entries? My reading of the code is that it finds the first heading above the timestamp and displays that. However, in my case, that heading is often 3-4 levels deep and doesn't make sense without the bullets above it. It also doesn't seem like there are hooks to easily change that. Filtering is trivial, but not changing the fundamental presentation format. 回答1: There is no way to display all the context

How to achieve a row index column in Emacs Org Mode using a Calc column rule

ぐ巨炮叔叔 提交于 2019-12-03 16:24:44
问题 I would like to have a column in an org mode table that is a simple monotonically increasing value, i.e. the row number such that wnen I insert and remove random rows the index value adjusts automagically. I suspect that this should be simple but it would appear I am making it way too difficult. Mind you, I am a novice at using Emacs and org mode to build spreadsheets. So a simple example spreadsheet where there are two columns, one the row index value and the other some fixed value, would be

M-RET and M-UP/DOWN not working in Emacs org-mode in console/terminal

独自空忆成欢 提交于 2019-12-03 16:20:59
问题 I'm using emacs23 on Ubuntu 32-bit 10.04/10.10 with GNOME and Compiz. Pressing M-RET in an org-mode plain list in Emacs (GUI) inserts a new item. Pressing M-Up moves the item up in the list. These keys don't work as expected in emacs -nw under Terminator and gnome-terminal . The M-Up key does nothing, whereas the M-RET key simply moves the cursor down one line and indents the position. The keys also don't "work" in xterm , which inserts \215 instead. Pressing ESC-RET or ESC-Up instead

How to add .org files under org-directory to agenda

拟墨画扇 提交于 2019-12-03 14:42:53
I am facing the following problem: Org mode has the customizable variable org-agenda-files . The files listed by absolute path under this variable are used for building the org agenda window. If an element in the list is a directory, then all .org files matching the org-agenda-regex are processed to build the agenda view. On the other hand there is also another customizable variable: org-directory . Shockingly though, if org-agenda-files is undefined, the agenda view does not try to use the matching .org files under org-directory . Also, listing the paths of the agenda files relative to org

org-capture and time clocking misbehaving

和自甴很熟 提交于 2019-12-03 14:32:23
I am sure some of you may have gathered (from my recent barrage of questions) that I am setting up org-mode on emacs and walking through Brent Hansen's impressive org set up . He is a clocking fanatic, and I like a lot of the stuff he does to track time spent on projects. I (think) haven't messed up in setting things up, but whenever I try to clock in our out of a task I get an error with a lot of gibberish (reported below). I've tried to see if there are some patterns to how the error emerges but am unable to discover them. They seem to happen pretty often but not all the time which makes

Org LaTeX preview is fuzzy on retina displays

廉价感情. 提交于 2019-12-03 14:09:09
问题 I have been using Emacs 24.4 for all my math/scientific notes. org-latex-preview is fantastic for this! But recently, I upgraded to a macbook pro with retina display, and I now see that all my equations in org-mode are... fuzzy. Is there a setting I can change to up-res these? Here is a screenshot: Thanks! 回答1: A couple of years back, I decided to fix this and wrote a patch to add dvisvgm as a render option for latex previews. While this worked great, I never submitted it (no time or

Emacs Org Mode: Executing simple python code

倾然丶 夕夏残阳落幕 提交于 2019-12-03 13:04:24
How can I execute very simple Python-Code in Emacs' Org Mode? The first example works fine, however I can't make it give me the result of simplest computations: ; works #+begin_src python def foo(x): if x>0: return x+10 else: return x-1 return foo(50) #+end_src #+RESULTS: : 60 ; does not work #+begin_src python 1+1 #+end_src #+RESULTS: : None ; does not work #+begin_src python print(1+1) #+end_src #+RESULTS: : None I set up Org Mode using the following lines: ;; enable python for in-buffer evaluation (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) ;; all python code be

Emacs Org-Mode & Literate Haskell

折月煮酒 提交于 2019-12-03 12:55:39
In org-mode, a line starting with a colon is formatted as source code. ( http://orgmode.org/manual/Literal-examples.html ) In literate Haskell, source code lines start with a greater then sign. I want to write literate Haskell with org-mode markdown, my current preferred format. As I assume that I cannot change the Haskell compiler, my question is: Can I somehow make the greater than sign a code-line marker in org mode? (I tried to find it myself, but as org.el is a 865k file, 22k loc, I'm still lost.) Not an exact answer to your question, but an example of how I write literate Haskell using