# Tag Info

8

You can output formatted org tables by returning a list of lists as follows (notice no :results output): #+begin_src python :results replace table return (('a', 'a'), None, ('bbbbb', 'bbbbb')) #+end_src #+RESULTS: | a | a | |-------+-------| | bbbbb | bbbbb | a None row creates a separator line.

5

Org Mode does support callouts. The documentation for it is hidden in the Literate Examples section of the manual, but does in fact apply to source code blocks. Unlike AsciiDoc, Org Mode with Org Babel keeps the code and the documentation cleanly separated. The example below uses Org Babel to generate a Ruby code file using the :tangle keyword. The Org ...

4

The org-babel-min-lines-for-block-output variable will help you accomplish this. I've set the following in my configuration files in order to make #+RESULTS code blocks be always enclosed within #+begin_example blocks (setq org-babel-min-lines-for-block-output 0) Here's an example #+begin_src cpp #include <iostream> int main() { std::cout <<...

3

This does not quite reproduce what you want, but it's close. Try setting org-agenda-use-time-grid to t. That will show you a time grid like this: Weather: 6:34...... Sunrise 8:00...... ---------------- 10:00...... ---------------- 12:00...... ---------------- 14:00...... ---------------- ...

3

I found the answer: #+begin_src bsh.dash :results verbatim :exports both :wrap "example" echo | time possiblycat 1000 #+end_src #+RESULTS: #+begin_example possiblycat 1000 0.00s user 0.00s system 68% cpu 0.005 total; max RSS 1888 #+end_example

3

You can select the pasted-in region (if you do it right after you paste it in, it should already be marked) and then run pandoc on the region with C-u M-| pandoc -f markdown -t org RET. The prefix argument says: "replace the region with the output of the command". This is a bit fragile: if you mistype, you might end up with the region erased, but ...

2

I've found my own solution. Here are the changes I've made to the source and configuration code that made this work. Source: #+TITLE: How to Automate Footnote Citations in Org-Mode #+AUTHOR: Sati Bodhi #+BEGIN_abstract This is the abstract. #+END_abstract * Cite Test This is a statement with a footnote reference. [fn:2a55720f42c74dd:This is the footnote ...

2

Emacs 28 (master branch as of this writing) recently gained support for emitting the necessary ECMA-48 "Select Graphic Rendition" escape sequences in order to render faces with the 'strike-through' attribute on TTY frames. If you're running a version of Emacs 28 that includes this commit, and your terminal's termcap/terminfo database entry has the ...

2

In addition to the answer of Melioratus which I accepted, I also noticed that I can embed native HTML code in the title via the inline HTML mechanism of org mode. So for instance, this also works and allows me to add extra attributes like width and height. #+TITLE: @@html:<img src="file:///home/pictures/bird.svg" alt="" / width="...

2

Something like this perhaps - I've written the code block in python but you can do it in any language you want: * foo blah blah blah #+begin_src python :results output :exports results :var n=700 :wrap export html for i in range(1,n+1): print('<figure>\n <img src="./images/image{}.png" width="300px" />\n</...

1

You probably have a bad time stamp in one of your Org mode files. In particular, the time stamp that causes the error is missing the dashes: 2020-09-23 Wed 13:41. The question is how to find the file that contains that time (non)stamp. Backtrace to the rescue: ... org-find-open-clocks("/Users/patrick/Documents/org/notes.org") ... That's where I ...

1

After a bit of trial and error, it seems that something like this might work: | Element | $| |---------+------| | E1 | 35% | | E2 | 65% | |---------+------| | Total | 100% | #+TBLFM: @>$>=vsum(@I..II)*100;%.0f%% You always think of the entries as the corresponding decimal fraction (35% = 35/100 = 0.35 etc) and the result is the sum ...

1

The problem is apparently linked to the manner in which local-set-key is being used in conjunction with the org-mode-hook; i.e., (local-set-key (kbd "C-c C-x s") (org-sort-headings-todo-prio)) Emacs is being told to call the function org-sort-headings-todo-prio when running the org-mode-hook, instead of assigning org-sort-headings-todo-prio to a ...

1

Hmm, the Org documentation isn't very clear on the intended behavior here. I'm looking at the Results of Evalution page. But the workhorse function org-babel-eval is clear in its docstring that results only come back if the command succeeds. If the command fails, stdout is not returned and instead stderr is displayed in an error buffer. org-babel-eval ...

1

So, this is not a bug: nested \begin{...} should not start the line and therefore is not seen as starting a new LaTeX block: Inline-math: $$\left|\begin{matrix} a_1 & b_1\\ a_2 & b_2 \end{matrix}\right|$$

1

You can redefine org-latex-footnote-defined-format. Its doc string says: org-latex-footnote-defined-format is a variable defined in ‘ox-latex.el’. Its value is "\textsuperscript{\ref{%s}}" You can customize this variable. This variable was introduced, or its default value was changed, in version 26.1 of Emacs. Documentation: Format string used to ...

1

Add file:some-directory/image1.png into #+TITLE: I use this technique for exporting to HTML and for rendering org-mode pages in GitLab. e.g. #+TITLE: file:some-directory/image1.png My Long Title Preceded by Many Spaces which exports to html <title><img src="some-directory/image1.png" alt="image1.png"> ...

1

This function executes the same command of NickD's answer, without the risk of mistype. (defun my-md-to-org-region (start end) "Convert region from markdown to org" (interactive "r") (shell-command-on-region start end "pandoc -f markdown -t org" t t))

Only top voted, non community-wiki answers of a minimum length are eligible