Skip to content

Latest commit

 

History

History
179 lines (127 loc) · 5.28 KB

examples.rst

File metadata and controls

179 lines (127 loc) · 5.28 KB

Sphinx 記法と日本語、文字に関するサンプル

コード

$ python egg.py
Hello Python World, and Sphinx!

画像

_static/sphinx.png

強調

  • アスタリスク1つ: テキスト 強調( イタリック )
    • 日本語文字では(フォント依存だと思うが、ほぼ)無意味
  • アスタリスク2つ: テキスト 強い強調( 太文字 )
  • バッククオート: テキスト コードサンプル( 固定長 )
    • 等幅フォントが Menlo の場合は表示されない
    • 等幅フォントが Osaka-Mono の場合は表示される。 ただし文字が大きすぎる。スケールの設定が可能か?

文字

  • コピーライト記号 ©
  • キロメートルなど ㎞ ㌶ ㎡
  • 括弧付き ㈱ ㈲
  • まる付き ① ⑩

警告

DANGER

!DANGER!

Beware killer rabbits!

note

Note

This is a note admonition. This is the second line of the first paragraph.

  • The note contains all indented body elements following.
  • It includes this bullet list.

admonition

And, by the way...

You can make up your own admonition too.

テーブル

グリッドテーブル

LaTeX 出力ではセルの連結はサポートされていない。

グリッドテーブルの例
Header 1 Header 2 Header 3
body row 1 column 2 column 3
body row 2 Cells col
body row 3 Cell Cells

シンプルテーブル

シンプルテーブルの例

リストテーブル

Frozen Delights!
Treat Quantity Description
Albatross 2.99 On a stick!
Crunchy Frog 1.49 If we took the bones out, it wouldn't be crunchy, now would it?
Gannet Ripple 1.99 On a stick!

シンプルテーブルでセル内の自動改行

シンプルテーブルの例
長い行のサンプル
あああああああああああああああああああああああああああ あああああああああああああああああああああああああああ いいいいいいいいいいいいいいいいいいいいいいいいいいいいいい

リストテーブルでセル内の自動改行

Frozen Delights!
Treat Quantity Description
Albatross 2.99 アホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリアホウドリ
くらんちーふろぐくらんちーふろぐくらんちーふろぐくらんちーふろぐくらんちーふろぐくらんちーふろぐくらんちーふろぐ 1.49 If we took the bones out, it wouldn't be crunchy, now would it? If we took the bones out, it wouldn't be crunchy, now would it? If we took the bones out, it wouldn't be crunchy, now would it? If we took the bones out, it wouldn't be crunchy, now would it?
Gannet Ripple 1.99 On a stick!

CSV テーブル

.. tabularcolumns:: |p{1cm}|p{0.7cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|

CSV を list-table に変換して include

.. tabularcolumns:: |p{1cm}|p{0.7cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|p{0.2cm}|