[HN Gopher] Add coffee stains to LaTeX documents (2021)
       ___________________________________________________________________
        
       Add coffee stains to LaTeX documents (2021)
        
       Author : todsacerdoti
       Score  : 381 points
       Date   : 2024-02-09 16:05 UTC (6 hours ago)
        
 (HTM) web link (ctan.org)
 (TXT) w3m dump (ctan.org)
        
       | jjgreen wrote:
       | (2009) http://legacy.hanno-rein.de/hanno-rein.de/archives/349
        
       | dpflan wrote:
       | 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?
        
         | spookie wrote:
         | Probably replicating when you scan the paper
        
         | robinsonb5 wrote:
         | Maybe CMYK colour with no associated profile?
        
         | tantalor wrote:
         | Thanks for linking to that. Really confused why the ctan pages
         | don't.
        
           | Tijdreiziger wrote:
           | They do, it's the 'English documentation' link.
        
         | zeekaran wrote:
         | Aw, these don't look nearly as good as I hoped.
        
         | elevaet wrote:
         | > This page was intentionally left blank but we had to ruin it
         | by letting you know.
         | 
         | Brilliant!
        
           | chanandler_bong wrote:
           | This 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
        
             | JohnFen wrote:
             | My 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 wrote:
               | I always liked the self-contradictory nature of "This
               | page was unintentionally left blank."
        
             | cwillu wrote:
             | Plot twist: the printer accidentally added the [non-]blank
             | page.
        
         | micromacrofoot wrote:
         | yeah the color if off and you can see that it's obviously a
         | vector graphic... it's kind of posterized
        
           | wayvey wrote:
           | I wonder if blurring the edges of the shapes within the stain
           | might help make it look more organic
        
         | codetrotter wrote:
         | First few stains look a bit poopy. And last one a bit murdery.
         | None of them look very covfefe.
        
           | fcoury wrote:
           | Agreed, I was expecting something a bit more like this:
           | 
           | https://geekhack.org/index.php?action=dlattach;topic=102580..
           | ..
        
             | guax wrote:
             | Nice keeb
        
             | FirmwareBurner wrote:
             | What keyboard is that?
        
               | graphe wrote:
               | If you're looking for the game ending keyboard you need
               | this one.
               | 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 wrote:
               | That looks amazeballs. What I wanted my whole life.
               | 
               | Is it good though or is it impulse buy ewaste that just
               | looks cool?
        
               | graphe wrote:
               | It is very good. USB-C as well. Here's some English
               | marketing 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.
        
               | FirmwareBurner wrote:
               | Thanks. Can you also tilt the halves like a tent for
               | ergonomics?
        
               | graphe wrote:
               | I have them mounted to a chair I'm not by but I think so.
               | Having a hot swappable keyboard I have them on the arms
               | in a tilt specific to me. I was looking for an American
               | clone but nobody makes anything this cool.
               | https://dygma.com/pages/defy This one isn't magnetic but
               | it's wireless and it has a mouse on it. I love the
               | magnetic and the tactile feeling as well as the ability
               | to mix and match keys and switches on the fly.
               | 
               | I'm not sure what the next iteration would be for a
               | keyboard but I hope to see more ergonomic ones mounted on
               | chairs.
        
               | entropicdrifter wrote:
               | That page says the software is Windows-only. Is the
               | software just for the setup? Or would this be impossible
               | to use on Linux/Mac even after configuring it?
        
               | bhasi wrote:
               | Have you used the Microsoft Sculpt Ergonomic keyboard? I
               | really like that, but it isn't mechanical.
        
               | steve1977 wrote:
               | That's the comment I expect on a site named Hacker News
        
           | geph2021 wrote:
           | very murdery! Never even seen coffee that color :)
        
             | solardev wrote:
             | Maybe the poor civet had bloody bowels that day :(
             | 
             | https://en.wikipedia.org/wiki/Kopi_luwak
        
           | for1nner wrote:
           | This is the kind of discourse I seek out on HN. ty
        
         | deleterofworlds wrote:
         | hard to judge on a screen how they will look printed
        
         | kqr wrote:
         | This 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 wrote:
           | The recent project of the darktable developer to ansel shows
           | this happening in other open source projects too.
        
         | wly_cdgr wrote:
         | Stains need to be subtler/fainter, waterier, with grain specks
        
         | generalizations wrote:
         | Some of those are wine stains. The pkg does both.
        
       | pavel_lishin wrote:
       | > _A lot of time can be saved by printing stains directly on the
       | page rather than adding them manually._
       | 
       | Outstanding.
        
         | cf100clunk wrote:
         | Bestowing the ''golden ring of quality'' has now been
         | automated.
        
           | diego_sandoval wrote:
           | When a measure becomes a target, it ceases to be a good
           | measure.
        
       | Something1234 wrote:
       | Honestly if I got a resume featuring this I would immediately
       | call them in for an interview it counts for massive bonus points.
        
         | dylan604 wrote:
         | would you lower the points awarded if they were not to scale?
        
       | pahae wrote:
       | I actually like their take on the vacat page [0] even more.
       | 
       | 0: https://en.wikipedia.org/wiki/Intentionally_blank_page
        
       | bluish29 wrote:
       | 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
        
       | dheera wrote:
       | 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.
        
         | jhardy54 wrote:
         | How would a hydrophobic coating help?
        
           | danbruc wrote:
           | 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.
        
             | netsharc wrote:
             | The coating around the side should form a V, with the
             | handle being the lowest point, and make a little
             | indentation on the bottom of the inside of handle to
             | collect all the liquid...
        
             | 0x38B wrote:
             | So make a GoreTex sleeve that waterproofs the bottom of
             | your coffee mug?
        
         | DannyB2 wrote:
         | 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.
        
           | amlib wrote:
           | 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.
        
         | zeekaran wrote:
         | 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.
        
           | nolongerthere wrote:
           | Could you just suspend them on a cushion of air like indoor
           | skydiving?
        
             | sho_hn wrote:
             | One of the primary motivations behind LK99 and other
             | efforts to create room-temp superconductors is to fashion
             | coffee mugs that harness the Meissner effect to levitate
             | above journal print-outs.
        
             | bruce343434 wrote:
             | How do you "just" suspend a mug on a cushion of air?
        
               | olddustytrail wrote:
               | Maybe like indoor skydiving?
        
             | samatman wrote:
             | Obtaining the necessary laminar flow in the presence of the
             | handle might be challenging.
        
           | StableAlkyne wrote:
           | 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.
        
           | pbhjpbhj wrote:
           | 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.
        
         | eric__cartman wrote:
         | 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.
        
           | sho_hn wrote:
           | 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.
        
         | bee_rider wrote:
         | Then how would we tell which papers have been read?
        
         | nosrepa wrote:
         | Aren't most hydrophobic coatings very toxic and wear easily?
        
         | simcop2387 wrote:
         | 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.
        
       | quijoteuniv wrote:
       | What about green tea?
        
         | DannyB2 wrote:
         | Or Diet Coke.
        
           | noud wrote:
           | Or Mate?
        
             | jokeneversoke wrote:
             | or Monster?
        
       | philomath_mn wrote:
       | Some other great CTAN packages with an "amusements" tag:
       | https://ctan.org/topic/amusements
        
         | sho_hn wrote:
         | realhats is pretty great.
        
       | leemelone wrote:
       | Think of all the work that was done on this package INSTEAD the
       | paper the author should have been working on.
        
         | fghorow wrote:
         | I do hope they got tenure for this!
         | 
         | :D
        
       | soegaard wrote:
       | The 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/coffeest...
       | 
       | I am looking forward to a real generative AI that produces coffee
       | stains.
        
       | Dowwie wrote:
       | https://framagit.org/Pathe/coffeestains
        
       | BearOso wrote:
       | I'm sure the extra cost of color printing makes it less
       | economical.
        
       | noelwelsh wrote:
       | 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.
        
         | fuglede_ wrote:
         | You and me both. Maybe someone will find this useful:
         | https://photocopy.fuglede.dk/
        
           | mck- wrote:
           | Nice! If only I knew this existed last month.
           | 
           | But they also needed a "company seal stamp" which I had to
           | draw
        
         | uhasker wrote:
         | I legit had to google the word "verisimilitude"
        
           | ebri wrote:
           | Me too. What a wordsmith, I am in awe! not being sarcastic, I
           | really do appreciate it
        
         | eclipticplane wrote:
         | convert \             -density 150 \             -colorspace
         | gray \             +noise Gaussian \             -rotate 0.5 \
         | -depth 2 \             "$1" \             "$(echo "$1" | rev |
         | cut -f 2- -d '.' | rev)-scanned.pdf"
        
         | johannes1234321 wrote:
         | See falsisign: https://gitlab.com/edouardklein/falsisign
        
         | tuatoru wrote:
         | Now we just need a similar package to smudge and blot the
         | signature slightly, and add a little ink spatter, for the
         | fountain pen look.
        
         | flexagoon wrote:
         | And whenever you want to share a code snippet with someone,
         | instead of using boring tools like Pastebin, use this instead:
         | 
         | https://code.xxut.ru/
        
       | ar7hur wrote:
       | This is why I read HN every day.
        
       | sho_hn wrote:
       | 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!
        
         | mu_killnine wrote:
         | Incredible! Thanks for sharing
        
         | hathawsh wrote:
         | Beautiful project! How long does the 1100 mAh battery last?
        
           | sho_hn wrote:
           | 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? :-)
        
         | engineer_22 wrote:
         | Great project, would be a good expo for Hack-a-day
        
       | fifticon wrote:
       | I still cling to doing it manually, as a bonus you get coffee
       | too!
        
       | oorza wrote:
       | What 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 wrote:
         | The supporting code repo contains a sample PDF
         | 
         | https://framagit.org/Pathe/coffeestains/-/blob/main/coffeest...
        
         | brbrodude wrote:
         | Old-school internet vibes
        
         | afhfah834 wrote:
         | What do you mean? It is on the documentation?
         | 
         | https://ca.mirrors.cicku.me/ctan/graphics/pgf/contrib/coffee...
        
       | CalChris wrote:
       | Maybe you can combine coffee stains and watermarks.
        
       | throwawaaarrgh wrote:
       | I'm gonna need a decaf option
        
       | nvr219 wrote:
       | Need to fork to make it bloodstains
        
       | 0x38B wrote:
       | Stains 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
        
       | pvaldes wrote:
       | Or use overpic and the coffee stain filter from Gimp.
        
       | smitty1110 wrote:
       | I'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.
        
       | jrpelkonen wrote:
       | 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.
        
       | emmanuel_1234 wrote:
       | 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.
        
         | musiciangames wrote:
         | 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.
        
           | xanderlewis wrote:
           | If you think the French love paperwork, try Japan!
        
         | lloeki wrote:
         | > 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 wrote:
       | This is essential
        
       | pugworthy wrote:
       | This 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/?
        
       | markrages wrote:
       | Previously: https://news.ycombinator.com/item?id=19008109
        
       | noud wrote:
       | 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.
        
       | ok_dad wrote:
       | I 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/...
       | 
       | http://legacy.hanno-rein.de/hanno-rein.de/archives/349
        
       | ashdnazg wrote:
       | Package name should have been Lattex.
        
       | maxglute wrote:
       | Can we also get a decaf version. Or tears.
        
       ___________________________________________________________________
       (page generated 2024-02-09 23:00 UTC)