2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

org-babelで出力を生の状態で差し込む

Last updated at Posted at 2018-01-25

org-babelでshellを実行して見ます。

# +BEGIN_SRC shell
pandoc --version
# +END_SRC

すると次のテキストが挿入されます。

# +RESULTS:
| pandoc    | 2.1.1             |              |            |                        |         |             |                 |         |             |
| Compiled  | with              | pandoc-types | 1.17.3.1,  | texmath                | 0.10.1, | skylighting | 0.6             |         |             |
| Default   | user              | data         | directory: | /Users/sximada/.pandoc |         |             |                 |         |             |
| Copyright | (C)               | 2006-2018    | John       | MacFarlane             |         |             |                 |         |             |
| Web:      | http://pandoc.org |              |            |                        |         |             |                 |         |             |
| This      | is                | free         | software;  | see                    | the     | source      | for             | copying | conditions. |
| There     | is                | no           | warranty,  | not                    | even    | for         | merchantability | or      | fitness     |
| for       | a                 | particular   | purpose.   |                        |         |             |                 |         |             |

table状態に整形されています。

rawの状態にしたい場合は :results raw を指定します。

# +BEGIN_SRC shell :results raw
pandoc --version
# +END_SRC

このコードを実行すると次のテキストが挿入されいます。

# +RESULTS:
pandoc 2.1.1
Compiled with pandoc-types 1.17.3.1, texmath 0.10.1, skylighting 0.6
Default user data directory: /Users/sximada/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

;-)

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?