8 ms·
Add coffee stains to LaTeX documents (2021)
- markrages 3y agoPreviously: https://news.ycombinator.com/item?id=19008109 https://news.ycombinator.com/item?id=19008109
- maxglute 3y agoCan we also get a decaf version. Or tears.
- jjgreen 3y ago(2009) http://legacy.hanno-rein.de/hanno-rein.de/archives/349 http://legacy.hanno-rein.de/hanno-rein.de/archives/349
- dpflan 3y agoView an example here: https://ctan.math.utah.edu/ctan/tex-archive/graphics/pgf/contrib/coffeestains/coffeestains-en.pdf https://ctan.math.utah.edu/ctan/tex-archive/graphics/pgf/con... Maybe the hue is off, or its a different roast or beans, feels less coffee, more science murder mystery?
- deleted 3y ago[deleted]
- spookie 3y agoProbably replicating when you scan the paper
- zeekaran 3y agoAw, these don't look nearly as good as I hoped.
- robinsonb5 3y agoMaybe CMYK colour with no associated profile?
- tantalor 3y agoThanks for linking to that. Really confused why the ctan pages don't.
- Tijdreiziger 3y agoThey do, it’s the ‘English documentation’ link.
- elevaet 3y ago> This page was intentionally left blank but we had to ruin it by letting you know. Brilliant!
- chanandler_bong 3y agoThis page intentionally left blank. (Well, not completely blank, since the above non-empty disclaimer appears on the page. What is meant is that this page is devoid of meaningful content related to the rest of the document. This page serves only as a separator between sections, chapters, or other divisions of the document. This page is not completely blank so that you know that nothing was unintentionally left out, or that the page is not blank because of an error in duplication, or that the page is not blank because of some other production problem. If this page were really blank, you wouldn't be reading anything. This page has not been left blank by accident, but is left non-blank on purpose. The statement on the page should say "This page was intentionally left non-blank".) http://www.tytempleton.com/rhf/jokes/93q1/nonblank.html http://www.tytempleton.com/rhf/jokes/93q1/nonblank.html
- JohnFen 3y agoMy favorite was with two sides of a blank page in a document. One side read "This page is intentionally left blank", and the other side read "This page isn't."
- kqr 3y agoI always liked the self-contradictory nature of "This page was unintentionally left blank."
- cwillu 3y agoPlot twist: the printer accidentally added the [non-]blank page.
- huepfebein 3y agoPlot twist: the "blank page" hides internal information and a parting employee's rant against the boss in an official company publication and you only find out weeks later because of strange search engine results. (No, definitely not triggered.)
- micromacrofoot 3y agoyeah the color if off and you can see that it's obviously a vector graphic... it's kind of posterized
- wayvey 3y agoI wonder if blurring the edges of the shapes within the stain might help make it look more organic
- codetrotter 3y agoFirst few stains look a bit poopy. And last one a bit murdery. None of them look very covfefe.
- fcoury 3y agoAgreed, I was expecting something a bit more like this: https://geekhack.org/index.php?action=dlattach;topic=102580.0;attach=247007;image https://geekhack.org/index.php?action=dlattach;topic=102580....
- guax 3y agoNice keeb
- FirmwareBurner 3y agoWhat keyboard is that?
- graphe 3y agoIf you're looking for the game ending keyboard you need this one. https://www.aliexpress.com/i/3256803782645256.html https://www.aliexpress.com/i/3256803782645256.html Any mechanical switch, on its own key mount moved on a split or single magnetic board. I suggest split.
- FirmwareBurner 3y agoThat looks amazeballs. What I wanted my whole life. Is it good though or is it impulse buy ewaste that just looks cool?
- graphe 3y agoIt is very good. USB-C as well. Here's some English marketing https://www.velocifiretech.com/products/dumang-dk6-ergo-v2 https://www.velocifiretech.com/products/dumang-dk6-ergo-v2 The magnets are not weak and do not dislodge easily. I do not care about any keyboards unless it's better than this one. If anyone knows a better one let me know! I think they said they're working on a mouse or something like other input options a while ago, but I haven't heard of anything new but I haven't checked either.
- deleterofworlds 3y agohard to judge on a screen how they will look printed
- dessimus 3y agoWould you please print a copy and take a picture of the page laying on a wooden table and then copy/paste the result into a Word docx? It's the only way to know for certain.
- kqr 3y agoThis seems like the sort of thing that happens when one repeatedly tweaks while using the previous iteration as a reference. It might feel like most iterations improve on what came before, but before long one loses the connection to the original reference. I think Deming compared it to the telephone game.
- graphe 3y agoThe recent project of the darktable developer to ansel shows this happening in other open source projects too.
- wly_cdgr 3y agoStains need to be subtler/fainter, waterier, with grain specks
- generalizations 3y agoSome of those are wine stains. The pkg does both.
- planckscnst 3y agoI was hoping to see dark outlines and a light interior. https://www.scienceabc.com/pure-sciences/why-are-coffee-stains-darker-along-the-edges.html https://www.scienceabc.com/pure-sciences/why-are-coffee-stai...
- pavel_lishin 3y ago> A lot of time can be saved by printing stains directly on the page rather than adding them manually. Outstanding.
- cf100clunk 3y agoBestowing the ''golden ring of quality'' has now been automated.
- diego_sandoval 3y agoWhen a measure becomes a target, it ceases to be a good measure.
- Something1234 3y agoHonestly if I got a resume featuring this I would immediately call them in for an interview it counts for massive bonus points.
- dylan604 3y agowould you lower the points awarded if they were not to scale?
- pahae 3y agoI actually like their take on the vacat page [0] even more. 0: https://en.wikipedia.org/wiki/Intentionally_blank_page https://en.wikipedia.org/wiki/Intentionally_blank_page
- bluish29 3y agoSometimes I exchange printed papers and documents with colleagues that have actual coffee stains. Would be interesting to have digital and physical stains at the same time. I will test that. Some will complain about the perfect shapes /s
- dheera 3y agoWhy aren't there mugs with hydrophobic coating on the bottom? It seems like this should be an easy problem to solve compared to all the petaflop GPU's and spacecraft we're building.
- simcop2387 3y agoThey tend to get destroyed when cleaning the items. It happens a lot with clothing that has hydrophobic coatings so I'd imagine a dishwasher would ruin it almost immediately, leading to complaints and returns.
- jhardy54 3y agoHow would a hydrophobic coating help?
- danbruc 3y agoI can imagine two ways. First, on the very bottom, if you place the mug into a puddle of coffee, then no coffee will wet the bottom of the mug. Second, around the side, when coffee runs down the side of the mug, a hydrophobic coating might stop a drop in its path if it is not too heavy. Not sure if the second thing would actually work.
- DannyB2 3y agoBecause that is a hardware fix. Why fix in hardware what can be fixed in software? A simple Latex package could add hydrophobic coating feature to the document file. Next: the device driver team will be tasked with a software patch to correct for the burned out light bulb on the device.
- quijoteuniv 3y agoWhat about green tea?
- DannyB2 3y agoOr Diet Coke.
- noud 3y agoOr Maté?
- jokeneversoke 3y agoor Monster?
- deleted 3y ago[deleted]
- philomath_mn 3y agoSome other great CTAN packages with an "amusements" tag: https://ctan.org/topic/amusements https://ctan.org/topic/amusements
- sho_hn 3y agorealhats is pretty great.
- seanhunter 3y agoI can have an aperiodic tile "Einstein's Hat" hat on my basis vectors! That's just outstanding.
- leemelone 3y agoThink of all the work that was done on this package INSTEAD the paper the author should have been working on.
- fghorow 3y agoI do hope they got tenure for this! :D
- soegaard 3y agoThe code didn't look as I expected. He more-or-less embedded an svg into the sty-file. https://framagit.org/Pathe/coffeestains/-/blob/main/coffeestains.sty?ref_type=heads https://framagit.org/Pathe/coffeestains/-/blob/main/coffeest... I am looking forward to a real generative AI that produces coffee stains.
- notso411 3y ago[dead]
- Dowwie 3y agohttps://framagit.org/Pathe/coffeestains https://framagit.org/Pathe/coffeestains
- BearOso 3y agoI'm sure the extra cost of color printing makes it less economical.
- noelwelsh 3y agoLooking forward to using this next time I'm told I have to print, sign, and scan a document. I already have software setup to slightly rotate the page and add some grain, but this will add extra verisimilitude.
- fuglede_ 3y agoYou and me both. Maybe someone will find this useful: https://photocopy.fuglede.dk/ https://photocopy.fuglede.dk/
- mck- 3y agoNice! If only I knew this existed last month. But they also needed a “company seal stamp” which I had to draw
- uhasker 3y agoI legit had to google the word "verisimilitude"
- ebri 3y agoMe too. What a wordsmith, I am in awe! not being sarcastic, I really do appreciate it
- ajot 3y agoHuh, it's not a common word in English, right? Spanish being my mother tongue, it's not weird for me. What would be a more anglo word with a similar meaning, if any?
- lucubratory 3y agoVerisimilitude is the right word, most people I know would know it if they were going to be reading anything about LaTeX. It might be a cultural or regional difference, I am in Australia.
- SamBam 3y ago
- ar7hur 3y agoThis is why I read HN every day.
- sho_hn 3y agoHuh, my AI-generated newspaper also adds coffee stains to a LaTeX (technically LuaTeX) document: https://imgur.com/a/NoTr8XX https://imgur.com/a/NoTr8XX I cobbled this myself, I didn't know it was such an expansive domain with prior art!
- mu_killnine 3y agoIncredible! Thanks for sharing
- hathawsh 3y agoBeautiful project! How long does the 1100 mAh battery last?
- sho_hn 3y agoAbout 7 months in the first run. I recently switched things to a more efficient TPS63020-based voltage converter though, which has an extremely low operating quiescent current of only 25uA in low power mode (1/4 of the MT3608 I previously used). I'm hoping for more in the next! The comparison will also be apples-to-oranges though since I also switched it to a 3500 mAh 18650 during that revision ... self-drain and therefore the battery make itself now become a big factor ... ask me in a few years how it went? :-)
- engineer_22 3y agoGreat project, would be a good expo for Hack-a-day
- staplar 3y agoamazing! how much did all the components cost, minus chatgpt sub.
- fifticon 3y agoI still cling to doing it manually, as a bonus you get coffee too!
- deleted 3y ago[deleted]
- oorza 3y agoWhat goes through someone's mind that they spend all the time and effort to create a visual gag and then don't put images of said visual gag on the documentation?
- ninju 3y agoThe supporting code repo contains a sample PDF https://framagit.org/Pathe/coffeestains/-/blob/main/coffeestains-en.pdf?ref_type=heads https://framagit.org/Pathe/coffeestains/-/blob/main/coffeest...
- brbrodude 3y agoOld-school internet vibes
- afhfah834 3y agoWhat do you mean? It is on the documentation? https://ca.mirrors.cicku.me/ctan/graphics/pgf/contrib/coffeestains/coffeestains-en.pdf https://ca.mirrors.cicku.me/ctan/graphics/pgf/contrib/coffee...
- CalChris 3y agoMaybe you can combine coffee stains and watermarks.
- throwawaaarrgh 3y agoI'm gonna need a decaf option
- nvr219 3y agoNeed to fork to make it bloodstains
- Alifatisk 3y agoThere is example of bloodstain at the bottom
- 0x38B 3y agoStains add a whole layer of history to a document - I remember a prof at uni once apologizing for the wine stains on our papers... In the same vein as stains, I love how non-waterproof inks react with water; the organic smudges and splotches add a bit of watercolor to an ordinary journal page (1). 1: https://nexus.armylane.com/files/Journal-Ink-splotches.jpg https://nexus.armylane.com/files/Journal-Ink-splotches.jpg
- pvaldes 3y agoOr use overpic and the coffee stain filter from Gimp.
- deleted 3y ago[deleted]
- smitty1110 3y agoI'm fairly sure this is either older than stated, or is based off an older package. I distinctly remember a similar package existing when I was in high school in the 00's, I turned in a paper for AP CS with a faked coffee stain once as a joke.
- ahazred8ta 3y agoHanno's version made a big splash in 2009. We discussed LaTeX coffee rings back in 2010 - https://news.ycombinator.com/item?id=1924697 https://news.ycombinator.com/item?id=1924697
- jrpelkonen 3y agoBrings back memories from time when printed documents were still the norm. A coworker used to call it my "seal of approval" if a document was on top of my desk long enough to accumulate a hefty dose of coffee stains.
- emmanuel_1234 3y agoWorking in France, I remember having to provide a "Scan of an original of Bank Account information slip" (approximate translation). It's just a number! That I could have copy/pasted in an email to make sure the secretary won't fuck it up, or I could download the document from my bank and email it, but no, HR insisted it had to be an original. I eventually downloaded one from my bank, converted it to JPEG, added a light coffee stain with Gimp and sent that, to pretend it was an actual scan of an actual document actually printed by the bank.
- musiciangames 3y agoThat almost made me nostalgic for the French love of paperwork. 'La paperasse' I seem to recall. Watching an official in action is like performance art.
- xanderlewis 3y agoIf you think the French love paperwork, try Japan!
- d-lisp 3y agoIt's probably the same in other countries, but some day I did rent a field to plant some vegetables and run a small business. Every single day for one entire month I had to fill forms, sign papers, ask the field owner to give me some random information queried by some french institutions related to : nature, forest, ecology, commerce, entreprenership, business, water, rental etc.. Most of the time the field owner had to go to the "mairie" of his town to get the proper informations which would contact other services (--recursively) so I could get the information that I need to fill the forms. I am pretty sure the field owner has administration-related PTSD if he sees me again.
- lloeki 3y ago> I eventually downloaded one from my bank Had the same experience, but that I could not do, as my bank would only give out some crude Netscape era HTML laid out with a borderless <table>, that might just as well have been plain text. I literally had to fake something that looked like a pretty paper one, complete with the bank cooler palette and slapping a semi-transparent logo in the background. Another marvel: once I received some paperwork, and was asked to sign and scan, which I did. I had a nice scanner. It produced perfectly noise free, upright scans. I had a nice pen. It produced very clean scripture. Apparently too nice as the recipient lectured me that I had to print, physically sign, and scan, that they could not accept a digital signature on a digital document. The fact that I received the paperwork on actual paper by snail mail and never could have had access to a digital version completely eluded them.
- arnley 3y agoThis is essential
- pugworthy 3y agoThis reminds me of the old Philip and Alex's Guide to Web Publishing* posts from the 90's and his sketcherly / back of the napkin diagram style. * http://philip.greenspun.com/panda/ http://philip.greenspun.com/panda/?
- noud 3y agoI used this library very often when writing a new paper. When the paper was a draft I would put coffee stains on the pages. In this way, I always knew if I was looking at a draft or the final version.
- ok_dad 3y agoI remember using something similar like a decade ago, maybe one I linked below? I added one to a paper for a math class I turned in and the teacher loved it so much that the next semester he used it on almost every handout; it was quite annoying after a while, hahaha. https://www.overleaf.com/latex/examples/latex-coffee-stains/qsjjwwsrmwnc https://www.overleaf.com/latex/examples/latex-coffee-stains/... http://legacy.hanno-rein.de/hanno-rein.de/archives/349 http://legacy.hanno-rein.de/hanno-rein.de/archives/349
- ashdnazg 3y agoPackage name should have been Lattex.
- Upvoter33 3y agoOnce had my advisor give me a paper to read. On it, fairly clearly, were his kid's boogers.
- ma12rk3 3y agoagreed
- Franscoben 3y ago[flagged]
- _giorgio_ 3y agoWhy do you like this? Surely I'd have appreciated a more aesthetic design or decoration!
- ziofill 3y ago“ A lot of time can be saved by printing stains directly on the page rather than adding them manually.” I love this humor.