Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

harvard-gsas-thesis-oat:0.1.0 #1686

Merged
merged 5 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/preview/harvard-gsas-thesis-oat/0.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Jerry Ling

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, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
4 changes: 4 additions & 0 deletions packages/preview/harvard-gsas-thesis-oat/0.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Typst Template for Harvard GSAS Dissertation
An **unofficial** template for Harvard GSAS Dissertation.

Follow formatting guidelines from https://gsas.harvard.edu/resource/dissertation-formatting-guidance.
Binary file not shown.
13 changes: 13 additions & 0 deletions packages/preview/harvard-gsas-thesis-oat/0.1.0/example_gsas.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#import "@preview/harvard-gsas-thesis-oat:0.1.0": frontmatter, school-color

#show: frontmatter.with(
title: "Dissertation Title",
abstract: [this is abstract text],
author: "John Harvard",
advisor: "Melissa Franklin",
doctor-of: "Physics",
major: "Physics",
)


= The LHC and the ATLAS Experiment
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions packages/preview/harvard-gsas-thesis-oat/0.1.0/lib.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
#let school-color = rgb(165, 28, 48)

#let frontmatter(
title: none,
abstract: [],
author: "John Harvard",
advisor: "My Dear Advisor",
doctor-of: "Physics",
major: "Physics",
doc
) = {
set page(
paper:"us-letter",
numbering: "I",
)
set heading(numbering: "1.1")
set par(first-line-indent: 3em, justify:true, leading: 1em)
set text(font:"New Computer Modern", top-edge: 0.7em, bottom-edge: -0.3em, size:12pt)

show heading.where(
level: 1, outlined: true
): it => [
#set align(right)
#set text(20pt, weight: "regular")
#pagebreak()
#v(30%)
#text(100pt, school-color, counter(heading).display())\
#text(24.88pt, it.body)
#v(3em)
]
show heading.where(level: 2): smallcaps
set page(numbering:none)
set align(center + horizon)
counter(page).update(1)
grid(
[
#text(school-color, 24.88pt)[_#(title)_]

#v(1fr)
#show: smallcaps

A dissertation presented by\
#author\
to\
The Department of Physics\
in partial fulfillment of the requirements for the degree of\
Doctor of #major\
in the subject of\
#major
#v(3fr)
Harvard University\
Cambridge, Massachusetts\
#datetime.today().display("[month repr:long] [year]")
]
)

pagebreak()
[
This work is licensed under #link("https://creativecommons.org/licenses/by/4.0/")[CC BY 4.0]\
#sym.copyright #datetime.today().display("[year]") #author
]
pagebreak()


set page(numbering: "I")
set align(top)
grid(
columns:(auto, 1fr, auto),
[Dissertation Advisor: #advisor],
[],
[#author]
)

v(5%)
title
v(7%)

[*Abstract*]

set align(left)
abstract
pagebreak()

outline()


set page(numbering:none)
counter(page).update(1)
set page(numbering:"1")
doc
}
12 changes: 12 additions & 0 deletions packages/preview/harvard-gsas-thesis-oat/0.1.0/templates/main.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#import "@preview/harvard-gsas-thesis-oat:0.1.0": frontmatter, school-color

#show: frontmatter.with(
title: "Dissertation Title",
abstract: [this is abstract text],
author: "John Harvard",
advisor: "Melissa Franklin",
doctor-of: "Physics",
major: "Physics",
)

= The LHC and the ATLAS Experiment
16 changes: 16 additions & 0 deletions packages/preview/harvard-gsas-thesis-oat/0.1.0/typst.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "harvard-gsas-thesis-oat"
version = "0.1.0"
entrypoint = "lib.typ"
authors = ["Moelf <https://github.com/Moelf>"]
license = "MIT"
description = "PhD Thesis template for Harvard GSAS (Graduate School of Arts and Sciences)"
repository = "https://github.com/Moelf/harvard-gsas-thesis-oat"
keywords = ["Harvard", "GSAS", "Harvard University", "dissertation", "thesis"]
categories = ["thesis"]
exclude = ["example_gsas.pdf", "example_gsas.typ"]

[template]
path = "templates"
entrypoint = "main.typ"
thumbnail = "img/thumbnail.png"