@tonguetoquill/collection 0.1.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.
Files changed (102) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/index.d.ts +2 -0
  4. package/index.js +8 -0
  5. package/package.json +36 -0
  6. package/quills/classic_resume/0.1.0/Quill.yaml +118 -0
  7. package/quills/classic_resume/0.1.0/example.md +232 -0
  8. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/LICENSE +21 -0
  9. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/README.md +38 -0
  10. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/fonts/EBGaramond-Bold.ttf +0 -0
  11. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/fonts/EBGaramond-BoldItalic.ttf +0 -0
  12. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/fonts/EBGaramond-Italic.ttf +0 -0
  13. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/fonts/EBGaramond-Regular.ttf +0 -0
  14. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/src/components.typ +184 -0
  15. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/src/layout.typ +42 -0
  16. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/src/lib.typ +5 -0
  17. package/quills/classic_resume/0.1.0/packages/ttq-classic-resume/typst.toml +26 -0
  18. package/quills/classic_resume/0.1.0/plate.typ +44 -0
  19. package/quills/cmu_letter/0.1.0/.quillignore +31 -0
  20. package/quills/cmu_letter/0.1.0/Quill.yaml +64 -0
  21. package/quills/cmu_letter/0.1.0/assets/cmu-wordmark.svg +174 -0
  22. package/quills/cmu_letter/0.1.0/example.md +31 -0
  23. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/LICENSE +21 -0
  24. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/fonts/OFL.txt +93 -0
  25. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/fonts/OpenSans-Bold.ttf +0 -0
  26. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/fonts/OpenSans-BoldItalic.ttf +0 -0
  27. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/fonts/OpenSans-Italic.ttf +0 -0
  28. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/fonts/OpenSans-Regular.ttf +0 -0
  29. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/fonts/README.txt +100 -0
  30. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/backmatter.typ +13 -0
  31. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/config.typ +40 -0
  32. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/frontmatter.typ +72 -0
  33. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/lib.typ +47 -0
  34. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/mainmatter.typ +42 -0
  35. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/primitives.typ +70 -0
  36. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/src/utils.typ +85 -0
  37. package/quills/cmu_letter/0.1.0/packages/tonguetoquill-cmu-letter/typst.toml +17 -0
  38. package/quills/cmu_letter/0.1.0/plate.typ +19 -0
  39. package/quills/taro/0.1.0/Quill.yaml +29 -0
  40. package/quills/taro/0.1.0/assets/Figtree-Bold.ttf +0 -0
  41. package/quills/taro/0.1.0/assets/Figtree-Italic.ttf +0 -0
  42. package/quills/taro/0.1.0/assets/Figtree-Regular.ttf +0 -0
  43. package/quills/taro/0.1.0/example.md +27 -0
  44. package/quills/taro/0.1.0/plate.typ +31 -0
  45. package/quills/usaf_memo/0.1.0/.quillignore +31 -0
  46. package/quills/usaf_memo/0.1.0/Quill.yaml +209 -0
  47. package/quills/usaf_memo/0.1.0/assets/dow_seal.jpg +0 -0
  48. package/quills/usaf_memo/0.1.0/example.md +55 -0
  49. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/LICENSE +21 -0
  50. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/Cinzel/Cinzel-Regular.ttf +0 -0
  51. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/Cinzel/LICENSE +93 -0
  52. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/CopperplateCC/CopperplateCC-Heavy.otf +0 -0
  53. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/CopperplateCC/LICENSE.md +79 -0
  54. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/GNU General Public License.txt +340 -0
  55. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Med.otf +0 -0
  56. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-MedIta.otf +0 -0
  57. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Reg.otf +0 -0
  58. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-RegIta.otf +0 -0
  59. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/backmatter.typ +28 -0
  60. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/body.typ +325 -0
  61. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/config.typ +63 -0
  62. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/frontmatter.typ +114 -0
  63. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/indorsement.typ +118 -0
  64. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/lib.typ +55 -0
  65. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/mainmatter.typ +32 -0
  66. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/primitives.typ +272 -0
  67. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/src/utils.typ +377 -0
  68. package/quills/usaf_memo/0.1.0/packages/tonguetoquill-usaf-memo/typst.toml +17 -0
  69. package/quills/usaf_memo/0.1.0/plate.typ +74 -0
  70. package/quills/usaf_memo/0.2.0/.quillignore +31 -0
  71. package/quills/usaf_memo/0.2.0/Quill.yaml +225 -0
  72. package/quills/usaf_memo/0.2.0/assets/dow_seal.jpg +0 -0
  73. package/quills/usaf_memo/0.2.0/example.md +57 -0
  74. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/LICENSE +21 -0
  75. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/Cinzel/Cinzel-Regular.ttf +0 -0
  76. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/Cinzel/LICENSE +93 -0
  77. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/CopperplateCC/CopperplateCC-Heavy.otf +0 -0
  78. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/CopperplateCC/LICENSE.md +79 -0
  79. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/GNU General Public License.txt +340 -0
  80. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Med.otf +0 -0
  81. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-MedIta.otf +0 -0
  82. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-Reg.otf +0 -0
  83. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/fonts/NimbusRomanNo9L/NimbusRomNo9L-RegIta.otf +0 -0
  84. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/backmatter.typ +28 -0
  85. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/body.typ +325 -0
  86. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/config.typ +63 -0
  87. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/frontmatter.typ +114 -0
  88. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/indorsement.typ +118 -0
  89. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/lib.typ +55 -0
  90. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/mainmatter.typ +32 -0
  91. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/primitives.typ +272 -0
  92. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/src/utils.typ +377 -0
  93. package/quills/usaf_memo/0.2.0/packages/tonguetoquill-usaf-memo/typst.toml +17 -0
  94. package/quills/usaf_memo/0.2.0/plate.typ +76 -0
  95. package/templates/cmu_letter_template.md +38 -0
  96. package/templates/loc.md +79 -0
  97. package/templates/pass_request.md +44 -0
  98. package/templates/rebuttal.md +56 -0
  99. package/templates/taro.md +27 -0
  100. package/templates/templates.json +44 -0
  101. package/templates/usaf_template.md +23 -0
  102. package/templates/ussf_template.md +29 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Nibs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,100 @@
1
+ Open Sans Variable Font
2
+ =======================
3
+
4
+ This download contains Open Sans as both variable fonts and static fonts.
5
+
6
+ Open Sans is a variable font with these axes:
7
+ wdth
8
+ wght
9
+
10
+ This means all the styles are contained in these files:
11
+ OpenSans-VariableFont_wdth,wght.ttf
12
+ OpenSans-Italic-VariableFont_wdth,wght.ttf
13
+
14
+ If your app fully supports variable fonts, you can now pick intermediate styles
15
+ that aren’t available as static fonts. Not all apps support variable fonts, and
16
+ in those cases you can use the static font files for Open Sans:
17
+ static/OpenSans_Condensed-Light.ttf
18
+ static/OpenSans_Condensed-Regular.ttf
19
+ static/OpenSans_Condensed-Medium.ttf
20
+ static/OpenSans_Condensed-SemiBold.ttf
21
+ static/OpenSans_Condensed-Bold.ttf
22
+ static/OpenSans_Condensed-ExtraBold.ttf
23
+ static/OpenSans_SemiCondensed-Light.ttf
24
+ static/OpenSans_SemiCondensed-Regular.ttf
25
+ static/OpenSans_SemiCondensed-Medium.ttf
26
+ static/OpenSans_SemiCondensed-SemiBold.ttf
27
+ static/OpenSans_SemiCondensed-Bold.ttf
28
+ static/OpenSans_SemiCondensed-ExtraBold.ttf
29
+ static/OpenSans-Light.ttf
30
+ static/OpenSans-Regular.ttf
31
+ static/OpenSans-Medium.ttf
32
+ static/OpenSans-SemiBold.ttf
33
+ static/OpenSans-Bold.ttf
34
+ static/OpenSans-ExtraBold.ttf
35
+ static/OpenSans_Condensed-LightItalic.ttf
36
+ static/OpenSans_Condensed-Italic.ttf
37
+ static/OpenSans_Condensed-MediumItalic.ttf
38
+ static/OpenSans_Condensed-SemiBoldItalic.ttf
39
+ static/OpenSans_Condensed-BoldItalic.ttf
40
+ static/OpenSans_Condensed-ExtraBoldItalic.ttf
41
+ static/OpenSans_SemiCondensed-LightItalic.ttf
42
+ static/OpenSans_SemiCondensed-Italic.ttf
43
+ static/OpenSans_SemiCondensed-MediumItalic.ttf
44
+ static/OpenSans_SemiCondensed-SemiBoldItalic.ttf
45
+ static/OpenSans_SemiCondensed-BoldItalic.ttf
46
+ static/OpenSans_SemiCondensed-ExtraBoldItalic.ttf
47
+ static/OpenSans-LightItalic.ttf
48
+ static/OpenSans-Italic.ttf
49
+ static/OpenSans-MediumItalic.ttf
50
+ static/OpenSans-SemiBoldItalic.ttf
51
+ static/OpenSans-BoldItalic.ttf
52
+ static/OpenSans-ExtraBoldItalic.ttf
53
+
54
+ Get started
55
+ -----------
56
+
57
+ 1. Install the font files you want to use
58
+
59
+ 2. Use your app's font picker to view the font family and all the
60
+ available styles
61
+
62
+ Learn more about variable fonts
63
+ -------------------------------
64
+
65
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
66
+ https://variablefonts.typenetwork.com
67
+ https://medium.com/variable-fonts
68
+
69
+ In desktop apps
70
+
71
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
72
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
73
+
74
+ Online
75
+
76
+ https://developers.google.com/fonts/docs/getting_started
77
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
78
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
79
+
80
+ Installing fonts
81
+
82
+ MacOS: https://support.apple.com/en-us/HT201749
83
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
84
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
85
+
86
+ Android Apps
87
+
88
+ https://developers.google.com/fonts/docs/android
89
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
90
+
91
+ License
92
+ -------
93
+ Please read the full license text (OFL.txt) to understand the permissions,
94
+ restrictions and requirements for usage, redistribution, and modification.
95
+
96
+ You can use them in your products & projects – print or digital,
97
+ commercial or otherwise.
98
+
99
+ This isn't legal advice, please consider consulting a lawyer and see the full
100
+ license for all details.
@@ -0,0 +1,13 @@
1
+ // backmatter.typ: Backmatter rendering for CMU letter closing
2
+ //
3
+ // This module implements the closing section of a CMU letter per guidelines:
4
+ // - Signature block styling
5
+
6
+ #import "config.typ": *
7
+ #import "utils.typ": *
8
+
9
+ #let backmatter(
10
+ signature_block: none) = {
11
+ blank-lines(4)
12
+ block(spacing: .7em,breakable: false, ensure-string(signature_block))
13
+ }
@@ -0,0 +1,40 @@
1
+ // config.typ: Configuration constants and defaults for CMU letterhead template
2
+ //
3
+ // This module defines core configuration values that implement Carnegie Mellon
4
+ // University letterhead standards as specified in the official guidelines.
5
+
6
+ // =============================================================================
7
+ // COLOR PALETTE
8
+ // =============================================================================
9
+ // CMU Brand Colors per guidelines section 3.3
10
+
11
+ #let CMU_RED = rgb("#C41230") // Carnegie Red - restricted to wordmark/logo
12
+ #let CMU_DARK_GREY = rgb("#333333") // Dark Grey - for body text option
13
+ #let CMU_IRON_GRAY = rgb("#6D6E71") // Iron Gray - for secondary text
14
+ #let CMU_BLACK = rgb("#000000") // Black - standard for body correspondence
15
+
16
+ // =============================================================================
17
+ // TYPOGRAPHY DEFAULTS
18
+ // =============================================================================
19
+ // Guidelines section 3.1: Primary typeface is Open Sans
20
+ // Serif fonts are strictly prohibited.
21
+
22
+ #let DEFAULT_BODY_FONTS = ("Open Sans")
23
+ #let DEFAULT_SERIF_FONTS = () // Serif fonts prohibited
24
+
25
+ // Font sizes per guidelines: 10pt or 11pt for body text
26
+ #let DEFAULT_FONT_SIZE = 11pt
27
+
28
+ // =============================================================================
29
+ // PAGE GEOMETRY
30
+ // =============================================================================
31
+ // Guidelines section 2.1: Canvas Specifications
32
+ // - Paper Size: US Letter
33
+ // - Margins: 1.0 inch on all sides
34
+
35
+ #let MARGINS = (
36
+ left: 1in,
37
+ right: 1in,
38
+ top: 0.75in,
39
+ bottom: 0.751in,
40
+ )
@@ -0,0 +1,72 @@
1
+ // frontmatter.typ: Frontmatter show rule for CMU letterhead
2
+ //
3
+ // This module implements the frontmatter (heading section) of a CMU letter
4
+ // per the official letterhead guidelines. It handles:
5
+ // - Page setup with proper margins
6
+ // - Header rendering (logo, department, address, URL)
7
+ // - Date, recipient, and salutation placement
8
+
9
+ #import "config.typ": *
10
+ #import "primitives.typ": *
11
+ #import "utils.typ": *
12
+
13
+ #let frontmatter(
14
+ // Header content
15
+ wordmark: none,
16
+ department: none,
17
+ address: none,
18
+ url: none,
19
+
20
+ // Letter metadata
21
+ date: none,
22
+ recipient: none,
23
+
24
+ // Typography options
25
+ body_font: DEFAULT_BODY_FONTS,
26
+ font_size: DEFAULT_FONT_SIZE,
27
+
28
+ it
29
+ ) = {
30
+ let actual_date = if date == none { datetime.today() } else { date }
31
+
32
+ set page(
33
+ paper: "us-letter",
34
+ // Standard 1" margins for vertical flow layout
35
+ margin: MARGINS,
36
+ )
37
+
38
+ set text(
39
+ font: DEFAULT_BODY_FONTS,
40
+ size: font_size,
41
+ )
42
+
43
+ set par(
44
+ spacing: .7em,
45
+ justify: false
46
+ )
47
+
48
+ // Render the header (in normal document flow)
49
+ render-header(
50
+ wordmark,
51
+ department: department,
52
+ address: address,
53
+ url: url,
54
+ )
55
+
56
+ blank-lines(3)
57
+
58
+ // Date and recipient in same paragraph to avoid extra spacing
59
+ [#display-date(actual_date)
60
+ #linebreak()
61
+ #ensure-string(recipient)
62
+ ]
63
+
64
+ // Store metadata for downstream sections
65
+ metadata((
66
+ date: actual_date,
67
+ body_font: body_font,
68
+ font_size: font_size,
69
+ ))
70
+
71
+ it
72
+ }
@@ -0,0 +1,47 @@
1
+ // lib.typ: Public API for CMU letterhead template
2
+ //
3
+ // This module provides a composable API for creating Carnegie Mellon University
4
+ // letters that comply with the official letterhead standards.
5
+ //
6
+ // CMU Letterhead Guidelines specify:
7
+ // - "Lefthead" layout with 2.25" left margin for branding column
8
+ // - Open Sans font at 10-11pt for body text
9
+ // - Block style paragraphs with no indentation
10
+ // - Flush left / ragged right alignment
11
+ // - Carnegie Red (#C41230) restricted to wordmark only
12
+ // - Iron Gray (#6D6E71) for secondary text
13
+ //
14
+ // Key features:
15
+ // - Composable show rules for frontmatter and mainmatter
16
+ // - Function-based backmatter for closing section
17
+ // - CMU-compliant "Lefthead" layout with branding column
18
+ // - Proper typography and spacing throughout
19
+ //
20
+ // Basic usage:
21
+ //
22
+ // #import "@preview/tonguetoquill-cmu-letter:0.1.0": frontmatter, mainmatter, backmatter
23
+ //
24
+ // #show: frontmatter.with(
25
+ // wordmark: image("assets/cmu-wordmark.svg"),
26
+ // department: "School of Computer Science",
27
+ // address: ("5000 Forbes Avenue", "Pittsburgh, PA 15213"),
28
+ // url: "cs.cmu.edu",
29
+ // date: datetime.today(),
30
+ // recipient: ("Dr. Jane Smith", "Department of Engineering", "University of Example", "123 Main Street", "City, ST 12345"),
31
+ // )
32
+ //
33
+ // #show: mainmatter
34
+ //
35
+ // Dear Dr. Smith,
36
+ //
37
+ // Your letter body content here.
38
+ //
39
+ // #backmatter(
40
+ // closing: "Sincerely,",
41
+ // sender_name: "John Doe",
42
+ // sender_title: "Associate Professor",
43
+ // )
44
+
45
+ #import "frontmatter.typ": frontmatter
46
+ #import "mainmatter.typ": mainmatter
47
+ #import "backmatter.typ": backmatter
@@ -0,0 +1,42 @@
1
+ // mainmatter.typ: Mainmatter show rule for CMU letter body
2
+ //
3
+ // This module implements the body text section of a CMU letter per guidelines:
4
+ // - Block style paragraphs (no indentation)
5
+ // - Single line spacing (1.0 to 1.15)
6
+ // - Default paragraph spacing
7
+ // - Flush left / ragged right alignment
8
+
9
+ #import "config.typ": *
10
+ #import "utils.typ": *
11
+
12
+ /// Mainmatter show rule for CMU letter body content.
13
+ ///
14
+ /// Guidelines section 3.1:
15
+ /// - Format: Block Style
16
+ /// - Indentation: None
17
+ /// - Spacing: Single line spacing (1.0 to 1.15)
18
+ /// - Separation: Default paragraph spacing
19
+ ///
20
+ /// - content (content): The body content to render
21
+ /// -> content
22
+ #let mainmatter(it) = {
23
+ blank-lines(3)
24
+
25
+
26
+ // Set list styling with bigger bullet aligned to the left
27
+ set list(
28
+ indent: 0em,
29
+ body-indent: 1em,
30
+ marker: text(size: 1.2em)[•]
31
+ )
32
+ set enum(indent: 0em, body-indent: 1em)
33
+
34
+ block()[
35
+ #set par(
36
+ first-line-indent: 0pt,
37
+ justify: false,
38
+ spacing: 2em
39
+ )
40
+ #it
41
+ ]
42
+ }
@@ -0,0 +1,70 @@
1
+ // primitives.typ: Reusable rendering primitives for CMU letterhead sections
2
+ //
3
+ // This module implements the visual rendering functions for all sections
4
+ // of a CMU letterhead letter following the official guidelines.
5
+
6
+ #import "config.typ": *
7
+ #import "utils.typ": *
8
+
9
+ // =============================================================================
10
+ // HEADER RENDERING
11
+ // =============================================================================
12
+ // Guidelines section 4: Header Composition
13
+ // - Wordmark (Top-Left)
14
+ // - Sender's Address Block (Immediately below wordmark)
15
+
16
+ #let render-header(
17
+ wordmark,
18
+ department: none,
19
+ address: none,
20
+ url: none,
21
+ ) = {
22
+ // CMU Wordmark
23
+ // Guidelines 4.1: Width approx 2.25" to 2.5"
24
+ if wordmark != none {
25
+ let wordmark_content = box(width: 2.5in)[
26
+ #set image(width: 100%)
27
+ #wordmark
28
+ ]
29
+
30
+ // Hyperlink wordmark to URL if provided
31
+ if url != none {
32
+ link("https://" + url)[#wordmark_content]
33
+ } else {
34
+ wordmark_content
35
+ }
36
+ linebreak()
37
+ }
38
+
39
+
40
+ // Sender's Address Block
41
+ // Guidelines 4.2: Flush Left
42
+
43
+ // Department Name: Bold and darker
44
+ if department != none {
45
+ text(weight: "bold", fill: black)[#department]
46
+ linebreak()
47
+ }
48
+
49
+ set text(fill: CMU_IRON_GRAY)
50
+
51
+ // University Name: Regular
52
+ [Carnegie Mellon University]
53
+ linebreak()
54
+
55
+ // Address Lines: Regular
56
+ if address != none {
57
+ let address_lines = if type(address) == "string" {
58
+ (address,)
59
+ } else {
60
+ address
61
+ }
62
+
63
+ for line in address_lines {
64
+ [#line]
65
+ linebreak()
66
+ }
67
+ }
68
+
69
+ // URL is now hyperlinked to wordmark, not displayed as text
70
+ }
@@ -0,0 +1,85 @@
1
+ // utils.typ: Utility functions for CMU letterhead template
2
+ //
3
+ // This module provides core utility functions used by the main letterhead template.
4
+
5
+ #import "config.typ": *
6
+
7
+ // =============================================================================
8
+ // SPACING UTILITIES
9
+ // =============================================================================
10
+
11
+ /// Creates vertical spacing equivalent to multiple blank lines.
12
+ ///
13
+ /// - count (int): Number of blank lines to create
14
+ /// - weak (bool): Whether spacing can be compressed at page breaks
15
+ /// -> content
16
+ #let blank-lines(count, weak: true) = {
17
+ for i in range(0, count) {
18
+ v(1.4em)
19
+ }
20
+ }
21
+
22
+ /// Creates vertical spacing equivalent to one blank line.
23
+ /// -> content
24
+ #let blank-line(weak: true) = blank-lines(1, weak: weak)
25
+
26
+ // =============================================================================
27
+ // GENERAL UTILITIES
28
+ // =============================================================================
29
+
30
+ /// Checks if a value is "falsey" (none, false, empty array, or empty string).
31
+ ///
32
+ /// - value (any): The value to check
33
+ /// -> bool
34
+ #let falsey(value) = {
35
+ value == none or value == false or (type(value) == array and value.len() == 0) or (type(value) == str and value == "")
36
+ }
37
+
38
+ /// Ensures the input is a string. If an array, joins elements with separator.
39
+ ///
40
+ /// - value: Any value to normalize to string form
41
+ /// - separator: String to use when joining array elements (default: "\n")
42
+ /// -> str
43
+ #let ensure-string(value, separator: "\n") = {
44
+ if value == none {
45
+ ""
46
+ } else if type(value) == array {
47
+ value.join(separator)
48
+ } else {
49
+ str(value)
50
+ }
51
+ }
52
+
53
+ /// Scales content to fit within a specified box while maintaining aspect ratio.
54
+ ///
55
+ /// - width (length): Maximum width for the content
56
+ /// - height (length): Maximum height for the content
57
+ /// - alignment (alignment): Content alignment within the box
58
+ /// - body (content): Content to scale and fit
59
+ /// -> content
60
+ #let fit-box(width: 2in, height: 1in, alignment: left + horizon, body) = context {
61
+ let s = measure(body)
62
+ let f = calc.min(width / s.width, height / s.height) * 100%
63
+ box(width: width, height: height, clip: true)[
64
+ #align(alignment)[
65
+ #scale(f, reflow: true)[#body]
66
+ ]
67
+ ]
68
+ }
69
+
70
+ // =============================================================================
71
+ // DATE FORMATTING
72
+ // =============================================================================
73
+
74
+ /// Formats a date in CMU civilian format: "Month Day, Year"
75
+ /// Guidelines section 3.2: Date format is "Month Day, Year" (e.g., November 29, 2025)
76
+ ///
77
+ /// - date (str|datetime): Date to format
78
+ /// -> str
79
+ #let display-date(date) = {
80
+ if type(date) == str {
81
+ date
82
+ } else {
83
+ date.display("[month repr:long] [day padding:none], [year]")
84
+ }
85
+ }
@@ -0,0 +1,17 @@
1
+ [package]
2
+ name = "tonguetoquill-cmu-letter"
3
+ version = "0.1.0"
4
+ compiler = "0.14.0"
5
+ entrypoint = "src/lib.typ"
6
+ repository = "https://github.com/nibsbin/tonguetoquill-cmu-letter"
7
+ authors = ["Nibs"]
8
+ license = "MIT"
9
+ description = "Typeset letters that comply with Carnegie Mellon University letterhead standards."
10
+ keywords = ["CMU", "Carnegie Mellon", "letterhead", "letter", "university", "official", "correspondence", "formatting"]
11
+ categories = ["office", "report"]
12
+ disciplines = ["business", "engineering", "education"]
13
+
14
+ [template]
15
+ path = "template"
16
+ entrypoint = "cmu-template.typ"
17
+ thumbnail = "template/assets/thumbnail.png"
@@ -0,0 +1,19 @@
1
+ #import "@local/quillmark-helper:0.1.0": data, eval-markup, parse-date
2
+ #import "@preview/tonguetoquill-cmu-letter:0.1.0": backmatter, frontmatter, mainmatter
3
+
4
+ #show: frontmatter.with(
5
+ wordmark: image("assets/cmu-wordmark.svg"),
6
+ department: data.department,
7
+ address: data.address,
8
+ url: data.url,
9
+ date: if "date" in data { parse-date(data.date) } else { datetime.today() },
10
+ recipient: data.recipient,
11
+ )
12
+
13
+ #show: mainmatter
14
+
15
+ #eval-markup(data.BODY)
16
+
17
+ #backmatter(
18
+ signature_block: data.signature_block,
19
+ )
@@ -0,0 +1,29 @@
1
+ Quill:
2
+ name: taro
3
+ version: 0.1.0
4
+ backend: typst
5
+ plate_file: plate.typ
6
+ example_file: example.md
7
+ description: A simple document template for testing
8
+
9
+ fields:
10
+ author:
11
+ title: Author of document
12
+ type: string
13
+ ice_cream:
14
+ title: favorite ice cream flavor
15
+ type: string
16
+ default: taro
17
+ title:
18
+ title: title of document
19
+ type: string
20
+
21
+ cards:
22
+ quotes:
23
+ title: Inspirational Quotes
24
+ description: A collection of quotes about taro ice cream
25
+ fields:
26
+ author:
27
+ title: Quote author
28
+ type: string
29
+ description: The person who said this quote