Re:VIEW 向けユーザスニペット作りました
2018-02-15: list, listnum に記述ミスがあったので修正。
使用方法
VSCode の ファイル → 基本設定 → ユーザスニペット → review.json に丸っとコピペ。
{ "image": { // 画像の挿入をするときに使う "prefix": "image", "body": [ "//image[${1:file_name}][${2:caption}][scale=${3:1.0}]{\n//}" ], "description": "For Re:VIEW" }, "indepimage":{ // 採番なし画像の挿入に使う "prefix": "indepimage", "body": [ "//indepimage[${1:file_name}][${2:caption}][scale=${3:1.0}]{\n//}" ], "description": "For Re:VIEW" }, "quote": { // 引用するときに使う "prefix": "quote", "body": [ "//quote{\n\n//}" ], "description": "For Re:VIEW" }, "br": { // 強制改行に使う "prefix": "br", "body": [ "@<br>{}" ], "description": "For Re:VIEW" }, "bold": { // 太字に使う "prefix": "bold", "body": [ "@<b>{${1}}" ], "description": "For Re:VIEW" }, "under": { // 下線に使う "prefix": "under", "body": [ "@<u>{${1}}" ], "description": "For Re:VIEW" }, "italic": { // イタリックに使う "prefix": "italic", "body": [ "@<i>{${1}}" ], "description": "For Re:VIEW" }, "delete": { // 取り消し線に使う "prefix": "delete", "body": [ "@<del>{${1}}" ], "description": "For Re:VIEW" }, "link": { // URLに使う "prefix": "link", "body": [ "@<href>{${1}}" ], "description": "For Re:VIEW" }, "img": { // 画像の引用に使う "prefix": "img", "body": [ "@<img>{${1}}" ], "description": "For Re:VIEW" }, "code": { // 文中コードに使う "prefix": "code", "body": [ "@<code>{${1}}" ], "description": "For Re:VIEW" }, "list": { // リストブロックに使う "prefix": "list", "body": [ "//list[${1:label}][${2:title}]{\n\n//}" ], "description": "For Re:VIEW" }, "listnum": { // 行番号付きリストブロックに使う "prefix": "listnum", "body": [ "//listnum[${1:label}][${2:title}]{\n\n//}" ], "description": "For Re:VIEW" }, "cmd": { // コマンドブロックに使う "prefix": "cmd", "body": [ "//cmd{\n\n//}" ], "description": "For Re:VIEW" }, "footnote": { // 脚注に使う "prefix": "footnote", "body": [ "//footnote[${1:label}][${2:body}]" ], "description": "For Re:VIEW" }, "fn": { // 脚注の引用に使う "prefix": "fn", "body": [ "@<fn>{${1:label}}" ], "description": "For Re:VIEW" }, "comment": { // コメントに使う "prefix": "comment", "body": [ "#@#${1:comment}" ], "description": "For Re:VIEW" }, }
注意事項
techbooster-doujin.sty
の使用を想定していますが、@<del>{}
だけはうまく動かない可能性あり。techbooster-doujin.sty
に下記の呪文を追加してください。
\usepackage{jumoline} \renewcommand{\reviewstrike}[1]{\Midline{#1}}