Add coffee stains to LaTeX documents (2021)

2 years ago (ctan.org)

View an example here: 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?

Huh, my AI-generated newspaper also adds coffee stains to a LaTeX (technically LuaTeX) document: https://imgur.com/a/NoTr8XX

I cobbled this myself, I didn't know it was such an expansive domain with prior art!

  • Beautiful project! How long does the 1100 mAh battery last?

    • About 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? :-)

Looking 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.

I 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.

  • Without this, wouldn't you know which version of your document you're looking at? What is the workflow leading to that?

    • Well, of course, I could put a version number on top of each page... but hey, what's the fun about that?

Working 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.

  • > 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.

  • That 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.

    • It'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.

Why 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.

  • Normally, mugs are ceramic and thus the parts that had to touch the shelf in the kiln are unglazed.

    Maybe we just need to make pottery in 0G.

    • Not all tableware is barefooted / dry-footed. You can use a stilt, which is a ceramic with sharp metal (eg Kanthal) pins on which the glazed ceramic is supported. Pieces fired this way have small marks on the bottom like the injection marks some moulded plastic has.

      Fully glazed ware is good for wet areas when the ceramic may not be entirely vitrified, as this prevents water from soaking into the ceramic body.

      Dry-footed ware that hasn't been high-fired will soak up moisture, eg when washing, and so cause problems - crazing, and getting very hot when used in a microwave oven (which can cause more crazing, but also burn your hand!

      Source: am potter.

      The foot ring on dry-footed mugs is a useful knife sharpener in a pinch.

    • Huh, TIL

      The bare ceramic on the bottom of the mug is of those things I've always noticed about coffee cups but never really thought about.

  • That's a very low tech solution. What we need is an internet connected mug that senses with a camera if it's about to be set on top of a piece of paper and starts beeping uncontrollably.

    With a firmware update and an additional charge to the customer a model for detecting polished wooden furniture could also be used.

    • It also needs a permanent internet connection, as the inference for the paper detection is run in the cloud, and a subscription to keep it working.

      I call it No-SaaS, No Stains as a Service.

  • Because 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.

    • Oh great, one more ink cartridge for printer manufactures to sell. And, of course, the printer will refuse to work if your hydrophobic coating cartridges is empty even tough all other cartridges are fine.

  • They 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.

  • How would a hydrophobic coating help?

    • I 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.

      2 replies →

Brings 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.

“ A lot of time can be saved by printing stains directly on the page rather than adding them manually.” I love this humor.

Once had my advisor give me a paper to read. On it, fairly clearly, were his kid's boogers.

Sometimes 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