# Tag Info

0

A modification of the answer provided by the author that has the benefit of renaming .md files to .org, instead of to .md.org: fd . -I --extension=md --type=f --exec bash -c 'pandoc -f markdown -t org -o "${1%.md}".org "$1"' - '{}' \; Edit: this works by passing 'pandoc ...' to bash as a command string through bash -c, which gives more ...

0

Thanks to d125q's comments, I solved the issue. It was twofold: First and foremost, unicode-math is a package which only works with XeTeX or LuaTeX, but org by default compiles with LaTeX. This is why you need the preview images to be generated by XeTeX or LuaTeX. This is my configuration: (setq org-preview-latex-process-alist '((dvipng :programs ...

0

Another way is to use tkinter and to input the value in an external window: #+name: tkinput #+begin_src python :results output :exports none from tkinter.simpledialog import askstring from tkinter import Tk def input(message): root = Tk() root.withdraw() entered = askstring("", message) root.destroy() return entered #+end_src #...

0

There is now a package on melpa just for this purpose: org-inline-pdf. It is developed at github, where you also find usage information. https://github.com/shg/org-inline-pdf.el Note that this package needs the pdf2svg tool. Also orgmode 9.4 is a minimum requirement.

1

You can use org-element-map on a parsed buffer to select elements or objects of a given type to operate on with a function. Here's an example for getting the names of all the named tables in the buffer as a list: (org-element-map (org-element-parse-buffer) 'table (lambda (tbl) (plist-get (cadr tbl) :name))) If you evaluate ...

1

SECOND EDIT Easiest answer is in the comments, but I think the code example in the FIRST EDIT is very much worth it to check out also. FIRST EDIT To 'demonstrate' that you could convert the file with some basic elisp (and because it is just too much fun to write elisp) I have created a simple ipynb-to-markdown convert function (the code only exports .png ...

0

Turns out I was using a very old version of org-ref, here is the response I got from the above GitHub page: "You are using a very out of date configuration. See https://github.com/jkitchin/org-ref#configuration for an updated setup. See https://www.youtube.com/watch?v=3u6eTSzHT6s&list=PL0sMmOaE_gs3E0OjExoI7vlCAVygj6S4I&index=11&t=446s for a ...

1

Try this: (push '("\\.jot\\'" . emacs) org-file-apps) Org sometimes looks in odd system places (mailcap?) for file associations.

1

The operative variable is org-link-descriptive (it was called org-descriptive-links in earlier versions of Org mode). Its doc string (C-h v org-link-descriptive says: Non-nil means Org displays descriptive links. E.g. [[https://orgmode.org][Org website]] is be displayed as "Org Website", hiding the link itself and just displaying its description. ...

3

Can I tell org mode to just open the link without asking for confirmation? Yes. Org provides the customizable variable org-link-elisp-skip-confirm-regexp. Set it accordingly: (setq org-link-elisp-skip-confirm-regexp "\\org-todo-list\\'") You really want to include the begin-of-string (\ ) and end-of-string (\') matchers to catch links like [[...

0

Since at least Org 9.4 there's a variable which controls when to save the archive file: org-archive-subtree-save-file-p. From the docs: Conditionally save the archive file after archiving a subtree. This variable can be any of the following symbols: t saves in all cases. from-org prevents saving from an agenda-view. from-agenda saves only ...

1

If you don't care about setting the async, scope, or visible-only options, then you can do something like this: (defun my/org-tufte-export-direct-to-file () (interactive) (org-tufte-export-to-file nil nil nil)) (define-key org-mode-map (kbd "<f9>") #'my/org-tufte-export-direct-to-file) i.e. call the function that the t key calls when ...

0

I am interested in this functionality and believe we are looking for the same thing. I didn't find a ready-made one so here's a quick-and-dirty take. It only supports sh now, and requires cl and magnar's s (defun markdown-eval-current-code-block () (interactive) (save-excursion (forward-paragraph) (let ((start (progn (backward-...

0

Here’s the source of the org-ref-bibliography*-follow function. It is looking for a text property containing the filename to jump to, but apparently it isn’t finding it; you can see in the stack that it is passing nil to the next function along instead of a file name. Perhaps your file is not quite in the right format. The org-ref package should have better ...

0

The allowed values for a property are specified by defining a specially named property: e.g. for specifying the values for a CAT property, you specify the allowed values as the value of the property CAT_all: #+PROPERTY: CAT_all Meta Create Don't forget to C-c C-c on the property line, to refresh the buffer and inform Org mode about this new property. Then ...

1

You need to separate the ~ from the square brackets. [ ~one~, ~two~ ] seems to apply the org-code face to ~one~ and ~two~. You can also use a Zero-width space instead of the space (use C-x 8 RET 200b to enter it).

6

The command org+-dateprop defined in the following Elisp code does what you want. It puts overlays with a display property on the absolute dates that shows the relative dates instead. This has the advantage that the buffer contents is not modified by the function. But, it may be a disadvantage that dates are not exported as shown but as absolute dates. You ...

1

I used org-cut-subtree and org-yank to accomplish this. GNU Emacs 27.1 Org mode version 9.3

3

Yes, you can export to org. This is described in the org manual chapter on exporting. You will need to enable the org export backend, via M-x customize-variable org-export-backends. Tick the box for org and save your settings.

0

Thanks to @NickD inputs I found a satisfying solution. Here is the code: Naming Org file #+begin_src emacs-lisp (defun org-name (tname) (downcase (replace-regexp-in-string "[[:space:]]+" "" tname))) #+end_src Contact name input #+begin_src emacs-lisp (defun con-input() (setq x (read-from-minibuffer "Card : "))) #+...

4

Yes, there is, run M-x org-babel-next-src-block. The default keybindings for this function are C-c C-v C-n and C-c C-v n. See also the subsection Key bindings and Useful Functions in the orgmode manual.

1

Try customizing org-latex-minted-langs. This variable maps symbols (e.g. the symbol conf as used in your source block) to a minted "language" (e.g. the string "aconf"). The doc string of the variable (C-h v org-latex-minted-langs) says: Alist mapping languages to their minted language counterpart. The key is a symbol, the major mode ...

1

If org-contacts-template-name returns the template name ("John Doe" in your example), then you should be able to do something like this: ... :NOTE: [[file:~/myotherfolder/%(munge (org-contacts-template-name)).org][%(org-contacts-template-name) Card]] ... where munge is a function that takes the template name and returns the basename of ...

2

I think the most idiomatic way to do this is to set org-agenda-custom-commands with an agenda let-binding org-agenda-files. Something like: (setq org-agenda-custom-commands '(("o" "crocefisso" agenda "" ((org-agenda-files '("../file_1.org" "../file_2.org")))))) (Untested, since I ...

0

Thanks to lawlist suggestions I managed to find a solution. But first I had to learn how to deal with functions and key binding in Emacs Lisp (I hope my code is compliant with conventions). Note that this solution works even if file_1.org, file_2.org and file_5.org don't belong to A. So here is the code to put in the .emacs config file: Code for file_1.org ...

0

Found it! (global-superword-mode 1) is responsible for it.

2

Just to summarize and amplify the discussion in the comments: the OP was trying to publish to HTML, not to PDF: that became clear after he posted his org-publish-project-alist which specifies org-html-publish-to-html as the publishing function. In that case (LaTeX math in the Org mode file that is being exported to HTML), the default method of rendering the ...

1

You have to customize the variable org-babel-lilypond-commands. You can see the variable's doc string with C-h v org-babel-lilypond-commands and you can customize it by clicking on the Customize link in that doc string. You can then set up how to start Lilypond, the PDF viewer and the MIDI player as appropriate for your system. Then hit Apply to set these ...

0

As mentioned in a comment, SCHEDULED is a special property that should not go into a properties drawer: just like DEADLINE, it has to come right after the headline and before the properties drawer. That's where Org mode is looking for SCHEDULED or DEADLINE information. So the Org mode file should look like this: *** Foo ...

0

I'm not sure how to have it only display in Babel blocks, but I can suggest how to get line numbers displaying only when you're inside a Babel block. You can turn on line-num mode if you're in a Babel block with: (if (org-in-src-block-p) ... And continuously check if you're in a Babel block by running (add-hook 'post-command-hook 'my/line-num-babel). ...

1

Try this simplified function: (defun tmp-f-list-singlebreak (s backend info) (message s) (when (eq backend 'ascii) (replace-regexp-in-string "\n\n" "\n" s))) The filters are applied after the headline is "transcoded", i.e. after the exporter is done with it: at that point, there are not stars left to match, so I ...

2

You can override the org-mode-map like this: (define-key org-mode-map (kbd "S-C-<left>") 'shrink-window-horizontally) (define-key org-mode-map (kbd "S-C-<right>") 'enlarge-window-horizontally) (define-key org-mode-map (kbd "S-C-<down>") 'shrink-window) (define-key org-mode-map (kbd "S-C-<up>") '...

3

That refers to headers that have :var name=thing in them, where thing may be the name of another block, table, or function. thing gets "expanded" and assigned to name so you can use name inside the src block. For example: #+name: tbl | 1 | 2 | | 3 | 4 | #+BEGIN_SRC python :var data=tbl return data #+END_SRC #+RESULTS: | 1 | 2 | | 3 | 4 |

1

Here's a possible implementation. It is based on the idea of adding the actual deadline time stamp as a property to the heading (do C-h i g(org)properties and columns to read about properties in Org mode). So the Org mode file would look like this: #+CATEGORY: Math 1234 * TODO Assignment DEADLINE: <2021-11-14 Sun 10:00> (Time I want to finish the ...

0

The question about line endings may be checked by running a test file through unix2dos and seeing if you get the correct results from it at home. I also suggest upgrading Org to the current version, 9.5, and see if that makes a difference. org-element-parse-buffer does call org-skip-whitespace, which does as its name suggests. This would be a bug, if you ...

1

Alternatively, on MacOS write a uuidgenlc script that downcases the output of the "real" uuidgen and set (setq org-id-uuid-program "/path/to/uuidgenlc") uuidgenlc could be as simple as #! /bin/bash uuidgen | tr A-Z a-z

2

Are you wedded to using uuidgen? Org-mode has its own internal functions to generate uuid's, which will be used if you customize org-id-method to org. See C-h v org-id-method RET.

Top 50 recent answers are included