@open-press/cli 0.7.0 → 0.7.1
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/package.json +1 -1
- package/template/core/AGENTS.md +126 -0
- package/template/core/CHANGELOG.md +20 -0
- package/template/core/engine/commands/upgrade.mjs +47 -5
- package/template/core/engine/react/document-export.mjs +15 -0
- package/template/core/engine/react/mdx-compile.mjs +91 -0
- package/template/core/engine/react/pipeline/frame-measurement.mjs +38 -9
- package/template/core/package.json +1 -1
- package/template/packs/academic-paper/document/chapters/01-introduction/content/01-introduction.mdx +26 -12
- package/template/packs/academic-paper/document/chapters/02-methods/content/01-methods.mdx +37 -17
- package/template/packs/academic-paper/document/chapters/03-results-and-discussion/content/01-results.mdx +34 -16
- package/template/packs/academic-paper/document/chapters/04-acknowledgment/content/01-acknowledgment.mdx +22 -8
- package/template/packs/academic-paper/document/chapters/05-references/content/01-references.mdx +20 -15
- package/template/packs/academic-paper/document/components/Page.tsx +26 -3
- package/template/packs/academic-paper/document/index.tsx +51 -59
- package/template/packs/academic-paper/document/media/figure-placeholder.svg +9 -0
- package/template/packs/academic-paper/document/theme/base/page-contract.css +30 -13
- package/template/packs/academic-paper/document/theme/base/typography.css +30 -33
- package/template/packs/academic-paper/document/theme/page-surfaces/cover.css +74 -47
|
@@ -146,99 +146,126 @@
|
|
|
146
146
|
color: var(--openpress-color-ink);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
/* ─ academic-paper title block
|
|
150
|
-
/* IEEE-style title page: large serif title, optional subtitle, 3-column */
|
|
151
|
-
/* author grid, abstract band, index terms band. Single-column body picks */
|
|
152
|
-
/* up after this surface. Two-column body arrives with the v0.8 paged.js */
|
|
153
|
-
/* migration. */
|
|
149
|
+
/* ─ academic-paper title block for the journal-style template ───────────── */
|
|
154
150
|
|
|
155
151
|
.paper-cover {
|
|
156
152
|
display: flex;
|
|
157
153
|
flex-direction: column;
|
|
158
|
-
gap: clamp(
|
|
159
|
-
padding-block: clamp(
|
|
154
|
+
gap: clamp(11px, 2.2cqw, 20px);
|
|
155
|
+
padding-block: clamp(18px, 2.5cqw, 30px) 0;
|
|
160
156
|
font-family: var(--openpress-font-serif);
|
|
161
157
|
color: var(--openpress-color-ink);
|
|
162
158
|
}
|
|
163
159
|
|
|
160
|
+
.paper-cover-lead,
|
|
161
|
+
.paper-cover-short-title {
|
|
162
|
+
margin: 0;
|
|
163
|
+
text-align: center;
|
|
164
|
+
color: var(--openpress-color-muted);
|
|
165
|
+
font-family: var(--openpress-font-body);
|
|
166
|
+
font-size: clamp(8.5pt, 1.55cqw, 9.5pt);
|
|
167
|
+
letter-spacing: 0.01em;
|
|
168
|
+
line-height: 1.3;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.paper-cover-date {
|
|
172
|
+
margin: 0;
|
|
173
|
+
text-align: center;
|
|
174
|
+
color: var(--openpress-color-muted);
|
|
175
|
+
font-family: var(--openpress-font-body);
|
|
176
|
+
font-size: clamp(7.8pt, 1.3cqw, 8.7pt);
|
|
177
|
+
letter-spacing: 0;
|
|
178
|
+
line-height: 1.25;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.paper-cover-lead {
|
|
182
|
+
margin-top: 2mm;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.paper-cover-short-title {
|
|
186
|
+
margin-bottom: clamp(6px, 1.2cqw, 10px);
|
|
187
|
+
}
|
|
188
|
+
|
|
164
189
|
.paper-title {
|
|
165
190
|
font-family: var(--openpress-font-serif);
|
|
166
|
-
font-size: clamp(
|
|
191
|
+
font-size: clamp(32px, 4.9cqw, 45px);
|
|
167
192
|
line-height: 1.2;
|
|
168
193
|
font-weight: 400;
|
|
169
194
|
text-align: center;
|
|
170
195
|
margin: 0;
|
|
171
|
-
letter-spacing: 0;
|
|
196
|
+
letter-spacing: -0.01em;
|
|
172
197
|
}
|
|
173
198
|
|
|
174
|
-
.paper-
|
|
175
|
-
font-size: clamp(11px, 1.4cqw, 12px);
|
|
176
|
-
font-style: italic;
|
|
199
|
+
.paper-author-contact-note {
|
|
177
200
|
text-align: center;
|
|
201
|
+
margin: 0;
|
|
202
|
+
font-size: clamp(8.5pt, 1.45cqw, 9.5pt);
|
|
178
203
|
color: var(--openpress-color-muted);
|
|
204
|
+
line-height: 1.35;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.paper-author-line {
|
|
179
208
|
margin: 0;
|
|
209
|
+
text-align: center;
|
|
210
|
+
font-size: clamp(11px, 2cqw, 13px);
|
|
211
|
+
line-height: 1.45;
|
|
212
|
+
font-weight: 500;
|
|
180
213
|
}
|
|
181
214
|
|
|
182
|
-
.paper-
|
|
215
|
+
.paper-author-affiliations {
|
|
216
|
+
margin: 0;
|
|
183
217
|
list-style: none;
|
|
184
218
|
padding: 0;
|
|
185
|
-
margin: clamp(8px, 1.6cqw, 16px) 0 0;
|
|
186
|
-
display: grid;
|
|
187
|
-
grid-template-columns: repeat(3, 1fr);
|
|
188
|
-
gap: clamp(10px, 1.4cqw, 16px) clamp(8px, 1.2cqw, 14px);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.paper-author {
|
|
192
219
|
display: flex;
|
|
193
220
|
flex-direction: column;
|
|
194
|
-
|
|
221
|
+
gap: 1mm;
|
|
195
222
|
text-align: center;
|
|
196
|
-
font-size: clamp(10.5px, 1.3cqw, 11.5px);
|
|
197
|
-
line-height: 1.35;
|
|
198
|
-
gap: 0;
|
|
199
223
|
}
|
|
200
224
|
|
|
201
|
-
.paper-author
|
|
202
|
-
|
|
203
|
-
|
|
225
|
+
.paper-author {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
204
228
|
}
|
|
205
229
|
|
|
206
230
|
.paper-author-affiliation {
|
|
207
|
-
font-style: italic;
|
|
208
|
-
margin: 0;
|
|
209
|
-
color: var(--openpress-color-ink);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.paper-author-location,
|
|
213
|
-
.paper-author-contact {
|
|
214
231
|
margin: 0;
|
|
215
232
|
color: var(--openpress-color-ink);
|
|
233
|
+
font-family: var(--openpress-font-body);
|
|
234
|
+
font-size: clamp(9px, 1.6cqw, 10px);
|
|
235
|
+
line-height: 1.42;
|
|
216
236
|
}
|
|
217
237
|
|
|
218
238
|
.paper-abstract,
|
|
219
|
-
.paper-
|
|
239
|
+
.paper-nontechnical-summary,
|
|
240
|
+
.paper-contributions,
|
|
241
|
+
.paper-abstract > p,
|
|
242
|
+
.paper-nontechnical-summary > p,
|
|
243
|
+
.paper-contributions > p {
|
|
220
244
|
margin-top: clamp(8px, 1.6cqw, 14px);
|
|
221
|
-
font-
|
|
245
|
+
font-family: var(--openpress-font-body);
|
|
246
|
+
font-size: clamp(10px, 1.7cqw, 11px);
|
|
222
247
|
line-height: 1.45;
|
|
248
|
+
text-align: justify;
|
|
249
|
+
text-justify: inter-word;
|
|
223
250
|
}
|
|
224
251
|
|
|
225
|
-
.paper-abstract p,
|
|
226
|
-
.paper-
|
|
252
|
+
.paper-abstract > p,
|
|
253
|
+
.paper-nontechnical-summary > p,
|
|
254
|
+
.paper-contributions > p {
|
|
227
255
|
margin: 0;
|
|
228
|
-
text-indent:
|
|
229
|
-
font-style: italic;
|
|
256
|
+
text-indent: 0.9em;
|
|
230
257
|
}
|
|
231
258
|
|
|
232
259
|
.paper-abstract-label {
|
|
233
|
-
|
|
234
|
-
font-weight:
|
|
260
|
+
display: inline-block;
|
|
261
|
+
font-weight: 500;
|
|
262
|
+
text-transform: none;
|
|
235
263
|
}
|
|
236
264
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
max-width: none;
|
|
265
|
+
.paper-section-label {
|
|
266
|
+
font-family: var(--openpress-font-serif);
|
|
267
|
+
font-size: 0.95em;
|
|
268
|
+
font-weight: 500;
|
|
242
269
|
}
|
|
243
270
|
|
|
244
271
|
/* ─ academic-paper back cover ───────────────────────────────────────────── */
|