Compare commits

..
13 changed files with 31 additions and 35 deletions

No files matched your search

+6 -2
View File
@@ -10,7 +10,7 @@ Pretty simple. Import `codly`. Initialize it. Import `codly-languages`.
Configure `codly` with the languages. Like this:
```typst
#import "@preview/codly:1.1.0": *
#import "@preview/codly:1.1.1": *
#show: codly-init
#import "@preview/codly-languages:0.1.3": *
@@ -50,7 +50,6 @@ The following languages are still missing. All contributions welcome.
- Jinja2
- Jsonnet
- Lean
- Lisp
- LiveScript
- Makefile
- MediaWiki
@@ -93,6 +92,11 @@ The following languages are still missing. All contributions welcome.
The `typst-small.png` icon included in this package came from the MIT-licensed
[codly](https://github.com/Dherse/codly) project.
The `lisp.svg` icon comes [from
Wikipedia](https://commons.wikimedia.org/wiki/File:Lisp_logo.svg), attribution:
Jooja, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via
Wikimedia Commons.
All other icons included here came from the MIT-licensed
[devicon](https://github.com/devicons/devicon/) project.
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
<circle cx="256" cy="256" r="235" fill="#fff"/>
<path stroke="#000" stroke-width="5" d="m255.56 20.008c-62.374 0.1169-122.17 24.922-166.3 68.992-92.236 92.091-92.353 241.52-0.2617 333.75 92.09 92.236 241.52 92.353 333.75 0.262 92.236-92.091 92.353-241.52 0.262-333.75-44.377-44.447-104.64-69.371-167.45-69.254zm2.281 1.0059c59.934 0.4846 119.39 23.809 164.46 68.953 91.701 91.845 91.585 240.64-0.259 332.34-45.922 45.851-120.32 45.793-166.17-0.129-45.851-45.922-45.793-120.32 0.129-166.17 46.412-46.339 46.471-121.53 0.13-167.94-37.084-37.141-94.457-46.553-140.66-21.658 42.416-31.541 92.711-45.798 142.37-45.396zm-190.84 130.26h40c9.943 42.147 25.204 79.418 40.75 116.43 15.9-41.326 33.203-81.249 55.25-116.43h40c-48.928 97.364-102.19 164.06-24 250h-40c-47.567-77.243-82.439-147.67-112-250z"/>
<path d="m293 110.72c78.194 85.936 24.928 152.64-24 250h40c22.047-35.179 39.35-75.102 55.25-116.43 15.546 37.01 30.807 74.282 40.75 116.43h40c-29.561-102.33-64.433-172.76-112-250z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+2 -1
View File
@@ -4,7 +4,7 @@
// To use:
//
// ```typst
// #import "@preview/codly:1.1.0": *
// #import "@preview/codly:1.1.1": *
// #show: codly-init
//
// #import "codly-languages.typ": *
@@ -80,6 +80,7 @@
kt: (name: "Kotlin", color: rgb("#5e3cc2"), icon: __icon("kotlin.svg")),
latex: (name: "LaTeX", color: rgb("#000000"), icon: __icon("latex.svg")),
less: (name: "Less", color: rgb("#2a4d80"), icon: __icon("less.svg")),
lisp: (name: "Lisp", color: rgb("#3FBF3F"), icon: __icon("lisp.svg")),
lua: (name: "Lua", color: rgb("#000080"), icon: __icon("lua.svg")),
markdown: (name: "Markdown", color: rgb("#000000"), icon: __icon("markdown.svg")),
matlab: (name: "Matlab", color: rgb("#4499dd"), icon: __icon("matlab.svg")),
+1 -1
View File
@@ -1,5 +1,5 @@
#import "/lib.typ": *
#import "@preview/codly:1.1.0": *
#import "@preview/codly:1.1.1": *
#show: codly-init
#codly(languages: codly-languages)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 75 KiB

@@ -42,6 +42,7 @@
"kotlin",
"latex",
"less",
"lisp",
"lua",
"markdown",
"matlab",
+1 -1
View File
@@ -15,7 +15,7 @@ education, experience, skills, and more.
To use this template, import it with the version number and utilize the `resume` or `cv` function:
```typst
#import "@preview/finely-crafted-cv:0.2.0": *
#import "@preview/finely-crafted-cv:0.1.0": *
#show: resume.with(
name: "Amira Patel",
+10 -14
View File
@@ -1,14 +1,14 @@
// Constants
#let SIZE_HUGE = 1.5em
#let SIZE_HUGE = 1.3em
#let SIZE_LARGE = 1.1em
#let SIZE_NORMAL = 1em
#let SIZE_SMALL = 0.9em
#let SIZE_TINY = 0.7em
#let BODY_FONT = "Source Serif Pro"
#let BODY_FONT = "Libertinus Serif"
#let BODY_SIZE = 11pt
#let BODY_WEIGHT = "light"
#let HEADING_FONT = "Source Sans Pro"
#let HEADING_FONT = "Libertinus Serif"
#let PAGE_MARGIN = 0.5in
@@ -20,28 +20,25 @@
#let FOOTER_TEXT_WEIGHT = "thin"
#let HEADLINE_NAME_SIZE = SIZE_HUGE
#let HEADLINE_NAME_WEIGHT = "bold"
#let HEADLINE_NAME_WEIGHT = "black"
#let HEADLINE_HRULE_STROKE = 1pt + black
#let TAGLINE_SIZE = SIZE_NORMAL
#let TAGLINE_STYLE = "italic"
#let TAGLINE_WEIGHT = "regular"
#let SECTION_HEADING_SIZE = 0.8em // TODO: this seems wrong, should be SIZE_NORMAL (etc)
#let SECTION_HEADING_WEIGHT = "semibold"
#let SECTION_HEADING_HRULE_STROKE = 0.75pt + navy.lighten(10%)
#let SECTION_HEADING_SIZE = 0.7em // TODO: this seems wrong, should be SIZE_NORMAL (etc)
#let SECTION_HEADING_WEIGHT = "bold"
#let SECTION_HEADING_HRULE_STROKE = 0.75pt + black.lighten(25%)
#let SECTION_HEADING_SPACE_ABOVE = 1em
#let SECTION_HEADING_SPACE_BELOW = 0.5em
#let SECTION_HEADING_BLOCK_FILL = luma(100%) //gradient.linear(blue.lighten(99%), luma(100%))
#let SECTION_HEADING_BLOCK_RADIUS = 2pt
#let SECTION_HEADING_BLOCK_OUTSET = 0.2em
#let COMPANY_ICON_SIZE = SIZE_NORMAL
#let COMPANY_ICON_SPACING = 0.25em
#let COMPANY_NAME_SIZE = SIZE_LARGE
#let COMPANY_NAME_WEIGHT = "semibold"
#let COMPANY_NAME_WEIGHT = "bold"
#let COMPANY_DATE_SIZE = COMPANY_NAME_SIZE
#let COMPANY_DATE_WEIGHT = "semibold"
#let COMPANY_DATE_WEIGHT = "bold"
#let COMPANY_BLOCK_BELOW = 1.3em
#let JOB_NAME_SIZE = SIZE_NORMAL
@@ -52,9 +49,8 @@
#let JOB_LOCATION_WEIGHT = "light"
#let JOB_BLOCK_ABOVE = 0.6em
#let JOB_BLOCK_BELOW = 1em
#let EMPTY_JOB_NUDGE = -0.75em
#let TABLE_HEADER_COLOR = blue.lighten(70%)
#let TABLE_HEADER_COLOR = blue.lighten(60%)
#let TABLE_ZEBRA_COLOR_0 = green.lighten(85%)
#let TABLE_ZEBRA_COLOR_1 = green.lighten(95%)
+2 -14
View File
@@ -32,7 +32,6 @@
header: context {
if here().page() == 1 {
text(
font: heading-font,
size: HEADER_SIZE,
grid(
columns: (1fr, auto, auto, auto, auto, auto),
@@ -80,16 +79,12 @@
block(
above: SECTION_HEADING_SPACE_ABOVE,
below: SECTION_HEADING_SPACE_BELOW,
fill: SECTION_HEADING_BLOCK_FILL,
radius: SECTION_HEADING_BLOCK_RADIUS,
outset: SECTION_HEADING_BLOCK_OUTSET,
breakable: false,
[
#text(size: SECTION_HEADING_SIZE, weight: SECTION_HEADING_WEIGHT, font: heading-font)[
#context counter(heading).display()
#smallcaps(it.body)
#upper(it.body)
]
#v(-0.25em)
#hrule(stroke: SECTION_HEADING_HRULE_STROKE)
]
)
@@ -108,7 +103,6 @@
}
},
)
show table.cell.where(y: 0): set text(font: heading-font)
// Save our settings needed in other functions
__set("heading-font", heading-font)
@@ -179,12 +173,6 @@
#let school-heading = company-heading
#let job-heading(title, location: none, start: none, end: none, comment: none, body) = {
// if we have an empty body, we need to nudge this up
let the-body = if repr(body) == "[]" {
v(EMPTY_JOB_NUDGE)
} else {
body
}
block(
above: JOB_BLOCK_ABOVE,
below: JOB_BLOCK_BELOW,
@@ -230,7 +218,7 @@
}
),
grid.cell(colspan: 5, the-body)
grid.cell(colspan: 5, body)
)
)
}
Binary file not shown.
+1 -1
View File
@@ -1,4 +1,4 @@
#import "@preview/finely-crafted-cv:0.2.0": *
#import "@preview/finely-crafted-cv:0.1.0": *
#show: resume.with(
name: "Amira Patel",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 977 KiB

After

Width:  |  Height:  |  Size: 395 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "finely-crafted-cv"
version = "0.2.0"
version = "0.1.0"
entrypoint = "lib.typ"
authors = ["Stephen Waits <steve@waits.net>"]
license = "MIT"