-
Notifications
You must be signed in to change notification settings - Fork 1.1k
joho-ipsj:0.1.0 #4827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mkpoli
wants to merge
1
commit into
typst:main
Choose a base branch
from
mkpoli:joho-ipsj-0.1.0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
joho-ipsj:0.1.0 #4827
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2024 mkpoli | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| # 情報処理学会テンプレート (IPSJ Typst Templates) | ||
|
|
||
| 情報処理学会(Information Processing Society of Japan, IPSJ)で利用される各種文書のための Typst テンプレート集です。現時点では **研究報告(Technical Report)** のみをサポートしています。今後、論文誌・全国大会など他の文書形式への対応も予定しています。 | ||
|
|
||
| ## ⚠️ プレビュー段階のテンプレートです | ||
|
|
||
| 動作はしますが、組版細部や検証は十分ではありません。**学会への正式な提出には[公式テンプレート](https://www.ipsj.or.jp/journal/submit/style.html)を必ずご利用ください。** 本テンプレートは下書き・プレビュー用途に留めることを強く推奨します。 | ||
|
|
||
| ## サポート状況 | ||
|
|
||
| | ドキュメント種別 | 状態 | 備考 | | ||
| |---|---|---| | ||
| | 研究報告(Technical Report) | ✅ プレビュー | 本リポジトリで提供 | | ||
| | 論文誌・全国大会・その他 | ⏳ 未対応 | 今後対応予定 | | ||
|
|
||
| ## 注意事項 | ||
|
|
||
| * 本テンプレートは **非公式** であり、情報処理学会と一切関係ありません。 | ||
| * 開発中につき、仕様・出力は予告なく変更される可能性があります。 | ||
| * 学会から承認されたものではないため、利用は自己責任となります。本テンプレートを利用したことによる一切の損害について責任を負いません。 | ||
| * 正式な提出時は必ず[公式テンプレート](https://www.ipsj.or.jp/journal/submit/style.html)で再組版・確認してください。 | ||
|
|
||
| ## クイックスタート | ||
|
|
||
| 新しい原稿ディレクトリを作成(Typst Universe にて公開後): | ||
|
|
||
| ```bash | ||
| typst init @preview/joho-ipsj:0.1.0 my-report | ||
| cd my-report | ||
| typst compile main.typ | ||
| ``` | ||
|
|
||
| ## 基本的な使い方 | ||
|
|
||
| `techrep` を `#show` ルールで適用するだけで、研究報告のレイアウト・書式が自動で組まれます。 | ||
|
|
||
| ```typst | ||
| #import "@preview/joho-ipsj:0.1.0": techrep, acknowledgement, fake-bibliography | ||
|
|
||
| #show: techrep.with( | ||
| title: [Typstによる情報処理研究報告の作成法], | ||
| title-en: "How to write IPSJ SIG Technical Report with Typst", | ||
| affiliations: ( | ||
| "IPSJ": [情報処理学会 \ IPSJ, Chiyoda, Tokyo 101–0062, Japan], | ||
| ), | ||
| authors: ( | ||
| ( | ||
| name: "情報 太郎", | ||
| name-en: "Taro Joho", | ||
| affiliations: ("IPSJ",), | ||
| email: "joho.taro@ipsj.or.jp", | ||
| ), | ||
| ), | ||
| abstract: [本稿では,情報処理学会研究報告のスタイルを Typst で再現するテンプレートを示す.], | ||
| abstract-en: [This paper presents a Typst template ...], | ||
| keywords: ("情報処理学会", "研究報告", "Typst"), | ||
| keywords-en: ("IPSJ", "Technical Report", "Typst"), | ||
| bibliography: bibliography("refs.yml", title: "参考文献"), | ||
| ) | ||
|
|
||
| = はじめに | ||
|
|
||
| 本文をここに書きます. | ||
|
|
||
| = おわりに | ||
|
|
||
| #acknowledgement[本研究は ... の支援を受けた.] | ||
| ``` | ||
|
|
||
| `typst init` で生成された `main.typ` には上記と同等の雛形が含まれています。`refs.yml` を参考文献として編集してください。 | ||
|
|
||
| ### `techrep` の主な引数 | ||
|
|
||
| | 引数 | 型 | 説明 | | ||
| |---|---|---| | ||
| | `title` | content | 和文タイトル | | ||
| | `title-en` | string \| content | 英文タイトル | | ||
| | `affiliations` | dictionary | 所属(キー → 表示名) | | ||
| | `paffiliations` | dictionary | 現所属 | | ||
| | `authors` | array of dict | 著者情報(`name` / `name-en` / `affiliations` / `email`) | | ||
| | `abstract` | content | 和文概要 | | ||
| | `abstract-en` | content | 英文概要 | | ||
| | `keywords` | array | 和文キーワード | | ||
| | `keywords-en` | array | 英文キーワード | | ||
| | `volume` / `number` | string / int | 巻号 | | ||
| | `date` | datetime \| auto | 発行日(既定 `auto` で本日) | | ||
| | `bibliography` | content | 参考文献ブロック | | ||
| | `appendix` | content | 付録 | | ||
| | `fonts` | dictionary | 和文/欧文フォントの上書き | | ||
|
|
||
| 引数の詳細やデフォルト値は [`lib.typ`](./lib.typ) のドキュメントコメントを参照してください。 | ||
|
|
||
| ### その他の公開関数 | ||
|
|
||
| * `acknowledgement(body)` — 「謝辞」セクションを組む | ||
| * `fake-bibliography(yaml-data, show-unused: false)` — 参考文献の見た目だけを組む補助関数 | ||
| * `table(..)` — IPSJ 風の罫線・スタイルを当てた表 | ||
|
|
||
| ## 開発・ローカルインストール(Tyler) | ||
|
|
||
| 本リポジトリは [Tyler](https://github.com/mkpoli/tyler) で管理されています。手元で改変したテンプレートを試す場合は、Universe ではなくローカルパッケージとしてインストールできます。 | ||
|
|
||
| ### 1. Tyler を導入 | ||
|
|
||
| ```bash | ||
| bun i -g @mkpoli/tyler | ||
| # または | ||
| npm install -g @mkpoli/tyler | ||
| ``` | ||
|
|
||
| ### 2. ローカルにビルド & インストール | ||
|
|
||
| リポジトリのルートで: | ||
|
|
||
| ```bash | ||
| tyler build -i | ||
| ``` | ||
|
|
||
| これでビルド成果物が `@local/joho-ipsj:0.1.0` としてローカル Typst パッケージに登録され、`typst init @local/joho-ipsj:0.1.0 my-report` で利用できます。 | ||
|
|
||
| ## 参照用ファイル | ||
|
|
||
| * [情報処理学会研究報告テンプレート](https://www.ipsj.or.jp/journal/submit/style.html) | ||
| * [研究報告原稿(PDFファイル)作成について](https://www.ipsj.or.jp/kenkyukai/genko.html) | ||
| * [ken1row/IPSJ-techrep-xelatex](https://github.com/ken1row/IPSJ-techrep-xelatex/) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is generally appreciated to have at least an introduction sentence in English, even if the target audience for the template is not native English speakers. This allows the broader Typst community to get an idea of what the package is about and make sure that it isn't of interest to them.