Skip to content

Instantly share code, notes, and snippets.

@youz
Last active December 4, 2019 09:13
Show Gist options
  • Save youz/450c6e579dc1264105b546f28996a55d to your computer and use it in GitHub Desktop.
Save youz/450c6e579dc1264105b546f28996a55d to your computer and use it in GitHub Desktop.
enumcamp
Display the source blob
Display the rendered blob
Raw
@require: stdja
% https://github.com/monaqa/satysfi-enumitem
@import: enumitem
% https://gist.github.com/youz/5983500c7bfe7ade4e4d8f21efd2b3ae
@import: camp
let label-tent depth ctx idx =
let a = (asin 1.0) *. (float idx) /. 2. in
let x = 0.2 *. (cos a) in
let y = 0.1 +. 0.2 *. (sin a) in
read-inline ctx {\Tent((x, y));} ++ inline-skip ((get-font-size ctx) *' 0.5)
in
document (|
title = {};
author = {};
show-title = false;
show-toc = false;
|) '<
+genlistings(label-tent){
* トップページ
* The SATySFi​book Web公開版 第1版
* Wiki
** インストール
** デモ文書のコンパイル
* パッケージ
* コマンドライン書式
* SATySFiコマンド一覧
** 見出し
** 相互参照
** 画像
** 表組
** 数式
*** 数学記号
*** 括弧類
*** 整形
** 箇条書き
** 脚注
* Satyrographos(パッケージマネージャ)
* SATySFiによるMarkdown文書からのPDF出力
* SATySFiのテキスト出力モードのプロトタイプ
* PDFハイパーリンク
* SATySFiに多段階計算を入れる構想
* SATySFi v0.1.xで行なう破壊的変更の案
}
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment