org-mode

Custom function for next / previous month in agenda view and the calendar

心已入冬 提交于 2019-12-11 11:58:02
问题 I'm looking for a way to select next or previous month in both agenda view and the calendar. I've written a concept/prototype function (below), but it doesn't calculate the next or previous months and I would also need to rewrite the function every month. The date format for the org-agenda-month-view is different than the date format for calendar-other-month . Further down below are some functions that are related to what I'm trying to accomplish -- e.g., calendar already has the ability to

Org-mode: using special properties in the drawer

戏子无情 提交于 2019-12-11 11:23:31
问题 Org manual says special properties "should not be used as keys in the properties drawer" . However i want to use org-mode on a more high level and i want to put all special properties in the :PROPERTIES: drawer. This can be used for many reasons, for example, i can write an external parser, that can understand org-mode files, that consist of only entries with properties, without needing to know about TODO, tags, priorities and their syntax in the headline. This should change the behavior of

Auto-completion for `org-sparse-tree` and `org-match-sparse-tree`

不羁的心 提交于 2019-12-11 11:17:48
问题 I am learning tags in Emacs org-mode , but I found when using C-c / m (aka org-sparse-tree -- Show entries selected by a tags/property match ) or C-c \ (aka org-match-sparse-tree ) to search tag in a buffer, TAB does NOT give auto-completion. In many other cases in org-mode , TAB always does the job but not here. How can I solve this problem? 回答1: After I set up the org-agenda-files , the autocompletion works, and it only gives the candidate tag names from members of org-agenda-files . I

Evaluate all code chunks below current header in emacs org mode

与世无争的帅哥 提交于 2019-12-11 10:43:31
问题 I use org mode for reproducible research and literate programming, mainly using R for computations. I'm new to emacs. If I'm starting a new R session or my session is interrupted, I will have to rerun a number of code chunks. This is very easy with the speed commands (typing "e" to evaluate the chunk, then "n" to move to the next). I love this feature, the only problem is that my headers and subtrees are then expanded and I have to close them again to keep the page tidy. Is there an existing

configure org-mode to use one package if compile with beamer another else (article)

痴心易碎 提交于 2019-12-11 08:06:09
问题 I want to use one package if I compile with beamer or another one if I compile with pdflatex (org-latex-pdf-process): if compile-with-beamer: \usepackage{my_beamer_package} else: \usepackage{my_article_package} NB: C-c C-e l P (org-beamer-export-to-pdf) Export as LaTeX and then process to PDF. 回答1: A possible starting point: use the LaTeX macro \@ifclassloaded. More precisely, in your org file use a local package #+LATEX_HEADER: \usepackage{myPackage} and in this package have the following

Paragraph filling for org-mode inside latex environment

旧时模样 提交于 2019-12-11 07:55:50
问题 I started using org-mode to write mathematical papers so I make a heavy use of latex environments such as proof , theorem , lemma , etc. For example I often write \begin{proof} a very long proof follows \end{proof} The problem is that in org-mode the fill-paragraph (or M-q ) doesn't work inside latex environments. This complicates my life because some proofs can be very long, reaching several pages when compiled to pdf, and I am unable to efficiently format them in org-mode. I couldn't find

emacs org-mode: how to choose font when exporting to HTML?

十年热恋 提交于 2019-12-11 06:28:46
问题 A file under org-mode can be exported to HTML using this: C-c C-e h o or (org-export-dispatch) h o And you'll get that ugly looking times font... Is there a simple way to set another font? Also interested in what is the proper (complicated) way :) 回答1: You have different options, depending on how elaborate you want to get... Easiest: #+HTML_HEAD_EXTRA: <style>*{font-family: serif !important}</style> More advanced: #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="myStyleSheet.css"/>

Getting the org-mode manual in emacs

末鹿安然 提交于 2019-12-11 05:31:47
问题 How can I get access to the org-mode manual from within emacs? I've seen this suggested: C-h i m Org Mode RET But the org-mode manual isn't available that way in emacs 24.3.1. Is there a melpa package or something similar I can install to get the org-manual in emacs info mode? 回答1: If you are on Ubuntu, Debian or a related distributions, do: apt-get install emacs24-common-non-dfsg While the Org Mode manual is part of the standard Emacs distributions, Debian, Ubuntu and related distributions

Is there some kind of narrow-to-context in org-mode?

筅森魡賤 提交于 2019-12-11 04:49:46
问题 Org's narrow-to-subtree is wonderful, but sometimes I also want to see the chain of parent nodes, without all the uncle nodes. For example, given this tree: * a ** a.a <- extraneous great uncle ** a.b *** a.b.a <- extraneous uncle *** a.b.b <- want to see context for this **** a.b.b.a **** a.b.b.b I want to narrow my view to see this: * a ** a.b *** a.b.b <- want to see context for this **** a.b.b.a **** a.b.b.b How can I make this happen? 回答1: AFAIK, there is no such narrowing facility - but

Cannot export tables to latex in org-mode

对着背影说爱祢 提交于 2019-12-11 04:12:15
问题 I am trying to do the following: I have an .org file with the following table: | 1 | 2 | 3 | 4 | 5 | |---+---+---+---+---| | a | b | c | d | e | I get the following error on pressing C-c e d , the key binding to export to LaTeX and process the PDF: Symbol's function definition is void: org-babel-exp-process-buffer I am using Org-mode version 7.9.3f on Emacs 24.3.1. Exporting .org files without tables works smoothly. Here is a link to my .emacs if anyone needs to have a look. 回答1: You are