@ncukondo/slide-generation 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/README_ja.md +46 -0
- package/dist/cli/index.js +1083 -173
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +21 -7
- package/dist/index.js +264 -91
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/special/bibliography.yaml +4 -4
package/README.md
CHANGED
|
@@ -184,6 +184,52 @@ Preview with Marp CLI (requires @marp-team/marp-cli).
|
|
|
184
184
|
slide-gen preview <input> [options]
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
+
### screenshot
|
|
188
|
+
|
|
189
|
+
Take screenshots of slides (requires @marp-team/marp-cli).
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
slide-gen screenshot <input> [options]
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Options:
|
|
196
|
+
- `-o, --output <path>` - Output directory (default: `./screenshots`)
|
|
197
|
+
- `-s, --slide <number>` - Specific slide only (1-based)
|
|
198
|
+
- `-w, --width <pixels>` - Image width (default: 1280)
|
|
199
|
+
|
|
200
|
+
## Reference Management
|
|
201
|
+
|
|
202
|
+
Integrate with [reference-manager](https://github.com/ncukondo/reference-manager) for academic citations.
|
|
203
|
+
|
|
204
|
+
### Citation Syntax
|
|
205
|
+
|
|
206
|
+
Use Pandoc-compatible `[@id]` format in content:
|
|
207
|
+
|
|
208
|
+
```yaml
|
|
209
|
+
items:
|
|
210
|
+
- "This method is effective [@smith2024]"
|
|
211
|
+
- "Multiple studies [@smith2024; @tanaka2023] show..."
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Bibliography Auto-Generation
|
|
215
|
+
|
|
216
|
+
```yaml
|
|
217
|
+
- template: bibliography
|
|
218
|
+
content:
|
|
219
|
+
title: "References"
|
|
220
|
+
autoGenerate: true # Auto-collect cited references
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Validation
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Check for missing citation keys
|
|
227
|
+
slide-gen validate presentation.yaml
|
|
228
|
+
|
|
229
|
+
# AI-optimized output with fix suggestions
|
|
230
|
+
slide-gen validate presentation.yaml --format llm
|
|
231
|
+
```
|
|
232
|
+
|
|
187
233
|
## Available Templates
|
|
188
234
|
|
|
189
235
|
### Basic
|
package/README_ja.md
CHANGED
|
@@ -183,6 +183,52 @@ Marp CLIでプレビューを表示します(@marp-team/marp-cliが必要)
|
|
|
183
183
|
slide-gen preview <input> [options]
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
### screenshot
|
|
187
|
+
|
|
188
|
+
スライドのスクリーンショットを撮影します(@marp-team/marp-cliが必要)。
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
slide-gen screenshot <input> [options]
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
オプション:
|
|
195
|
+
- `-o, --output <path>` - 出力ディレクトリ(デフォルト: `./screenshots`)
|
|
196
|
+
- `-s, --slide <number>` - 特定のスライドのみ(1始まり)
|
|
197
|
+
- `-w, --width <pixels>` - 画像幅(デフォルト: 1280)
|
|
198
|
+
|
|
199
|
+
## 参考文献管理
|
|
200
|
+
|
|
201
|
+
[reference-manager](https://github.com/ncukondo/reference-manager) と連携して学術文献を引用できます。
|
|
202
|
+
|
|
203
|
+
### 引用記法
|
|
204
|
+
|
|
205
|
+
コンテンツ内でPandoc互換の `[@id]` 形式を使用:
|
|
206
|
+
|
|
207
|
+
```yaml
|
|
208
|
+
items:
|
|
209
|
+
- "この手法は有効である [@smith2024]"
|
|
210
|
+
- "複数の研究 [@smith2024; @tanaka2023] が示している..."
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### 参考文献スライドの自動生成
|
|
214
|
+
|
|
215
|
+
```yaml
|
|
216
|
+
- template: bibliography
|
|
217
|
+
content:
|
|
218
|
+
title: "参考文献"
|
|
219
|
+
autoGenerate: true # 引用された文献を自動収集
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 検証
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# 存在しない引用キーをチェック
|
|
226
|
+
slide-gen validate presentation.yaml
|
|
227
|
+
|
|
228
|
+
# AI向け最適化出力(修正提案付き)
|
|
229
|
+
slide-gen validate presentation.yaml --format llm
|
|
230
|
+
```
|
|
231
|
+
|
|
186
232
|
## 利用可能なテンプレート
|
|
187
233
|
|
|
188
234
|
### 基本(Basic)
|