diff --git a/packages/preview/lime-hicss/0.1.0/LICENSE b/packages/preview/lime-hicss/0.1.0/LICENSE new file mode 100644 index 0000000000..fc06cc4fe4 --- /dev/null +++ b/packages/preview/lime-hicss/0.1.0/LICENSE @@ -0,0 +1,14 @@ +MIT No Attribution + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/preview/lime-hicss/0.1.0/lib.typ b/packages/preview/lime-hicss/0.1.0/lib.typ new file mode 100644 index 0000000000..9c141711d5 --- /dev/null +++ b/packages/preview/lime-hicss/0.1.0/lib.typ @@ -0,0 +1,274 @@ +#import "@preview/wordometer:0.1.4": word-count, total-words + +// This function gets your whole document as its `body` and formats +// it as an article in the style of the hicss. +#let hicss( + // The paper's title. + title: [Paper Title], + + // An array of authors. For each author you can specify a name, + // department, organization, location, and email. Everything but + // but the name is optional. + authors: (), + + // The paper's abstract. Can be omitted if you don't have one. + abstract: none, + + // A list of index terms to display after the abstract. + key-words: (), + + // The result of a call to the `bibliography` function or `none`. + bibliography: none, + + // The paper's content. + body +) = { + // Set document metadata. + set document(title: title, author: authors.map(author => author.name)) + + // Adapt supplement in caption independently from supplement used for + // references. + set figure.caption(separator: [. ]) + show figure: fig => { + let prefix = ( + if fig.kind == table [TABLE] + else if fig.kind == image [Figure] + else [#fig.supplement] + ) + let numbers = numbering(fig.numbering, ..fig.counter.at(fig.location())) + // Wrap figure captions in block to prevent the creation of paragraphs. In + // particular, this means `par.first-line-indent` does not apply. + // See https://github.com/typst/templates/pull/73#discussion_r2112947947. + show figure.caption: it => block[#prefix~#numbers#it.separator#h(1em)#it.body] + show figure.caption.where(kind: table): smallcaps + // [HICSS.tex]: Figure and table captions should be 9-point boldface Helvetica. + // [HICSS.sty]: \fontfamily{cmss}\selectfont \textbf + set text(9pt, weight: "bold", font: "TeX Gyre Heros") + set block(above: 12pt, below: 12pt) + fig + } + // [HICSS.tex]: Type your main text in 10-point Times, single-spaced. [...] All paragraphs should be indented 1/4 inch (approximately 0.5 cm). Be sure your text is fully justified [...] + // Set the body font. + set text(font: "TeX Gyre Termes", size: 10pt) + set par(first-line-indent: 1in/4, justify: true, spacing: 0em) + + // Code blocks + show raw: set text( + font: "TeX Gyre Cursor", + ligatures: false, + size: 1em / 0.8, + spacing: 100%, + ) + + // Configure the page and multi-column properties. + // [HICSS.tex]: Columns are to be 3 inches (7.85 cm) wide, with a 5.1/16 inch (0.81 cm) space between them. + set columns(gutter: 5.1in/16) + set page( + columns: 2, + paper: "us-letter", + // The margins depend on the paper size. + margin: ( + // [HICSS.tex]: The second and following pages should begin 1.0 inch (2.54 cm) from the top edge. On all pages, the bottom margin should be 1-1/8 inches (2.86 cm) from the bottom edge of the page for 8.5 x 11-inch paper. (Letter-size paper) + top: 1in, + bottom: 1in, + ) + + ) + + // Configure equation numbering and spacing. + set math.equation(numbering: "(1)") + show math.equation: set block(spacing: 0.65em) + + // Configure appearance of equation references + show ref: it => { + if it.element != none and it.element.func() == math.equation { + // Override equation references. + link(it.element.location(), numbering( + it.element.numbering, + ..counter(math.equation).at(it.element.location()) + )) + } else { + // Other references as usual. + it + } + } + + // Configure lists. + set enum(indent: 1in/4, body-indent: 0.5em, spacing: 1em) + set list(indent: 1in/4, body-indent: 0.5em, spacing: 1em) + show enum: set block(above: 1em, below: 1em) + show list: set block(above: 1em, below: 1em) + + // Configure headings. + set heading(numbering: (..n) => numbering("1.1.1.", ..n) + h(1em)) + show heading.where(level: 1): set text(size: 12pt) + show heading.where(level: 2): set text(size: 11pt) + show heading.where( + level: 3 + ): it => { + // https://forum.typst.app/t/can-i-format-a-heading-without-a-newline/4227/2 + v(12pt + 0.65em) + h(-10pt) // HACK: remove first-line-indent + box([#it]) + "." + } + + + // [HICSS.tex]: headings... with one 12-point blank line before, and one blank line after. + // note: 0.3em is half of the default line spacing, which is 0.65em. + show heading: set block(above: 12pt + 0.3em, below: 12pt + 0.3em) + + // unused stuff about handling an acknowledgements section. + // show heading: it => { + // // Find out the final number of the heading counter. + // let levels = counter(heading).get() + // let deepest = if levels != () { + // levels.last() + // } else { + // 1 + // } + + // set text(10pt, weight: 400) + // if it.level == 1 { + // // We don't want to number the acknowledgment section. + // let is-ack = it.body in ([Acknowledgment], [Acknowledgement], [Acknowledgments], [Acknowledgements]) + // set text(if is-ack { 10pt } else { 12pt }, weight: "bold") + // show: block.with(above: 15pt, below: 13.75pt, sticky: true) + // if it.numbering != none and not is-ack { + // numbering("1.1.1.", deepest) + // } + // it.body + // } else if it.level == 2 { + // // Second-level headings are run-ins. + // set text(style: "italic") + // show: block.with(spacing: 10pt, sticky: true) + // if it.numbering != none { + // numbering("A.", deepest) + // h(7pt, weak: true) + // } + // it.body + // } else [ + // // Third level headings are run-ins too, but different. + // #if it.level == 3 { + // numbering("a)", deepest) + // [ ] + // } + // _#(it.body):_ + // ] + // } + + // [HICSS.tex]: List and number all bibliographical references in 9-point Times, single-spaced, and in an alphabetical order at the end of your paper. + show std.bibliography: set text(9pt) + set std.bibliography(title: text(12pt)[References], style: "american-psychological-association") + + show std.bibliography: it => { + show par: set par(hanging-indent: 2.5in) + it + } + + // Display the paper's title and authors at the top of the page, + // spanning all columns (hence floating at the scope of the + // columns' parent, which is the page). + place( + top, + float: true, + scope: "parent", + block( + height: 5cm, + { + { + // The main title (on the first page) should begin 1-3/8 inches (3.49 cm) from the top edge of the page, centered, and in Times 14-point, boldface type. + v(3in/8) + set align(center) + set text(size: 14pt, weight: "bold") + block( + title, + // Leave two 12-point blank lines after the title. + below: 12pt * 2, + ) + + } + + // TODO: adapt authors to HICSS template. + // Display the authors list. + set par(leading: 0.6em) + for i in range(calc.ceil(authors.len() / 3)) { + let end = calc.min((i + 1) * 3, authors.len()) + let is-last = authors.len() == end + let slice = authors.slice(i * 3, end) + grid( + columns: slice.len() * (1fr,), + gutter: 12pt, + ..slice.map(author => align(center, { + text(size: 11pt, author.name) + if "department" in author [ + \ #emph(author.department) + ] + if "organization" in author [ + \ #emph(author.organization) + ] + if "location" in author [ + \ #author.location + ] + if "email" in author { + if type(author.email) == str [ + \ #link("mailto:" + author.email) + ] else [ + \ #author.email + ] + } + })) + ) + + if not is-last { + v(16pt, weak: true) + } + } + } + ) + + ) + + set par(justify: true, first-line-indent: (amount: 1em, all: true), spacing: 0.5em, leading: 0.5em) + + // Display abstract and index terms. + if abstract != none { + + + [ + // [HICSS.tex]: Use the word “Abstract” as the title, in 12-point Times, boldface type, centered relative to the column, initially capitalized. + + #set align(center) + #set text(size: 12pt, weight: "bold") + Abstract + // [HICSS.tex]: `\vskip 2ex` + #v(12pt) + ] + + // [HICSS.tex]: The abstract is to be in fully-justified italicized text, at the top of the left-hand column as it is here, below the author information. + + word-count(total => { + text(style: "italic", abstract) + + if total.words > 150 [ + #set text(fill: red) + Word count of abstract exceeds limit of 150 words. Word count: #total.words + ] + }, exclude: ) + + // [HICSS.tex]: The abstract is to be in 10-point, single-spaced type, and up to 150 words in length. Leave two blank lines after the abstract, and then begin the main text. + + if key-words != () { + v(12pt) + par( + first-line-indent: 0em, + [*Keywords*: #key-words.join[, ]] + ) + } + } + + // Display the paper's contents. + body + + // Display bibliography. + bibliography +} diff --git a/packages/preview/lime-hicss/0.1.0/template/bibliography.yml b/packages/preview/lime-hicss/0.1.0/template/bibliography.yml new file mode 100644 index 0000000000..1f057bbce4 --- /dev/null +++ b/packages/preview/lime-hicss/0.1.0/template/bibliography.yml @@ -0,0 +1,25 @@ +Allen1997: + type: article + title: The theory of financial intermediation + author: + - Allen, F. + - Santomero, A.M. + date: 1997 + page-range: 1461-1485 + parent: + type: periodical + title: Journal of Banking & Finance + issue: 21(11-12) +Bloomberg2018: + type: web + title: '``Wolf of Wall Street''''Jordan Belfort isn’t paying his debts, U.S. says.' + author: Bloomberg + date: 2018 + url: https://www.bloomberg.com/news/articles/2018-05-16/-wolf-of-wall-street-belfort-isn-t-paying-his-debts-u-s-says + note: '(accessed: 04.01.2022)' +Castells2010: + type: book + title: The rise of the network society (2nd ed.) + author: Castells, M. + date: 2010 + publisher: Wiley-Blackwell diff --git a/packages/preview/lime-hicss/0.1.0/template/main.typ b/packages/preview/lime-hicss/0.1.0/template/main.typ new file mode 100644 index 0000000000..47902abb83 --- /dev/null +++ b/packages/preview/lime-hicss/0.1.0/template/main.typ @@ -0,0 +1,104 @@ +#import "@preview/lime-hicss:0.1.0": hicss + +#show: hicss.with( + // [HICSS]: Capitalize the first letter of nouns, pronouns, verbs, adjectives, and adverbs; do not capitalize articles, coordinate conjunctions, or prepositions (unless the title begins with such a word). + title: [Detailed Formatting Guidelines for Preparing an Initial Manuscript with No Author Names: Paper May Not Exceed Ten Pages (Including References)], + abstract: [ + The abstract is to be in fully-justified italicized text, at the top of the left-hand column as it is here, below the author information. Use the word “Abstract” as the title, in 12-point Times, boldface type, centered relative to the column, initially capitalized. The abstract is to be in 10-point, single-spaced type, and up to 150 words in length. Leave two blank lines after the abstract, and then begin the main text. + ], + authors: ( + ( + name: "Jennings Zhang", + department: [FNNDSC], + organization: [Boston Children's Hospital], + location: [Boston, MA], + email: "lime-hicss@sl.jennin.xyz" + ), + ( + name: "Rudolph Pienaar", + department: [FNNDSC], + organization: [Boston Children's Hospital], + location: [Boston, MA], + email: "dev@babyMRI.org" + ), + ), + key-words: ("Include up to five keywords that capture the main topics or themes of the paper. Separate each keyword with a comma and space.",), + bibliography: bibliography("bibliography.yml"), +) + += Introduction + +All manuscripts must be in English. _Manuscripts must not exceed 10 pages, single-spaced and double-columned_. This includes all graphs, tables, figures and references. These guidelines include complete descriptions of the fonts, spacing, and related information for producing your proceedings manuscripts. Please follow the steps outlined below when preparing your final manuscript. _Read the following carefully. The quality of the finished product largely depends upon receiving your cooperation and help at this particular stage of the publication process._ + += Formatting your paper + +All printed material, including text, illustrations, and charts, must be kept within a print area of 6-1/2 inches (16.51 cm) wide by 8-7/8 inches (22.51 cm) high. Do not write or print anything outside the print area. All text must be in a two-column format. Columns are to be 3 inches (7.85 cm) wide, with a 5.1/16 inch (0.81 cm) space between them. Text must be fully justified. + +This formatting guideline provides the margins, placement, and print areas. If you hold it and your printed page up to the light, you can easily check your margins to see if your print area fits within the space allowed. + += Main title + +The main title (on the first page) should begin 1-3/8 inches (3.49 cm) from the top edge of the page, centered, and in Times 14-point, boldface type. Capitalize the first letter of nouns, pronouns, verbs, adjectives, and adverbs; do not capitalize articles, coordinate conjunctions, or prepositions (unless the title begins with such a word). Leave two 12-point blank lines after the title. + += Author name(s) and affiliation(s) + +Author names and affiliations must be included in the submitted Final Paper for Publication. Leave two 12-point blank lines after the author’s information. + += Second and following pages + +The second and following pages should begin 1.0 inch (2.54 cm) from the top edge. On all pages, the bottom margin should be 1-1/8 inches (2.86 cm) from the bottom edge of the page for 8.5 x 11-inch paper. (Letter-size paper) + += Type-style and fonts + +Please note that _Times New Roman_ is the preferred font for the text of your paper. *If you must use another font*, the following are considered base fonts. You are encouraged to limit your font selections to Helvetica, Arial, and Symbol as needed. These fonts are automatically installed with the viewing software. + += Page Numbers + +Please DO NOT include page numbers in your manuscript. + += Graphics/Images + +All images must be embedded in your document or included with your submission as individual source files. The type of graphics you include will affect the quality and size of your paper on the electronic document disc. In general, the use of vector graphics such as those produced by most presentation and drawing packages can be used without concern and is encouraged. + +- Resolution: 600 dpi +- Color Images: Bicubic Downsampling at 300dpi +- Compression for Color Images: JPEG/Medium Quality +- Grayscale Images: Bicubic Downsampling at 300dpi +- Compression for Grayscale Images: JPEG/Medium Quality +- Monochrome Images: Bicubic Downsampling at 600dpi +- Compression for Monochrome Images: CCITT Group 4 + +If your paper contains many large images they will be down-sampled to reduce their size during the conversion process. However the automated process used will not always produce the best image, and you are encouraged to perform this yourself on an image by image basis. The use of bitmapped images such as those produced when a photograph is scanned requires significant storage space and must be used with care. + += Main text + +Type your main text in 10-point Times, single-spaced. Do not use double-spacing. All paragraphs should be indented 1/4 inch (approximately 0.5 cm). Be sure your text is fully justified—that is, flush left and flush right. Please do not place any additional blank lines between paragraphs. +#linebreak() +*Figure and table captions* should be 9-point boldface Helvetica (or a similar sans-serif font). Callouts should be 9-point non-boldface Helvetica. Initially capitalize only the first word of each figure caption and table title. Figures and tables must be numbered separately. For example: "Figure 1. Database contexts", "Table 1. Input data". Figure captions are to be centered below the figures. Table titles are to be centered above the tables. + +#figure( + image("sample-image.jpg"), + caption: "Sample figure with caption." +) + += Figure-order headings + +For example, "1. Introduction", should be Times 12-point boldface, initially capitalized, flush left, with one 12-point blank line before, and one blank line after. Use a period (".") after the heading number, not a colon. + +== Second-order headings + +As in this heading, they should be Times 11-point boldface, initially capitalized, flush left, with one blank line before, and one after. + +=== Third-order headings +Third-order headings, as in this paragraph, are discouraged. However, if you must use them, use 10-point Times, boldface, initially capitalized, flush left, followed by a period and your text on the same line. + += Footnotes + +Use footnotes sparingly (or not at all) and place them at the bottom of the column on the page on which they are referenced. Use Times 8-point type, single-spaced. To help your readers, avoid using footnotes altogether and include necessary peripheral observations in the text (within parentheses, if you prefer, as in this sentence). + += References + +References and in-text citation should be in line with the format recommended by the Publication Manual of the American Psychological Association (7th edition). The style and grammar guidelines are freely available and can be found at: +#link("https://apastyle.apa.org/style-grammar-guidelines") + +List and number all bibliographical references in 9-point Times, single-spaced, and in an alphabetical order at the end of your paper. For example, #cite(label("Castells2010"), form: "prose") #cite(label("Allen1997"), form: "prose") and #cite(label("Bloomberg2018"), form: "prose") and #cite(label("Allen1997"), form: "prose"). diff --git a/packages/preview/lime-hicss/0.1.0/template/sample-image.jpg b/packages/preview/lime-hicss/0.1.0/template/sample-image.jpg new file mode 100644 index 0000000000..af91b51913 Binary files /dev/null and b/packages/preview/lime-hicss/0.1.0/template/sample-image.jpg differ diff --git a/packages/preview/lime-hicss/0.1.0/thumbnail.png b/packages/preview/lime-hicss/0.1.0/thumbnail.png new file mode 100644 index 0000000000..0453c34e3c Binary files /dev/null and b/packages/preview/lime-hicss/0.1.0/thumbnail.png differ diff --git a/packages/preview/lime-hicss/0.1.0/typst.toml b/packages/preview/lime-hicss/0.1.0/typst.toml new file mode 100644 index 0000000000..1a0012f28a --- /dev/null +++ b/packages/preview/lime-hicss/0.1.0/typst.toml @@ -0,0 +1,17 @@ +[package] +name = "lime-hicss" +version = "0.1.0" +entrypoint = "lib.typ" +compiler = "0.12.0" +repository = "https://github.com/typst/templates" +authors = ["Jennings Zhang ", "FNNDSC "] +license = "MIT-0" +description = "Unofficial template for submission to the Hawaii International Conference on System Sciences (HICSS)." +keywords = ["Hawaii Conference on System Sciences", "Hawaii", "HICSS", "System Science"] +categories = ["paper"] +disciplines = ["computer-science", "engineering"] + +[template] +path = "template" +entrypoint = "main.typ" +thumbnail = "thumbnail.png"