diff --git a/README.md b/README.md index 2a212d7..cdcf182 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Source code for creating the LDMX logo with [Typst](https://typst.app/docs/). ## Set Up #### Install `just` -`just` is used to share common recipes similar to how we use it for ldmx-sw development. +`just` is used to share common recipes similar to how we use it [for ldmx-sw development](https://ldmx-software.github.io/developing/getting-started.html#install-just). #### Install `typst` There are a bunch of ways to do this, so I'm just going to refer you to @@ -46,11 +46,3 @@ The output is written into a file of the same name but with a different extensio Specifically, I am using the Typst package [fletcher](https://typst.app/universe/package/fletcher/) to create this logo as a "diagram". flecter uses [CeTZ](https://typst.app/universe/package/cetz/) under-the-hood so that might be helpful for more fine-tuning as well. - -## To Do -- [x] mimic original logo -- [x] control over colors of the different pieces (text, particles, background) -- [x] add prefix and suffix text -- [x] square page and center logo (e.g. for profile pictures) -- [x] different color DM from L and X (`dm-text-color` argument) -- [x] end electron on D (like in original?) diff --git a/logo.typ b/logo.typ index f061614..958657d 100644 --- a/logo.typ +++ b/logo.typ @@ -16,6 +16,7 @@ /// dm-text-color: type color, default to text-color, color of the letters D and M in LDMX in logo /// prefix: extra text to include in front of LDMX /// suffix: extra text to be included after LDMX +/// un: for adding "un" in LunDMX above horizontal bar of the L /// page-args: how to construct the page around the logo, default is no page /// none or auto makes the page the same size and shape as the logo /// "square" makes the page a square with the side length determined by the width of the logo @@ -37,6 +38,7 @@ dm-text-color: auto, prefix: none, suffix: none, + un: none, page-args: auto ) = context { @@ -97,6 +99,18 @@ name: , layer: 1 ), + node( + (1.07,0.4), + if type( un ) == content or un == none { + // Assume user knows what they are doing + un + } else { + text(size: 12pt, weight: "light", un ) + }, + shape: rect, + name: , + layer: 1 + ), node( (0,0), if prefix == none [] else if type(prefix) == str { diff --git a/test.typ b/test.typ index 2b4aaa1..cc56f71 100644 --- a/test.typ +++ b/test.typ @@ -1,5 +1,5 @@ #for (i, variation) in ( - "bw", "bw-square", "mini-bw", "blue-on-white", "light-blue", "ldmx-sw", + "lundmx-bw", "bw", "bw-square", "mini-bw", "blue-on-white", "light-blue", "ldmx-sw", "white-on-transparent", "umn", "ucsb", "stanford", "eg-all" ).enumerate() { if i > 0 { pagebreak() } diff --git a/variations/lundmx-bw.typ b/variations/lundmx-bw.typ new file mode 100644 index 0000000..cd0c31c --- /dev/null +++ b/variations/lundmx-bw.typ @@ -0,0 +1,2 @@ +#import "/logo.typ": logo +#logo(un: "un")