1730461009
2024-11-01 03:02:00
私は、次のようなさまざまなタスクで Emacs と Org モードを熱心に使用しています。
- メモを取ること、
- LaTeX、Word、または html にエクスポートするためのドキュメントを生成します。
- ブログ投稿の作成 (特にこのブログでは、 Org2ブログ)。
Org モードは通常 Emacs と関連付けられていますが、それ自体がマークアップ言語であり、Org モードよりもはるかに強力で標準化されています。 マークダウン言語。
最近素晴らしいブログ投稿を見つけました Org-Mode はテキストに使用するのに最も合理的なマークアップ言語の 1 つです Org 愛好家 Karl Voit による。この投稿には、Org 構文の最も重要な側面のいくつかを示す簡単な例が含まれています。私は、短い Org コードでこれほど多くの情報を伝えることができることに衝撃を受けました。 Karl の例をこの長いバージョンに適応させました。
#+TITLE: Org Mode Syntax Cheat Sheet
#+OPTIONS: toc:nil
# Adapted from http://karl-voit.at/2017/09/23/orgmode-as-markup-only/
* Top Level Heading
** Second Level Heading
*** Third Level Heading
# A comment line. This line will not be exported.
Paragraphs are separated by at least one empty line.
*bold* /italic/ _underlined_ +strikethrough+ =monospaced=
[[https://nickhigham.wordpress.com/][Link description]]
https://nickhigham.wordpress.com/ A link without a description.
A DOI (digital object identifier) link:
[[doi:10.1093/comnet/cnv016][Matching Exponential-Based and Resolvent-Based Centrality Measures]]
A horizontal line, fill-width across the page:
-----
- First item in a list.
- Second item.
- Sub-item
1. Numbered item.
2. Another item.
- [ ] Item yet to be done.
- [X] Item that has been done.
LaTeX macros can be included: $x_2 = alpha + beta^2 - gamma$.
**** TODO A todo item.
**** DONE A todo item that has been done.
#+BEGIN_QUOTE
This text will be indented on both the left margin and the right margin.
#+END_QUOTE
: Text to be displayed verbatim (as-is), without markup
: (*bold* does not change font), e.g., for source code.
: Line breaks are respected.
Some MATLAB source code:
#+BEGIN_SRC matlab
>> rand(1,3)
ans =
5.5856e-01 7.5663e-01 9.9548e-01
#+END_SRC
Some arbitrary text to be typeset verbatim in monospace font:
#+BEGIN_SRC text
Apples, oranges,
cucumbers, tomatoes
#+END_SRC
# Table and spreadsheet. The column headed "Ratio" is automatically
# calculated by hitting C-c C-c in Emacs on the #+TBLFM line.
|----------------+-----------+-----------+-------|
| Country | Abstracts | Downloads | Ratio |
|----------------+-----------+-----------+-------|
| United States | 7 | 497 | 71.0 |
| Unknown | 4 | 83 | 20.8 |
| United Kingdom | 3 | 41 | 13.7 |
| Germany | 3 | 29 | 9.7 |
| Netherlands | 2 | 21 | 10.5 |
| Japan | 1 | 18 | 18.0 |
|----------------+-----------+-----------+-------|
#+TBLFM: $4=$3/$2;%.1f
Include an image:
file:nickhighamwordpress.jpg
ソースを載せておきました GitHub 上で ファイルを txt、LaTeX、PDF にエクスポートした結果とともに (直接リンク)、html。 2 つの方法で行われた変換も含めます。
- Emacs を使用する: 推奨される方法。
- と パンドック。これは、Emacs を使用しない場合、または変換を自動化する簡単な方法が必要な場合に便利です。ただし、Pandoc はすべての Org 構文をサポートしているわけではなく、デフォルトが異なるため、変換は同一ではありません。
組織の詳細については、「組織」を参照してください。 私の以前の書き込み などのビデオ Emacs 2 の使用 – org そして 組織モードの開始。
#組織モード構文チートシート #Nick #Higham