@tonguetoquill/collection 0.1.16 → 0.1.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/package.json +2 -2
- package/quills/usaf_memo/0.2.0/assets/dow_seal.png +0 -0
- package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/.gitignore +7 -0
- package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/body.typ +1 -1
- package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/config.typ +3 -2
- package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/lib.typ +1 -1
- package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/utils.typ +4 -7
- package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/typst.toml +1 -1
- package/quills/usaf_memo/0.2.0/plate.typ +2 -2
- package/templates/loc.md +1 -1
- package/templates/pass_request.md +1 -1
- package/templates/rebuttal.md +1 -1
- package/templates/ussf_template.md +1 -1
- package/quills/usaf_memo/0.2.0/assets/dow_seal.jpg +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonguetoquill/collection",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nibsbin/tonguetoquill-collection.git"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@quillmark/registry": "^0.
|
|
38
|
+
"@quillmark/registry": "^0.6.1",
|
|
39
39
|
"@quillmark/wasm": "^0.39.0"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
Binary file
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
if i == total_count {
|
|
310
310
|
let available_width = page.width - spacing.margin * 2
|
|
311
311
|
|
|
312
|
-
// Use configured
|
|
312
|
+
// Use configured paragraph metrics for line height estimation
|
|
313
313
|
let line_height = measure(line(length: spacing.line + spacing.line-height)).width
|
|
314
314
|
// Calculate last item's height
|
|
315
315
|
let par_height = measure(final_par, width: available_width).height
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
// AFH 33-337 specifies precise spacing requirements throughout Chapter 14
|
|
10
10
|
|
|
11
11
|
#let spacing = (
|
|
12
|
+
vertical: 19.05pt, // Base gap between elements
|
|
12
13
|
line: .5em, // Internal line spacing for readability
|
|
13
|
-
line-height: .7em, // Base
|
|
14
|
+
line-height: .7em, // Base height of text lines for pagination estimates
|
|
14
15
|
tab: 0.5in, // Tab stop for multi-column recipient alignment
|
|
15
16
|
margin: 1in, // AFH 33-337 §4: "Use 1-inch margins on the left, right and bottom"
|
|
16
17
|
)
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
|
|
23
24
|
#let DEFAULT_LETTERHEAD_FONTS = ("Copperplate CC",)
|
|
24
25
|
#let DEFAULT_BODY_FONTS = ("times new roman", "NimbusRomNo9L") // AFH 33-337 §5: Times New Roman required
|
|
25
|
-
#let LETTERHEAD_COLOR = rgb("#
|
|
26
|
+
#let LETTERHEAD_COLOR = rgb("#365e93") // Faded USAF blue for letterhead
|
|
26
27
|
|
|
27
28
|
// =============================================================================
|
|
28
29
|
// PARAGRAPH CONFIGURATION
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
//
|
|
23
23
|
// Basic usage:
|
|
24
24
|
//
|
|
25
|
-
// #import "@preview/tonguetoquill-usaf-memo:
|
|
25
|
+
// #import "@preview/tonguetoquill-usaf-memo:2.0.0": frontmatter, mainmatter, backmatter, indorsement
|
|
26
26
|
//
|
|
27
27
|
// #show: frontmatter.with(
|
|
28
28
|
// subject: "Your Subject Here",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
/// Creates vertical spacing equivalent to multiple blank lines.
|
|
18
18
|
///
|
|
19
|
-
/// Calculates proper vertical space
|
|
20
|
-
/// to maintain consistent spacing throughout the document.
|
|
19
|
+
/// Calculates proper vertical space using the centralized `spacing.vertical`
|
|
20
|
+
/// configuration to maintain consistent gap spacing throughout the document.
|
|
21
21
|
///
|
|
22
22
|
/// - count (int): Number of blank lines to create
|
|
23
23
|
/// - weak (bool): Whether spacing can be compressed at page breaks
|
|
@@ -26,9 +26,8 @@
|
|
|
26
26
|
if count == 0 {
|
|
27
27
|
v(0em, weak: weak)
|
|
28
28
|
} else {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
v(lead + (height + lead) * count, weak: weak)
|
|
29
|
+
// vertical uses the centralized vertical spacing from config
|
|
30
|
+
v(spacing.vertical * count, weak: weak)
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -126,7 +125,6 @@
|
|
|
126
125
|
///
|
|
127
126
|
/// - date (str|datetime): Date to format for display
|
|
128
127
|
/// -> str
|
|
129
|
-
// NOTE: Consider simplification if Typst adds native ISO date parsing (see CASCADES.md §A)
|
|
130
128
|
#let display-date(date) = {
|
|
131
129
|
if type(date) == str {
|
|
132
130
|
if is-iso-date-string(date) {
|
|
@@ -326,7 +324,6 @@
|
|
|
326
324
|
///
|
|
327
325
|
/// - number (int): The indorsement number (1, 2, 3, etc.)
|
|
328
326
|
/// -> str
|
|
329
|
-
// NOTE: Could be table-driven vs algorithmic (see CASCADES.md §B) — current approach is correct
|
|
330
327
|
#let get-ordinal-suffix(number) = {
|
|
331
328
|
let last-digit = calc.rem(number, 10)
|
|
332
329
|
let last-two-digits = calc.rem(number, 100)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#import "@local/quillmark-helper:0.1.0": data, eval-markup, parse-date
|
|
2
|
-
#import "@preview/tonguetoquill-usaf-memo:
|
|
2
|
+
#import "@preview/tonguetoquill-usaf-memo:2.0.0": backmatter, frontmatter, indorsement, mainmatter
|
|
3
3
|
|
|
4
4
|
// Frontmatter configuration
|
|
5
5
|
#show: frontmatter.with(
|
|
6
6
|
// Letterhead configuration
|
|
7
7
|
letterhead_title: data.letterhead_title,
|
|
8
8
|
letterhead_caption: data.letterhead_caption,
|
|
9
|
-
letterhead_seal: image("assets/dow_seal.
|
|
9
|
+
letterhead_seal: image("assets/dow_seal.png"),
|
|
10
10
|
|
|
11
11
|
// Date
|
|
12
12
|
date: parse-date(data.date),
|
package/templates/loc.md
CHANGED
package/templates/rebuttal.md
CHANGED
|
Binary file
|