this post was submitted on 22 May 2024
967 points (97.8% liked)

Science Memes

11458 readers
552 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 124 points 7 months ago* (last edited 7 months ago) (3 children)

Counterpoint: advisor said no.

"Just use Word, everyone else does. I have never heard of this latex thing, so must be just some trendy useless overengineered software that does Word's job but worse. Word can track changes just fine, and you can leave comments." proceeds to strikethrough, highlight, and inline comment everything instead of using either of those features "I want to read what you wrote, not fight technology" proceeds to email you three separate times after forgetting to attach v28 about how a graphic looks wrong because Word ate it

[–] pufferfisherpowder 33 points 7 months ago* (last edited 7 months ago) (1 children)

While correct in the sense of word and versioning via mail being a nightmare, I really don't think you can expect anyone to learn latex just so they can comment in your document. I would have offered to send a pdf. Shoot me.

[–] [email protected] 26 points 7 months ago (3 children)

I would have offered to send a pdf

I would have never considered doing anything but sending a PDF. Even if they do know LaTeX. Unless they're offering to help edit the code for me, what good is it? It's objectively harder to read than the formatted PDF.

That said, marking up a PDF is much more difficult and does require more specialised software and know-how than editing plain text or even editing a Word document. So there are some advantages to it.

[–] [email protected] 8 points 7 months ago

This is exactly it. My advisor wanted a word doc to edit, not a PDF. I wasn't quite snooty enough to think that he should learn latex. Though, if he ever took the time to learn (what time?), I'm sure the writing process would be unbearable for other reasons not entirely related.

load more comments (2 replies)
[–] Randelung 18 points 7 months ago (5 children)

you can still use word with git. it's versioning first, diffing and merging only where possible. since you probably won't branch you won't need the latter, though.

load more comments (5 replies)
[–] [email protected] 11 points 7 months ago (2 children)

I'm going to send you a pdf, you van email me back with the notes or comments in the PDF itself, whatever souts your fancy, and I'll keep those notes and send you a new PDF with them.

I did this and I had no issues with any of the thesises I have submitted in my bachelors or masters.

First year calculus teacher, thank you SO much for forcing us to write submissions in latex.

Also, overleaf is a thing, this is not like my 1st year of uni, this 11 years later or so. If your fucking professor never heard of latex they are just bad at academia and shouldn't be teaching honestly. It's not just about the field knowledge.

load more comments (2 replies)
[–] [email protected] 78 points 7 months ago (3 children)

The weird part is that most modern office software has version control built right in.

And I still do this with all my files anyway.

[–] [email protected] 35 points 7 months ago

I've had the built in version control do unexpected things, so I play it safe and create named backup files. I usually end up using that one file, but I've been saved on occasion

[–] [email protected] 21 points 7 months ago

Its just not trustworthy

[–] [email protected] 8 points 7 months ago (6 children)

Use date/time in your file name,using GMT:

Metrics of Sales 2024-05-22_14-29.docx

Very unlikely to have 2 docs with the same down-to-the-minute time stamp in the name.

load more comments (6 replies)
[–] [email protected] 54 points 7 months ago* (last edited 7 months ago)

git tag "FINAL FINAL FINAL DRAFT - v20"

[–] [email protected] 53 points 7 months ago (14 children)

I should write my resume in LaTeX.

[–] [email protected] 22 points 7 months ago (5 children)

Done it and highly recommend it

load more comments (5 replies)
[–] [email protected] 14 points 7 months ago (3 children)

Wait there are other ways to write a resume?

load more comments (3 replies)
[–] [email protected] 9 points 7 months ago

Haha my first thought seeing this meme is "do you want to start writing LaTeX by hand? Because this is how you start..."

load more comments (11 replies)
[–] [email protected] 50 points 7 months ago (6 children)

Git is like shit for Word documents

[–] [email protected] 62 points 7 months ago (1 children)
[–] [email protected] 16 points 7 months ago (3 children)

and then there are fucking PIs insisting on word files who never heard of tracked charges let alone of file naming conventions.

[–] [email protected] 9 points 7 months ago (1 children)

I dunno what a PI is, but my honours thesis supervisor was the person who first introduced me to TeX. And gods, I wish I had known about it earlier in uni, or even back in high school. It is so useful when writing any sort of papers with sections and diagrams and bibliography.

[–] [email protected] 14 points 7 months ago

Principal Investigator. It's the lead scientist in charge of the project.

load more comments (2 replies)
[–] [email protected] 37 points 7 months ago* (last edited 7 months ago) (3 children)
load more comments (3 replies)
[–] [email protected] 28 points 7 months ago

Unzip the docx with a pre-commit hook

(This is not a serious suggestion)

[–] steventhedev 25 points 7 months ago

.gitattributes can invoke Word on windows to diff versions, and there are plenty of open source scripts that can do it if you don't have a copy of Word (or Windows) lying around.

But Word is like shit for papers. Use LaTeX instead.

[–] [email protected] 25 points 7 months ago

Just like word documents are shit for papers and theses/dissertations it turns out. The formatting alone is a nightmare.

[–] [email protected] 8 points 7 months ago

Still better than using file names.

[–] [email protected] 46 points 7 months ago (2 children)

I learned LaTeX just so I could effectively use git in it.

load more comments (2 replies)
[–] sandalbucket 44 points 7 months ago (6 children)

Had to write a paper in college with 100 citations.

We used zotero for citation management, and it would dump a bibtex file on demand.

The paper was written in markdown, stored in git, and rendered through pandoc. We would cite a paper with parentheses and something resembling an id, like (lewis).

We gave pandoc a “citation style definition”, and it took care of everything. Every citation was perfectly formatted. The bibliography was perfectly formatted. Inline references were perfect. Numbering was perfect. All the metadata was ripped from pdfs automatically. It was downright magical.

load more comments (6 replies)
[–] [email protected] 42 points 7 months ago (6 children)

I also added a Makefile for mine (LaTeX), and it would add the commit hash to the front page (with an asterisk if the repository had uncommitted changes).

So, if I gave a draft to someone and got feedback, I'd know exactly which revision it was.

load more comments (6 replies)
[–] [email protected] 34 points 7 months ago (2 children)

docx files are actually zip archives with xml in them

[–] petersr 49 points 7 months ago* (last edited 7 months ago) (2 children)

Let me tell you something. I cannot tell you what company, but I have been tasked with putting Excel files in git "because they are just zip archives with xml" and it is just a disaster. Everytime you save the document it will save certain parts of the xml code in arbitrary ways (like each image is in a list and the order of that list is random everytime), some metadata is re-written everytime like time of last modified and finally all the xml files are one single line. The git diffs are complete useless and noisy and just looking at the Excel file will cause git to consider it updated. So sure, you can use git to snapshot you Office documents... But just don't.

[–] [email protected] 19 points 7 months ago (3 children)

If you are, like I once was, the poor fool who has to maintain a bunch of VBA macros... Extract them into files and source control those. Make a script to extract them and to put them back, and use git-lfs for the actual workbook if you need a template workbook.

Now pardon me, I need to add this to the agenda for my next therapy.

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 17 points 7 months ago* (last edited 7 months ago) (23 children)

Doesn't matter, to git they are still binary files, which means it'll check in each revision as an entirely new copy.

Yes, you might only see the most recent one in your working directory, but under the hood, all the other ones are still there in the repo.

load more comments (23 replies)
[–] SeattleRain 25 points 7 months ago (10 children)

What's a good way to learn about Latex and Git. I've tried learning on my own but it's very overwhelming.

[–] Keeponstalin 16 points 7 months ago

Overleaf is easy to use and has tutorials for LaTeX

[–] [email protected] 8 points 7 months ago (5 children)

Never heard of latex but I can help you with Git.

What you want to know?

load more comments (4 replies)
load more comments (8 replies)
[–] [email protected] 23 points 7 months ago (1 children)

I wrote about half of my thesis in R Markdown using Git to backup my work. It's fantastic because you can have your plots and statistics integrated directly into your paper and formatting in Markdown is much easier than straight up latex.

load more comments (1 replies)
[–] [email protected] 18 points 7 months ago

I recently read a tutorial titled: "how to annoy your collaborators: a git CI pipeline for LaTeX" ;)

[–] [email protected] 13 points 7 months ago (1 children)

I encountered an engineering firm that did this. I wanted to do it too.

The company I worked for at the time (said engineering firm was doing subcontracting for us) was full of older business people who could never in a million years have wrapped their heads around the idea.

load more comments (1 replies)
[–] model_tar_gz 11 points 7 months ago
git checkout -b final_version_revised2_REALLYFINALTHISTIME

git commit -am “holy fuck I hope this really is the last edit” 

git push
[–] [email protected] 11 points 7 months ago* (last edited 7 months ago)

"Delete this repository" ate my homework.

[–] Vorticity 10 points 7 months ago (4 children)

Okay, I have a question. I would love to write my papers in latex, but none of my colleges use it. Is there a way to reasonably collaborate with coauthors who only use Word and for whom Latex would be confusing and difficult?

[–] hinterlufer 17 points 7 months ago (2 children)

You don't. You could try overleaf or some wysiwyg editor for LaTeX, but both need some getting used to and at least a minute amount of effort. Overleaf probably has the lowest barrier of entry (0 set up required), but is a paid service.

load more comments (2 replies)
[–] [email protected] 8 points 7 months ago

It depends on what sort of collaboration. For things on which I was the sole author, like my dissertation, I leveraged the miracle that is pandoc. Every email my advisor got from me was a perfectly formatted Word doc with a flawless bibliography and he never had to learn what the hell LaTeX is.

But if you have multiple contributors going back and forth, or need to keep long-lived discussions in the track changes panel, you’re better off not trying to teach others a new tool. Unless they have a genuine interest in it, in which case the WYSIWYG editors can be fun.

load more comments (2 replies)
[–] orwellianlocksmith 9 points 7 months ago (3 children)

I'm dumb, can someone explain this joke to me? Wtf is a git repo?

[–] [email protected] 21 points 7 months ago* (last edited 7 months ago) (1 children)

Git is a tool that makes it convenient and lightweight to keep past snapshots of a directory of text files (called a repository) and compare them. It also makes it easy to have multiple people work in parallel on the content of the directory, see the differences and merge everything into a common version. It is essential in programming, it's called versioning or version control.
Although it is not easy to access for non programmers because it's based on slightly obscure command lines. So it's a bit of an over-engineering to use it for a single file edited by a single person. Especially because you can now put those on the cloud and have some form of version control that allows to easily compare and go back to previous versions graphically.
It may be worth it if it's a long document that you work upon for a long time, such as a PhD thesis.

load more comments (1 replies)
[–] [email protected] 9 points 7 months ago (1 children)

Git tracks changes for a folder full of code (aka "repo") between saves (called "commits") so you can revert back to previous versions. It's intended for software but there's nothing stopping you from using it for documents

load more comments (1 replies)
load more comments (1 replies)
[–] marcos 9 points 7 months ago (5 children)

Don't you automatically put everything relevant you create in a version control system? And if not, why?

There's no thinking involved on it. Create repo; run editor. The sequence is automatic.

load more comments (5 replies)
load more comments
view more: next ›