org-mode

Escape pipe-character in org-mode

落爺英雄遲暮 提交于 2019-11-27 20:04:14
I've got a table in Emacs org-mode , and the contents are regular expressions. I can't seem to figure out how to escape a literal pipe-character ( | ) that's part of a regex though, so it's interpreted as a table-cell separator. Could someone point me to some help? Thanks. Update : I'm also looking for escapes for a slash ( / ), so that it doesn't trigger the start of an italic/emphasis sequence. I experimented with \/ and \// - for example, suppose I want the literal text /foo/ in a table cell. Here are 3 ways of attempting it: | /foo/ | \/foo/ | \//foo/ | In LaTeX export, that becomes: \emph

Disabling underscore-to-subscript in Emacs Org-Mode export

强颜欢笑 提交于 2019-11-27 19:49:56
问题 When I export to PDF via org-mode (C-c C-e d), any words with underscores end up being partially converted to subscript. How can I prevent this from happening? I found this article on the subject: Disabling Underscore subscript in Emacs Tex Mode However, I either wasn't able to figure out the correct elisp or it simply didn't work. Note, I don't want to change any global font options. I only want this fix to apply to tex/latex/org-mode. I also found this post, though it didn't work either:

How to make part of a word bold in org-mode

落爺英雄遲暮 提交于 2019-11-27 16:11:40
问题 How can I make org-mode markup work for a part of a word? For example, I'd like it to work for cases like this: =Class=es and this: /Method/s Based on my tests it seems like org-mode markup syntax works on complete words only. 回答1: I don't think you can do it so that it shows up in the buffer as bold. If you just need it so that it appears bold when you export it to html, you can use: th@<b>is is ha@</b>lf bold See Quoting HTML tags 回答2: These days, there is a way to do this (without using

How do I make Org-mode open PDF files in Evince?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 14:23:37
问题 In Org-mode when I try to open a link to a PDF file nothing happens. Also, when I do C-c C-e d to export as LaTeX and process to PDF and open the PDF is generated but not opened. How do I make Org-mode open PDF files in Evince? I am using Org-mode 7.6 in GNU Emacs 23.3.1 and Evince 3.2.1 in Ubuntu 11.10. 回答1: Another possible construct that could work for this would be to use eval-after-load rather than add-hook . It will only set the values once on startup, you won't have to worry about

Orgmode: A report of tasks that are done within the week

霸气de小男生 提交于 2019-11-27 06:07:18
问题 Is it possible to ask org mode to report a list of TODO items that I worked on over a period of time? We can assume that for each Todo entry I have a time tag, e.g. <2014-03-13 Thu 17:04> 回答1: A quick way is to look at the logbook in the Agenda. You can look at the agenda (see Agenda Views in Org Mode docs). Move the agenda to the time period you want - day, week, month, year. Put it in logbook mode (via the 'l' key, described in section 10.5 Commands in the agenda buffer ). This will show

How does one send S-RET to Emacs in a terminal?

会有一股神秘感。 提交于 2019-11-27 05:53:09
问题 In org-mode , pressing M-S-RET (meta-shift-return) will create a new TODO on a new line. This key sequence sends M-RET to emacs through my terminal. I've checked this with C-h c ESC-S-RET , which returns M-RET is undefined in the mini-buffer. I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a RET sequence in the terminal keyboard preferences. Any idea what's causing the missing SHIFT ? Workarounds? 回答1: You can get Emacs to pretend that it got S

How to archive all the DONE tasks using a single command

陌路散爱 提交于 2019-11-27 05:00:34
问题 To archive the DONE tasks i am using C-c C-x a command. The draw back is i have to manually move over the DONE tasks one by one and then archive it. How to archive all the DONE tasks using a single command. 回答1: You can write a function using org-map-entries: (defun my-org-archive-done-tasks () (interactive) (org-map-entries 'org-archive-subtree "/DONE" 'file)) 回答2: You can bulk archive (or refile/change todo etc) from within the Agenda view. http://orgmode.org/manual/Agenda-commands.html

in org-mode, how to fold/hide footnotes?

北城余情 提交于 2019-11-27 03:36:17
问题 In Emacs org-mode, is there a way to get inline footnote definitions to appear as collapsed? So that for instance, a line like this: This effect is due to the strength of weak ties[fn:: Newman, Mark, Albert-László Barabási, and Duncan J. Watts. 2006. The Structure and Dynamics of Networks. Princeton, NJ: Princeton University Press]. might simply appear like this: This effect is due to the strength of weak ties[✭]. I would also need a command to show the footnotes when necessary. So maybe what

Sort a mixed list of headings in org mode

我的梦境 提交于 2019-11-27 02:02:14
问题 I have a long list of headings in org-mode : * Tasks [/] ** TODO Foo ** TODO Bar ** DONE World ** DONE Abba that I want to sort as follows: * Tasks [/] ** TODO Bar ** TODO Foo ** DONE Abba ** DONE World With org-sort-entries I can either obtain * Tasks [/] ** DONE Abba ** TODO Bar ** TODO Foo ** DONE World (i.e. alphabetical order), or * Tasks [/] ** TODO Foo ** TODO Bar ** DONE World ** DONE Abba (i.e. grouping according to the status). In other words, I want to sort the TODO and the DONE

Escape pipe-character in org-mode

▼魔方 西西 提交于 2019-11-26 22:53:04
问题 I've got a table in Emacs org-mode, and the contents are regular expressions. I can't seem to figure out how to escape a literal pipe-character ( | ) that's part of a regex though, so it's interpreted as a table-cell separator. Could someone point me to some help? Thanks. Update : I'm also looking for escapes for a slash ( / ), so that it doesn't trigger the start of an italic/emphasis sequence. I experimented with \/ and \// - for example, suppose I want the literal text /foo/ in a table