docrev 0.9.17 → 0.9.18

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/skill/SKILL.md CHANGED
@@ -17,9 +17,8 @@ Layout is controlled in `rev.yaml`:
17
17
 
18
18
  ```yaml
19
19
  title: "My Document"
20
- output:
21
- docx:
22
- reference-doc: template.docx
20
+ docx:
21
+ reference: template.docx
23
22
  ```
24
23
 
25
24
  Change the template, rebuild, and every document gets the new formatting.
@@ -98,7 +97,15 @@ revision is rendered as a visible Word track change. Useful when a co-author
98
97
  wants to see what changed since the last shared version.
99
98
 
100
99
  Outputs land in `output/` by default; set `outputDir: null` in `rev.yaml`
101
- to keep them alongside `paper.md` (legacy layout).
100
+ to keep them alongside `paper.md` (legacy layout). The basename is derived
101
+ from `title:` unless overridden — set `output: { docx: foo.docx, pdf: foo.pdf }`
102
+ in `rev.yaml` or pass `-o, --output <path>` on the CLI. See REFERENCE.md →
103
+ "Choosing output filenames".
104
+
105
+ For pandoc flags rev doesn't surface directly (Lua filters, custom variables,
106
+ templates), use `--pandoc-arg` (repeatable) or `pandoc-args:` in `rev.yaml`
107
+ (both top-level and per-format). Run with `--verbose` to see the exact pandoc
108
+ invocation. See REFERENCE.md → "Passing custom pandoc args" for details.
102
109
 
103
110
  ### 8. Archive reviewer files
104
111
 
@@ -183,6 +190,20 @@ Use in markdown files:
183
190
  - `@eq:label` - Equation reference
184
191
  - `{#fig:label}` - Anchor for figures
185
192
 
193
+ Insert a figure with the format-portable syntax (renders in both PDF and Word):
194
+
195
+ ```markdown
196
+ ![Caption text.](figures/foo.pdf){#fig:foo width=80%}
197
+ ```
198
+
199
+ Raw `\begin{figure}...\end{figure}` LaTeX blocks are PDF-only. For docx
200
+ builds, `rev` auto-translates the common shape (single `\includegraphics`
201
+ with optional `\caption{...}` and `\label{...}`) to the markdown form above
202
+ so figures still render. Exotic blocks (`\subfloat`, `\rotatebox`, multiple
203
+ `\includegraphics`) are left alone and warned about — convert them by hand
204
+ or supply a custom Lua filter via `--pandoc-arg`. Opt out of auto-translate
205
+ with `docx.translateRawFigures: false` in `rev.yaml`.
206
+
186
207
  ## Template Variables
187
208
 
188
209
  Available in section files (processed during build):
@@ -1,9 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Skill(code-quality)"
5
- ],
6
- "deny": [],
7
- "ask": []
8
- }
9
- }