org-mode

Embedding R plots in Latex via org-mode

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:48:44
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* hist(rnorm(100)) #+end_src #\includegraphics{img.pdf} But it's not as nice as it could be. First it

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

∥☆過路亽.° 提交于 2019-12-03 05:46:06
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 a perfect answer. This example uses @# to get the row number. Similarly, $# returns the column number.

Inline images in org-mode [closed]

江枫思渺然 提交于 2019-12-03 05:40:34
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I want to insert inline image in my org file in emacs. I am completely new to emacs and org-mode. I searched in google but could not find immediate solution. If anyone knows how to display inline images in the same buffer in org-mode emacs, please share. 回答1: if you add [[myimage

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

感情迁移 提交于 2019-12-03 05:37:23
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 produces the expected functionality. The same problems exist if I run emacs -nw on a headless server accessed

Using org-capture-templates to schedule a TODO for the day after today

隐身守侯 提交于 2019-12-03 05:33:23
In org-mode, I know how to create a todo and use the timestamp so that it is scheduled for today. How do I schedule it for tomorrow? Unfortunately I don't know Elisp and don't have time right now to learn it. Here is my .emacs file: (setq org-capture-templates '(("t" "Agenda Todo" entry (file+headline "c:/Org/agenda.org" "Agenda") "\n\n** TODO %?\nSCHEDULED: <%<%Y-%m-%d %a>>" :empty-lines 1) I would need to replace the %m-%d %a with a value incremented by one day. Working off Juancho's answer* I was able to come up with a valid timestamp. The following will provide an org-created timestamp. "[

How to make org-protocol work?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 03:52:49
问题 I tried the instructions here - I am using firefox on Lubuntu (openbox). But I get the error "Firefox doesn't know how to open this address, because the protocol (org-protocol) isn't associated with any program". How should I fix this? 回答1: The following steps for setting up org-protocol work with Ubuntu 16.04 and presumably later versions. Org-mode is assumed to have already been set-up (and installed using apt-get install org-mode or via the ELPA repository). Set-up 1) Add .desktop file

How to resize images in org-mode

烂漫一生 提交于 2019-12-03 03:37:52
问题 Is there a general way to define the size, in percent or pixels, for an image that is linked in org-mode ? Say I have the following link in my .org file: [[~/images/example.jpg]] This JPG is way too large, so if I export it to HTML or LaTeX or open it in org-mode with C-c C-o i will only see a fraction of the image. 回答1: As of Org 8.0, "Attribute lines now take plists" : #+attr_html: :width 100px #+attr_latex: :width 100px [[~/images/example.jpg]] 回答2: As per Jacobo's comment, add the

Org LaTeX preview is fuzzy on retina displays

此生再无相见时 提交于 2019-12-03 03:21:02
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! 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 knowledge on how to officially patch org). Today, I was thrilled to discover that org-mode v9.0.6, now has this

Avoid \\printbibliography being swallowed by Org-mode headings

梦想的初衷 提交于 2019-12-03 03:04:25
When using Org-mode and its LaTeX export BibTeX or Biblatex is often used to handle references. In that case the LaTeX command \printbibliography is often included in the org file. \printbibliography is placed in the org file where LaTeX is supposed to write out the reference list. What \printbibliography does is to insert a LaTeX header along with the reference list. In most cases \printbibliography is placed at the end of the org file simply because in most documents the reference list is to be placed last. This means that \printbibliography will be included under the last heading in the org

Generate Org-mode objects programmatically

佐手、 提交于 2019-12-03 02:55:54
I want to generate strings containing Org-mode text without actually hard-coding the syntax. For example i want to run a function such as (org-generate (org-generate-heading "heading" (org-generate-plain-list '("foo" "bar" "baz"))) and it will return: * heading - foo - bar - baz In other words, i want to create Org-mode documents of arbitrary complexity without micromanaging syntactic features like asterisks and indentation, only via calling functions with parameters, that return some Org objects. Is it possible to do that? Maybe via org-element ? lawlist INITIAL (March 14, 2014): First rough