4 ms·
I'm surprised nobody has yet mentioned how pleasant it is to create coffee stains using Typst, and if only LaTeX wasn't the de-facto standard in academia and st
by spudlyo 10mo ago
I'm surprised nobody has yet mentioned how pleasant it is to create coffee stains using Typst, and if only LaTeX wasn't the de-facto standard in academia and stain-related journals, they would have already switched to it.
Of course, you can create coffee stains in HTML as well, but it's not something you can do in Markdown.
- fourthark 10mo agoThankfully there is a Typst port of this package! https://typst.app/universe/package/fleck/ https://typst.app/universe/package/fleck/
- philistine 10mo agoThat package still has the core limitation of Typst: images can only be placed top-middle-bottom and left-centre-right. Typst still has yet to support arbitrarily placed images.
- doerig 10mo agoYou mean absolutely positioning it? You can do that with the place function and displacing it with dx/dy from the origin (https://typst.app/docs/reference/layout/place https://typst.app/docs/reference/layout/place). Example: #place(top + left, dy: 2cm, dx: 4cm, image("image.png"))
- philistine 10mo agoThat seems usable for manual layout, but it looks painful to use to place images without knowing exactly where they might end up on a page. I reuse my LaTeX code to make volumes of books, and I never touch the code. It's fire and forget for me, which this does not seem to solve.
- tcfhgj 10mo ago> but it looks painful to use to place images without knowing exactly where they might end up on a page. they end up exactly at the specified location?
- antonvs 9mo agoPresumably they're referring to the ability to parameterize the target page size. In that case, absolute coordinates don't work well (if at all).
- philistine 9mo agoParameterize! That's a new word I didn't know. It adequately describes how I typeset my books, and I must not be alone. The ability to tell LaTeX to drop a picture around here, to the best of its ability, with the possibility of moving it down a paragraph or two if it doesn't fit is vital for me.
- kzrdude 9mo agoI think that's a missing feature of Typst yes, to have figures be either "here" or "top next page" automatically, with that priority. It can't do that. The confusing part was that this has nothing to do with the images of this coffee stain package, because they are foreground/background and can be placed freely on the page (any corner or any custom offset from any corner; i.e from top left corner you can use page coordinates). The coffee stains overlay/underlay text, so no layout problems at all.
- mr_mitm 9mo agoBut the dx/dy arguments also take percentages besides absolut lengths. I still don't get what the the other poster means by that fundamental limitation. I think they're confused about absolute positioning of background images vs floating figures. But typst has the analog setting of `[htbp]`, so the same "fire and forget" workflow is possible.
- widforss 9mo ago> two splashes with light colours Blood. That's blood.
- mrichman 10mo agoI came here to say this! I switched to Typst a couple of months ago and won't be going back.
- alexitosrv 10mo agoTypst requires a signup? It's web? It says developed in the open, but the main page also offers a login. What can you about latex vs typst?
- quantummagic 10mo agoTypst is an application you can use on your local machine without any signup. The compiler is hosted on GitHub. The Typst web app (the online editor at typst.app) is closed source and offered as a paid with cloud storage, collaboration, autocomplete, etc...
- _flux 10mo agoThe financial aspect of the project is the service they sell, core is open: https://github.com/typst/typst https://github.com/typst/typst What the core lacks is the web service that offers e.g. collaborative editing.
- ted_dunning 10mo agoNo. Typst is an open source application. There is a very prominent web site that offers a hosted version without much clarity about the fact that you can run it yourself. The hosted version offers collaborative editing similar to what Overleaf provides which is incredibly useful. See https://github.com/typst/typst https://github.com/typst/typst for the CLI version There is a page with pre-compiled binaries as well and on Macs, you can install using homebrew.
- buo 10mo agoThe compiler is open-source and can be run locally. You need an account if you want to use their web editor, which is nice (it shows error messages where they occur along with an explanation and link to docs, and also shows a real-time updated preview). As for Latex vs Typst, as a language Typst is much better, compiles very quickly, and has sane error messages. However, Typst still has a few rough edges, and can't do everything you can with Latex + packages (yet). I've been using Typst for most of my documents for a few months and I've been generally happy with it.
- 9mo ago
- bachmeier 10mo agoI've been rewriting all my papers in Rust. It's been a pleasant experience getting memory safe coffee stains on my papers.
- anu7df 10mo agoDoes coffee accelerate rusting?
- semi-extrinsic 10mo agoDepends on the acidity.
- deleted 10mo ago[deleted]
- throwaway17_17 9mo agoI know it was probably said just as a joke, but are you really writing papers using Rust? I don’ t use Rust, BUT if you’ve got a better way to write symbol heavy type theory and/or logic than having to make PNG’s and put them in as images in a word processor I would love to hear about it.
- eru 9mo agoYou might like what people have cooked up with Racket.
- tristanlukens 9mo agoBlazingly fast papers!
- vlod 9mo agoSurely coffeescript would have been more appropriate? [0]: https://coffeescript.org/ https://coffeescript.org/
- asimeqi 10mo agoThe best coffee stains by far are created directly in Postscript.
- ihaveajob 10mo agoI'd say the best ones are created by coffee...
- ahazred8ta 10mo agoHanno's original coffee ring page from 2009. https://web.archive.org/web/20100719202509/http://hanno-rein.de/archives/349 https://web.archive.org/web/20100719202509/http://hanno-rein...
- jbrnh 10mo agoThere was the GIMP Coffee stain filter (though it looks like it is not included in Gimp 3). https://docs.gimp.org/2.10/en/script-fu-coffee-stain.html https://docs.gimp.org/2.10/en/script-fu-coffee-stain.html
- __mharrison__ 9mo agoI know it would be easier in typst than using this library... Ducks.